/* =============================================
   CERTICORE — PREMIUM BRAND SYSTEM
   Colors extracted from new official logo:
   Navy:  #002B49 (Main Brand Color - Hex/Cube)
   Gold:  #B68D40 (Accent Color - Arrow & 'CORE')
   White: #FFFFFF
   ============================================= */

:root {
    /* Brand Colors - Premium Deep Aesthetic */
    --navy: #001A33; /* Darker, richer navy */
    --navy-dark: #000B18; /* Near black navy for extreme contrast */
    --navy-light: #0A2540; /* Elevated navy for cards */
    --gold: #C5A059; /* More vibrant, metallic gold */
    --gold-dark: #9B7B3E;
    --gold-light: #F2E8D3; /* Soft gold tint for light backgrounds */
    
    /* Semantic Colors */
    --accent: var(--gold);
    --accent-dark: var(--gold-dark);
    --accent-light: var(--gold-light);
    --white:       #ffffff;
    --gray-50:     #FAFAFA; /* Cleaner whites */
    --gray-100:    #F4F4F5;
    --gray-200:    #E4E4E7;
    --gray-400:    #A1A1AA;
    --gray-600:    #52525B;
    --gray-800:    #18181B; /* zinc-900 */
    --text:        #18181B;
    --text-muted:  #52525B;
    --radius-sm:   10px;
    --radius:      20px;
    --radius-lg:   30px;
    --radius-xl:   40px;
    
    /* Premium Shadows - Longer, softer blur, layered */
    --shadow-sm:   0 2px 8px -2px rgba(0, 11, 24, 0.05), 0 1px 4px -1px rgba(0, 11, 24, 0.03);
    --shadow:      0 8px 24px -4px rgba(0, 11, 24, 0.08), 0 4px 10px -2px rgba(0, 11, 24, 0.04);
    --shadow-md: 0 4px 15px -4px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 50px -15px rgba(0, 0, 0, 0.6);
    --shadow-gold: 0 0 35px rgba(197, 160, 89, 0.2);
    
    /* Glows for Dark Mode sections */
    --glow-gold:   0 0 40px rgba(197, 160, 89, 0.3);
    --glow-navy:   0 0 60px rgba(0, 26, 51, 0.6);
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Smoother, iOS-like easing */
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7; /* increased readability */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased; /* Crisp rendering */
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 { 
    font-family: 'Outfit', sans-serif; 
    line-height: 1.1; 
    letter-spacing: -0.04em; /* Tighter tracking for headings screams premium */
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========== TOP BAR ========== */
.top-bar {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.9);
    height: 36px;
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 500;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1001;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-logo {
    height: 48px !important;
    width: auto !important;
    transition: var(--transition);
}

.logo-link.navbar-brand span {
    display: none !important;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.top-bar-links { display: flex; gap: 1.5rem; }
.top-bar-link { display: flex; align-items: center; gap: 0.4rem; transition: var(--transition); }
.top-bar-link:hover { color: var(--gold); }

/* ========== NAVBAR - PREMIUM GLASS ========== */
#navbar {
    position: fixed;
    top: 36px; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85); /* Slightly more transparent */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 30px rgba(0, 11, 24, 0.05); /* Softer, wider shadow */
    height: 85px; /* Slightly taller for elegance */
    display: flex;
    align-items: center;
    transition: var(--transition);
}

nav.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
}

.logo-link { display: flex; align-items: center; flex-shrink: 0; }

.nav-logo {
    height: 56px; /* Slightly larger */
    width: auto;
    object-fit: contain;
    background: transparent; /* Remove the white background container */
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.02);
}

.nav-menu {
    display: flex;
    gap: 2.5rem; /* More breathing room */
    align-items: center;
}

.nav-link {
    font-weight: 600; /* Bolder text */
    font-size: 0.95rem;
    color: var(--gray-600);
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
    letter-spacing: 0.02em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--navy);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover { color: var(--navy); }
.nav-link:hover::after { width: 100%; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.nav-badge {
    height: 32px;
    width: auto;
    opacity: 0.85;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #25D366;
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(37,211,102,0.35);
}

.btn-whatsapp:hover {
    background: #1ebe5d;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37,211,102,0.45);
}

/* ========== TRUST BAR (Adjusted for Top Bar) ========== */
.trust-bar {
    margin-top: 116px; /* 36 top + 80 nav */
    background: var(--gray-100);
    color: var(--navy);
    padding: 0.75rem 0;
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: 1px solid var(--gray-200);
}

.trust-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.trust-text { opacity: 0.95; }

.cintillo-trust {
    height: 30px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

/* ========== HERO - PREMIUM DARK ========== */
.hero {
    position: relative;
    background: var(--navy-dark);
    min-height: 100vh; /* Full screen impact */
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 7rem 0 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E');
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: overlay;
}

.hero-bg-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.orb-1 {
    width: 800px; height: 800px;
    background: var(--navy);
    top: -300px; right: -200px;
    animation: float 10s ease-in-out infinite;
}

.orb-2 {
    width: 500px; height: 500px;
    background: var(--gold-dark);
    bottom: -200px; left: -100px;
    animation: float 14s ease-in-out infinite reverse;
    opacity: 0.15;
}

.orb-3 {
    width: 400px; height: 400px;
    background: #004c8c;
    top: 40%; left: 30%;
    animation: float 18s ease-in-out infinite 2s;
    opacity: 0.2;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-40px) scale(1.02); }
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-logo-integrated {
    width: 320px;
    height: auto;
    /* Increased contrast and brightness so dark blue parts are visible on blue background */
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.45)) 
            drop-shadow(0 0 45px rgba(212, 175, 55, 0.25))
            brightness(1.1) contrast(1.1);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 3.5rem;
}

.hero-logo-integrated:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 35px rgba(212, 175, 55, 0.65)) 
            drop-shadow(0 0 60px rgba(212, 175, 55, 0.35))
            brightness(1.2) contrast(1.1);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.badge-dot {
    width: 7px; height: 7px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(74,222,128,0.3);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(74,222,128,0.3); }
    50% { box-shadow: 0 0 0 8px rgba(74,222,128,0.1); }
}

.hero-title {
    font-size: clamp(3rem, 6vw, 4.8rem);
    font-weight: 900;
    color: white;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.brand-certi { color: var(--navy); }
.brand-gold { color: var(--gold); }

/* In dark-themed areas or hero, force white for Certi */
.hero-title .brand-certi, 
.page-hero-content .brand-certi,
.footer-logo-brand .brand-certi,
.logo-link.navbar-brand .brand-certi,
.navbar-brand .brand-certi { 
    color: var(--white); 
}

/* Navbar logo-link specific styling */
.logo-link.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
}

/* In standard sections or light headers, force navy */
header .brand-certi, 
.section-title .brand-certi, 
.philosophy-text .brand-certi { 
    color: var(--navy); 
}

.hero-title-green {
    display: block;
    color: #4ade80;
    position: relative;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    max-width: 520px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-subtitle strong { color: rgba(255,255,255,0.95); }

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.cta-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--navy-dark); /* Changed to dark for ultimate contrast with gold */
    padding: 1.1rem 2.5rem;
    border-radius: 999px; /* Pill shape for premium feel */
    font-weight: 800;
    font-size: 1.05rem;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(182, 141, 64, 0.4);
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-primary::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.cta-primary:hover::after {
    transform: rotate(45deg) translateX(100%);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(182, 141, 64, 0.6);
}

.cta-ghost {
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.3);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.cta-ghost:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.hero-labels {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-label-item {
    font-size: 0.9rem;
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-label-item::before {
    content: '';
    width: 8px; height: 8px;
    background: var(--gold);
    border-radius: 50%;
}

/* Hero Visual - Premium Glassmorphism */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 440px;
}

.hero-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(182, 141, 64, 0.4) 0%, transparent 60%);
    filter: blur(30px);
    border-radius: 50%;
    z-index: 0;
}

.hero-logo-card {
    background: rgba(255, 255, 255, 0.9); /* Opaque for readability */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
    border: 1px solid var(--gold-light);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo-big {
    width: 320px !important;
    height: auto !important;
    margin: 0 auto 2rem;
    object-fit: contain;
    filter: drop-shadow(0 0 35px rgba(212, 175, 55, 0.45));
}

.hero-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gold-dark);
    border: 1px solid var(--gold);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero-card-badge svg { color: var(--gold); }

.hero-card-text {
    font-size: 1.05rem;
    color: var(--navy); /* Deep color for readability on light glass */
    line-height: 1.6;
    font-weight: 500;
}
.hero-card-text strong { color: var(--navy-dark); font-weight: 800; }

/* ========== CERTIFICATIONS - REDESIGNED CARDS ========== */
.certs-section {
    padding: 8rem 0; /* More vertical space */
    background: var(--gray-50);
}

.section-header-block {
    text-align: center;
    margin-bottom: 4rem;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-dark);
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 1rem;
    position: relative;
}

.section-eyebrow::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 50%;
    transform: translateX(-50%);
    width: 40px; height: 2px;
    background: var(--gold);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--navy-dark);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
}

.cert-card {
    background: white;
    border-radius: var(--radius-xl); /* Softer corners */
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 26, 51, 0.05); /* Subtle border */
    position: relative;
    display: flex;
    flex-direction: column;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: var(--radius-xl);
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--gold) 0%, transparent 50%) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 10;
    pointer-events: none;
}

.cert-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.cert-card:hover::before {
    opacity: 1; /* Gold border reveals on hover */
}

.cert-card--featured {
    background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 100%);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-lg), 0 20px 40px rgba(0, 11, 24, 0.4);
}

.cert-card--featured h3,
.cert-card--featured p { color: rgba(255,255,255,0.95); }

.cert-card--featured .cert-list li { color: rgba(255,255,255,0.85); }

.cert-card--featured .meta-item {
    color: var(--white) !important;
    background: rgba(255,255,255,0.08) !important; /* Subtle dark glass background */
    border: 1px solid rgba(255,255,255,0.1);
}

.cert-card--featured .meta-icon {
    color: var(--gold-light);
}

.cert-featured-label {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--navy-dark);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(182, 141, 64, 0.3);
}

.cert-card-img {
    height: 240px; /* Taller image */
    background-size: cover;
    background-position: center;
    background-color: var(--gray-100);
    position: relative;
}

.cert-card-img::after {
    /* Gradient overlay to blend image with card */
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(to top, white, transparent);
}

.cert-card--featured .cert-card-img::after {
    background: linear-gradient(to top, var(--navy), transparent);
}

.cert-card-body {
    padding: 2.5rem 2rem 2rem; /* Adjusted padding */
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    z-index: 2;
}

.cert-top {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Spread code and tag */
    margin-bottom: 1.5rem;
}

.cert-code {
    background: var(--navy);
    color: var(--gold); /* Gold Edition: High contrast with brand accent */
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: 1px solid rgba(197, 160, 89, 0.3);
}

.cert-tag {
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(184,134,11,0.1);
    color: var(--gold);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(184,134,11,0.2);
}

.cert-tag--light {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.3);
}

.cert-card-body h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gold); /* Gold Edition: Majestic impact */
    margin-bottom: 0.75rem;
    line-height: 1.4;
    letter-spacing: -0.2px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05); /* Subtle lift */
}

.cert-card--featured .cert-card-body h3 {
    color: var(--gold-light); /* Better contrast on dark featured background */
    text-shadow: 0 4px 8px rgba(0,0,0,0.4);
    font-weight: 800;
}

.cert-card-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.65;
}

.cert-list {
    margin-bottom: 1.5rem;
    flex: 1;
}

.cert-list li {
    font-size: 0.88rem;
    color: var(--text-muted);
    padding: 0.35rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.cert-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 900;
}

.cert-card-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--navy) !important;
}

.meta-icon { font-size: 1rem; color: var(--gold); }

.cert-footer {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--gray-100);
}

.cert-card--featured .cert-footer {
    border-top-color: rgba(255,255,255,0.15);
}

.btn-cert {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: white;
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 15px rgba(0, 26, 51, 0.2);
}

.btn-cert:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 26, 51, 0.3);
}

.btn-cert--light {
    background: white;
    color: var(--navy);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-cert--light:hover {
    background: var(--gray-50);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* ========== PROCESO ========== */
.proceso-section {
    padding: 8rem 0; /* More breathing room */
    background: white;
    position: relative;
}

/* Subtle background pattern for premium feel */
.proceso-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--gray-200) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
    z-index: 0;
}

.proceso-section .nav-container {
    position: relative;
    z-index: 1;
}

.proceso-steps {
    display: flex;
    align-items: stretch; /* Make all steps same height */
    gap: 1.5rem; /* Replaced tight arrows with gaps */
    margin-top: 4rem;
    overflow-x: auto;
    padding-bottom: 2rem; /* Space for scrollbar if needed */
}

.paso {
    flex: 1;
    min-width: 250px;
    padding: 3rem 2rem;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 26, 51, 0.05);
    text-align: center;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.paso:hover {
    border-color: var(--gold-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.paso-num {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--navy-light); /* Solid color instead of outline for better legibility */
    opacity: 0.15;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 1rem;
    transition: var(--transition);
    line-height: 1;
}

.paso:hover .paso-num {
    color: var(--gold);
    opacity: 0.3;
}

.paso h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--navy-dark);
    margin-bottom: 1rem;
}

.paso p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: auto; /* Push to bottom if heights vary */
}

.paso-arrow {
    display: none; /* Hide old text arrows in favor of pure layout gap */
}

/* ========== LEAD CAPTURE SECTION ========== */
.lead-capture-section {
    padding: 8rem 0;
    background: var(--navy-dark); /* Dark section for contrast */
    position: relative;
    overflow: hidden;
}

.lead-capture-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(182, 141, 64, 0.15) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.lead-capture-card {
    background: rgba(255, 255, 255, 0.03); /* Glass effect */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

.lead-text .section-eyebrow {
    color: var(--gold);
}

.lead-text h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: white;
    margin-bottom: 1.5rem;
}

.lead-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.8;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.lead-form input,
.lead-form textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--navy-dark);
    transition: var(--transition);
    background: var(--gray-50);
}

.lead-form input:focus,
.lead-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: white;
    box-shadow: 0 0 0 4px rgba(182, 141, 64, 0.1);
}

.lead-form textarea { resize: vertical; min-height: 120px; }

.lead-btn {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--navy-dark);
    padding: 1.2rem;
    border: none;
    border-radius: 999px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(182, 141, 64, 0.3);
    margin-top: 0.5rem;
}

.lead-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(182, 141, 64, 0.5);
}

/* ========== FOOTER ========== */
.main-footer { background: var(--navy-dark); color: white; }

.footer-compliance {
    background: white;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.footer-comp-inner {
    display: flex;
    justify-content: center;
}

.cintillo-footer {
    max-width: 700px;
    width: 100%;
    height: auto;
}

.footer-main { padding: 3rem 0 0; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    max-width: 280px;
}

.footer-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    background: white;
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    margin-bottom: 1.25rem;
}

.footer-links h5 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 1rem;
}

.footer-links ul { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-links a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

.footer-badge {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.4;
}

/* ========== WHATSAPP FLOAT ========== */
/* ========== SPECTACULAR ANIMATIONS ========== */
@keyframes reveal {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glow-pulse {
    0% { box-shadow: 0 0 5px rgba(182, 141, 64, 0.2); }
    50% { box-shadow: 0 0 20px rgba(182, 141, 64, 0.5); }
    100% { box-shadow: 0 0 5px rgba(182, 141, 64, 0.2); }
}

.reveal {
    opacity: 1; /* Default to visible if animation fails */
}

.reveal.reveal-active {
    animation: reveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Ensure no shadows/opacity issues in featured card */
.cert-card--featured {
    background: #002B49 !important; /* Fallback navy */
    background: linear-gradient(145deg, #002b49, #001625) !important;
    display: flex !important;
    flex-direction: column !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ========== PREMIUM SECTION OVERHAUL ========== */
.hero {
    background: radial-gradient(circle at top right, #003a63, #001a2c),
                radial-gradient(circle at bottom left, #002b49, #000c14);
    min-height: 100vh;
}

.hero-logo-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.hero-logo-card:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

/* Fix Visibility: Scoped contrast controls */
.section-subtitle {
    color: var(--text-muted);
}

.hero .hero-subtitle, 
.hero .stat-label, 
.hero .section-subtitle,
.page-hero .hero-subtitle,
.page-hero .section-subtitle,
.cert-card--featured .section-subtitle,
.cert-card--featured p,
.cert-card--featured .cert-list li {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.cert-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(182, 141, 64, 0.1);
}

.cert-card--featured {
    background: linear-gradient(145deg, #002b49, #001625);
    border: 2px solid var(--gold);
    animation: glow-pulse 3s infinite;
}

.cert-card--featured h3 {
    color: white !important;
}

.cert-card--featured p,
.cert-card--featured .cert-list li {
    color: rgba(255, 255, 255, 0.9) !important;
}

.cert-card--featured .meta-item {
    color: white !important;
}

.cert-card--featured .cert-card-meta {
    background: white !important;
    border: 1px solid var(--gold);
}

.cert-card--featured .meta-item {
    color: var(--navy) !important;
}

.cert-card--featured .meta-icon {
    color: var(--gold);
}

.paso {
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Interactive CTAs */
.cta-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none;
    position: relative;
    overflow: hidden;
}

.cta-primary::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(rgba(255,255,255,0.2), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
}

.cta-primary:hover::after {
    left: 100%;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-subtitle { margin: 0 auto 2.5rem; }
    .hero-ctas { justify-content: center; }
    .hero-labels { justify-content: center; }
    .hero-visual { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .trust-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
    .proceso-steps { flex-direction: column; gap: 1rem; }
    .paso-arrow { transform: rotate(90deg); align-self: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ========== PREMIUM ANIMATIONS ========== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* ========== AUTHORITY SECTION ========== */
.authority-section {
    padding: 5rem 0;
    background: var(--navy-dark);
    color: white;
    text-align: center;
}

.authority-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.auth-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 150px;
}

.auth-badge img {
    height: 60px;
    width: auto;
    filter: none; /* Remove filter for testing visibility */
    opacity: 1;
    transition: var(--transition);
}

.auth-badge:hover img { opacity: 1; transform: scale(1.1); }

.auth-badge span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

/* ========== LEAD CAPTURE ========== */
.lead-capture-section {
    padding: 6rem 0;
    background: var(--gray-100);
}

.lead-capture-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 4rem;
    box-shadow: var(--shadow-xl);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.lead-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--navy);
}

.lead-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lead-form input, .lead-form textarea {
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
}

.lead-form input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 4px var(--gold-light); }

.lead-btn {
    background: var(--navy);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.lead-btn:hover { background: var(--navy-light); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 26, 51, 0.2); }

/* Form loading state */
.lead-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
    .lead-capture-card { grid-template-columns: 1fr; padding: 2.5rem; }
}