/* =========================================
   1. VARIABLES & RESET
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,600;0,800;1,800&family=Oswald:wght@300;500;700&display=swap');

:root {
  --bg-dark: #121212;   /* Fondo Principal Oscuro Profundo */
  --bg-card: #1e1e1e;   /* Fondo de Tarjetas/Secciones */
  --brand: #FA7D02;     /* Naranja Vibrante Principal */
  --brand-hover: #ff952b; 
  --text-main: #FFFFFF;
  --text-muted: #B0B0B0;
  --border-color: #333333;
  
  --font-main: 'Montserrat', sans-serif;
  --font-title: 'Oswald', sans-serif;

  --success: #2ecc71;
  --danger: #e74c3c;
  
  --shadow-soft: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-neon: 0 0 15px rgba(250, 125, 2, 0.4);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 80px; /* Navbar más alto */
}

a { text-decoration: none; color: inherit; transition: 0.3s ease; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-title); text-transform: uppercase; letter-spacing: 1px; }

/* Utilidades */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-brand { color: var(--brand); }
.text-center { text-align: center; }

/* =========================================
   2. HEADER / NAVBAR (Mejorado)
   ========================================= */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--brand);
    z-index: 1000;
    height: 80px;
    display: flex; align-items: center;
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.header-inner {
    width: 100%;
    display: flex; justify-content: space-between; align-items: center;
}

.brand-area {
    display: flex; align-items: center; gap: 15px;
}
.brand-area img { height: 50px; }
.brand-title {
    font-family: var(--font-title);
    font-size: 1.0rem;
    line-height: 1.2;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}
.brand-title span { color: var(--brand); display: block; }

/* Menú Desktop - Alineado a la derecha */
.nav-menu-desktop {
    display: flex; gap: 30px; margin-left: auto; margin-right: 30px;
}
.nav-item {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    position: relative;
    padding: 10px 5px;
    letter-spacing: 0.5px;
    display: flex; align-items: center; gap: 8px;
}
.nav-item i { font-size: 1.1rem; color: #777; transition: 0.3s; }
.nav-item:hover, .nav-item.active { color: white; }
.nav-item:hover i, .nav-item.active i { color: var(--brand); }

.nav-item::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 2px; background: var(--brand);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--brand);
}
.nav-item.active::after, .nav-item:hover::after { width: 100%; }


.header-actions { display: flex; align-items: center; }
.btn-change-event {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex; align-items: center; gap: 8px;
    cursor: pointer;
    transition: 0.3s;
}
.btn-change-event:hover { border-color: var(--brand); color: white; background: rgba(250,125,2,0.1); box-shadow: 0 0 15px rgba(250,125,2,0.2); }

/* Mobile Menu */
@media (max-width: 992px) {
    .nav-menu-desktop { display: none; } 
    
    .nav-menu-mobile {
        position: fixed; bottom: 0; left: 0; width: 100%; 
        background: rgba(10,10,10,0.98); 
        backdrop-filter: blur(10px);
        border-top: 1px solid #333;
        padding: 10px 0; z-index: 999;
        display: flex; justify-content: space-around;
    }
    .nav-menu-mobile .nav-item { font-size: 0.7rem; flex-direction: column; gap: 4px; padding: 5px; }
    .nav-menu-mobile .nav-item i { font-size: 1.4rem; margin-bottom: 2px; }
    .nav-menu-mobile .nav-item.active::after { top: 0; bottom: auto; height: 3px; width: 50%; left: 25%; } 
    
    body { padding-bottom: 80px; } 
    .site-header { justify-content: center; height: 70px; } 
    .header-actions { position: absolute; right: 15px; } 
    .header-actions .btn-change-event span { display: none; } 
    .header-actions .btn-change-event { padding: 8px; border-radius: 50%; width: 36px; height: 36px; justify-content: center; }
    
    .brand-title { display: none; } 
    .brand-area img { height: 40px; }
}

@media (min-width: 993px) {
    .nav-menu-mobile { display: none; }
}

/* =========================================
   3. BANNER & EVENT HERO
   ========================================= */
.main-banner {
    width: 100%;
    position: relative;
    overflow: hidden;
}
.main-banner img { width: 100%; height: auto; object-fit: cover; mask-image: linear-gradient(to bottom, black 70%, transparent 100%); }

.event-info-section {
    position: relative; margin-top: -60px; z-index: 10; text-align: center; padding-bottom: 40px;
}
.event-logo-wrapper {
    width: 120px; height: 120px; background: var(--bg-card); border-radius: 50%;
    margin: 0 auto 15px; display: flex; align-items: center; justify-content: center;
    border: 3px solid var(--brand); box-shadow: var(--shadow-neon); padding: 10px;
}
.event-title { font-size: 2.2rem; font-weight: 800; color: white; margin-bottom: 10px; font-style: italic; }
.event-badges { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.badge {
    background: rgba(255,255,255,0.05); border: 1px solid var(--border-color);
    padding: 5px 12px; border-radius: 4px; font-size: 0.85rem; color: var(--text-muted);
    display: flex; align-items: center; gap: 6px;
}
.badge i { color: var(--brand); }
.status-indicator { width: 8px; height: 8px; border-radius: 50%; background: #666; }
.status-active, .status-finished { background: var(--success); box-shadow: 0 0 8px var(--success); }

/* =========================================
   4. PODIOS
   ========================================= */
.podium-section { margin: 40px 0; }
.section-title { text-align: center; font-size: 1.5rem; margin-bottom: 30px; border-left: 4px solid var(--brand); padding-left: 15px; display: inline-block; }

.podiums-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.podium-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; position: relative; overflow: hidden; }
.podium-card.male { border-top: 3px solid #3498db; }
.podium-card.female { border-top: 3px solid #e91e63; }

.podium-header { text-align: center; margin-bottom: 25px; font-family: var(--font-title); font-size: 1.2rem; display: flex; justify-content: center; align-items: center; gap: 10px; }
.podium-visual { display: flex; justify-content: center; align-items: flex-end; height: 180px; gap: 8px; }
.podium-step { width: 30%; display: flex; flex-direction: column; align-items: center; position: relative; }
.step-bar {
    width: 100%; background: linear-gradient(180deg, rgba(50,50,50,1) 0%, rgba(30,30,30,1) 100%);
    border-top: 2px solid #555; display: flex; justify-content: center; align-items: flex-start;
    padding-top: 5px; color: rgba(255,255,255,0.3); font-weight: 900; font-size: 2rem; position: relative;
}
.place-1 .step-bar { height: 100px; border-color: #ffd700; color: #ffd700; box-shadow: 0 0 15px rgba(255, 215, 0, 0.1); }
.place-2 .step-bar { height: 70px; border-color: #c0c0c0; color: #c0c0c0; }
.place-3 .step-bar { height: 50px; border-color: #cd7f32; color: #cd7f32; }

.winner-avatar {
    width: 40px; height: 40px; background: #333; border-radius: 50%; border: 2px solid #555;
    margin-bottom: 5px; display: flex; justify-content: center; align-items: center; font-size: 0.8rem; z-index: 2;
}
.winner-name { 
    position: absolute; bottom: -35px; width: 140%; text-align: center; 
    font-size: 0.75rem; font-weight: 600; line-height: 1.1; color: white; text-shadow: 0 2px 4px black;
}
.winner-time { position: absolute; bottom: -50px; font-size: 0.7rem; color: var(--brand); font-family: monospace; }

/* =========================================
   5. CONTROLES Y TABLAS
   ========================================= */
.controls-area { margin: 30px 0; display: flex; flex-direction: column; gap: 20px; align-items: center; }
.search-input-wrapper { position: relative; width: 100%; max-width: 500px; }
.search-input-wrapper input {
    width: 100%; background: #000; border: 1px solid #333; padding: 15px 20px 15px 45px;
    border-radius: 50px; color: white; font-size: 1rem; font-family: inherit; transition: 0.3s;
}
.search-input-wrapper input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 10px rgba(250, 125, 2, 0.2); }
.search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #666; font-size: 1.2rem; }

.category-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tab-pill {
    background: transparent; border: 1px solid #444; color: #aaa;
    padding: 8px 18px; border-radius: 20px; cursor: pointer;
    font-size: 0.85rem; font-weight: 600; transition: 0.2s;
}
.tab-pill:hover { border-color: #777; color: white; }
.tab-pill.active { background: var(--brand); border-color: var(--brand); color: black; }

/* HEADERS DE TABLA POR GENERO */
.gender-table-header {
    margin-top: 50px; margin-bottom: 20px;
    display: flex; align-items: center; gap: 15px;
    padding-bottom: 15px; border-bottom: 1px solid #333;
}
.gender-table-header h3 { font-size: 1.4rem; color: white; margin: 0; }
.gender-table-header i { font-size: 1.6rem; }
.gender-count { background: #333; color: #aaa; padding: 3px 10px; border-radius: 12px; font-size: 0.8rem; font-weight: 600; }

.table-responsive {
    width: 100%; overflow-x: auto; 
    border-radius: 8px; border: 1px solid var(--border-color);
    background: var(--bg-card); margin-bottom: 40px;
}
.results-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.results-table th {
    background: #000; color: #888; font-weight: 600; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px;
    padding: 15px; text-align: left;
}
.results-table td { padding: 15px; border-bottom: 1px solid #2a2a2a; color: #ddd; font-size: 0.9rem; }
.results-table tr:hover td { background: rgba(255,255,255,0.02); }

.rank-num { font-family: var(--font-title); font-size: 1.1rem; font-weight: bold; color: #666; width: 30px; display: inline-block; text-align: center; }
.top-3-rank { color: var(--brand); }
.dorsal-badge { background: #333; padding: 2px 6px; border-radius: 4px; font-family: monospace; font-size: 0.8em; color: #ccc; }
.runner-name { font-weight: 600; color: white; display: block; }
.time-chip { font-family: 'Oswald', sans-serif; font-size: 1.1rem; color: var(--brand); letter-spacing: 0.5px; }
.btn-download {
    display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
    border-radius: 50%; background: rgba(255,255,255,0.05); color: var(--brand); transition: 0.2s;
}
.btn-download:hover { background: var(--brand); color: white; }

/* =========================================
   6. FOOTER
   ========================================= */
.site-footer {
    background: #050505; border-top: 1px solid #222; padding: 40px 20px; text-align: center; margin-top: auto;
}
.contact-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: transparent; border: 2px solid #25D366; color: #25D366;
    padding: 10px 25px; border-radius: 50px; font-weight: 700; font-size: 0.9rem; margin-top: 15px; transition: 0.3s;
}
.contact-btn:hover { background: #25D366; color: white; }

/* =========================================
   7. MODALS & LOADER (MEJORADO)
   ========================================= */
#eventModal {
    position: fixed; inset: 0; 
    background: rgba(0, 0, 0, 0.75); /* Fondo Transparente */
    backdrop-filter: blur(8px);       /* Efecto Borroso Vidrio */
    z-index: 10000; 
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: opacity 0.3s ease;
}

.modal-content-box {
    background: rgba(25, 25, 25, 0.85); /* Caja interior semi transparente */
    border: 1px solid rgba(255,255,255,0.1);
    border-top: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 40px;
    max-width: 900px; width: 90%;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    text-align: center;
    transform: translateY(20px); animation: slideUp 0.4s forwards;
}
@keyframes slideUp { to { transform: translateY(0); } }

.modal-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px;
    margin-top: 30px;
}
.modal-event-item {
    background: rgba(255,255,255,0.03); 
    border: 1px solid rgba(255,255,255,0.1); 
    padding: 20px 10px;
    border-radius: 12px; 
    text-align: center; cursor: pointer; transition: 0.3s;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.modal-event-item:hover { 
    border-color: var(--brand); background: rgba(250,125,2,0.15); 
    transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.modal-event-name { font-weight: 600; color: white; font-size: 0.9rem; }

#preloader {
    position: fixed; inset: 0; background: #000; z-index: 10000;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.loader {
    width: 48px; height: 48px; border: 5px solid #333;
    border-bottom-color: var(--brand); border-radius: 50%;
    animation: rotation 1s linear infinite;
}
@keyframes rotation { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* =========================================
   8. MEDIA QUERIES
   ========================================= */
@media (max-width: 600px) {
    .table-responsive { border: none; background: transparent; }
    .results-table, .results-table tbody, .results-table tr, .results-table td { display: block; width: 100%; }
    .results-table thead { display: none; }
    
    .results-table tr {
        background: var(--bg-card); border-radius: 8px; border: 1px solid #2a2a2a;
        margin-bottom: 10px; padding: 15px;
        display: grid;
        grid-template-columns: 50px 1fr auto;
        grid-template-areas: "rank name time" "rank meta cert";
        align-items: center;
    }
    
    .results-table td { border: none; padding: 0; }
    .results-table td:nth-child(1) { grid-area: rank; justify-self: center; } 
    .results-table td:nth-child(2) { display: none; } 
    .results-table td:nth-child(3) { grid-area: name; font-size: 1rem; align-self: end; } 
    .results-table td:nth-child(4) { display: none; } 
    .results-table td:nth-child(5) { grid-area: time; justify-self: end; font-size: 1.2rem; align-self: start; } 
    .results-table td:nth-child(6) { grid-area: meta; color: #666; font-size: 0.8rem; align-self: start; } 
    .results-table td:nth-child(7) { grid-area: cert; justify-self: end; } 
    
    .gender-table-header { margin-top: 30px; margin-bottom: 15px; }
    .gender-table-header h3 { font-size: 1.2rem; }
}


/* =========================================
   9. PAGINA DE CONTACTO & FORMULARIOS
   ========================================= */
.contact-hero {
    text-align: center; padding: 60px 20px 40px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), var(--bg-dark)), url('FONDO.jpg'); 
    background-size: cover; background-position: center;
}

.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 50px;
    margin-top: 40px; margin-bottom: 80px;
}

.contact-info-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    padding: 40px; border-radius: 20px;
}

.info-item { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 30px; }
.info-icon { 
    font-size: 2rem; color: var(--brand); 
    background: rgba(250,125,2,0.1); padding: 15px; border-radius: 50%;
}
.info-text h4 { color: white; margin-bottom: 5px; font-size: 1.1rem; }
.info-text p, .info-text a { color: #aaa; font-size: 0.95rem; display: block; }
.info-text a:hover { color: var(--brand); text-decoration: underline; }

/* Estilos de Formulario */
.form-group { margin-bottom: 20px; text-align: left; }
.form-label { display: block; color: #ccc; margin-bottom: 8px; font-size: 0.9rem; font-weight: 600; }
.form-control {
    width: 100%;
    background: #0a0a0a; border: 1px solid #333;
    padding: 12px 15px; border-radius: 8px;
    color: white; font-family: var(--font-main); font-size: 0.95rem;
    transition: 0.3s;
}
.form-control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 10px rgba(250,125,2,0.2); }
textarea.form-control { resize: vertical; min-height: 100px; }

.btn-submit {
    width: 100%;
    background: var(--brand); color: black;
    border: none; padding: 15px; border-radius: 50px;
    font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
    cursor: pointer; transition: 0.3s;
    display: flex; justify-content: center; align-items: center; gap: 10px;
}
.btn-submit:hover { background: #fff; box-shadow: 0 0 20px rgba(255,255,255,0.3); }

/* =========================================
   10. SECCION CASOS DE EXITO (PORTFOLIO)
   ========================================= */
.portfolio-section { margin-bottom: 100px; }
.portfolio-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px;
}
.portfolio-card {
    background: var(--bg-card); border-radius: 12px; overflow: hidden;
    border: 1px solid var(--border-color); position: relative; cursor: pointer; transition: 0.3s;
}
.portfolio-card:hover { transform: translateY(-5px); border-color: var(--brand); }
.portfolio-img-wrapper { height: 180px; overflow: hidden; position: relative; }
.portfolio-img-wrapper img { 
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; 
}
.portfolio-card:hover .portfolio-img-wrapper img { transform: scale(1.1); }

.portfolio-content { padding: 20px; }
.portfolio-title { color: white; font-size: 1.1rem; margin-bottom: 5px; font-weight: 700; }
.portfolio-meta { color: var(--brand); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; margin-bottom: 5px; display: block; }

/* Responsive Contacto */
@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; gap: 30px; }
    .contact-hero { padding-top: 100px; }
    .form-group { grid-template-columns: 1fr !important; }
}

/* =========================================
   11. SECCION PROXIMOS EVENTOS
   ========================================= */
.upcoming-hero {
    text-align: center; padding: 100px 20px 60px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), var(--bg-dark)), url('FONDO_PROX.jpg'); 
    background-size: cover; background-position: center;
}

.upcoming-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px;
    margin-bottom: 80px; position: relative; z-index: 2;
}

.event-card-large {
    background: var(--bg-card); border-radius: 16px; overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex; flex-direction: column;
}
.event-card-large:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(250, 125, 2, 0.15);
    border-color: var(--brand);
}

.event-card-img {
    height: 220px; width: 100%; position: relative; overflow: hidden;
}
.event-card-img img { 
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; 
}
.event-card-large:hover .event-card-img img { transform: scale(1.1); }

.event-card-body { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }

.event-date-badge {
    background: var(--brand); color: black; font-weight: 800; font-size: 0.8rem;
    padding: 5px 12px; border-radius: 4px; display: inline-block; margin-bottom: 15px;
    text-transform: uppercase;
}

.event-card-title { font-size: 1.6rem; color: white; margin-bottom: 10px; line-height: 1.2; }
.event-card-meta { display: flex; gap: 20px; color: #aaa; font-size: 0.9rem; margin-bottom: 25px; }
.event-card-meta i { color: var(--brand); margin-right: 5px; }

/* COUNTDOWN TIMER */
.countdown-wrapper {
    background: #111; padding: 15px; border-radius: 8px; margin-bottom: 25px;
    display: flex; justify-content: space-around; border: 1px solid #333;
}
.countdown-item { text-align: center; }
.countdown-num { font-family: var(--font-title); font-size: 1.5rem; color: white; display: block; line-height: 1; }
.countdown-label { font-size: 0.7rem; color: #666; text-transform: uppercase; }

.event-actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.btn-action {
    padding: 12px; text-align: center; border-radius: 8px; font-weight: 700; font-size: 0.9rem;
    text-transform: uppercase; transition: 0.2s; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary { background: var(--brand); color: black; border: none; }
.btn-primary:hover { background: white; }
.btn-outline { background: transparent; border: 1px solid #555; color: white; }
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.05); }

/* Responsive */
@media (max-width: 600px) {
    .event-actions { grid-template-columns: 1fr; }
}

/* =========================================
   12. ESTILOS LANDING PAGE (INICIO)
   ========================================= */
.home-hero {
    min-height: 80vh;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; padding: 20px;
    background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(18,18,18,0.95) 100%), url('FONDO.jpg');
    background-size: cover; background-attachment: fixed;
    border-bottom: 2px solid var(--brand);
}
.home-hero h1 {
    font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(250, 125, 2, 0.4);
}
.home-hero p { font-size: 1.2rem; max-width: 700px; color: #ccc; margin-bottom: 40px; }
.hero-btns { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }

/* SECCION PROCESO (Step by Step) */
.process-section { padding: 80px 0; background: #0e0e0e; }
.process-steps {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-top: 50px;
}
.step-card {
    background: transparent; border: 1px solid #333; padding: 30px 20px; border-radius: 12px;
    text-align: center; transition: 0.3s; position: relative;
}
.step-card:hover { border-color: var(--brand); transform: translateY(-5px); background: #151515; }
.step-number {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background: var(--bg-dark); border: 2px solid var(--brand); color: var(--brand);
    width: 30px; height: 30px; border-radius: 50%; font-weight: bold; display: flex; align-items: center; justify-content: center;
}
.step-icon { font-size: 2.5rem; color: #fff; margin-bottom: 15px; }
.step-card h3 { font-size: 1.1rem; color: var(--brand); margin-bottom: 10px; }
.step-card p { font-size: 0.9rem; color: #888; }

/* SECCION ESTADISTICAS */
.stats-bar {
    background: var(--brand); color: black; padding: 60px 0;
    margin: 60px 0; position: relative; overflow: hidden;
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: center; }
.stat-item h2 { font-size: 3rem; font-weight: 800; line-height: 1; margin-bottom: 5px; }
.stat-item p { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* SECCION FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }
.faq-item { background: var(--bg-card); padding: 25px; border-radius: 8px; border-left: 3px solid #333; }
.faq-item h4 { color: white; margin-bottom: 10px; font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.faq-item h4 i { color: var(--brand); }
.faq-item p { color: #aaa; font-size: 0.9rem; margin: 0; }

@media (max-width: 768px) {
    .home-hero h1 { font-size: 2.5rem; }
    .faq-grid { grid-template-columns: 1fr; }
}

/* --- Estilos del Recuadro --- */
.mega-helper-instruction {
    display: flex;
    align-items: center;
    background: #ffffff; 
    color: #000000; 
    padding: 25px;
    margin: 30px 0;
    border-radius: 15px;
    border: 5px solid #ff4500; /* Usa aquí tu color naranja de marca */
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    animation: slideIn 0.5s ease-out; /* Entrada suave al cargar */
}

.mega-helper-instruction .helper-icon {
    font-size: 55px; 
    color: #ff4500;
    margin-right: 25px;
    flex-shrink: 0;
}

.mega-helper-instruction .helper-text {
    font-size: 1.25rem;
    line-height: 1.5;
    font-family: sans-serif;
}

/* --- Animación de Parpadeo/Pulso --- */
.pulse-animation {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px rgba(255, 69, 0, 0));
    }
    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 15px rgba(255, 69, 0, 0.7)); /* Brillo exterior */
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px rgba(255, 69, 0, 0));
    }
}

/* Entrada de la caja */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Ajuste para Celulares --- */
@media (max-width: 768px) {
    .mega-helper-instruction {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .mega-helper-instruction .helper-icon {
        margin-right: 0;
        margin-bottom: 15px;
        font-size: 65px; /* Más grande en móvil para que se vea bien */
    }
}
