/* style.css - Rediseño Profesional v3 "IMPACTO" */

/* ==================================================================
   1. PALETA DE COLORES Y VARIABLES
   ================================================================== */
:root {
    --primary-color: #0A192F;  /* Azul Naval Oscuro */
    --accent-color: #00F5D4;   /* Cian Eléctrico */
    --light-bg: #F9FAFB;       /* Gris muy claro */
    --text-dark: #1F2937;      /* Texto principal oscuro */
    --text-light: #D1D5DB;     /* Texto secundario sobre fondos oscuros */
    --font-family: 'Poppins', sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

/* ==================================================================
   2. ESTILOS GLOBALES
   ================================================================== */
body {
    background-color: #fff;
    font-family: var(--font-family);
    color: #4B5563; /* Gris intermedio */
    line-height: 1.7;
}

main {
    padding-top: 0; /* Controlado por la sección héroe */
}

/* ==================================================================
   3. ANIMACIONES Y SECCIONES
   ================================================================== */
@keyframes slide-in-up {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in {
    opacity: 0;
    animation: slide-in-up 0.8s ease-out forwards;
}
.animate-in.is-visible {
    /* El JS añade esta clase, pero la animación ya se dispara por CSS */
}

.section-padding { padding: 100px 0; }
.section-title { font-weight: 700; }
.section-title::after {
    content: ''; display: block; width: 60px; height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

/* ==================================================================
   4. SECCIÓN HÉROE
   ================================================================== */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.9), rgba(2, 12, 27, 0.8)), url('https://www.toptal.com/designers/subtlepatterns/uploads/double-bubble-outline.png');
    background-size: cover;
    color: #fff;
}
.hero-section .display-3 { color: #fff; }
.hero-section .lead { color: var(--text-light); font-size: 1.25rem; }

/* ==================================================================
   5. NAVEGACIÓN CON EFECTO SCROLL
   ================================================================== */
.navbar {
    padding: 20px 0;
    transition: all 0.4s ease;
}
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.navbar .navbar-brand { color: #fff; font-weight: 700; }
.navbar.scrolled .navbar-brand { color: var(--primary-color); }
.navbar .nav-link { color: var(--text-light); font-weight: 600; }
.navbar.scrolled .nav-link { color: var(--text-dark); }
.navbar .nav-link.active, .navbar .nav-link:hover { color: var(--accent-color); }
.navbar-toggler { border-color: rgba(255,255,255,0.2); }
.navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }

/* ==================================================================
   6. SECCIÓN "POR QUÉ ELEGIRNOS"
   ================================================================== */
.feature-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}
.col-md-4:hover .feature-icon {
    transform: scale(1.2) rotate(-10deg);
}

/* ==================================================================
   7. SECCIÓN DE ESTADÍSTICAS (CONTADORES)
   ================================================================== */
.stats-section {
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, #1D3A6C 100%);
}
.stats-section h3, .stats-section p { color: #fff; }

/* ==================================================================
   8. DIVISORES DE SECCIÓN EN ÁNGULO
   ================================================================== */
.section-angled-top {
    position: relative;
    background-color: var(--light-bg);
}
.section-angled-top::before {
    content: ''; position: absolute;
    top: -1px; left: 0; width: 100%; height: 100px;
    background-color: #fff;
    -webkit-clip-path: polygon(0 100%, 100% 0, 100% 100%);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* ==================================================================
   9. MAPA Y CTA FINAL
   ================================================================== */

.map-responsive {
    overflow: hidden;
    padding-bottom: 40%; /* Ajusta este valor para la altura deseada del mapa */
    position: relative;
    height: 0;
}
.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;

}
.final-cta {
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.95), rgba(2, 12, 27, 0.85)), url('https://www.toptal.com/designers/subtlepatterns/uploads/double-bubble-outline.png');
    background-attachment: fixed; /* Efecto Parallax */
}



/* ESTILOS PARA LAS TARJETAS DE PROCESO */
.process-card {
    border: none;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.process-number {
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(0, 245, 212, 0.1); /* Color de acento muy transparente */
    line-height: 1;
}
/* style.css (añadir al final) */

/* ESTILOS PARA LA SECCIÓN DE TESTIMONIOS */
.testimonial-card {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    border-left: 5px solid var(--accent-color);
}
.testimonial-icon {
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 3rem;
    color: var(--accent-color);
    opacity: 0.2;
}
.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}
.testimonial-author .author-name {
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}
.testimonial-author .author-title {
    font-size: 0.9rem;
    color: #6c757d;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    padding: 1.2rem;
}

/* ===================================================
   ESTILOS PARA BANNER Y MODAL DE COOKIES
   =================================================== */


/* ==================================================================
   12. BANNER DE COOKIES (DISEÑO PREMIUM)
   ================================================================== */

.cookie-banner {
    position: fixed;
    bottom: 1.5rem; /* Lo separamos un poco del borde para que "flote" */
    left: 1.5rem;
    right: 1.5rem;
    
    max-width: 900px; /* Ancho máximo en pantallas grandes */
    margin-left: auto; /* Centramos el banner */
    margin-right: auto;
    
    background-color: rgba(10, 25, 47, 0.9); /* Tu azul naval oscuro con transparencia */
    color: var(--text-light);
    backdrop-filter: blur(10px); /* Efecto "cristal esmerilado" muy moderno */
    
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius); /* Bordes redondeados consistentes */
    border: 1px solid rgba(0, 245, 212, 0.2); /* Borde sutil con tu color de acento */
    
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2); /* Sombra más pronunciada para el efecto flotante */
    z-index: 1055;
    
    /* Animación de entrada */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* Estado visible del banner */
.cookie-banner.show {
    opacity: 1;
    transform: translateY(0);
}

.cookie-text {
    font-size: 0.95rem;
    margin: 0;
}

/* Enlaces dentro del texto del banner */
.cookie-text a {
    color: var(--accent-color); /* Tu color cian */
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(0, 245, 212, 0.5); /* Subrayado semi-transparente */
}

.cookie-text a:hover {
    text-decoration-color: var(--accent-color);
}

/* Contenedor de los botones */
.cookie-buttons {
    flex-shrink: 0; /* Evita que los botones se encojan */
    margin-left: 2rem; /* Espacio entre el texto y los botones en pantallas grandes */
}

.cookie-buttons .btn {
    min-width: 120px;
    font-weight: 700;
    border-radius: 50px; /* Botones tipo "píldora" */
    transition: all 0.2s ease;
}

.cookie-buttons .btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
}

.cookie-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 245, 212, 0.2);
}

/* Media query para pantallas pequeñas */
@media (max-width: 768px) {
    .cookie-banner {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        text-align: center;
    }
    .cookie-buttons {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

/* (El resto de tus estilos del modal, etc., pueden quedar como están) */
/* Tarjeta del listado de blog */
.blog-card {
    border: none;
    box-shadow: 0 4px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.blog-card .card-title a {
    color: var(--primary-color);
    text-decoration: none;
}
.blog-card .card-title a:hover {
    color: var(--accent-color);
}
.blog-card .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    border-radius: 50px;
}
.blog-card .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Contenido del artículo individual */
.article-content h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.article-content p, .article-content li {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Botones para compartir */
.btn-share {
    margin: 5px;
    border-radius: 50px;
    color: #fff;
    border: none;
}
.btn-facebook { background-color: #1877F2; }
.btn-twitter { background-color: #1DA1F2; }
.btn-linkedin { background-color: #0A66C2; }
.btn-whatsapp { background-color: #25D366; }

/* Cabecera de la página */
.page-header {
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.9), rgba(2, 12, 27, 0.8)), url('URL_DE_UNA_IMAGEN_DE_FONDO_RELEVANTE'); /* Opcional: añade una imagen de fondo */
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center;
    min-height: 50vh;
}
.page-header h1 {
    color: #fff;
}
.page-header .lead {
    color: var(--text-light);
}

/* Título de sección alineado a la izquierda */
.section-title.text-start::after {
    margin: 15px 0 0; /* Alinea la barra de acento a la izquierda */
}

/* Tarjeta de miembro del equipo */
.team-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}
.team-card:hover {
    transform: translateY(-8px);
}
.team-img {
    width: 100%;
    height: 280px;
    object-fit: cover; /* Asegura que la imagen cubra el espacio sin deformarse */
}
.team-info {
    padding: 1.5rem;
}
.team-name {
    color: var(--primary-color);
    font-weight: 700;
}
.team-title-role {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Efecto Hover para la imagen del equipo */
.team-img {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.team-card:hover .team-img {
    filter: grayscale(0%);
}


/* style.css (añadir al final) */

/* ==================================================================
   12. ESTILOS PARA LA PÁGINA "SERVICIOS"
   ================================================================== */

.service-item h3 {
    color: var(--primary-color);
    font-weight: 700;
}

.service-icon {
    font-size: 3.5rem; /* Icono más grande */
    color: var(--accent-color);
    line-height: 1;
}

.service-item hr {
    border-top: 1px solid #e9ecef;
}

/* Estilos para la insignia de reCAPTCHA */
.grecaptcha-badge { 
    opacity: 0.8;
    transition: all 0.3s ease;
}
.grecaptcha-badge:hover {
    opacity: 1;
}

.contact-info-list {
    padding: 0;
    list-style: none;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-info-item div {
    line-height: 1.4;
}
.contact-info-item a {
    color: var(--text-dark);
    text-decoration: none;
}
.contact-info-item a:hover {
    color: var(--accent-color);
}


/* Estilo para el icono de éxito en la página de gracias */
.icon-success {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: #198754; /* Verde de Bootstrap */
    color: #fff;
    border-radius: 50%;
    font-size: 2.5rem;
}

/* style.css (añadir al final) */

/* Estilo para el icono de error en la página de error */
.icon-error {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: #dc3545; /* Rojo de Bootstrap */
    color: #fff;
    border-radius: 50%;
    font-size: 2.5rem;
}

/* ==================================================================
   11. PÁGINAS LEGALES (VERSIÓN PREMIUM SIN ÍNDICE)
   ================================================================== */

/* Estilo general del contenedor de texto */
main .legal-content {
    background-color: #fff;
    font-size: 1.05rem;
    color: #4B5563;
    line-height: 1.8;
}

/* Títulos de las secciones (H2, H3) */
main .legal-content h2,
main .legal-content h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-top: 3rem; /* Buen espacio antes de una nueva sección */
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef; /* Línea de separación sutil */
    position: relative; /* Necesario para el pseudo-elemento */
}

/* Línea de acento debajo de los títulos */
main .legal-content h2::after {
    content: '';
    position: absolute;
    bottom: -2px; /* Se coloca sobre el borde */
    left: 0;
    width: 80px; /* Ancho de la línea de acento */
    height: 2px;
    background-color: var(--accent-color); /* Tu color cian */
}

/* El primer título no necesita tanto espacio arriba */
main .legal-content h2:first-of-type,
main .legal-content h3:first-of-type {
    margin-top: 0;
}

/* Listas con viñetas personalizadas usando tu color de marca */
main .legal-content ul {
    list-style: none;
    padding-left: 0;
}

main .legal-content ul li {
    padding-left: 1.8rem;
    position: relative;
    margin-bottom: 0.75rem;
}

main .legal-content ul li::before {
    content: '\F282'; /* Icono de check de Bootstrap Icons */
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--accent-color); /* Tu color cian */
    font-weight: bold;
}

/* Citas destacadas (Blockquotes) para resaltar texto importante */
main .legal-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--light-bg);
    border-left: 5px solid var(--accent-color);
    font-style: italic;
    font-size: 1.1rem;
}

main .legal-content blockquote p {
    margin-bottom: 0;
}

/* Enlaces */
main .legal-content a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px dotted rgba(0, 245, 212, 0.4);
    transition: all 0.2s ease-in-out;
}

main .legal-content a:hover {
    background-color: rgba(0, 245, 212, 0.1);
    border-bottom-style: solid;
}


