/* =========================================
   RESET & TIPOGRAFÍA GLOBAL
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #050505;
    color: #f4f4f4;
    overflow-x: hidden;
}

/* =========================================
   HEADER & NAVEGACIÓN
========================================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 60px;
    background-color: rgba(0, 0, 0, 0.9);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

header .logo img {
    height: 55px;
    transition: transform 0.3s ease;
}

header .logo img:hover {
    transform: scale(1.05);
}

nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 35px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

nav a:hover, nav a.activo {
    color: #004aad;
}

nav a.activo {
    border-bottom: 2px solid #004aad;
    padding-bottom: 5px;
}

/* =========================================
   BOTÓN GLOBAL
========================================= */
.btn-blue {
    background: linear-gradient(135deg, #004aad 0%, #007bff 100%);
    color: #fff;
    padding: 16px 45px;
    text-decoration: none;
    font-weight: 900;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 74, 173, 0.5), inset 0 -4px 0 rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-blue:hover {
    background: linear-gradient(135deg, #005ce6 0%, #3399ff 100%);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 136, 255, 0.8), inset 0 -4px 0 rgba(0,0,0,0.2);
    text-shadow: 0 0 10px rgba(255,255,255,0.6);
}

/* =========================================
   ANIMACIONES
========================================= */
.fade-in {
    animation: fadeIn 1.5s ease-out forwards;
}

.slide-up {
    animation: slideUp 1s ease-out forwards;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideUp {
    0% { opacity: 0; transform: translateY(50px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* =========================================
   PÁGINA: INICIO
========================================= */
.hero {
    height: 85vh;
    background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.4)), url('imagenes/inicio/convierte.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    line-height: 1.2;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 0 0 15px rgba(0, 123, 255, 0.8), 0 0 30px rgba(0, 123, 255, 0.5);
}

.info-split {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
    padding: 120px 50px;
    max-width: 1300px;
    margin: 0 auto;
}

.info-left h2, .info-right h2 {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 25px;
}

.info-left hr {
    width: 60px;
    border: 2px solid #004aad;
    margin-bottom: 25px;
}

.info-left p {
    font-size: 1.1rem;
    color: #aaa;
    line-height: 1.6;
}

.info-right {
    border-left: 2px solid #222;
    padding-left: 100px;
}

.beneficios {
    text-align: center;
    padding: 80px 20px 120px;
    background: radial-gradient(circle, #111 0%, #000 100%);
}

.beneficios h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 80px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.beneficios-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.beneficio-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.beneficio-item:hover {
    transform: translateY(-10px);
}

.beneficio-item i {
    font-size: 4.5rem;
    color: #005ce6;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 15px rgba(0, 136, 255, 0.8));
    transition: all 0.3s ease;
}

.beneficio-item:hover i {
    filter: drop-shadow(0 0 25px rgba(0, 136, 255, 1));
    transform: scale(1.1);
}

.beneficio-item p {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
}

.beneficio-item:not(:last-child) {
    border-right: 1px solid #333;
    padding-right: 60px;
}

/* =========================================
   HERO SERVICIOS (B&W + SOMBRA AZUL)
========================================= */
.hero-servicios {
    height: 65vh;
    background-color: #000511; 
    background-image: linear-gradient(rgba(0, 15, 40, 0.7), rgba(0, 5, 15, 0.95)), url('imagenes/servicios/produ.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: luminosity; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 50px;
    position: relative;
}

.hero-servicios-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-servicios-content h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: #ffffff;
    text-shadow: 0 8px 30px rgba(0, 74, 173, 0.7); 
}

.hero-servicios-content p {
    font-size: 1.4rem;
    font-weight: 400;
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 40px; 
}

/* =========================================
   NUEVAS ANIMACIONES Y BOTÓN GHOST
========================================= */
.fade-in-up {
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-ghost {
    padding: 15px 45px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-ghost:hover {
    background: rgba(0, 74, 173, 0.85); 
    border-color: #004aad;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 74, 173, 0.6);
}

.hl-blue {
    background-color: #004aad;
    color: #fff;
    padding: 5px 25px;
    box-shadow: -10px 0 0 #004aad, 10px 0 0 #004aad; 
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.hl-dark {
    background-color: rgba(5, 5, 5, 0.9);
    color: #eee;
    padding: 5px 20px;
    box-shadow: -10px 0 0 rgba(5, 5, 5, 0.9), 10px 0 0 rgba(5, 5, 5, 0.9);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.servicios-lista {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 40px;
}

.servicio-item {
    border-bottom: 1px solid #333;
    overflow: hidden;
    transition: all 0.3s ease;
}

.servicio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.servicio-header:hover .servicio-toggle {
    color: #fff;
}

.servicio-info {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 80%;
}

.servicio-info i {
    font-size: 3.5rem;
    color: #004aad;
    filter: drop-shadow(0 0 10px rgba(0, 74, 173, 0.6));
    width: 80px;
    text-align: center;
}

.servicio-texto h3 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.servicio-texto p {
    font-size: 1rem;
    color: #aaa;
    line-height: 1.5;
}

.servicio-toggle {
    font-weight: 700;
    font-size: 1rem;
    color: #004aad;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.caret-icon {
    transition: transform 0.4s ease;
}

.servicio-detalle {
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.4s ease, padding 0.4s ease;
    background-color: #080808;
    border-radius: 10px;
}

.detalle-contenido {
    padding: 0 40px 40px 160px;
}

.detalle-contenido p {
    color: #ccc;
    font-size: 1.05rem;
    line-height: 1.7;
    border-left: 3px solid #004aad;
    padding-left: 20px;
}

.servicio-item.activo .servicio-detalle {
    max-height: 300px;
    opacity: 1;
    padding-top: 20px;
}

.servicio-item.activo .caret-icon {
    transform: rotate(180deg);
}

.servicio-item.activo .servicio-info i {
    filter: drop-shadow(0 0 20px rgba(0, 136, 255, 1));
    color: #005ce6;
}

/* =========================================
   SECCIÓN CTA (AMBAS PÁGINAS)
========================================= */
.cta {
    background: url('imagenes/inicio/contactanos.jpg') center/cover no-repeat;
    padding: 100px 60px;
    display: flex;
    justify-content: center;
}

.glass-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    background: rgba(0, 15, 45, 0.4); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    padding: 60px 80px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.15); 
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.cta-text h2 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.cta-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #eee;
}

.cta-text hr {
    width: 100px;
    border: 2px solid #004aad;
}

/* =========================================
   FOOTER GLOBAL
========================================= */
footer {
    display: flex;
    justify-content: space-between;
    padding: 80px 60px;
    background-color: #020202;
    border-top: 1px solid #1a1a1a;
    font-size: 0.95rem;
}

.footer-logo img {
    height: 45px;
    margin-bottom: 20px;
}

.footer-logo p {
    color: #777;
    line-height: 1.6;
}

.footer-links, .footer-contact, .footer-social {
    border-left: 1px solid #222;
    padding-left: 50px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 700;
}

.footer-links a:hover {
    color: #004aad;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: #aaa;
}

.footer-contact i {
    color: #004aad;
    margin-right: 15px;
    font-size: 1.2rem;
}

.footer-social h4 {
    color: #004aad;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.social-icons a {
    color: #aaa;
    font-size: 1.5rem;
    margin-right: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: #fff;
    transform: scale(1.2);
}

/* =========================================
   PÁGINA: NOSOTROS
========================================= */
.hero-nosotros {
    height: 55vh;
    background: linear-gradient(to right, rgba(0, 15, 45, 0.9), rgba(0, 74, 173, 0.3)), url('imagenes/nosotros/nos.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 0 100px;
}

.hero-nosotros-content h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    text-transform: uppercase;
}

.hero-nosotros-content p {
    font-size: 1.3rem;
    color: #ddd;
    line-height: 1.6;
}

.nosotros-main {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 40px;
}

.linea-delgada {
    border: none;
    border-top: 1px solid #333;
    margin: 40px 0;
}

.linea-azul {
    border: none;
    border-top: 2px solid #004aad;
    width: 60px;
    margin: 10px 0 40px 0;
}

.subtitle {
    color: #aaa;
    font-size: 1rem;
    margin-bottom: 10px;
}

.seccion-titulo.blue-text {
    color: #004aad;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.quienes-somos h2 {
    font-size: 3.5rem;
    font-weight: 900;
}

.quienes-somos .texto-principal {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
    max-width: 800px;
}

.pasos-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.paso-item {
    flex: 1;
    border-right: 1px solid #333;
    padding-right: 40px;
}

.paso-item.sin-borde {
    border-right: none;
    padding-right: 0;
}

.paso-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: #004aad;
    margin-bottom: 15px;
}

.paso-item h3 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.2;
}

.paso-item p {
    font-size: 0.95rem;
    color: #aaa;
    line-height: 1.6;
}

.diferentes-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.diferentes-texto h2 {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.3;
}

.audio-wave {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 80px;
}

.audio-wave span {
    display: block;
    width: 4px;
    height: 10px;
    background: #004aad;
    border-radius: 5px;
    animation: wave 1.2s ease-in-out infinite alternate;
    box-shadow: 0 0 10px rgba(0, 74, 173, 0.8);
}

.audio-wave span:nth-child(even) { animation-duration: 0.9s; }
.audio-wave span:nth-child(3n) { animation-duration: 1.5s; background: #005ce6; }
.audio-wave span:nth-child(4n) { animation-duration: 1.1s; }
.audio-wave span:nth-child(5n) { animation-duration: 0.8s; background: #3399ff; }

@keyframes wave {
    0% { height: 10px; }
    100% { height: 70px; }
}

/* =========================================
   DISEÑO RESPONSIVO (Móviles y Tabletas)
========================================= */
@media (max-width: 768px) {
    /* Ajuste del Menú */
    header {
        flex-direction: column;
        padding: 20px 5%;
        text-align: center;
    }
    
    nav {
        margin-top: 15px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    nav a {
        margin-left: 0;
        font-size: 0.8rem;
    }

    /* Ajuste de la Sección Inicio */
    .hero {
        text-align: center;
        padding-top: 80px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }

    /* Botones responsivos */
    .btn-blue, .btn-ghost {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    /* Apilar columnas en pantallas pequeñas para evitar que se desborde el contenido */
    .info-split, 
    .beneficios-grid, 
    .pasos-grid, 
    .servicio-info, 
    footer, 
    .glass-box {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        padding: 20px;
    }

    .info-right, 
    .paso-item, 
    .footer-links, 
    .footer-contact, 
    .footer-social {
        border: none; /* Eliminar bordes laterales en versión móvil */
        padding: 0;
    }
    
    .info-left hr {
        margin: 0 auto 25px auto; /* Centrar línea azul */
    }
    
    .detalle-contenido {
        padding: 0 20px 20px 20px;
    }
}
/* =========================================
   PÁGINA: CONTACTO (HERO CORREGIDO)
========================================= */
.hero-contacto {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 80px 10%; 
    gap: 60px;
    max-width: 1300px;
    margin: 0 auto;
}

.hero-contacto-texto {
    flex: 1;
    max-width: 450px;
}

.hero-contacto-texto h1 {
    font-size: 3.8rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-contacto-texto p {
    font-size: 1.2rem;
    color: #ccc;
    line-height: 1.6;
}

/* Contenedor de la foto más pequeño */
.hero-contacto-img {
    position: relative;
    width: 100%;
    max-width: 550px; /* Aquí se hace más pequeña la imagen */
}

.hero-contacto-img img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 15px; /* Bordes redondeados parejos */
    display: block;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

/* Capa del filtro azul */
.hero-contacto-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 74, 173, 0.35); /* Tono azul transparente */
    border-radius: 15px;
    pointer-events: none; /* Para que no estorbe */
    mix-blend-mode: multiply; /* Fusiona el azul con las sombras de la foto */
}

/* Ajuste para celular */
@media (max-width: 768px) {
    .hero-contacto {
        flex-direction: column;
        padding: 40px 5%;
        text-align: center;
    }
}

.seccion-formulario {
    display: flex;
    justify-content: center;
    gap: 80px;
    padding: 20px 10% 100px;
}

.form-blanco {
    background: #fff;
    color: #000;
    padding: 40px;
    border-radius: 10px;
    width: 100%;
    max-width: 550px;
}

.form-blanco h3 {
    margin-bottom: 25px;
    font-size: 1.3rem;
    font-weight: 900;
}

.form-blanco input, .form-blanco textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background: #fdfdfd;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
}

.inputs-fila {
    display: flex;
    gap: 15px;
}

.btn-form {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-weight: 900;
    cursor: pointer;
    margin-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.btn-form.blue {
    background: #2563eb;
    color: #fff;
}

.btn-form.blue:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.btn-form.green {
    background: #25D366;
    color: #fff;
}

.btn-form.green:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.nota {
    font-size: 0.8rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.info-extra {
    flex: 1;
    max-width: 400px;
}

.info-extra h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
}

.info-extra p {
    margin-bottom: 25px;
    color: #eee;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.1rem;
}

.info-extra p i {
    color: #004aad;
    font-size: 1.4rem;
}

/* Responsivo para Contacto */
@media (max-width: 768px) {
    .hero-contacto, .seccion-formulario {
        flex-direction: column;
        padding: 40px 5%;
        text-align: center;
    }
    
    .inputs-fila {
        flex-direction: column;
        gap: 0;
    }
    
    .info-extra p {
        justify-content: center;
    }
}