
/* NAVEGACIÓN */
/* ========================================================================== */

/* Top banner */
#top-banner { position: fixed; top: 0; left: 0; z-index: 1041; width: 100%; transition: transform 0.4s ease, opacity 0.4s ease; transform: translateY(0); opacity: 1; }
#top-banner.hidden { transform: translateY(-100%); opacity: 0; }

/* Menú */
.navbar.fixed-top { top: 46px; transition: top 0.4s ease; }
.navbar.fixed-top.banner-hidden { top: 0 !important; }
#mainNav { padding-top: 0; padding-bottom: 0; }
.navbar-nav .nav-link { position: relative; font-weight: 500; color: #555555; padding: 28px; transition: all 0.3s ease; }
.navbar-nav .nav-link:hover { color: #000000; }
.navbar-nav .nav-link::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 6px; background-color: #c9a64d; transform: scaleX(0); transform-origin: bottom left; transition: transform 0.3s ease; }
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after { transform: scaleX(1); color: #661c33 !important; }
.navbar-nav .nav-link.nav-fixed-active { color: #000000 !important; }
.navbar-nav .nav-link.nav-fixed-active::after { transform: scaleX(1); }

/* Boton login*/
.btn-login { background: #9b2242 !important; }
.btn-login:hover { background: #661C33 !important; }

/*Logotipos encabezado*/
.img-logo-oficial{ height:65px;}

/* INICIO */
/* ========================================================================== */

/*Sección banners superior */
.masthead { background-color: #f8f9fa; margin-top: 122px !important; padding-bottom: 0; }
.carousel { margin-top: 122px !important; }
.carousel-control-prev-icon, .carousel-control-next-icon { background-color: rgba(0, 0, 0, 0.5); border-radius: 50%; width: 2.5rem; height: 2.5rem; }
.masthead .masthead-device-mockup { display: flex; align-items: center; justify-content: center; position: relative; }
.masthead .masthead-device-mockup .circle { position: absolute; fill: url(#circleGradient); width: 70%; display: none; }
.masthead .masthead-device-mockup .circle .gradient-start-color { stop-color: #2937f0; }
.masthead .masthead-device-mockup .circle .gradient-end-color { stop-color: #9f1ae2; }
.masthead .masthead-device-mockup .shape-1 { position: absolute; height: 1rem; width: 1rem; transform: rotate(-10deg); fill: #2937f0; bottom: 15%; left: 10%; }
.masthead .masthead-device-mockup .shape-2 { position: absolute; height: 0.75rem; width: 0.75rem; fill: #2937f0; top: 15%; right: 10%; }
.masthead .masthead-device-mockup .device-wrapper { max-width: 10rem; }

/* Contador */
.countdown-banner { width: 100%; padding: 0.5rem 0; background-color: #7C133E; font-weight: 600; font-family: 'Poppins', sans-serif; font-size: 16px; }
.countdown-banner .label { margin-right: 10px; }
.countdown-banner .count-value { display: inline-block; font-size: 20px; }
.countdown-banner .count-label { font-size: 11px; margin-right: 5px; }

/* Premios */
.titulo-premios { font-size: clamp(2rem, 4vw, 3rem); }
.text-premios { color:#a87c2f; font-size: clamp(1.5rem, 2.5vw, 2.5rem); }
.premios-subtitulo { font-size: clamp(2rem, 2vw, 1.25rem) !important; line-height: 1.4; }
.yaris-main { margin-top: .25rem; }
.yaris-features { max-width: 520px; width: 100%; margin-left:auto; margin-right:auto; }
.yaris-car { max-width: 680px; width: 100%; height: auto; }
.yaris-gallery img { display:block; object-fit: cover; margin-top: 15px; }
.premio-badge { background:#7B1247; color:#fff; font-size:1.1rem; letter-spacing:.5px;}
.premio-extra-wrap { background:#ECECEF; }
.premios-extra-auto { max-width:900px; width:100%; }
.premios-extra-gallery img { aspect-ratio:16/9; object-fit:cover; }
.premio-extra-nota { font-size:.6rem; letter-spacing:.5px; }

/* Sobre el Sorteo */
.titulo-sorteo { font-size: clamp(2rem, 4vw, 2.5rem); }
.texto-sorteo { font-size: 1.125rem; line-height: 1.7; color: #333; }
.estudiante-img { max-width: 80%; height: auto; }

/* Noticias */
.titulo-noticias { font-size: clamp(2rem, 4vw, 3rem); }
.noticia-card { border-radius: 1rem; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.noticia-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); }
.noticia-img { height: 180px; }
.text-maroon { color: #730028; }
.text-maroon:hover { color: #4d001c; }

/* Contacto */
.titulo-contacto { font-size: clamp(2rem, 4vw, 3rem)}
.texto-contacto { font-size: 1.125rem; line-height: 1.7; color: #333; margin-bottom: 70px !important; margin-left: 200px; margin-right: 200px;}
.seccion-contacto { background-color: #fff;}
.contacto-box { background-color: #f5f5f5; border-radius: 16px; position: relative; padding-top: 60px; }
.contacto-item p { position: relative; margin-bottom: 30px; }
.icono-contacto {  background-color: #7C133E; color: white; width: 120px; height: 120px; border-radius: 50%; display: flex; align-items: center; justify-content: center;  margin: 0 auto; margin-top: -60px; z-index: 1; position: relative; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); }

/* Video */
.video-sorteo-wrap { overflow:hidden; border-radius:12px; background:#000; box-shadow:0 25px 45px rgba(0,0,0,.25)!important; }
.video-sorteo-wrap iframe { width:100%; height:100%; border:0; }
.titulo-video-sorteo { font-size:clamp(1rem,4vw,2rem); color:#161616; }

/* PIE DE PÁGINA */
/* ========================================================================== */
footer a { color: rgba(255, 255, 255, 0.5); text-decoration: none; }
footer a:hover, footer a:active, footer a:focus { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.footer-bg { background: #FFFFFF !important; color: #53575A; }
.bg-descarga { background: #F2F2F2 !important; }
#download * { color: #53575A !important; transition: color 0.3s ease !important; }
#download a.text-dark { color: #6c757d !important; transition: color 0.3s ease !important; }
#download a.text-dark:hover { color: #661c33 !important; }
#download .link { color: #661c33 !important; transition: color 0.3s ease !important; text-decoration:none ; }
#download .link:hover { color: #661c33 !important; text-decoration:underline; }
.link { color: #661c33 !important; transition: color 0.3s ease !important; text-decoration:none ; }
.link:hover { color: #661c33 !important; text-decoration:underline; }
#download .fs-5 i { color: #6c757d !important; transition: color 0.3s ease !important; }
#download .fs-5:hover i { color: #661c33 !important; }
.social-icon { width: 40px; height: 40px; border: 2px solid #bbb; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #888; text-decoration: none; transition: all 0.3s ease; font-size: 18px; }
.social-icon:hover { color: #000; border-color: #661c33; }
.img-logos{ margin:5px 20px; max-height:100px;}

/* BASES DEL SORTEO */
/* ========================================================================== */

#bases-participacion { font-size: 1rem; line-height: 1.6; color: #222; }
#bases-participacion h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 1.5rem; }
#bases-participacion h5 { font-size: 1rem; font-weight: 700; margin-top: 2rem; margin-bottom: 1rem; text-transform: uppercase; }
#bases-participacion p { margin-bottom: 0.8rem; }
#bases-participacion ul { padding-left: 1.2rem; margin-bottom: 1rem; }
#bases-participacion ul li { margin-bottom: 0.5rem; }
#bases-participacion a { color: #0066cc; text-decoration: none; }
#bases-participacion a:hover { text-decoration: underline; }
#bases-participacion strong { font-weight: 700; }

/* Cuadro fecha-lugar-premios */
#bases-participacion .row.my-4 { background: #f9f9f9; border: 1px solid #ddd; border-radius: 8px; padding: 1rem; }
#bases-participacion .row.my-4 > div { padding: 0.5rem 0; }
#bases-participacion .row.my-4 strong { display: block; margin-bottom: 0.3rem; }

/* Separación entre secciones principales */
#bases-participacion .fw-bold.text-uppercase { margin-top: 2rem; border-top: 2px solid #000; padding-top: 1rem; }
.bases-info-grid { background: #f5f5f5; border: 1px solid #e3e3e3; border-radius: 10px; padding: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: center; text-align: center; }
.bases-info-grid .info-col { position: relative; padding: 0 14px; }
.bases-info-grid .info-col + .info-col::before { content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 1px; background: #d8d8d8; }
.bases-info-grid i { font-size: 28px; color: #b9b9b9; margin-bottom: 6px; }
.bases-info-grid .info-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.bases-info-grid .info-text { font-size: 1rem; line-height: 1.45; }
#bases-participacion ol { list-style: none; padding-left: 0; margin: 0 0 1rem; }
#bases-participacion ol li { margin-bottom: 0.4rem; }

/* faq */
.faq-accordion .accordion-item { border: 0; margin-bottom: 1rem; border-radius: 12px; overflow: hidden; background: transparent; max-width:1200px; margin-left:auto; margin-right:auto; }
.faq-accordion .accordion-button { background: #f2f2f2; color: #333; font-weight: 600; padding: 1rem 1.25rem; box-shadow: none; transition: background 0.3s ease, color 0.3s ease; }
.faq-accordion .accordion-button:hover { background: #661c33; color: #fff; }
.faq-accordion .accordion-button:not(.collapsed) { background: #661c33; color: #fff; }
.faq-accordion .accordion-body { background: #f8f9fa; padding: 1rem 1.5rem; }
.faq-accordion .accordion-button::after { display: none; }
.faq-accordion .faq-toggle { font-size: 1.25rem; line-height: 1; }

/* AJUSTES RESPONSIVOS */
/* ========================================================================== */

@media (max-width: 1400px) {
	.texto-contacto { font-size: 1.125rem; line-height: 1.7; color: #333; margin-bottom: 70px !important; margin-left: 0; margin-right: 0;}
}
@media (max-width: 767px) {
	.icono-contacto { margin-top: 0; width: 100px; height: 100px;}
}
@media (min-width: 768px) {
    .contacto-item { width: 33.3333%; padding: 0 15px; }
}

/* Ganadores */
/* ========================================================================== */
@media (max-width: 767.98px) {
  #tablaGanadores { font-size: 9px; }
}

@media (max-width: 991.98px) {
	.img-logos{ margin:0 25px 15px 30px;}
}

/* Responsive: en móvil apila y quita divisores verticales */
@media (max-width: 767.98px){ .bases-info-grid { grid-template-columns: 1fr; gap: 12px; } .bases-info-grid .info-col + .info-col::before { display: none; } .bases-info-grid .info-col { padding-top: 14px; border-top: 1px solid #e3e3e3; } .bases-info-grid .info-col:first-child { border-top: 0; padding-top: 0; } }

@media (max-width: 575.98px) { #faq h2 { font-size: 1.75rem; } .faq-accordion .accordion-button { padding: .9rem 1rem; } .faq-accordion .accordion-body { font-size: .95rem; } }


@media (max-width: 575.98px){
	
	/* Premios */
	.yaris-features { max-width: 100%; }

}

@media (max-width: 991.98px) {
	
	/* Menú */
	.navbar.fixed-top { top: 26px; }
	#mainNav { padding-top: 20px; padding-bottom: 20px; }
	.navbar-nav .nav-item:first-child { border-top: 1px solid #ccc; margin-top: 0.5rem; padding-top: 0.5rem; }
	.navbar-nav .nav-item:last-child { border-bottom: 1px solid #ccc; margin-bottom: 0.5rem; padding-bottom: 0.5rem; }
	.navbar-nav .nav-link { font-size: 1.05rem; font-weight: 600; padding: 12px 20px; color: #555555; }
	.navbar-nav .nav-link:hover { color: #000000; }
	.navbar-nav .nav-link.active { color: #000000 !important; }
	.navbar-nav .nav-link::after { display: none; }
	.navbar-collapse { padding-top: 0.5rem; padding-bottom: 0.5rem; }
	.navbar-toggler { padding: 0.25rem 0.5rem; font-size: 1.1rem; }
	
	/* Boton login*/
	.btn-login { font-size: 1rem; padding: 0.5rem 1rem; margin: 0 auto; }
	
	/*Logotipos encabezado*/
	.img-logo-oficial{ height:45px;}
	
	/* INICIO */
	/* ========================================================================== */
	
	/*Sección banners superior */
	.masthead { margin-top: 108px !important; padding-bottom: 5rem; }
	.carousel { margin-top: 78px !important; }
	#masthead .carousel-item img { min-height: 230px; object-fit: cover; object-position: center; }
	
	/* Contador */
	.countdown-banner { font-size: 10px; padding: 0.3rem 0; }
	.countdown-banner .count-value { font-size: 11px; }
	.countdown-banner .count-label { font-size: 9px; margin-right: 2px; }
	
	/* Premios */
	.yaris-car { max-width: 520px; }
	
}

