/* 
   Estilos para CRW Manresa - Desarrollo Web
   Diseño Moderno y Minimalista
*/

/* Variables CSS para facilitar cambios globales */
:root {
    /* Colores principales - Tema Futurista */
    --primary-color: #0a0e27;
    --secondary-color: #00d4ff;
    --accent-color: #7b2ff7;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --cyber-gradient: linear-gradient(135deg, #00d4ff 0%, #7b2ff7 100%);
    --bg-light: #f5f7fa;
    --bg-dark: #0a0e27;
    --bg-card: rgba(255, 255, 255, 0.95);
    --text-dark: #1a1a2e;
    --text-light: #ffffff;
    --text-muted: #6c757d;
    --border-color: rgba(0, 212, 255, 0.2);
    --glow-color: rgba(0, 212, 255, 0.4);
    
    /* Fuentes */
    --font-main: 'Poppins', sans-serif;
    
    /* Sombras */
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --glow-shadow: 0 0 20px var(--glow-color);
    --cyber-shadow: 0 0 30px rgba(123, 47, 247, 0.3);
    
    /* Transiciones */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(123, 47, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--cyber-gradient);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* Secciones de encabezado */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background: var(--cyber-gradient);
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--glow-color);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px var(--glow-color);
    }
    to {
        box-shadow: 0 0 20px var(--secondary-color);
    }
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Header y Navegación */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 212, 255, 0.2);
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
}

.header.scrolled {
    padding: 15px 0;
    background: rgba(10, 14, 39, 0.95);
    box-shadow: 0 5px 30px rgba(0, 212, 255, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    text-shadow: 0 0 10px var(--glow-color);
}

.logo span {
    background: var(--cyber-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    color: var(--text-light);
}

.nav-link:before {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--cyber-gradient);
    transition: var(--transition);
    box-shadow: 0 0 10px var(--glow-color);
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link:hover:before {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Sección Hero */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #0a0e27 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    padding: 0 15px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    top: -250px;
    right: -250px;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(123, 47, 247, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -200px;
    left: -200px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(20px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInDown 1s;
    background: linear-gradient(135deg, #fff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s 0.3s;
    animation-fill-mode: both;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    animation: fadeInUp 1s 0.6s;
    animation-fill-mode: both;
    justify-content: center;
    display: flex;
    gap: 10px;
}

/* Sección de Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--cyber-gradient);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
    border-color: var(--secondary-color);
}

.service-card:hover::before {
    left: 0;
    opacity: 0.05;
}

.service-icon {
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 3rem;
    background: var(--cyber-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
    transition: var(--transition);
}

.service-card:hover .service-icon i {
    transform: scale(1.1) rotateY(360deg);
}

.ai-card {
    background: linear-gradient(135deg, rgba(123, 47, 247, 0.05) 0%, rgba(0, 212, 255, 0.05) 100%);
}

.ai-card::after {
    content: "AI";
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-gradient);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(123, 47, 247, 0.5);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-muted);
}

/* Sección de Proyectos */
.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: none;
    padding: 8px 20px;
    margin: 0 5px 10px;
    cursor: pointer;
    font-weight: 500;
    border-radius: 4px;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--cyber-gradient);
    color: var(--text-light);
    box-shadow: 0 0 15px var(--glow-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(123, 47, 247, 0.3);
    border-color: var(--accent-color);
}

.project-img {
    position: relative;
    overflow: hidden;
}

.project-img img {
    transition: var(--transition);
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
}

.project-info p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.project-link {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 500;
}

.project-link:hover {
    color: var(--primary-color);
}

/* Proceso de trabajo */
.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.process-step {
    flex: 1 1 250px;
    max-width: 300px;
    text-align: center;
    padding: 20px;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50px;
    right: -15px;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--cyber-gradient);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px var(--glow-color);
    transition: var(--transition);
}

.process-step:hover .step-number {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 0 30px var(--secondary-color);
}

.step-content h3 {
    margin-bottom: 10px;
}

/* Sección IA */
.ai-section {
    background: linear-gradient(135deg, #0a0e27 0%, #16213e 100%);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.ai-section::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(123, 47, 247, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    top: -150px;
    right: 10%;
    animation: float 8s ease-in-out infinite;
}

.ai-section .section-header h2,
.ai-section .section-header p {
    color: var(--text-light);
}

.ai-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.ai-feature {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: var(--transition);
}

.ai-feature:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.ai-icon {
    margin-bottom: 20px;
}

.ai-icon i {
    font-size: 2.5rem;
    background: var(--cyber-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.8));
}

.ai-feature h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--text-light);
}

.ai-feature p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Sección SEO */
.seo-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.seo-text {
    flex: 1 1 500px;
}

.seo-image {
    flex: 1 1 400px;
}

.seo-text h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.seo-features {
    margin: 20px 0;
}

.seo-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.seo-features li i {
    color: var(--secondary-color);
    margin-right: 10px;
    font-size: 1.1rem;
    margin-top: 5px;
}

/* Testimonios */
.testimonial-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.testimonial {
    flex: 1 1 300px;
    max-width: 350px;
    background-color: #fff;
    border-radius: 5px;
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
}

.testimonial-info {
    display: flex;
    align-items: center;
}

.testimonial-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.testimonial-author h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.testimonial-author p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Sección de Contacto */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-info {
    flex: 1 1 350px;
}

.contact-form {
    flex: 1 1 500px;
}

.info-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.info-item h3 {
    margin-bottom: 5px;
}

.info-item p {
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: var(--text-light);
    border-radius: 50%;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0a0e27 0%, #16213e 100%);
    color: var(--text-light);
    padding: 70px 0 0;
    position: relative;
    border-top: 2px solid rgba(0, 212, 255, 0.3);
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--cyber-gradient);
    box-shadow: 0 0 10px var(--glow-color);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-logo span {
    background: var(--cyber-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo p {
    max-width: 250px;
    opacity: 0.7;
}

.footer-links h4,
.footer-services h4,
.footer-newsletter h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4:after,
.footer-services h4:after,
.footer-newsletter h4:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--cyber-gradient);
    box-shadow: 0 0 10px var(--glow-color);
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 10px;
}

.footer-links ul li a,
.footer-services ul li a {
    color: var(--text-light);
    opacity: 0.7;
    transition: var(--transition);
}

.footer-links ul li a:hover,
.footer-services ul li a:hover {
    opacity: 1;
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-newsletter p {
    margin-bottom: 15px;
    opacity: 0.7;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.newsletter-form button {
    padding: 12px 15px;
    background: var(--cyber-gradient);
    color: var(--text-light);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.newsletter-form button:hover {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    transform: translateX(2px);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Animaciones */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 992px) {
    .section-padding {
        padding: 80px 0;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .process-step:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .service-card {
        padding: 20px;
    }
}