:root {
    --color-verde: #00A859;
    --color-gris-oscuro: #222222;
    --color-blanco: #FFFFFF;
    --fuente-titulo: 'Poppins', sans-serif;
    --fuente-texto: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* --- CAMBIO CLAVE --- */
    /* Esto crea el "colchón" invisible de 200px en la parte superior. 
       Tu barra mide aprox 180px, así que sobran 20px de aire para que se vea elegante. */
    scroll-padding-top: 200px; 
}

body {
    background: var(--color-blanco);
    color: var(--color-gris-oscuro);
    font-family: var(--fuente-texto);
    line-height: 1.6;
    /* Compensa el espacio de la barra fija para que el inicio no se tape */
    padding-top: 180px; 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--color-blanco);
    border-bottom: 1px solid #ececec;
    
    /* Configuración de barra fija */
    position: fixed; 
    top: 0;
    width: 100%; 
    transition: top 0.3s ease-in-out; /* Suaviza la animación de ocultar/mostrar */
    
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.logo-container {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo-horizontal {
    height: 155px;  
    width: auto;
    object-fit: contain;
}

.menu {
    display: flex;
    list-style: none;
    gap: 24px;
    flex: 1;
    margin-left: 40px;
}

.menu li a {
    color: var(--color-gris-oscuro);
    font-weight: 600;
    text-decoration: none;
    font-family: var(--fuente-titulo);
    transition: color 0.3s;
    font-size: 0.95rem;
}

.menu li a:hover {
    color: var(--color-verde);
}

.btn-demo {
    background: var(--color-verde);
    color: var(--color-blanco);
    padding: 10px 24px;
    border-radius: 20px;
    text-decoration: none;
    font-family: var(--fuente-titulo);
    font-weight: bold;
    font-size: 0.9rem;
    transition: background 0.3s;
    white-space: nowrap;
    margin-left: 20px;
}

.btn-demo:hover {
    background: #008b46;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #00A859 0%, #222222 100%);
    color: var(--color-blanco);
    padding: 60px 0;
}

.hero-content {
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-family: var(--fuente-titulo);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content > p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-primary, .btn-secondary {
    padding: 12px 32px;
    border-radius: 20px;
    text-decoration: none;
    font-family: var(--fuente-titulo);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--color-verde);
    color: var(--color-blanco);
}

.btn-primary:hover {
    background: #008b46;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-verde);
    border-color: var(--color-verde);
}

.btn-secondary:hover {
    background: rgba(0, 168, 89, 0.1);
}

.hero-image {
    max-width: 900px;
    margin: 0 auto;
}

.hero-image svg {
    width: 100%;
    height: auto;
    max-height: 400px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

.hero-image img.hero-img {
    width: 100%;
    height: auto;
    max-width: 900px;
    display: block;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Qué Hacemos */
.valor {
    background: #f9f9f9;
    padding: 80px 0;
}

.valor h2 {
    font-family: var(--fuente-titulo);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--color-gris-oscuro);
}

.subtitulo {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 50px;
}

.valor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.valor-item {
    background: var(--color-blanco);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.valor-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.valor-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.valor-icon svg {
    width: 100%;
    height: 100%;
}

.valor-item h3 {
    font-family: var(--fuente-titulo);
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--color-gris-oscuro);
}

.valor-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Por Qué Elegirnos */
.elegirnos {
    background: var(--color-blanco);
    padding: 80px 0;
}

.elegirnos h2 {
    font-family: var(--fuente-titulo);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--color-gris-oscuro);
}

.problemas-solucion {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.problemas-list {
    padding: 30px;
    background: #f9f9f9;
    border-radius: 10px;
}

.problemas-list h3 {
    font-family: var(--fuente-titulo);
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--color-gris-oscuro);
}

.problemas-list > div {
    font-size: 1.05rem;
    margin: 12px 0;
    color: #555;
}

/* Solución - Cuadros de flujo */
.solucion-card {
    background: linear-gradient(135deg, var(--color-verde) 0%, var(--color-gris-oscuro) 100%);
    color: var(--color-blanco);
    padding: 50px 40px;
    border-radius: 15px;
    text-align: center;
}

.solucion-card.con-fondo {
    background: linear-gradient(135deg, rgba(0, 168, 89, 0.9), rgba(34, 34, 34, 0.9)), url('imagenes/fondo-solucion.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.solucion-card h3 {
    font-family: var(--fuente-titulo);
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--color-blanco);
}

.solucion-card p {
    font-size: 1.05rem;
    margin-bottom: 40px;
    line-height: 1.8;
    color: var(--color-blanco);
}

/* === CUADROS DEL FLUJO === */
.flujo-cuadro {
    background: #FFFFFF;
    color: #00A859;
    padding: 35px 30px;
    border-radius: 12px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: normal;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}


/* Portafolio */
.portafolio {
    background: #f9f9f9;
    padding: 80px 0;
}

.portafolio h2 {
    font-family: var(--fuente-titulo);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--color-gris-oscuro);
}

.portafolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.portafolio-item {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.10);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 410px;
    min-width: 280px;
    margin: auto;
    height: 285px;       
    justify-content: flex-start;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.portafolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.portafolio-img-box {
    width: 100%;
    height: 200px;         
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4fa;
    border-radius: 16px 16px 0 0;
}

.portafolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px 16px 0 0;
}

.portafolio-label {
    width: 100%;
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    color: #222;
    text-align: center;
    min-height: 45px;   
    line-height: 1.1;
    padding: 7px 10px 8px 10px;
}

.portafolio-item span {
    display: block;
    padding: 20px;
    font-family: var(--fuente-titulo);  
    font-weight: 700;  
    text-align: center;
    color: var(--color-gris-oscuro);
    font-size: 1.15rem;  
    background: var(--color-blanco);
    line-height: 1.3;  
}

.portafolio .btn-primary {
    display: block;
    margin: 0 auto;
    width: fit-content;
}

.btn-comprar {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 45px;
    height: 45px;
    background: #00A859;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    z-index: 100;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.btn-comprar:hover {
    background: #008b46;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 168, 89, 0.4);
}

/* Plantillas */
.plantillas {
    background: linear-gradient(135deg, var(--color-verde) 0%, var(--color-gris-oscuro) 100%);
    color: var(--color-blanco);
    padding: 80px 0;
    text-align: center;
}

.plantillas h2 {
    font-family: var(--fuente-titulo);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.plantillas p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Sobre Nosotros */
.sobre-nosotros {
    background: var(--color-blanco);
    padding: 80px 0;
}

.sobre-nosotros h2 {
    font-family: var(--fuente-titulo);
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--color-gris-oscuro);
}

.sobre-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.sobre-texto p {
    margin-bottom: 20px;
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
}

.sobre-nosotros h3 {
    font-family: var(--fuente-titulo);
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--color-gris-oscuro);
}

.valores-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.valores-list li {
    padding: 8px 16px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 0.95rem;
    color: var(--color-verde);
    font-weight: 600;
}

.sobre-imagen svg {
    width: 100%;
    height: auto;
    max-width: 350px;
}

/* Legal */
.legal {
    background: #f9f9f9;
    padding: 60px 0;
    text-align: center;
}

.legal h2 {
    font-family: var(--fuente-titulo);
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--color-gris-oscuro);
}

.legal p {
    margin-bottom: 15px;
    color: #555;
    font-size: 1rem;
}

.legal ul {
    list-style: none;
    margin-top: 20px;
}

.legal li {
    margin: 8px 0;
    color: var(--color-verde);
    font-weight: 600;
}

/* Contacto */
.contacto {
    background: var(--color-blanco);
    padding: 80px 0;
}

.contacto h2 {
    font-family: var(--fuente-titulo);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--color-gris-oscuro);
}

.contacto-info {
    text-align: center;
}

.contacto-info h3 {
    font-family: var(--fuente-titulo);
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--color-gris-oscuro);
}

.contacto-info ul {
    list-style: none;
}

.contacto-info li {
    margin: 12px 0;
    font-size: 1rem;
}

.contacto-info a {
    color: var(--color-verde);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.contacto-info a:hover {
    color: var(--color-gris-oscuro);
}

/* Contacto Directo y Formulario */
.contacto-directo {
    margin-bottom: 80px;
}

.contacto-metodos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.metodo-contacto {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.metodo-contacto:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.metodo-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.metodo-contacto.email { border-left-color: #FF6B6B; }
.metodo-contacto.email .metodo-icon { color: #FF6B6B; }
.metodo-contacto.email:hover .metodo-icon { transform: scale(1.2) rotate(10deg); }

.metodo-contacto.telefono { border-left-color: #4ECDC4; }
.metodo-contacto.telefono .metodo-icon { color: #4ECDC4; }
.metodo-contacto.telefono:hover .metodo-icon { transform: scale(1.2) rotate(-10deg); }

.metodo-contacto.web { border-left-color: var(--color-verde); }
.metodo-contacto.web .metodo-icon { color: var(--color-verde); }
.metodo-contacto.web:hover .metodo-icon { transform: scale(1.2) rotate(360deg); transition: transform 0.6s ease; }

.metodo-contacto h4 {
    font-family: var(--fuente-titulo);
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--color-gris-oscuro);
}

.metodo-contacto a {
    display: inline-block;
    color: var(--color-verde);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 5px;
}

.metodo-contacto a:hover {
    background: rgba(0, 168, 89, 0.1);
    transform: translateX(5px);
}

/* Formulario de Contacto */
.formulario-section {
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 20px;
    /* Sombra suave y difusa para dar efecto de elevación */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    /* Detalle de diseño: Borde superior con el color de tu marca */
    border-top: 6px solid var(--color-verde);
    max-width: 700px; 
    margin: 0 auto; /* Centrado */
    position: relative;
}

.formulario-section h3 {
    font-family: var(--fuente-titulo);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 30px;
    color: var(--color-gris-oscuro);
    font-weight: 700;
}

/* Estilo de los campos (Inputs y Textarea) */
.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 16px 20px; /* Más espacio para que no se vea apretado */
    margin-bottom: 20px;
    
    /* Estilo moderno: Fondo gris suave sin bordes visibles al inicio */
    background: #f4f6f8; 
    border: 2px solid transparent; 
    border-radius: 12px; /* Bordes más redondeados */
    
    font-family: var(--fuente-texto);
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
}

/* Placeholder (el texto de ayuda) un poco más claro */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #aaa;
    font-weight: 500;
}

/* Efecto cuando el usuario hace clic para escribir */
.contact-form input:focus, 
.contact-form textarea:focus {
    background: #ffffff;
    border-color: var(--color-verde); /* Se ilumina en verde */
    outline: none;
    box-shadow: 0 4px 15px rgba(0, 168, 89, 0.1); /* Resplandor suave */
    transform: translateY(-2px); /* Pequeña animación hacia arriba */
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical; /* Permite estirar solo hacia abajo */
}

/* Botón de enviar más llamativo */
.contact-form button {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    margin-top: 10px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 168, 89, 0.2);
}

.contact-form button:hover {
    box-shadow: 0 15px 30px rgba(0, 168, 89, 0.3);
    transform: translateY(-3px);
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .formulario-section {
        padding: 30px 20px;
    }
}


/* Redes Sociales Destacadas */
.redes-destacadas {
    text-align: center;
    margin-bottom: 80px;
}

.redes-destacadas h3 {
    font-family: var(--fuente-titulo);
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: var(--color-gris-oscuro);
}

.redes-grid-nueva {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.red-social-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.red-social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: left 0.4s ease;
    z-index: -1;
}

.red-social-card:hover::before { left: 0; }
.red-social-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.red-icon {
    font-size: 2.5rem;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.red-info { flex: 1; text-align: left; }
.red-info h4 { font-family: var(--fuente-titulo); font-size: 1.2rem; margin-bottom: 5px; }
.red-info p { font-size: 0.9rem; opacity: 0.9; }

.arrow {
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateX(-10px);
}
.red-social-card:hover .arrow { opacity: 1; transform: translateX(0); }

/* Colores Redes */
.red-social-card.facebook { background: linear-gradient(135deg, #3b5998, #3b5998cc); }
.red-social-card.facebook::before { background: linear-gradient(135deg, #2d4373, #1e2d5a); }
.red-social-card.instagram { background: linear-gradient(135deg, #E4405F, #FD1D1D); }
.red-social-card.instagram::before { background: linear-gradient(135deg, #D31584, #C13584); }
.red-social-card.linkedin { background: linear-gradient(135deg, #0077B5, #005885); }
.red-social-card.linkedin::before { background: linear-gradient(135deg, #004D7A, #003D5C); }
.red-social-card.whatsapp { background: linear-gradient(135deg, #25D366, #20BA5A); }
.red-social-card.whatsapp::before { background: linear-gradient(135deg, #1FAD4D, #16944A); }
.red-social-card.tiktok { background: linear-gradient(135deg, #000000, #25F4EE); }
.red-social-card.tiktok::before { background: linear-gradient(135deg, #000000, #00D4D4); }
.red-social-card.youtube { background: linear-gradient(135deg, #FF0000, #FF1744); }
.red-social-card.youtube::before { background: linear-gradient(135deg, #CC0000, #D00); }


/* Footer */
footer {
    background: var(--color-gris-oscuro);
    color: var(--color-blanco);
    padding: 30px 0;
    text-align: center;
    border-top: 3px solid var(--color-verde);
}

footer p { margin: 8px 0; font-size: 0.9rem; }


/* Soluciones Personalizadas */
.soluciones-personalizadas {
    background: #f9f9f9;
    padding: 80px 0;
}

.soluciones-personalizadas h2 {
    font-family: var(--fuente-titulo);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--color-gris-oscuro);
}

.soluciones-personalizadas > .container > p {
    color: #666;
    font-size: 1.1rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.personalizadas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    justify-items: center;  
}

.personalizadas-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 280px;
    max-width: 410px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.personalizadas-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.personalizadas-img-box {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4fa;
    border-radius: 10px 10px 0 0;
}

.personalizadas-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
}

.personalizadas-item span {
    display: block;
    padding: 20px;
    font-family: var(--fuente-titulo);
    font-weight: 700;
    text-align: center;
    color: var(--color-gris-oscuro);
    font-size: 1.15rem;
    background: #fff;
    line-height: 1.3;
    width: 100%;
}


/* Lightbox */
.lightbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 3000 !important;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(30, 32, 36, 0.84);
    transition: all 0.3s;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0,0,0,.25);
    background: #fff;
}

.lightbox-close {
    position: fixed;
    top: 45px;
    right: 75px;
    color: #fff;
    background: #222;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 40px;
    z-index: 3010;
    padding: 0 18px;
    line-height: 1;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: #ff6b6b;
    color: #fff;
}

.lightbox-nav {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    z-index: 3001; 
}

.lightbox-nav.prev { left: 10px; border-radius: 3px 0 0 3px; }
.lightbox-nav.next { right: 10px; border-radius: 3px 0 0 3px; }
.lightbox-nav:hover { background: rgba(0, 0, 0, 0.8); }


/* =========================================
   ESTILOS DEL MENÚ HAMBURGUESA (Por defecto oculto)
   ========================================= */
.hamburger {
    display: none; /* Oculto en PC */
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
    padding: 10px;
    z-index: 1001; /* Asegura que esté sobre el menú desplegado */
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--color-gris-oscuro);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(8px, -6px); }

/* =========================================
   MEDIA QUERIES (ADAPTACIÓN A MÓVIL)
   ========================================= */
@media (max-width: 768px) {
    /* 1. Ajustes Generales */
    .menu { display: none; }
    .header-container { justify-content: space-between; }
    
    .btn-demo {
        margin-left: 0;
        padding: 8px 16px;
        font-size: 0.8rem;
        display: none; /* Ocultar botón demo en header móvil para limpieza visual (opcional) */
    }

    /* 2. Ajustes de Texto y Secciones */
    .hero-content h1 { font-size: 1.8rem; }
    .hero-content > p { font-size: 1rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn-primary, .btn-secondary { width: 100%; max-width: 300px; }
    .valor h2, .portafolio h2, .elegirnos h2, .sobre-nosotros h2, .contacto h2, .plantillas h2 { font-size: 1.8rem; }
    .problemas-solucion { grid-template-columns: 1fr; }
    .sobre-content { grid-template-columns: 1fr; }
    .sobre-imagen svg { max-width: 100%; }
    .valor-grid, .portafolio-grid, .soluciones-grid, .personalizadas-grid { grid-template-columns: 1fr; }
    
    .redes-grid-nueva { grid-template-columns: 1fr; }
    .red-social-card { justify-content: center; flex-direction: column; text-align: center; }
    .red-info { text-align: center; }
    .arrow { opacity: 1; }
    .contacto-metodos { grid-template-columns: 1fr; }
    .formulario-section { padding: 40px 20px; }
    .contact-form input, .contact-form textarea, .contact-form button { max-width: 100%; }
    
    .logo-horizontal { height: 50px; }
    
    /* 3. Lógica del Menú Móvil (AQUÍ ESTÁ LA MAGIA) */
    .hamburger { display: flex; } /* ¡ESTO HACE QUE APAREZCA EL BOTÓN! */
    
    .menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--color-blanco);
        gap: 0;
        display: none; /* Oculto hasta que se haga click */
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
        border-top: 1px solid #eee;
    }
    
    .menu.active { display: flex; } /* Se muestra al añadir la clase 'active' con JS */
    
    .menu li { border-bottom: 1px solid #ececec; width: 100%; text-align: center; }
    .menu li a { display: block; padding: 15px 20px; color: var(--color-gris-oscuro); width: 100%; }
}

@media (max-width: 600px) {
    .lightbox-close { top: 10px; right: 16px; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.4rem; }
    .valor h2, .portafolio h2, .elegirnos h2, .sobre-nosotros h2, .contacto h2, .plantillas h2 { font-size: 1.5rem; }
    .menu li a { font-size: 0.8rem; }
}

/* Efecto de degrado a los titulos */
h2 {
    font-family: var(--fuente-titulo);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    background: -webkit-linear-gradient(45deg, #222222, #00A859);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--color-gris-oscuro); 
}

.plantillas h2 {
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--color-blanco);
    margin-bottom: 20px;
}


