/* ==========================================================================
   AVYORA.WEBSITE // SISTEMA DE DISEÑO EDITORIAL INDUSTRIAL PREMIUM
   ========================================================================== */

:root {
    --bg-deep: #05070a;
    --bg-surface: #0e121b;
    --bg-card: #141a26;
    --neon-amber: #f59e0b;
    --amber-glow: rgba(245, 158, 11, 0.18);
    --amber-border: rgba(245, 158, 11, 0.25);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dimmed: #6b7280;
    --font-heading: 'Cabinet Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-fluid: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --cursor-size: 24px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Cursor Personalizado Elegante */
.custom-cursor {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: var(--cursor-size);
    height: var(--cursor-size);
    border: 2px solid var(--neon-amber);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
    z-index: 99999;
    mix-blend-mode: difference;
    display: none;
}

@media (min-width: 1024px) {
    .custom-cursor { display: block; }
    body { cursor: default; }
    a, button, input { cursor: none; }
}

/* Pantalla de Carga Elegante (0.5s) */
#page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-deep);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-brand {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: var(--neon-amber);
    margin-bottom: 1rem;
    animation: pulseGlow 1s infinite alternate;
}

.loader-bar {
    width: 150px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 100%;
    background: var(--neon-amber);
    animation: loadProgress 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes loadProgress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0%); }
}

@keyframes pulseGlow {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Aviso Legal Superior de Google Ads */
.compliance-banner {
    background: linear-gradient(90deg, #121620, #1e2536);
    border-bottom: 1px solid var(--amber-border);
    color: var(--text-main);
    padding: 0.6rem 2rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: sticky;
    top: 0;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.compliance-banner span {
    color: var(--neon-amber);
    margin-right: 0.5rem;
}

/* Navbar Dinámica Flotante */
.premium-navbar {
    position: fixed;
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1280px;
    background: rgba(14, 18, 27, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid var(--amber-border);
    border-radius: 16px;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    transition: var(--transition-fluid);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--neon-amber);
    text-decoration: none;
    letter-spacing: 0.15em;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition-fluid);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--neon-amber);
    background: var(--amber-glow);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
}

/* Contenedor Maestro Editorial */
.master-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 8rem 2rem 6rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 10rem;
}

/* ================= SECCIÓN 01: HERO MONUMENTAL ================= */
.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
    position: relative;
}

.hero-tag {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    color: var(--neon-amber);
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    display: inline-block;
    background: var(--amber-glow);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    border: 1px solid var(--amber-border);
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6.5vw, 5.8rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.8rem;
    text-transform: uppercase;
}

.hero-content h1 span {
    color: var(--neon-amber);
    display: inline-block;
    position: relative;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 620px;
    line-height: 1.8;
}

.hero-cta-group {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn-primary {
    background: var(--neon-amber);
    color: var(--bg-deep);
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem 2.2rem;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition-fluid);
    border: none;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.5);
    background: #fcd34d;
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem 2.2rem;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition-fluid);
    border: 1px solid var(--amber-border);
}

.btn-secondary:hover {
    border-color: var(--neon-amber);
    background: var(--amber-glow);
}

.hero-visual-frame {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--amber-border);
    box-shadow: 0 40px 80px rgba(0,0,0,0.7);
    transform: perspective(1000px) rotateY(-5deg) rotateX(3deg);
    transition: var(--transition-fluid);
}

.hero-visual-frame:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-visual-frame img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    filter: contrast(110%) saturate(90%);
}

/* ================= SECCIÓN 02: COMPOSICIÓN EDITORIAL ASIMÉTRICA ================= */
.editorial-asym {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--amber-border);
    border-radius: 28px;
    padding: 5rem;
    position: relative;
    overflow: hidden;
}

.editorial-asym::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 250px; height: 250px;
    background: var(--amber-glow);
    filter: blur(80px);
    border-radius: 50%;
}

.asym-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.8rem;
}

.asym-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.asym-grid-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.asym-img-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--amber-border);
    height: 280px;
    position: relative;
}

.asym-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-fluid);
}

.asym-img-card:hover img {
    transform: scale(1.08);
}

.asym-img-card:nth-child(2) {
    transform: translateY(30px);
}

/* ================= SECCIÓN 03: INFORMACIÓN ALREDEDOR DE ELEMENTO PRINCIPAL ================= */
.orbit-section {
    text-align: center;
}

.section-header-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4.5vw, 3.8rem);
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.orbit-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.orbit-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.orbit-node {
    background: var(--bg-card);
    border: 1px solid var(--amber-border);
    border-radius: 16px;
    padding: 2.2rem;
    text-align: left;
    transition: var(--transition-fluid);
    position: relative;
}

.orbit-node:hover {
    border-color: var(--neon-amber);
    transform: translateX(6px);
    background: #182030;
}

.orbit-node h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.orbit-node p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.orbit-center-img {
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid var(--neon-amber);
    box-shadow: 0 0 50px rgba(245, 158, 11, 0.2);
    height: 520px;
}

.orbit-center-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================= SECCIÓN 04: ESTADÍSTICAS CON NÚMEROS GRANDES ================= */
.stats-section {
    background: linear-gradient(135deg, var(--bg-surface), var(--bg-card));
    border: 1px solid var(--amber-border);
    border-radius: 28px;
    padding: 5rem 4rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    text-align: center;
    position: relative;
}

.stat-item {
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1.5rem;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--amber-border);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 900;
    color: var(--neon-amber);
    line-height: 1;
    margin-bottom: 0.8rem;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ================= SECCIÓN 05: GALERÍA O COMPOSICIÓN DE IMÁGENES ================= */
.gallery-composition {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    grid-template-rows: 320px 320px;
    gap: 1.5rem;
}

.gallery-box {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--amber-border);
    position: relative;
}

.gallery-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-fluid);
}

.gallery-box:hover img {
    transform: scale(1.05);
}

.gallery-box.b1 { grid-column: 1 / 2; grid-row: 1 / 3; }
.gallery-box.b2 { grid-column: 2 / 3; grid-row: 1 / 2; }
.gallery-box.b3 { grid-column: 2 / 3; grid-row: 2 / 3; }
.gallery-box.b4 { grid-column: 3 / 4; grid-row: 1 / 3; }

.gallery-overlay-text {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(5,7,10,0.9), transparent);
    z-index: 2;
}

.gallery-overlay-text h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}

.gallery-overlay-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ================= SECCIÓN 06: TIMELINE O PROCESO INTERACTIVO ================= */
.timeline-section {
    background: var(--bg-surface);
    border: 1px solid var(--amber-border);
    border-radius: 28px;
    padding: 5rem;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    margin-top: 4rem;
}

.timeline-grid::before {
    content: '';
    position: absolute;
    top: 40px; left: 0; width: 100%;
    height: 2px;
    background: var(--amber-border);
    z-index: 1;
}

.timeline-step {
    position: relative;
    z-index: 2;
}

.timeline-bullet {
    width: 80px; height: 80px;
    background: var(--bg-deep);
    border: 2px solid var(--neon-amber);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--neon-amber);
    margin-bottom: 2rem;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.2);
    transition: var(--transition-fluid);
}

.timeline-step:hover .timeline-bullet {
    background: var(--neon-amber);
    color: var(--bg-deep);
    transform: scale(1.1);
}

.timeline-step h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.timeline-step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ================= SECCIÓN 07: CONTENIDO DESPLEGABLE (ACORDEÓN FAQ) ================= */
.accordion-section {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.accordion-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}

.accordion-item {
    background: var(--bg-surface);
    border: 1px solid var(--amber-border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-fluid);
}

.accordion-item.active {
    border-color: var(--neon-amber);
    background: #131a28;
}

.accordion-header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}

.accordion-icon {
    font-size: 1.5rem;
    color: var(--neon-amber);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 2rem;
    color: var(--text-muted);
    font-size: 1rem;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
}

.accordion-item.active .accordion-body {
    max-height: 300px;
    padding: 0 2rem 2rem 2rem;
}

/* ================= SECCIÓN 08: SCROLL HORIZONTAL / BLOQUES DINÁMICOS ================= */
.scroll-horizontal-wrapper {
    background: var(--bg-surface);
    border: 1px solid var(--amber-border);
    border-radius: 28px;
    padding: 5rem;
}

.sh-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.sh-card {
    background: var(--bg-card);
    border: 1px solid var(--amber-border);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    transition: var(--transition-fluid);
}

.sh-card:hover {
    transform: translateY(-8px);
    border-color: var(--neon-amber);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15);
}

.sh-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: rgba(245, 158, 11, 0.2);
    margin-bottom: 1.5rem;
}

.sh-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.sh-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ================= SECCIÓN 09: INFORMACIÓN DENSA EDITORIAL ================= */
.dense-editorial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.dense-text-content h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.dense-text-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.dense-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 2rem;
}

.dense-features-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

.dense-features-list li span {
    color: var(--neon-amber);
    font-weight: 900;
    font-size: 1.2rem;
}

.dense-image-box {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--amber-border);
    height: 480px;
}

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

/* ================= SECCIÓN 10: CTA VISUALMENTE IMPACTANTE ================= */
.cta-impact-section {
    background: linear-gradient(135deg, #182030, #0e121b);
    border: 2px solid var(--neon-amber);
    border-radius: 32px;
    padding: 6rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(245, 158, 11, 0.2);
}

.cta-impact-section h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.cta-impact-section p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 750px;
    margin: 0 auto 3rem auto;
}

/* ================= FOOTER CORPORATIVO PREMIUM ================= */
.premium-footer {
    border-top: 1px solid var(--amber-border);
    padding-top: 5rem;
    margin-top: 4rem;
}

.footer-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand-col h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--neon-amber);
    margin-bottom: 1.2rem;
    letter-spacing: 0.1em;
}

.footer-brand-col p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 420px;
    line-height: 1.8;
}

.footer-links-column h5 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-links-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links-column ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-fluid);
}

.footer-links-column ul li a:hover {
    color: var(--neon-amber);
    padding-left: 5px;
}

.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2.5rem;
    font-size: 0.85rem;
    color: var(--text-dimmed);
}

/* Responsive Avanzado */
@media (max-width: 1200px) {
    .hero-section, .editorial-asym, .orbit-layout, .stats-section, .timeline-grid, .sh-container, .dense-editorial-grid, .footer-grid-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .orbit-center-img { display: none; }
    .stats-section { grid-template-columns: repeat(2, 1fr); }
    .stats-section .stat-item::after { display: none; }
    .gallery-composition {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .gallery-box.b1, .gallery-box.b2, .gallery-box.b3, .gallery-box.b4 {
        grid-column: 1; grid-row: auto; height: 350px;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-toggle { display: block; }
    .master-container { padding: 6rem 1rem 4rem 1rem; }
    .editorial-asym, .timeline-section, .scroll-horizontal-wrapper, .cta-impact-section { padding: 3rem 1.5rem; }
}