/* Variables de Estilo Premium */
:root {
    --color-principal: #004AAD; /* Azul Corporativo Intenso */
    --color-secundario: #002D62; /* Azul Oscuro (texto, fondo) */
    --color-acento: #FFC300; /* Amarillo/Dorado (CTA) */
    --color-fondo: #f8f9fa; /* Fondo muy claro */
    --color-texto: #333; /* Color de texto principal (gris oscuro/casi negro) */
    --color-blanco: #fff;
    --sombra-3d: 0 10px 30px rgba(0, 0, 0, 0.2); 
    --sombra-suave: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Reset Básico y Tipografía */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif; /* Fuente moderna */
    line-height: 1.6;
    background-color: var(--color-fondo);
    color: var(--color-texto);
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: auto;
}

section {
    padding: 80px 0; /* Más espacio */
}

h2, h3, h4 {
    color: var(--color-secundario);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

/* Botones Premium */
.btn {
    padding: 14px 30px;
    border: none;
    border-radius: 5px; 
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.btn-principal {
    background: var(--color-principal);
    color: var(--color-blanco);
}

.btn-principal:hover {
    background: var(--color-secundario);
    transform: translateY(-2px); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-secundario {
    background: var(--color-acento);
    color: var(--color-secundario);
}

.btn-secundario:hover {
    background: #ffdb4c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ❌ Eliminamos top-bar */
.top-bar {
    display: none; 
}


/* Header */
.header {
    background: var(--color-secundario);
    color: var(--color-blanco);
    padding: 15px 0;
    box-shadow: var(--sombra-suave);
    position: sticky;
    top: 0; 
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}
.header .logo a {
    color: var(--color-blanco); 
    text-decoration: none;
    padding: 0; 
}

.header a {
    color: var(--color-blanco);
    text-decoration: none;
    padding: 0 15px;
    transition: color 0.3s;
}

.header a:hover {
    color: var(--color-acento);
}

/* Botón de Llamada en Header */
.header .call-btn {
    background: var(--color-acento);
    color: var(--color-secundario);
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 700;
    margin-left: 10px;
    transition: background 0.3s, transform 0.3s;
    display: inline-block; 
}
.header .call-btn i {
    margin-right: 5px;
}
.header .call-btn:hover {
    background: #ffdb4c;
    transform: scale(1.05);
}


/* Hero Section (Look 3D con degradado y diseño dividido) */
.hero {
    background: linear-gradient(135deg, var(--color-principal) 50%, #1a56b8 100%); 
    color: var(--color-blanco);
    padding: 100px 0;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-content h2 {
    font-size: 3.5rem; 
    color: var(--color-blanco);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 🟢 ESTILO: SVG INLINE (Red de Negocios) */
.hero-svg {
    width: 280px;
    height: 280px;
    transform: perspective(1000px) rotateX(10deg) rotateY(-10deg); 
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); 
    transition: transform 0.5s;
    border-radius: 20px;
}

.hero-svg:hover {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
}

/* Animación sutil para los nodos SVG */
@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* Aplicamos la animación a los círculos (nodos) */
.hero-svg circle {
    animation: pulse 3s infinite ease-in-out;
}
.hero-svg circle:nth-child(2) { animation-delay: 0.5s; }
.hero-svg circle:nth-child(3) { animation-delay: 1s; }
.hero-svg circle:nth-child(4) { animation-delay: 1.5s; }
.hero-svg circle:nth-child(5) { animation-delay: 2s; }
.hero-svg circle:nth-child(6) { animation-delay: 2.5s; }


/* BLOQUE: TRUST BAR (Seguridad) */
.trust-bar {
    padding: 20px 0;
    background-color: var(--color-secundario);
    color: var(--color-blanco);
    font-size: 0.9rem;
    text-align: center;
    border-bottom: 3px solid var(--color-acento);
}

.trust-bar .container {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    flex-wrap: wrap;
}

.trust-bar i {
    color: var(--color-acento);
    margin-right: 8px;
}

/* BLOQUE: LOGOS DE SOCIOS/SEGURIDAD */
.partner-logos {
    padding: 40px 0;
    background-color: var(--color-blanco);
    text-align: center;
    border-bottom: 1px solid #eee;
}

.partner-logos h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.logo-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 15px;
}

.logo-grid i {
    transition: color 0.3s;
}

.logo-grid i:hover {
    color: var(--color-principal);
}

.small-trust-text {
    font-size: 0.9rem;
    color: #888;
}


/* Soluciones/Cards (Efecto de elevación 3D mejorado) */
.solutions {
    background-color: var(--color-blanco);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* ✅ Tarjeta ahora es un BLOQUE ENLAZABLE */
.card-3d {
    background: var(--color-fondo);
    padding: 30px;
    border-radius: 12px; 
    text-align: center;
    box-shadow: var(--sombra-3d); 
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); 
    border-bottom: 5px solid var(--color-acento); 
    
    /* ESTILOS DE ENLACE COMO BLOQUE */
    display: flex; 
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none; 
    color: var(--color-texto); 
    position: relative; 
    min-height: 280px; 
    cursor: pointer; 
}

/* ✅ CORRECCIÓN: Estilo de texto interno (Títulos y Párrafos) */
.card-3d h4 {
    color: var(--color-secundario); /* Título en azul oscuro */
    margin-bottom: 10px;
    text-decoration: none !important; /* Quita subrayado */
}
.card-3d p {
    color: var(--color-texto); /* Párrafo en gris/negro */
    text-decoration: none !important; /* Quita subrayado */
}


.card-3d:hover {
    transform: translateY(-10px); 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    color: var(--color-texto); 
}

/* ✅ NUEVO ESTILO CTA INTUITIVO */
.card-cta {
    display: block;
    margin-top: 15px;
    color: var(--color-principal); /* CTA en color de acción (azul) */
    font-weight: 600;
    transition: color 0.3s, transform 0.3s;
    text-decoration: none !important; 
}

.card-3d:hover .card-cta {
    color: var(--color-acento);
    transform: translateX(5px);
}
.card-cta i {
    margin-left: 5px;
}

/* ÍCONOS DE SOLUCIONES: ESTILO MÁS VECTORIAL/SVG-LIKE */
.card-icon {
    font-size: 3.5rem; 
    color: var(--color-principal);
    margin-bottom: 15px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1); 
    transition: color 0.3s ease-in-out;
}

.card-3d:hover .card-icon {
    color: var(--color-secundario); 
}

/* SECCIÓN: TESTIMONIOS (Se mantiene) */
.testimonials {
    background: var(--color-fondo);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--color-blanco);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--sombra-suave);
    border-left: 5px solid var(--color-principal);
}

.quote-icon {
    font-size: 2rem;
    color: var(--color-acento);
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    color: var(--color-texto);
    margin-bottom: 15px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-principal);
    text-align: right;
}

/* SECCIÓN: ACERCA DE NOSOTROS (Se mantiene) */
.about-us {
    background: var(--color-blanco);
}

.about-content {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.about-card {
    flex: 1;
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    box-shadow: var(--sombra-suave);
    border: 1px solid #eee;
}

.about-card h4 {
    text-align: left;
    color: var(--color-principal);
    margin-bottom: 15px;
}

.about-card i {
    margin-right: 10px;
}

/* Valores / Por Qué Elegirnos */
.values {
    background: var(--color-fondo);
    text-align: center;
}

.value-grid {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-top: 40px;
}

/* ✅ Tarjeta de valor ahora es un BLOQUE ENLAZABLE */
.value-item {
    flex-basis: 30%;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 10px;
    transition: background 0.3s;
    background: var(--color-blanco);
    box-shadow: var(--sombra-suave);
    
    /* ESTILOS DE ENLACE COMO BLOQUE */
    display: flex; 
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: var(--color-texto); 
    position: relative;
    min-height: 250px;
    cursor: pointer; 
}

.value-item:hover {
    background: #e9e9e9;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* ✅ CORRECCIÓN: Estilo de texto interno (Títulos y Párrafos) */
.value-item h4 {
    color: var(--color-secundario);
    margin-bottom: 10px;
    text-decoration: none !important;
}

.value-item p {
    color: var(--color-texto);
    text-decoration: none !important;
}

/* ✅ APLICAMOS EL MISMO ESTILO CTA INTUITIVO AL CONTENIDO DE VALORES */
.value-item .card-cta {
    margin-top: 15px;
}

/* ÍCONOS DE VALORES: ESTILO MÁS VECTORIAL/SVG-LIKE */
.value-icon {
    font-size: 3rem; 
    color: var(--color-acento);
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1); 
    transition: transform 0.3s;
}

.value-item:hover .value-icon {
    transform: scale(1.1); 
}

/* CTA Banner Promoción (sin cambios) */
.cta-banner {
    background: var(--color-secundario);
    color: var(--color-blanco);
    padding: 40px 0;
    text-align: center;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.3);
}

.cta-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-banner h3 {
    color: var(--color-acento);
    margin-bottom: 5px;
}

.cta-banner p {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 400;
}

/* Contacto y Formularios (sin cambios) */
.contact {
    background: var(--color-blanco);
    text-align: center;
}

.contact form {
    max-width: 600px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact input, .contact textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact input:focus, .contact textarea:focus {
    border-color: var(--color-principal);
    outline: none;
    box-shadow: 0 0 5px rgba(0, 74, 173, 0.3);
}

/* NOTA DE PRIVACIDAD EN EL FORMULARIO */
.contact .privacy-note {
    font-size: 0.85rem;
    color: #666;
    text-align: left;
    margin-top: -10px; 
}
.contact .privacy-note a {
    color: var(--color-principal);
    text-decoration: none;
}
.contact .privacy-note a:hover {
    text-decoration: underline;
}


/* FOOTER (Política de Google Ads: enlaces legales obligatorios) */
.footer {
    background: var(--color-secundario);
    color: var(--color-blanco);
    text-align: center;
    padding: 25px 0;
    font-size: 0.9rem;
    border-top: 5px solid var(--color-acento);
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: var(--color-acento);
    text-decoration: none;
    margin: 0 10px;
    font-weight: 600;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* NUEVA NOTA DE PAÍS EN EL FOOTER */
.footer-country-note {
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 5px;
    margin-bottom: 10px;
}

/* ========================================================= */
/* ESTILOS PARA LA SECCIÓN DEL MAPA */
/* ========================================================= */
.office-map {
    background-color: var(--color-fondo);
    padding: 60px 0;
    text-align: center;
}

.map-title {
    margin-bottom: 10px;
    font-size: 2rem;
}

.map-address {
    font-size: 1.1rem;
    color: var(--color-secundario);
    margin-bottom: 30px;
}

.map-address i {
    margin-right: 8px;
    color: var(--color-principal);
}

.map-embed-container {
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    position: relative;
    border-radius: 10px;
    box-shadow: var(--sombra-3d); 
}

.map-embed-container iframe {
    border: 0;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}


/* ========================================================= */
/* AVISO DE COOKIES (CRÍTICO PARA GOOGLE ADS) */
/* ========================================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: var(--color-blanco);
    padding: 15px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4);
    z-index: 2000;
    display: none; 
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1280px;
    margin: auto;
    font-size: 0.9rem;
}

.cookie-content p {
    flex-grow: 1;
    margin-right: 20px;
}

.cookie-content a {
    color: var(--color-acento);
    text-decoration: underline;
}

.cookie-content .btn-secundario {
    flex-shrink: 0;
    margin-left: 15px;
}

/* Media Queries (Responsive) */
@media (max-width: 900px) {
    .header {
        top: 0; 
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        order: 2;
    }
    .hero-image {
        order: 1;
        margin-bottom: 30px;
    }
    .trust-bar .container {
        flex-direction: column;
        gap: 10px;
    }
    .about-content, .value-grid {
        flex-direction: column;
    }
    .value-item {
        flex-basis: 100%;
        margin-bottom: 20px;
    }
    .cta-banner .container {
        gap: 20px;
    }
    .cookie-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .cookie-content p {
        margin: 0;
    }
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    /* El botón de llamada se vuelve un CTA móvil vertical */
    .header .call-btn {
        display: inline-block;
        margin: 5px 0 0 0;
    }
    .header nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 10px;
    }
    .header nav a {
        padding: 5px 15px;
    }
}

@media (max-width: 500px) {
    .logo-grid {
        font-size: 2rem;
        gap: 20px;
    }
}