/* css/public_style.css (VERSIÓN FINAL CON TODAS LAS CORRECCIONES RESPONSIVAS) */

/* ======== PALETA DE COLORES "ZONA 13" ======== */
:root {
    --brand-green: #4b8a43;
    --brand-dark: #2c332e;
    --brand-yellow: #fdd835;
    --brand-light-gray: #f8f9fa;
}

body { padding-top: 70px; }

/* ======== COMPONENTES CON NUEVOS COLORES ======== */
.navbar { background-color: var(--brand-dark) !important; }
.btn-brand-primary { background-color: var(--brand-green); border-color: var(--brand-green); color: #fff; transition: background-color 0.2s, border-color 0.2s; }
.btn-brand-primary:hover { background-color: #3e7037; border-color: #3e7037; color: #fff; }
footer { background-color: var(--brand-dark); }
footer .text-brand-yellow { color: var(--brand-yellow) !important; }

/* ======== ESTILOS PARA LA PÁGINA DE TV EN VIVO (livetv.html) ======== */
.livetv-body { background-color: #000; color: #fff; margin: 0; padding: 0; overflow: hidden; }
.livetv-container { display: flex; flex-direction: column; height: 100vh; }
.livetv-video-wrapper { flex-grow: 1; display: flex; }
.livetv-video-wrapper iframe { width: 100%; height: 100%; border: none; }
.livetv-scoreboard-wrapper { flex-shrink: 0; padding: 1rem; background-color: var(--brand-dark); border-top: 4px solid var(--brand-yellow); }
.livetv-scoreboard-wrapper .live-scoreboard { max-width: 900px; margin: 0 auto; border: none; }
.livetv-scoreboard-wrapper .team-live h5 { font-size: 2.25rem; }
.livetv-scoreboard-wrapper .team-logo-icon { width: 80px; height: 80px; font-size: 3rem; }
.livetv-scoreboard-wrapper .score-live-score { font-size: 4.5rem; }

/* ======== SECCIÓN EN VIVO Y MARCADOR (Página Principal) ======== */
.live-scoreboard { background: #fff; border-radius: 0.75rem; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; border: 1px solid #dee2e6; }
.team-live { flex: 1; display: flex; align-items: center; gap: 1rem; }
.team-live.text-end { flex-direction: row-reverse; }
.team-logo-icon { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; background-color: var(--brand-light-gray); border-radius: 50%; color: var(--brand-dark); font-size: 2.25rem; flex-shrink: 0; }
.team-live h5 { margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--brand-dark); }
.score-live { text-align: center; padding: 0 1.5rem; }
.score-live-score { font-size: 3rem; font-weight: 700; color: var(--brand-green); line-height: 1; }
.match-timer { font-size: 1.1rem; font-weight: 600; color: #333; background-color: #e9ecef; padding: 0.25rem 0.6rem; border-radius: 5px; margin-bottom: 0.5rem; }
.match-timer .bi { margin-right: 0.4rem; }

/* ======== SECCIÓN DE RESULTADOS ANTERIORES ======== */
.result-card-v2 { background-color: #fff; border: 1px solid #e0e0e0; border-radius: 0.5rem; overflow: hidden; transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; }
.result-card-v2:hover { transform: translateY(-5px); box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1); }
.match-details { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; }
.team { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100px; }
.team .team-logo-icon { width: 45px; height: 45px; font-size: 1.5rem; margin-bottom: 0.5rem; }
.team h6 { margin: 0; font-weight: 600; font-size: 0.9rem; color: var(--brand-dark); }
.score-box { text-align: center; flex-grow: 1; }
.score-box .score-number { font-size: 2.25rem; font-weight: 700; color: var(--brand-dark); }
.score-box .vs { display: block; font-size: 0.75rem; color: #999; text-transform: uppercase; font-weight: 600; }
.match-meta { background-color: var(--brand-light-gray); border-top: 1px solid #e0e0e0; padding: 0.5rem 1rem; display: flex; justify-content: space-between; font-size: 0.8rem; color: #6c757d; }
.match-meta .bi { margin-right: 0.3rem; }

/* ======== ESTILOS PARA EL PANEL DE CONTROL DE PARTIDOS (ADMIN) ======== */
.live-match-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.5rem; background-color: var(--brand-light-gray); border-radius: 0.375rem; }
.team-control { display: flex; align-items: center; gap: 0.5rem; }
.team-control .team-name { font-weight: 500; min-width: 80px; text-align: center; }
.score-display { font-size: 1.25rem; font-weight: 700; background-color: var(--brand-dark); color: #fff; padding: 0.25rem 0.75rem; border-radius: 0.25rem; min-width: 70px; text-align: center; }

/* ======== OTRAS SECCIONES (Productos, Galería, etc.) ======== */
.product-card { transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1) !important; }
.product-price { font-size: 1.25rem; font-weight: 700; color: var(--brand-dark); }
.gallery-item { position: relative; overflow: hidden; cursor: pointer; }
.gallery-item img { transition: transform 0.3s ease-in-out; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(44, 51, 46, 0.7); display: flex; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease-in-out; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { font-size: 3rem; color: #fff; }
#galleryModal .modal-content { background: transparent; border: none; }
.testimonial-card { border: 0; background-color: var(--brand-light-gray); padding: 1.5rem; }
.testimonial-avatar { width: 80px; height: 80px; border-radius: 50%; margin: -60px auto 0; border: 4px solid #fff; box-shadow: 0 0 10px rgba(0,0,0,0.15); }
.testimonial-card .card-body { padding: 1rem 0 0 0; }
.testimonial-card .card-text { font-style: italic; color: #555; }
.testimonial-card .blockquote-footer { margin-top: 1rem; }
#heroCarousel, .carousel-item { height: 90vh; min-height: 500px; }
.carousel-item { background-color: #777; background-position: center; background-repeat: no-repeat; background-size: cover; position: relative; }
.carousel-item::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7)); }
.carousel-caption { top: 0; bottom: 0; left: 10%; right: 10%; padding: 2rem 0; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); display: flex; flex-direction: column; justify-content: center; }
.carousel-indicators [data-bs-target] { box-sizing: content-box; width: 12px; height: 12px; border-radius: 50%; margin: 0 5px; }
.whatsapp-float { position: fixed; width: 60px; height: 60px; bottom: 40px; right: 40px; background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center; font-size: 30px; box-shadow: 2px 2px 3px #999; z-index: 100; display: flex; align-items: center; justify-content: center; transition: transform 0.3s; }
.whatsapp-float:hover { transform: scale(1.1); color: white; }
.sponsor-logo img { max-height: 60px; filter: grayscale(100%); opacity: 0.7; transition: all 0.3s ease-in-out; }
.sponsor-logo img:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.1); }
.social-icon { font-size: 1.8rem; color: #f8f9fa; text-decoration: none; transition: color 0.3s, transform 0.3s; }
.social-icon:hover { color: var(--brand-yellow); transform: scale(1.2) translateY(-2px); }

/* ======================================================= */
/* === ESTILOS RESPONSIVOS PARA MÓVILES (VERSIÓN FINAL) === */
/* ======================================================= */
@media (max-width: 767.98px) {
    .carousel-caption .lead { display: none; }
    .carousel-caption h1 { font-size: 2.5rem; }

    /* Ajustes para el marcador EN VIVO en móviles (Página Principal) */
    .live-scoreboard { flex-direction: column; gap: 0.75rem; padding: 1rem; }
    .team-live { width: 100%; justify-content: space-between !important; flex-direction: row !important; }
    .team-live h5 { font-size: 1rem; }
    .team-logo-icon { width: 40px; height: 40px; font-size: 1.25rem; }
    .score-live { order: -1; width: 100%; }
    .score-live-score { font-size: 2.5rem; }
    .match-timer { font-size: 0.9rem; }
    
    /* Ajustes para los resultados ANTERIORES en móviles */
    .match-details { flex-direction: column; gap: 0.5rem; padding: 1rem; }
    .team { width: 100%; flex-direction: row; justify-content: center; gap: 0.75rem; }
    .team.team-b { order: 1; }
    .team .team-logo-icon { width: 30px; height: 30px; font-size: 1rem; margin-bottom: 0; }
    .team h6 { font-size: 0.9rem; }
    .score-box { width: 100%; }
    .score-box .score-number { font-size: 2rem; }

    /* Ajustes para la VISTA DE TV en móviles */
    .livetv-body .team-live h5 { font-size: 1.2rem; }
    .livetv-body .score-live-score { font-size: 2.5rem; }
    .livetv-body .team-logo-icon { width: 50px; height: 50px; font-size: 1.5rem; }
    
    /* ===== AJUSTES RESPONSIVOS PARA PANEL DE ADMIN (NUEVO) ===== */
    .live-match-controls { justify-content: space-around; }
    .team-control .team-name { font-size: 0.85rem; min-width: 65px; }
    .score-display { font-size: 1.1rem; min-width: 60px; }
}