/* ==========================================
   CSS B2B CORPORATIVO
   Paleta: #e18a2e (Naranja) · #fafafa (Light) · #fde2c5 (Peach) · #894029 (Rust) · #fed744 (Yellow)
   Tipografía: Source Sans 3 — H2 fijo a 28px
   ========================================== */

:root {
    --orange:       #e18a2e;
    --light:        #fafafa;
    --peach:        #fde2c5;
    --peach-light:  #fff4e6;
    --rust:         #894029;
    --yellow:       #fed744;
    --rust-dk:      #6b3020;
    --font:         'Source Sans 3', sans-serif;
    
    /* Geometría corporativa (líneas rectas, curvas sutiles) */
    --radius-sm:    2px;
    --radius:       4px;
    --transition:   0.3s ease;
    
    /* Sombras muy tenues, predominan las líneas */
    --shadow-soft:  0 20px 40px rgba(137,64,41,0.05);
}

/* ==================== RESET ==================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: "Source Sans 3", sans-serif !important;
    font-size: 16px;
    line-height: 1.4;
    color: var(--rust);
    background: var(--light);
    -webkit-font-smoothing: antialiased;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4 { 
    font-weight: 600; 
    line-height: 1.2; 
    margin-bottom: 0.8rem;
    color: var(--rust);
}
h1 { 
    font-size: clamp(2rem, 4vw, 3rem); 
    font-weight: 300; /* Tipografía delgada para elegancia */
    letter-spacing: -0.02em;
}
h1 .hero-highlight { font-weight: 600; }

h2 { font-size: 28px; } /* Según requerimiento exacto */
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1rem; color: rgba(137,64,41,0.85); }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

/* ==================== UTILS & ICONS ==================== */
.icon-xs { width: 18px; height: 18px; object-fit: contain; vertical-align: middle; }
.icon-sm { width: 24px; height: 24px; object-fit: contain; vertical-align: middle; flex-shrink:0; }
.icon-md { width: 28px; height: 28px; object-fit: contain; vertical-align: middle; flex-shrink:0; }
.ml-s   { margin-left: 0.5rem; }

.text-light { color: #ffffff !important; }
.text-yellow { color: var(--yellow) !important; }
.text-orange { color: var(--orange) !important; }
.text-light-dim { color: rgba(255,255,255,0.7) !important; }
.bg-rust  { background-color: var(--rust); }
.bg-light { background-color: var(--light); }
.bg-peach-light { background-color: var(--peach-light); }

.mb-mid { margin-bottom: 1.5rem; }
.mt-large { margin-top: 2rem; }
.pl-ext { padding-left: 3rem; }
.pr-ext { padding-right: 3rem; }
.px-ext { padding: 0 3rem; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 2rem; }
.section   { padding: 6rem 0; }

/* Layouts */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.align-center { align-items: center; }
.pt-mid { padding-top: 3rem; }

/* Labels y encabezados de sección */
.eyebrow-text {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--orange);
    margin-bottom: 0.5rem;
}
.section-header-left {
    max-width: 600px;
    border-bottom: 1px solid rgba(137,64,41,0.15);
    padding-bottom: 1.5rem;
}
.section-header-center {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.section-lead { font-size: 1.1rem; margin-top: 1rem; }
.section-lead-center { font-size: 1.05rem; margin-top: 1rem; }

/* Botones */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--rust);
    color: #ffffff;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: 1px solid var(--rust);
    transition: var(--transition);
}
.btn-primary:hover {
    background: #ffffff;
    color: var(--rust);
}
.btn-primary:hover img {
    filter: invert(28%) sepia(21%) saturate(2333%) hue-rotate(345deg) brightness(85%) contrast(85%); /* Convierte blanco a Rust */
}

/* ==================== ANIMATIONS ==================== */
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-animate="fade-left"] { transform: translateX(30px); }
[data-animate="fade-right"] { transform: translateX(-30px); }
[data-animate].is-visible { opacity: 1 !important; transform: none !important; }

/* ==================== HERO B2B ==================== */
.hero {
    background-color: var(--rust);
    padding: 1rem 0 4rem; /* Altura controlada, no gigante */
    border-bottom: 4px solid var(--orange);
}
.hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 999px; /* Única excepción curva por convención de insignias */
    margin-bottom: 1.5rem;
}

.hero-sub {
    font-size: 1rem;
    font-weight: 400;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.hero-text-content {
    border-left: 2px solid rgba(255,255,255,0.2);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}
.hero-text-content p {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.hero-details {
    display: flex;
    gap: 2.5rem;
    background: rgba(0,0,0,0.15);
    padding: 1.2rem 1.5rem;
    border-radius: var(--radius-sm);
    width: fit-content;
}
.detail-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.detail-item .detail-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}
.detail-item strong {
    color: #ffffff;
    font-size: 1rem;
}

.editorial-image-frame {
    position: relative;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
}
.hero-photo {
    width: 100%;
    display: block;
    filter: grayscale(20%) contrast(1.1);
}

/* ==================== CIFRAS (STATS) ==================== */
.stats-bar {
    background: #ffffff;
    border-bottom: 1px solid rgba(137,64,41,0.1);
    padding: 2.5rem 0;
}
.stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.stat-item {
    position: relative;
}
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 10%;
    height: 80%;
    width: 1px;
    background: rgba(137,64,41,0.15);
}
.stat-num-box strong {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--orange);
    line-height: 1;
}
.stat-num-box span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--rust);
    display: block;
}
.stat-desc {
    font-size: 13px;
    margin-top: 0.5rem;
    color: rgba(137,64,41,0.6);
}

/* ==================== BLOQUES EDITORIALES (INFO) ==================== */
.editorial-block {
    margin-bottom: 2.5rem;
}
.block-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}
.block-header h3 { margin: 0; color: var(--rust); font-weight: 600; }

.tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 13px;
    padding: 0.3rem 0.8rem;
    background: var(--light);
    border: 1px solid rgba(137,64,41,0.2);
    border-radius: var(--radius-sm);
    color: var(--rust);
}

.clean-list { list-style: none; margin-top: 1rem; }
.clean-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(137,64,41,0.1);
    font-size: 0.95rem;
}
.clean-list li:last-child { border-bottom: none; }

.corporate-figure {
    position: relative;
    box-shadow: var(--shadow-soft);
}
.full-img {
    width: 100%;
    display: block;
    filter: grayscale(15%);
}
.corporate-figure figcaption {
    background: var(--rust);
    color: #ffffff;
    font-size: 13px;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.no-caption { padding: 1rem; background: #ffffff; border: 1px solid rgba(137,64,41,0.1); }
.aspect-square { aspect-ratio: 1/1; object-fit: cover; }

/* ==================== TEXT GROUP / HUB ==================== */
.text-group { margin-bottom: 2rem; }
.highlight-quote {
    font-size: 1rem;
    font-style: italic;
    padding-left: 1.5rem;
    border-left: 3px solid var(--orange);
    color: var(--rust-dk);
}

/* ==================== LIST CARDS ==================== */
.list-cards { display: flex; flex-direction: column; gap: 1.5rem; }
.list-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}
.card-num {
    font-size: 1rem;
    font-weight: 700;
    color: var(--light);
    background: var(--rust);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}
.card-content h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.card-content p { font-size: 0.95rem; }

/* ==================== TABS Y TABLA-TIMELINE ==================== */
.clean-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.clean-tab {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.1rem;
    font-weight: 400;
    font-family: var(--font);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}
.clean-tab:hover { color: rgba(255,255,255,0.8); }
.clean-tab.active {
    color: var(--yellow);
    border-bottom-color: var(--yellow);
    font-weight: 600;
}

.day-panel { display: none; opacity: 0; }
.day-panel.active { display: block; animation: fadeIn 0.4s forwards; }

.table-timeline {
    max-width: 700px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.t-row {
    display: flex;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.t-time {
    width: 140px;
    font-weight: 600;
    color: var(--orange);
    flex-shrink: 0;
}
.t-details { flex: 1; }
.t-details h4 { color: #ffffff; margin-bottom: 0.3rem; font-size: 1.1rem; }
.t-details p { color: rgba(255,255,255,0.7); font-size: 0.95rem; margin: 0; }

.bullet-list { margin-top: 0.5rem; list-style: square; padding-left: 1.2rem; }
.bullet-list li { font-size: 0.9rem; margin-bottom: 0.2rem; }

.row-break { opacity: 0.6; }
.row-highlight { background: rgba(254,215,68,0.05); padding-left: 1rem; padding-right: 1rem; border-left: 3px solid var(--yellow); }
.row-special { background: rgba(225,138,46,0.1); padding-left: 1rem; padding-right: 1rem; border-left: 3px solid var(--orange); }

/* ==================== FOOTNOTE ==================== */
.footnote-block {
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ==================== CTA BANNER ==================== */
.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid rgba(137,64,41,0.2);
    padding: 3rem 4rem;
    box-shadow: var(--shadow-soft);
}
.cta-banner-text { max-width: 600px; }
.cta-banner-text h2 { margin-bottom: 0.5rem; font-size: 28px; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
    .grid-2-col, .hero-layout { grid-template-columns: 1fr; gap: 2rem; }
    .px-ext, .pr-ext, .pl-ext { padding: 0; }
    .pt-mid { padding-top: 2rem; }
    .stats-inner { grid-template-columns: 1fr 1fr; gap: 3rem 1rem; }
    .stat-item:not(:last-child)::after { display: none; }
    .cta-banner { flex-direction: column; text-align: center; padding: 2rem; gap: 2rem; }
}
@media (max-width: 600px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 24px; } /* Ajuste sutil en móviles */
    .hero-details { flex-direction: column; gap: 1rem; width: 100%; }
    .t-row { flex-direction: column; gap: 0.5rem; }
    .t-time { width: auto; }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
