/* --- 1. Reseteo Básico y Variables Globales (Uso de :root) --- */
:root {
    --color-inicio-degrade: #060E2A; 
    --color-fin-degrade: #191316; 
} 

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Facilita el cálculo de anchos y paddings */
      transition: all 0.5s ease-in-out; 
}

body { 
  font-family: 'Plus Jakarta Sans', sans-serif; 
  background-color: #020617;
}

#inicio {
    height: 50vh; /* Altura para que se pueda hacer scroll */
    background-color: #007bff; /* Fondo azul para el header */
    color: white;
    padding-top: 100px;
    position: relative; /* Añadir position: relative para posicionar la flecha dentro */
}

#servicios {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.content.sectordos.items-center h2 {
    font-size: 3rem;
    line-height: 2.25rem;
    font-family: 'Playfair Display', serif;
    color: #F8FAFC;
    text-align: center;
}

.line-title {
    border-radius: 9999px;
    --tw-bg-opacity: 1;
    background-color: #e59608;
    height: 0.25rem;
    width: 6rem;
    margin: 1rem auto;
}

/* ... Estilos de media queries ... */
@media (min-width: 640px) { .content { max-width: 640px; } }
@media (min-width: 768px) { .content { max-width: 768px; } }
@media (min-width: 1024px) { .content { max-width: 1024px; } }
@media (min-width: 1280px) { .content { max-width: 1280px; } }
.content {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* MENU SUPERIOR*/
#menu-navegacion {
    z-index: 2000; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem; /* Ajuste el padding para incluir izquierda/derecha */
    width: 100%;
    position: fixed;
    top: 0;
    background-color: transparent;
    color: #333;
    z-index: 1000;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: none;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1E293B;
}


.container.menu-texto {
    display: flex; 
    justify-content: space-between; /* Empuja un div a la izquierda y otro a la derecha */
    align-items: center;
    width: 100%; /* Asegura que el contenedor ocupe todo el ancho disponible */
}


.items-center {
    align-items: center;
}

/*NOMBRE INICIO*/
.menu-inicio a.logo span {
    font-family: Georgia;
    text-transform: capitalize;
    color: #F8FAFC!important;
}



/*LINK DEL MENU*/

#menu-navegacion ul {
    list-style: none;
    display: flex; /* Esto ya estaba bien, mantiene los links de la lista en línea */
        align-items: center;
}


#menu-navegacion ul li a {
      text-decoration: none;
    color: inherit;
    padding: 0.5rem 1rem;
        --tw-text-opacity: 1;
        color: rgb(203 213 225 / var(--tw-text-opacity, 1));
        text-transform: uppercase;
        font-size: 0.85rem;
        line-height: 1.25rem;
    }
    
    #menu-navegacion ul li a:hover {
    color: #ecb324;
}


.contenedor-principal {
    display: flex;
    justify-content: space-between;
    align-items: center;
       width: 100%; 
    max-width: none;
}

    
.extremo-izquierdo a span {
    color: #ecb324;
    font-weight: bold;
}

/*MENU PARACELULARES*/

/* 2. Estilos para móviles: Max-width 640px (tablets pequeñas y celulares) */
@media (max-width: 768px) { 
 #menu-links {
        width: 100vw; /* Usa el 100% del ancho del viewport del teléfono */
        right: 0;
        left: 0;
        display: none; 
        position: absolute;
        top: 60px; 
        background-color: #020617; /* Usa el color de fondo de tu sitio */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 1rem;
        /* Asegúrate que el menú desplegable también tenga un z-index alto */
        z-index: 1500; 
 }
    
/* 1. Estilos del botón de hamburguesa (Oculto en desktop, visible en mobile) */
#menu-toggle {
    display: none; /* Oculto por defecto en desktop */
    cursor: pointer;
    background: none;
    border: none;
    color: white; /* Ajusta el color si tu fondo es diferente */
    font-size: 1.5rem;
}

    
    /* Mostrar el botón de hamburguesa en móviles */
    #menu-toggle {
        display: block; 
    }


    /* Forzar que la lista de links sea vertical en móvil */
    #menu-links ul {
        flex-direction: column;
        width: 100%;
        align-items: flex-start; /* Alinea los links a la izquierda */
    }
    
    #menu-links ul li {
        margin-bottom: 1rem;
        width: 100%;
    }

    /* 3. Clase que JavaScript añade para MOSTRAR el menú */
    #menu-links.is-active {
        display: flex; /* Muestra el menú cuando está activo */
    }
}

/* --- Los Contenedores Internos (Los extremos) --- */
.extremo-izquierdo, .extremo-derecho {
    padding: 10px 20px;
    color: white;
    border-radius: 5px;
}


.extremo-izquierdo a {
    letter-spacing: 0.025em;
    font-size: 1.5rem;
    font-family: Unna, serif; /* Añadida fallback font */
    color: #F8FAFC;
    text-decoration: none;
}


a.menu-especial {
    border-radius: 9999px;
    background: linear-gradient(to right, #f59e0b, #ca8a04);
    color: rgb(2 6 23 / var(--tw-text-opacity, 1)) !important;
    text-transform: capitalize !important;
    font-weight: bold;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    display: inline-block; /* Importante: transform no funciona en elementos 'inline' puros */
    position: relative; /* Mantiene el flujo normal pero permite z-index si es necesario */
}

a.menu-especial:hover {
    --tw-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
    --tw-shadow-colored: 0 0 20px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    transform: translateY(-0.125rem) !important;
    position: relative;
}


/* --- 4. CUADRO 1: Cabecera con Logo y Nombre --- */
header#inicio {
    height: auto;
    padding-top: 100px;
}

#inicio {
    text-align: center;
    padding: 5rem 1rem;
    background: linear-gradient(to right, var(--color-inicio-degrade), var(--color-fin-degrade));
}

.content.headeruno {   
    animation: aparece 3s ease-out forwards; /* Línea corregida en una sola */
    display: block;
    padding-bottom: 2rem;
}

@keyframes aparece {
    /* Inicio de la animación: Abajo del todo */
    0% {
        transform: translateY(20rem);
        opacity: 0;
    }
    
    /* Primer y mayor rebote hacia arriba (rápido) */
    40% {
        transform: translateY(-1rem); 
        opacity: 1;
    }
    
    /* Caída principal hacia abajo */
    60% {
        transform: translateY(4rem);
    }
    
    /* Segundo rebote más pequeño hacia arriba */
    70% {
        transform: translateY(0rem);
    }
    
    /* Tercera caída suave */
    80% {
        transform: translateY(2rem);
    }
    
    /* Fin de la animación: Se asienta en su lugar final */
    90% {
        transform: translateY(-0.5rem);
    }
    
     /* Fin de la animación: Se asienta exactamente en su posición original (0rem) */
    100% {
        transform: translateY(0rem); /* <-- CORREGIDO a 0rem */
        opacity: 1;
    }

} /* <-- ¡ESTA ES LA LLAVE DE CIERRE FALTANTE! */

.logo-empresa img {
    max-width: 150px;
    height: auto;
}

#inicio .titulo h1 {
    font-size: 4rem;
    line-height: 1;
    letter-spacing: -.1rem;
    color: #f8fafc;
    font-family: 'Playfair Display', serif;
}

#inicio .titulo h1 pp {
    background: linear-gradient(to right, #fcd34d, #d97706);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.sub-titulo {
    background: #482f0363;
    width: auto;
    display: inline-block;
    border-radius: 9999px;
    border: 1px solid #5C3F12;
    color: #F7BC23;
    text-transform: uppercase;
    padding: 0.25rem;
    padding-left: 1rem;
    padding-right: 1rem;
    font-family: Lato, sans-serif; /* Corregido y añadido fallback */
    font-size: 0.875rem;
    line-height: 1.25rem;
    margin-bottom: 1rem;
}

.titulo sub {
    --tw-text-opacity: 1;
    color: rgb(148 163 184 / var(--tw-text-opacity, 1));
    font-size: 1.25rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    display: flex;
    line-height: 1.3rem;
}

/* --- AÑADIDA LA LLAVE DE CIERRE FALTANTE AQUÍ --- */
@media (min-width: 640px) {
    .link-atencion {
        flex-direction: row;
    }
} /* <-- CIERRE CORREGIDO */

.link-atencion {
    gap: 1rem;
    justify-content: center;
    display: flex;
}

.linkuno, .linkdos {
    padding: 10px 20px;
    background-color: #ecb324;
    color: #020617;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin: 0 5px;
}

.link-atencion a {
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 2rem;
    padding-right: 2rem;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
    background: #1E293B;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: bold;
    transition: background-color 1s ease-out;
}

.link-atencion a.linkdos {
    background: #cf880d !important;
    color: #100f16;
}

.link-atencion a.linkuno:hover {
    background: #334155 !important;
    border-color: #5c3f12;
    transition: background-color 1s ease-out;
}

.link-atencion a.linkdos:hover {
    --tw-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
    --tw-shadow-colored: 0 0 30px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

#flecha-abajo {
    width: 3rem;
    height: 3rem;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: -3rem; /* La posiciona fuera del header */
    left: 50%;
    transform: translateX(-50%);
    background-color: #1e293b7a;
    color: white;
    border-radius: 50%;
    font-size: 1.4rem;
    animation-name: subirBajar;
    animation-duration: 2s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

@keyframes subirBajar {
    0% {
        transform: translate(-50%, 0);
    }
    100% {
        transform: translate(-50%, -15px);
    }
}
/* --- 5. CUADRO 2: Servicios Ofrecidos --- */
/* NOTA: Este bloque usa flexbox, que entra en conflicto con el grid responsive de abajo. */
/* Es mejor usar solo el sistema de grid que definiste en .content.boxservice */


.servicio {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex: 1; /* Ocupa el mismo espacio flexiblemente */
    text-align: center;
    /* Esto es para la animación básica (requiere JS o librería externa para funcionar) */
    opacity: 0; 
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.text-dec{
    --tw-text-opacity: 1;
    color: rgb(148 163 184 / var(--tw-text-opacity, 1));
    font-size: 0.9rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    display: flex;
    line-height: 1.3rem;
    text-align: center;
}

.servicios-c {
    transition-property: opacity;
    transition-timing-function: 
cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    padding: 2rem;
    border: 1px solid #1E293B;
    border-radius: 1rem;
    position: relative;
    background: #090f20;
    margin-bottom: 1rem;
 transition-timing-function: 
cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
      transition: all 0.5s ease-in-out; 
}

 

/* Estilo base (móvil, 1 columna por defecto) */
.content.boxservice {
    display: grid;
    gap: 1rem; 
}

@media (min-width: 768px) {
     .content.boxservice {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* A partir de 1024px, solo aumenta el espacio entre ellas */
@media (min-width: 1024px) { 
    .content.boxservice { 
        gap: 3rem; 
        padding: 0px 3rem; 
    }
} /* <-- ¡ESTA ES LA LLAVE DE CIERRE FALTANTE! */


/* Clase que se añadiría con JavaScript cuando el elemento entra en vista */
.servicio.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.servicio img {
    max-width: 100%;
    border-radius: 5px;
    margin-bottom: 1rem;
}

/* SERVICIOS INTERIOR */
.iconchico {
      border-radius: 0.75rem;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid #334155;
    background: #1e293b;
    display: flex;
    font-size: 1.5rem;
    color: #f8fafc;
    font-weight: lighter;
    margin-bottom: 1rem;
}

.icongrande {
    opacity: 0.1;
    padding: 1.5rem;
    right: 5px;
    position: absolute;
    top: 0px;
    font-size: 6rem;
    /* Nota de compatibilidad: Esto puede no funcionar en todos los móviles */
    -webkit-text-stroke: 3px #090f20; 
    justify-content: center;
    align-items: center;
    display: flex;
}

.servicios-c.tranf .icongrande {
    color: #e39508;
}

.servicios-c.deuda .icongrande {
    color: #18a6bf;
}

.sertitle {
    font-size: 1.3rem;
    line-height: 2rem;
    font-family: 'Playfair Display', serif;
    color: #F8FAFC;
    transition-timing-function: 
cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    font-weight: 700;
    margin-bottom: 1rem;
}

.desc-servi {
    line-height: 1.625;
    color: rgb(148 163 184 / var(--tw-text-opacity, 1));
    font-size: 0.9rem;
}

.desc-lista {
    margin-top: 1rem;
    margin-bottom: 2.5rem;
    font-size: 0.875rem;
    line-height: 1.8rem;
    align-items: anchor-center;
    color: rgb(181 181 181);
    font-family: 'Lato';
}

.desc-lista i {
    color: #94A3B8;
    margin-right: .6rem;
}

div#line-servicio {
    transition-duration: 500ms;
    border-radius: 9999px;
    width: 100%;
    height: 0.25rem;
background: linear-gradient(to right, #1e293b, #1e293b);
}

.servicios-c.deuda:hover .icongrande, .servicios-c.tranf:hover .icongrande{
opacity: 0.2;

}
.servicios-c:hover {

    transform: scale(1.03);
}

/*UNO COLOR NARANJA*/
.servicios-c.tranf .desc-lista span, .servicios-c.tranf .desc-lista span i {
    color: #ecb324;
}

.servicios-c.tranf:hover {
    --tw-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
    --tw-shadow-colored: 0 0 30px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.servicios-c.tranf:hover .iconchico{
    border: 1px solid rgb(245 158 11 / 0.3);
    background: rgb(245 158 11 / 0.2);
    color: #F59E0B;
}

.servicios-c.tranf:hover div#line-servicio {
background: linear-gradient(to right, #ecb324, #1e293b);
}


/*DOS COLOR AZUL*/
.servicios-c.deuda .desc-lista span, .servicios-c.deuda .desc-lista span i {
    color: #3a80f1;
}

.servicios-c.deuda:hover {
    --tw-shadow: 0 0 30px rgb(58, 128, 241, 0.3);
    --tw-shadow-colored: 0 0 30px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.servicios-c.deuda:hover .iconchico{
    border: 1px solid rgb(59 130 246 / 0.3);
    background: rgb(59 130 246 / 0.2);
    color: rgb(59 130 246 / var(--tw-text-opacity, 1));
}

.servicios-c.deuda:hover div#line-servicio {
background: linear-gradient(to right, #3a80f1, #1e293b);
}



/* --- 6. CUADRO 3: Testimonios de Clientes --- */
#testimonios {
    background-color: #f8f9fa;
    padding: 2rem 1rem;
    text-align: center;
}

.testimonio-fijo {
    background: #fff;
    margin: 1rem auto;
    padding: 1rem;
    border-left: 5px solid #020617;
    max-width: 600px;
}

.opiniones-google {
    margin-top: 2rem;
}

/* --- 7. CUADRO 4: Información de la Empresa y Respaldo Legal --- */
#nosotros {
    display: flex;
    gap: 2rem;
    padding: 2rem 1rem;
    background: #fff;
}

.info-empresa {
    flex: 2; /* Ocupa 2/3 del espacio */
}

.respaldo-legal {
    flex: 1; /* Ocupa 1/3 del espacio (la "burbuja" lateral) */
    background-color: #020617;
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.respaldo-legal a {
    color: white;
    text-decoration: underline;
    margin-top: 0.5rem;
    display: block;
}

/* --- 8. CUADRO 5: Formulario de Consultas --- */
#contacto {
    padding: 2rem 1rem;
}

form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
    gap: 0.5rem;
}

input, textarea, button {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
}

button {
    background-color: #020617;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 1rem;
}

#enviar-whatsapp {
    background-color: #25d366; /* Color de WhatsApp */
}

/* --- 9. CUADRO 6: Footer --- */
footer {
    background-color: #8F9EB3; /* Gris oscuro/negro */
    color: white;
    text-align: center;
    padding: 1.5rem 1rem;
}

.redes-sociales a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
}

.derechos {
    margin-top: 1rem;
    font-size: 0.8rem;
}

/* --- 10. Adaptabilidad Móvil (Responsive Design) --- */

/* Cuando la pantalla sea más pequeña de 768px (tablets y móviles) */
@media (max-width: 768px) {
    #servicios, #nosotros {
        flex-direction: column; /* Apila los elementos verticalmente */
    }

    #menu-navegacion ul {
        flex-direction: column;
        width: 100%;
        display: none; /* Ocultar menú en móvil por defecto, necesitarías JS para mostrarlo con un botón */
    }
    
    .servicio {
        margin-bottom: 1rem;
    }
}


@media (min-width: 641px) {
    /* Oculta explícitamente el botón de toggle en escritorios */
    #menu-toggle {
        display: none !important; 
    }

    /* Asegura que los links del menú siempre se muestren en desktop */
    #menu-links {
        display: flex !important;
    }
}
