/* ==========================================================================
   TRÁMITEK GLOBAL ADVISORY - ARCHIVO CSS MODERNO Y ASIMÉTRICO (site.css)
   Paleta de colores exacta: #f5dd9d, #bcc499, #92a68a, #7b8f8a, #506266
   ========================================================================== */

:root {
    --col-sand: #f5dd9d;
    --col-sage-light: #bcc499;
    --col-sage: #92a68a;
    --col-slate: #7b8f8a;
    --col-dark: #506266;
    
    --bg-primary: #384548;
    --bg-surface: #425155;
    --bg-card: rgba(82, 100, 104, 0.45);
    
    --text-main: #f9fbfb;
    --text-muted: #d0d7d6;
    
    --accent-main: #f5dd9d;
    --accent-hover: #bcc499;
    
    --border-color: rgba(245, 221, 157, 0.15);
    --font-heading: 'Cabinet Grotesk', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body.tramitek-body-index {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

/* LOADER DE 0.5 SEGUNDOS */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #2b3538;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(245, 221, 157, 0.2);
    border-top-color: var(--col-sand);
    border-radius: 50%;
    animation: spinLoader 0.8s linear infinite;
}

@keyframes spinLoader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* AVISO LEGAL TOP BAR */
.ad-disclaimer-top {
    background-color: #263033;
    border-bottom: 1px solid var(--border-color);
    color: var(--col-sand);
    font-size: 0.8rem;
    padding: 10px 20px;
    text-align: center;
    line-height: 1.5;
}

.ad-disclaimer-top strong {
    color: #ffffff;
    font-weight: 700;
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-editorial {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* HEADER EDITORIAL CON ANIMACIÓN DE LISTA ESCALONADA Y BRINCO EN HOVER */
.site-header-editorial {
    background: rgba(56, 69, 72, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

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

.logo-mark {
    background: var(--col-sand);
    color: var(--bg-primary);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-sub {
    color: var(--col-sage-light);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Animación de lista escalonada para el navbar */
.staggered-nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.staggered-nav-list li {
    opacity: 0;
    animation: staggeredFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--i) * 0.1s);
}

@keyframes staggeredFadeIn {
    0% { opacity: 0; transform: translateY(-15px); }
    100% { opacity: 1; transform: translateY(0); }
}

.editorial-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-block;
    transition: var(--transition-smooth);
}

/* Efecto brinco en hover para el navbar */
.nav-bounce {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.nav-bounce:hover,
.editorial-nav a.active {
    color: var(--col-sand);
    transform: translateY(-4px);
}

.btn-editorial-outline {
    border: 1px solid var(--col-sand);
    color: var(--col-sand);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    display: inline-block;
}

.btn-editorial-outline:hover {
    background: var(--col-sand);
    color: var(--bg-primary);
}

/* BOTONES CON RETROALIMENTACIÓN DE CLIC (PATRÓN DE ALTERNANCIA) */
.toggle-btn-feedback {
    position: relative;
    overflow: hidden;
    transition: transform 0.15s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.toggle-btn-feedback:active {
    transform: scale(0.96);
}

.toggle-btn-feedback.toggled-state {
    background-color: var(--col-sage) !important;
    border-color: var(--col-sand) !important;
    color: #ffffff !important;
}

/* HERO MONUMENTAL FLUIDO CON TEXTO DE ANCHO COMPLETO Y DEGRADADO DINÁMICO */
.hero-monumental-fluid {
    padding: 100px 30px 140px 30px;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-content-fluid {
    max-width: 1050px;
    margin: 0 auto;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(146, 166, 138, 0.2);
    color: var(--col-sand);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 28px;
    border: 1px solid rgba(146, 166, 138, 0.3);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--col-sand);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(245, 221, 157, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 221, 157, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(245, 221, 157, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 221, 157, 0); }
}

/* Título de ancho completo con degradado animado usando la paleta */
.hero-title-fluid {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 30px;
    width: 100%;
    background: linear-gradient(270deg, var(--col-sand), var(--col-sage-light), var(--col-sage), var(--col-slate));
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShiftText 10s ease infinite;
}

@keyframes gradientShiftText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-description-fluid {
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 45px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions-fluid {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
}

.btn-primary-solid {
    background: var(--col-sand);
    color: var(--bg-primary);
    padding: 16px 36px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: inline-block;
}

.btn-primary-solid:hover {
    background: var(--col-sage-light);
    transform: translateY(-3px);
}

.btn-secondary-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.btn-secondary-link:hover {
    color: var(--col-sand);
}

/* BANNER ASIMÉTRICO CON FLOTACIÓN */
.hero-asymmetric-banner {
    width: 100%;
    max-width: 1240px;
    height: 380px;
    border-radius: 20px;
    background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.glass-card-banner {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(66, 81, 85, 0.75);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    padding: 24px 32px;
    border-radius: 14px;
    max-width: 340px;
}

.floating-element {
    animation: floatingAnim 4s ease-in-out infinite;
}

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

.fc-title {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--col-sand);
    margin-bottom: 8px;
}

.fc-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* TARJETAS GLASSMORPHIC CON BRILLO AL PASAR EL CURSOR */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.card-glass-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 221, 157, 0.12), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
    transition: none;
}

.glass-card:hover .card-glass-glow {
    left: 150%;
    transition: left 0.8s ease-in-out;
}

.glass-card:hover {
    border-color: var(--col-sand);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* PILARES ASIMÉTRICOS */
.pillars-asymmetric-section {
    padding: 120px 0;
    background-color: var(--bg-surface);
}

.section-header-centered {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 80px auto;
}

.subheading-tag {
    display: inline-block;
    color: var(--col-sand);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-header-centered h2 {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.section-header-centered p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.asymmetric-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
}

.pillar-card-modern.shift-down {
    transform: translateY(40px);
}

.pillar-card-modern.shift-down:hover {
    transform: translateY(34px);
}

.card-img-wrap {
    height: 220px;
    overflow: hidden;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.glass-card:hover .card-img-wrap img {
    transform: scale(1.06);
}

.card-body-content {
    padding: 30px;
    position: relative;
}

.card-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(245, 221, 157, 0.2);
    position: absolute;
    top: 20px;
    right: 30px;
}

.card-body-content h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.card-body-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.card-link {
    color: var(--col-sand);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    transition: var(--transition-smooth);
}

.card-link:hover {
    color: #ffffff;
}

/* SECCIÓN 3: DIAGNÓSTICO */
.diagnostic-editorial-section {
    padding: 130px 0;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.split-diagnostic {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 70px;
    align-items: center;
}

.diagnostic-image-stack {
    position: relative;
    height: 480px;
}

.diag-img-main {
    width: 85%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.diag-img-floating {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    height: 250px;
    object-fit: cover;
    border-radius: 14px;
    border: 2px solid var(--bg-primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.diagnostic-content-block h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.lead-text {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.7;
}

.diagnostic-content-block p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.diagnostic-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-box {
    padding: 24px;
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--col-sand);
    margin-bottom: 6px;
}

.stat-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* SECCIÓN 4: ARQUITECTURA DE SEGURIDAD */
.security-architecture-section {
    padding: 120px 0;
    background-color: var(--bg-surface);
}

.security-grid-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.security-card {
    padding: 40px 30px;
}

.sec-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.security-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.security-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* SECCIÓN 5: PASAPORTE MEXICANO */
.passport-focus-section {
    padding: 120px 0;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.passport-wrapper {
    padding: 60px;
}

.passport-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.passport-text h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.passport-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.passport-checklist {
    list-style: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
}

.passport-checklist li {
    position: relative;
    padding-left: 24px;
}

.passport-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--col-sand);
    font-weight: 800;
}

.passport-img-box {
    border-radius: 12px;
    overflow: hidden;
    height: 380px;
}

.passport-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* SECCIÓN 6: ROADMAP */
.roadmap-editorial-section {
    padding: 120px 0;
    background-color: var(--bg-surface);
}

.roadmap-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.roadmap-step {
    padding: 35px 25px;
}

.step-num {
    display: inline-block;
    background: rgba(245, 221, 157, 0.15);
    color: var(--col-sand);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.roadmap-step h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.roadmap-step p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* SECCIÓN 7: TESTIMONIOS */
.testimonials-editorial-section {
    padding: 120px 0;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.testimonials-grid-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.testimonial-card {
    padding: 40px;
}

.testi-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 30px;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testi-author img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--col-sand);
}

.author-name {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
}

.author-title {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* SECCIÓN 8: RECURSOS */
.resources-editorial-section {
    padding: 120px 0;
    background-color: var(--bg-surface);
}

.resources-grid-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.resource-card {
    display: flex;
    flex-direction: column;
}

.res-img {
    height: 220px;
    overflow: hidden;
}

.res-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.resource-card:hover .res-img img {
    transform: scale(1.05);
}

.res-content {
    padding: 30px;
}

.res-tag {
    display: inline-block;
    color: var(--col-sand);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.resource-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.resource-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* SECCIÓN 9: AUTORIDAD */
.authority-editorial-section {
    padding: 130px 0;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.authority-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.authority-text-block h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.authority-image-block {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.authority-image-block img {
    width: 100%;
    height: auto;
    display: block;
}

.floating-badge-dark {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
}

/* FOOTER EDITORIAL */
.site-footer-editorial {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px 0;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-disclaimer-text {
    font-size: 0.8rem;
    line-height: 1.6;
    padding: 18px;
    border-radius: 8px;
    border-left: 3px solid var(--col-sand);
}

.footer-col-links h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer-col-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

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

.footer-bottom-bar {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* RESPONSIVIDAD */
@media (max-width: 1024px) {
    .hero-title-fluid {
        font-size: 2.8rem;
    }
    .asymmetric-grid-layout, .security-grid-cards, .roadmap-grid-modern, .testimonials-grid-modern, .resources-grid-modern, .split-diagnostic, .passport-grid, .authority-split, .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .pillar-card-modern.shift-down {
        transform: none;
    }
    .staggered-nav-list {
        display: none;
    }
}