/* ==========================================================================
   VARIABLES Y CONFIGURACIÓN GLOBAL
   ========================================================================== */
:root {
    --color-primary: #0f172a;      /* Azul Heráldico */
    --color-secondary: #1e293b;    /* Azul Pizarra */
    --color-accent: #64748b;       /* Plata Ejecutiva */
    --color-bg-light: #f8fafc;     /* Fondo Atenuado */
    --color-white: #ffffff;
    --color-warning-bg: #fffbeb;   /* Amarillo Ámbar Suave para Disclaimer */
    --color-warning-border: #fef3c7;
    --color-warning-text: #78350f;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --max-width: 1200px;
    --transition-fast: 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-main);
    background-color: var(--color-bg-light);
    color: var(--color-secondary);
    line-height: 1.6;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   DISCLAIMER DE ADVERTENCIA (GOOGLE ADS COMPLIANCE)
   ========================================================================== */
.top-disclaimer-bar {
    background-color: var(--color-warning-bg);
    border-bottom: 1px solid var(--color-warning-border);
    padding: 0.75rem 1rem;
}

.container-disclaimer {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.icon-warning {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.container-disclaimer p {
    font-size: 0.85rem;
    color: var(--color-warning-text);
    text-align: justify;
}

/* ==========================================================================
   HEADER Y LOGOTIPO
   ========================================================================== */
.main-header {
    background-color: var(--color-white);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-text {
    font-size: 1.25rem;
    color: var(--color-secondary);
    font-weight: 500;
}

.logo-bold {
    color: var(--color-primary);
    font-weight: 900;
}

.logo-tld {
    color: var(--color-accent);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--color-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.25rem;
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn-cta-small {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: opacity var(--transition-fast);
}

.btn-cta-main {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    padding: 0.85rem 1.75rem;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    transition: opacity var(--transition-fast);
}

.btn-cta-secondary {
    background-color: transparent;
    color: var(--color-primary);
    text-decoration: none;
    padding: 0.85rem 1.75rem;
    border: 2px solid var(--color-primary);
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.btn-cta-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-cta-large {
    background-color: var(--color-white);
    color: var(--color-primary);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 700;
    display: inline-block;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-fast);
}

.btn-cta-large:hover {
    transform: translateY(-2px);
}

.btn-cta-small:hover, .btn-cta-main:hover {
    opacity: 0.9;
}

/* ==========================================================================
   SECCIÓN HERO
   ========================================================================== */
.hero-section {
    background-color: var(--color-white);
    padding: 5rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-tag {
    color: var(--color-accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-weight: 700;
    display: block;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: 2.75rem;
    color: var(--color-primary);
    line-height: 1.2;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.hero-lead {
    font-size: 1.1rem;
    color: var(--color-secondary);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    display: flex;
    justify-content: center;
}

.hero-img {
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* ==========================================================================
   ESTRUCTURA DE COMPONENTE COMÚN DE SECCIONES
   ========================================================================== */
.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5rem 1rem;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 2.25rem;
    color: var(--color-primary);
    font-weight: 900;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-accent);
}

/* ==========================================================================
   SECCIÓN SERVICIOS (GRID)
   ========================================================================== */
.services-section {
    background-color: var(--color-bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.service-icon-box {
    margin-bottom: 1.5rem;
    background-color: #f1f5f9;
    width: 56px;
    height: 56px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card h3 {
    font-size: 1.35rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    font-size: 0.95rem;
    color: #475569;
    text-align: justify;
}

/* ==========================================================================
   SECCIÓN DE PROCESO
   ========================================================================== */
.process-section {
    background-color: var(--color-white);
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.step-card {
    position: relative;
    padding-top: 2rem;
}

.step-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: #f1f5f9;
    position: absolute;
    top: -1.5rem;
    left: 0;
    z-index: 1;
}

.step-card h3 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    font-weight: 700;
}

.step-card p {
    font-size: 0.95rem;
    color: #475569;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   SECCIÓN CONFIANZA / COMPLIANCE
   ========================================================================== */
.trust-info-section {
    background-color: var(--color-bg-light);
    padding: 5rem 1rem;
}

.container-trust {
    max-width: var(--max-width);
    margin: 0 auto;
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.trust-image-wrapper {
    display: flex;
    justify-content: center;
}

.trust-img {
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.trust-content h2 {
    font-size: 2rem;
    color: var(--color-primary);
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.trust-content p {
    margin-bottom: 2rem;
    font-size: 1rem;
    color: #475569;
}

.trust-list {
    list-style: none;
}

.trust-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-secondary);
}

.trust-list svg {
    flex-shrink: 0;
    margin-top: 0.2rem;
}

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.final-cta-section {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    padding: 6rem 1rem;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.final-cta-section h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.final-cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* ==========================================================================
   FOOTER COMPLIANCE RESPONSABLE
   ========================================================================== */
.main-footer {
    background-color: #0b0f19;
    color: #94a3b8;
    padding: 4rem 1rem 0 1rem;
    margin-top: auto;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 3rem;
}

.footer-brand-column .brand-logo {
    margin-bottom: 1.5rem;
}

.footer-brand-column .logo-text {
    color: var(--color-white);
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-links-column h4 {
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links-column ul {
    list-style: none;
}

.footer-links-column li {
    margin-bottom: 0.75rem;
}

.footer-links-column a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links-column a:hover {
    color: var(--color-white);
}

/* BLOQUE DE DISCLAIMER INTERNO EN FOOTER */
.footer-disclaimer-wrapper {
    border-top: 1px solid #1e293b;
    padding: 2rem 1rem;
}

.footer-disclaimer-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-disclaimer-content p {
    font-size: 0.78rem;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 1.5rem;
}

.copyright-text {
    font-size: 0.75rem;
    text-align: center !important;
    color: #64748b;
    margin-bottom: 0 !important;
}

/* ==========================================================================
   RESPONSIVIDAD SÓLIDA (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container, .trust-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .hero-content {
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .services-grid, .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    .services-grid, .process-steps, .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .section-header h2 {
        font-size: 1.75rem;
    }
}