/* ==========================================================================
   ASERCIÓN GLOBALIS - HOJA DE ESTILOS MODERNA Y DINÁMICA (/css/site.css)
   Dominio: rutainternacional.icu
   Paleta: Blanco (#FFFFFF), Beige (#CD9C8A), Naranja (#FF5100), Grafito Ejecutivo (#1A1A1A)
   ========================================================================== */

:root {
    --bg-primary: #FFFFFF;
    --bg-surface: #F9F9F8;
    --bg-dark: #1A1A1A;
    --text-main: #1A1A1A;
    --text-muted: #666666;
    --text-light: #FFFFFF;
    --accent-beige: #CD9C8A;
    --accent-orange: #FF5100;
    --accent-gradient: linear-gradient(135deg, #FF5100 0%, #CD9C8A 100%);
    --border-color: rgba(205, 156, 138, 0.2);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Outfit', 'Playfair Display', Georgia, sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* --- LOADER INICIAL EXCLUSIVO PARA INDEX.HTML --- */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOutLoader 0.5s ease 0.5s forwards;
    pointer-events: none;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(205, 156, 138, 0.2);
    border-top: 4px solid var(--accent-orange);
    border-radius: 50%;
    animation: spinLoader 0.6s linear infinite;
}

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

@keyframes fadeOutLoader {
    0% { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; }
}

/* --- AVISO LEGAL SUPERIOR GOOGLE ADS --- */
.disclaimer-banner {
    background: var(--bg-dark);
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 10px 20px;
    text-align: center;
    text-transform: uppercase;
    border-bottom: 2px solid var(--accent-orange);
}

.disclaimer-banner span {
    font-weight: 700;
    color: var(--accent-beige);
}

/* --- NAVEGACIÓN MODERNA CON ANIMACIÓN Y AGRANDAMIENTO EN HOVER --- */
header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 7%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-container .brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo-container .domain-tag {
    font-size: 0.7rem;
    color: var(--accent-orange);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

nav a {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    display: inline-block;
    transition: var(--transition);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-orange);
    transition: width 0.3s ease;
}

/* Se agranda, cambia de color y se subraya al pasar el cursor */
nav a:hover, nav a.active {
    color: var(--accent-orange);
    transform: scale(1.15);
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--accent-orange) !important;
    color: var(--text-light) !important;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--bg-dark) !important;
    transform: scale(1.1) translateY(-2px);
}

/* --- HERO CENTRALIZADO DE ANCHO COMPLETO --- */
.hero-monumental-centered {
    text-align: center;
    padding: 110px 10%;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.hero-monumental-centered h1 {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 25px;
    max-width: 1050px;
}

/* Efecto de Texto Animado */
.animated-title-gradient {
    background: linear-gradient(270deg, var(--text-main), var(--accent-orange), var(--accent-beige), var(--text-main));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradientMotion 6s ease infinite;
}

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

.hero-monumental-centered p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 800px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
}

/* Botones con retroalimentación y patrón compartido */
.btn-interactive {
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary-custom {
    background: var(--accent-orange);
    color: var(--text-light);
    box-shadow: 0 10px 25px rgba(255, 81, 0, 0.25);
}

.btn-primary-custom:hover, .btn-primary-custom.active-toggle {
    background: var(--bg-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--accent-beige);
    color: var(--text-main);
}

.btn-outline-custom:hover, .btn-outline-custom.active-toggle {
    background: var(--accent-beige);
    color: var(--text-light);
    border-color: var(--accent-beige);
    transform: translateY(-3px) scale(1.02);
}

.hero-gallery-wide {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
    margin-top: 20px;
}

.hero-gallery-wide img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.hero-gallery-wide img:hover {
    transform: scale(1.03);
}

/* --- BLOQUES DE LECTURA EDITORIAL CON BRILLO GLASSMORPHIC --- */
.editorial-section {
    padding: 100px 7%;
    background-color: var(--bg-surface);
}

.section-header-left {
    max-width: 750px;
    margin-bottom: 60px;
}

.section-header-left h2 {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    color: var(--text-main);
    margin-bottom: 15px;
}

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

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

/* Brillo de mosaico glassmorphic al pasar el cursor */
.editorial-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.editorial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: 0.6s ease;
}

.editorial-card:hover::before {
    left: 100%;
}

.editorial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(205, 156, 138, 0.25);
    border-color: var(--accent-orange);
}

.editorial-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

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

.editorial-card-content {
    padding: 30px;
}

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

.editorial-card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* --- SECCIONES ADICIONALES DE ALTA DENSIDAD INFORMATIVA --- */
.dense-info-section {
    padding: 90px 7%;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.dense-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.dense-grid-2.reverse {
    direction: rtl;
}

.dense-grid-2.reverse > * {
    direction: ltr;
}

.dense-content h2 {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.dense-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.dense-image-container img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.dense-image-container:hover img {
    transform: scale(1.06);
}

/* --- FOOTER ESTRUCTURAL --- */
footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 80px 7% 30px 7%;
}

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

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.footer-col p, .footer-col ul {
    color: #AAAAAA;
    font-size: 0.95rem;
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #AAAAAA;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: #888888;
    font-size: 0.85rem;
}

/* --- RESPONSIVE --- */
@media(max-width: 968px) {
    .editorial-grid-3, .dense-grid-2, .footer-grid, .hero-gallery-wide {
        grid-template-columns: 1fr;
    }
    .hero-monumental-centered {
        padding: 60px 5%;
    }
    .hero-monumental-centered h1 {
        font-size: 2.6rem;
    }
    nav ul {
        display: none;
    }
}