/* style.css */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: url('https://images.unsplash.com/photo-1526401281623-3802e09a1e15?auto=format&fit=crop&w=1950&q=80') no-repeat center center fixed;
    background-size: cover;
	font-family: "Work Sans", sans-serif;
}

.container {
    text-align: center;
    color: #ffffff;
    backdrop-filter: brightness(0.9);
}

.container *, .inicio * {
    box-sizing: border-box;
}

/* ===== STYLE.CSS PARA DASHBOARD ===== */

/* GENERAL */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
    background: url('../img/bg-index.jpg') no-repeat center center / cover;
	background-attachment:fixed;
}

.inicio{
    background: url('../img/bg-login.jpg') no-repeat center center / cover !important;
}

.inicio .container {
    background: #FFF;
    min-height: 100vh;
    align-content: center;
    padding: 30px;
    box-sizing: border-box;
	width:90%; max-width:450px;
}
.container-inner * { box-sizing:border-box; }
.container-inner{
	text-align:center;
    align-content: center;
    box-sizing: border-box;
	width:90%; max-width:450px;
}

.accordion-item { margin-bottom: 10px; border-radius: 5px; }
.accordion-title { 
	/*cursor: pointer;*/
	padding: 10px; color: #000; margin: 0; 
    font-size: 1.2rem;
    text-decoration: none;
	font-family: "Montserrat", sans-serif;
	font-optical-sizing: auto;
	font-weight: 700;
	font-style: normal;	
}
.accordion-content { /*padding: 15px;*/ display: none; }
.accordion-item.active .accordion-content { display: block; }
.inicio input { 
	width: 100%; padding: 15px 30px; margin: 5px 0; border-radius:20px; 
	border:solid 1px #cacaca; color: #a3a2a3; text-align:center;
	font-family: "Montserrat", sans-serif; 	font-weight: 500; font-size:1em;
}
.inicio button { 
	padding: 15px 35px; background: #ededed; color: #000000; border: none; cursor: pointer; 
	font-family: "Montserrat", sans-serif; border-radius:20px;
	font-optical-sizing: auto;
	font-weight: 700; font-size:1em; transition:all 250ms;
	font-style: normal;	margin:10px; text-decoration:none;
}
.inicio button:hover { background: #000000; color:#FFF; }


.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}
.inicioVotar{
	width:100%;
    background: url('../img/bg-inicio-votar.jpg') no-repeat center center / cover;
	justify-content: flex-end;
}

.inicioVotarContenedor{
	margin-bottom: 8%;
	width:90%;
}

/*.inicioVotarContenedor .btn{
  font-family: "Work Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal; text-transform:lowercase; background:#FFF; border-radius: 15px; color:#000;
}*/


.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 30px;
	font-family: "Work Sans", sans-serif;
	font-optical-sizing: auto;
	font-weight: 900;
}
.hero .btn, .btnCanje {
    padding: 15px 30px; cursor:pointer; display:inline-block;
    font-size: 1.2rem;
    text-decoration: none;
	font-family: "Montserrat", sans-serif;
	font-optical-sizing: auto;
	-webkit-box-shadow: 0px 0px 14px 0px rgba(0,0,0,0.25); box-shadow: 0px 0px 14px 0px rgba(0,0,0,0.25);
	font-weight: 700; transition: all 500ms; border:none;
	font-style: normal; text-transform:lowercase; background:#FFF; border-radius: 25px; color:#000; margin:0.5em;
}
.hero .btn:hover, .btnCanje:hover {
	background:#000; color:#FFF; transform: scale(1.05)
}

/* SECCIÓN VOTAR */
.votar-section {
    /*padding: 80px 20px 100px 20px;*/
	padding:50px 20px;
    position: relative;
    text-align: center;
	width:75%;
    /*background: #f5f5f5;*/
}

.header-campania {
    margin-bottom: 0px; text-align:center;
}
.header-campania .logo-campania {
    max-width: 350px; width:90%;
}

.titulo-seccion {
    font-size: 2.2rem;
    margin-bottom: 40px;
	font-family: "Work Sans", sans-serif;
	font-optical-sizing: auto;
	font-weight: 900; color: #FFF; margin: 0.3em 0 0.7em 0;
}

/* GRID BAILS */
.grid-bailes {
    display: grid;
    gap: 25px;
    grid-template-columns: 1fr;
    max-width: 1200px;
    margin: 20px auto;
}

.baile-item {
    position: relative;
    display: block;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 ratio */
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    color: white; transition: all 300ms;
}

.baile-item .baile-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
}

.baile-item .baile-titulo {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 10px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0));
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center; box-sizing: border-box;
}

/* RESPONSIVE */
@media(min-width: 600px) {
    .grid-bailes {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media(min-width: 992px) {
    .grid-bailes {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* LOGOS SECUNDARIOS */
.logo-secundario {
    position: fixed;
    bottom: 10px;
    width: 65px;
    height: auto;
    font-size: 1rem;
    text-decoration: none;
	font-family: "Montserrat", sans-serif;
	font-optical-sizing: auto;
	font-weight: 700; font-style: normal; color:#FFF;
}
.puntos-wrapper {
    position: fixed;
    bottom: 10px;
    width: 200px;
    height: auto;
    font-size: 1rem;
    text-decoration: none;
	font-family: "Montserrat", sans-serif;
	font-optical-sizing: auto;
	font-weight: 700; font-style: normal; color:#FFF;
    left: 15px; bottom:15px;
}

.logo-secundario.der {
    right: 15px; bottom:15px;
}
/*
.video-section {
    width: 100%;
    height: 100vh;
    display: flex; 
    justify-content: center; 
    align-items: center;        
    position: relative;       
    overflow: hidden;
    background: #000000b8;
    color: #fff;
}
*/
.video-section {
	padding: 40px 20px;
    position: relative;
    text-align: center;
    background: #000000b8;
    color: #fff;
    width: 100%;
    height: 100vh;
}
/*
.video-slider-container {
    max-width: 900px;
    width: 100%;
    position: relative;
}
*/
.video-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.video-slider .video-item {
    /*display: none;*/
    width: 100%;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    z-index: 10;
}

.arrow.left { left: 10px; }
.arrow.right { right: 10px; }

.video-accion {
    margin-top: 20px;
}

.btn-estrella {
    font-size: 2rem;
    background: transparent;
    border: none;
    color: gold;
    cursor: pointer;
}


.video-item {
    position: relative;
    width: 100%;
}

.video-titulo-overlay {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 15px 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0));
    text-align: center;
    z-index: 5;
}

.video-titulo-overlay h2 {
    color: #fff;
    font-size: 2rem;
    margin: 0;
}




.canjear-puntos, .confirmacion-section, .gracias-section {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center; flex-direction:column;
}

.canjear-container {
  background: #FFF;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  width: 90%;
  max-width: 500px;
  text-align: center;
}

.confirmacion-container, .gracias-container {
  background: none;
  padding: 40px;
  border-radius: 20px;
  /*box-shadow: 0 4px 20px rgba(0,0,0,0.1);*/
  width: 90%;
  max-width: 500px;
  text-align: center;
}

.confirmacion-section h2, .gracias-section h2{
	font-size:2rem; color:#FFF; font-weight:900;
}

.confirmacion-section h3, .gracias-section h3{
	font-size:1.4rem; color:#FFF; font-weight:700;
}

#codigos {
  width: 100%;
  height: 100px;
  padding: 10px;
  font-size: 16px;
  margin: 15px 0;
  border: 1px solid #ccc;
  border-radius: 10px;
  resize: none;
}
/*
.btnCanje {
	
    padding: 15px 30px;
    font-size: 1.2rem;
    text-decoration: none;
	font-family: "Montserrat", sans-serif;
	font-optical-sizing: auto;
	font-weight: 700; transition: all 500ms; border:none;
	font-style: normal; text-transform:lowercase; background:#000; border-radius: 25px; color:#FFF; margin:0.5em; cursor:pointer;
}

.btnCanje:hover {
  background: #333; color:#FFF;
}*/

#resultado {
  margin-top: 20px;
  font-weight: bold;
}


.select-estilizado {
    padding: 15px 30px;
    padding-right: 45px; /* MÁS ESPACIO A LA DERECHA */
    font-size: 1.2rem;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    /*text-transform: lowercase;*/

    background: #FFF;
    color: #000;

    border: none;
    border-radius: 25px;

    box-shadow: 0px 0px 14px 0px rgba(0, 0, 0, 0.25);

    cursor: pointer;

    appearance: none;          
    -webkit-appearance: none;
    -moz-appearance: none;

    transition: all 300ms;
    margin: 0.5em;

    /* Flecha con separación */
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='14' width='14' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'><polygon points='0,0 20,0 10,10'/></svg>");
    background-repeat: no-repeat;
    background-position: right 20px center;  /* Flecha más separada */
    background-size: 12px;                  /* Flecha más pequeña */
}


.select-estilizado:hover {
    box-shadow: 0 0 18px rgba(0,0,0,0.35);
    transform: translateY(-2px);
}

.select-estilizado:focus {
    outline: none;
    box-shadow: 0 0 18px rgba(255, 0, 0, 0.45);
}


#video-detalle {
    display: none; /* será reemplazado por JS a flex */
    flex-direction: column;
    align-items: center;
    justify-content: center; /* top aligned pero centrado */
    gap: 20px;
    padding: 20px;
    width: 100%;
}

#detalle-titulo {
    font-size: 2rem;
    text-align: center;
    width: 100%;
    margin: 0;
}

.video-slider-container {
    width: 100%;
    max-width: 900px;
    position: relative;
}

#detalle-video-item {
    width: 100%;
}

#detalle-iframe {
    width: 100%;
    height: 500px;
    display: block !important; /* evitar problemas del slider previo */
}

.video-accion {
    display: flex;
    gap: 20px;
}

.cantidad-votos {
    font-size: 1.2rem; margin:0 15px;
    font-weight: 600;
    text-align: center;
}


#video-detalle .btn-estrella,
#video-detalle .btn-volver, #gracias-voto .btn-volver {
    padding: 15px 30px;
    font-size: 1.2rem;
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    text-transform: lowercase;
    border: none;
    border-radius: 25px;
    background: #FFF;
    color: #000;
    box-shadow: 0px 0px 14px rgba(0,0,0,0.25);
    margin: 0.5em;
    transition: all 300ms;
    cursor: pointer;
}

#video-detalle .btn-estrella:hover,
#video-detalle .btn-volver:hover, .baile-item:hover, #gracias-voto .btn-volver:hover {
    transform: scale(1.05); background:#000; color:#FFF;
}


.redes-sociales {
    margin: 30px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.redes-sociales a {
    width: 65px;
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none; /* Fondo negro */
    border-radius: 50%;
    font-size: 32px;
    color: #fff; /* Ícono blanco */
    text-decoration: none;

    /* Misma sombra que tus botones principales */
    box-shadow: 0px 0px 14px rgba(0, 0, 0, 0.25);

    transition: all 0.35s ease;
}

/* Hover con colores oficiales */
.share-facebook:hover {
    background: #1877F2; /* Azul Facebook */
    color: #fff;
    transform: scale(1.15);
}

.share-twitter:hover {
    background: #000; /* Twitter/X es negro */
    color: #fff;
    transform: scale(1.15);
}

.share-whatsapp:hover {
    background: #25D366; /* Verde WhatsApp */
    color: #fff;
    transform: scale(1.15);
}
.votar-section,
.video-section,
.gracias-section,
.confirmar-section {
    min-height: 100vh;   /* altura mínima, no fija */
    height: auto !important;
    overflow: visible;
    /*padding-top: 50px; /* para que no se pegue arriba */
    /*padding-bottom: 50px; /* para que no se pegue arriba */
}

/*
.puntos-wrapper {
    position: relative;
    display: inline-block;
}
*/
/* Texto base */
.puntos-disponibles {
/*    background: #fff;
    padding: 12px 25px;
    border-radius: 20px;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
    box-shadow: 0px 0px 14px rgba(0,0,0,0.25);
*/
}

/* Botón oculto por defecto */
.btn-canjear {
    display: none;
    background: #000;
    color: #fff;
    padding: 12px 25px;
    border-radius: 20px;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0px 0px 14px rgba(0,0,0,0.25);
    transition: 0.3s;
}

/* Hover desktop: alterna */
.puntos-wrapper:hover .puntos-disponibles {
    opacity: 0;
}

.puntos-wrapper:hover .btn-canjear {
    display: inline-block;
}

/* --- MÓVILES: TAP para alternar --- */
.puntos-wrapper:active .puntos-disponibles,
.puntos-wrapper:focus-within .puntos-disponibles {
    opacity: 0;
}

.puntos-wrapper:active .btn-canjear,
.puntos-wrapper:focus-within .btn-canjear {
    display: inline-block;
}

/* Hover en el botón */
.btn-canjear:hover {
    background: #000;
    color: #fff;
}

.btn-canjear-top {
    position: fixed;
    top: 15px;
    right: 15px;
    background: #ff0049;
    color: #fff;
    padding: 14px 20px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: all 0.25s ease;
}

.btn-canjear-top:hover {
    background: #e60040;
    transform: translateY(-3px);
}

/* Para pantallas MUY pequeñas */
@media(max-width: 480px) {
    .btn-canjear-top {
        padding: 12px 16px;
        font-size: 14px;
        top: 15px;
        right: 15px;
    }
}


@media (max-width: 768px) {
	.canjear-container, .confirmacion-container, .gracias-container {
	  padding: 20px;
	}
	.inicioVotar{
		background: url('../img/bg-inicio-votar-mobile.jpg') no-repeat center center / cover;
	}
	.botones-confirmacion * { box-sizing:border-box; }
	.hero {height:100vh; }
	.hero .inicioVotarContenedor{margin-bottom:10%; padding-bottom:50px;}
	.hero h1, .titulo-seccion{ font-size:1.5rem; margin-bottom: 5px;}
	.hero .btn,.btnCanje{ width: 40%; box-sizing: border-box; display: inline-block; margin: 10px; font-size: 0.9rem; padding: 10px; /*margin-bottom: 45px;*/ }
	/*.btnCanje{ width:70%; box-sizing:border-box; display:block; margin:15px auto; }*/
	.votar-section{width:90%;}
	.select-estilizado{font-size:0.9rem;}
	#video-detalle{justify-content:flex-start; padding-top: 80px;}
	#video-detalle .btn-estrella, #video-detalle .btn-volver, #gracias-voto .btn-volver{ font-size:0.9rem;}
	.cantidad-votos{ width:100%;}
	.canjear-puntos { width:100%;}
	.confirmacion-section, .gracias-section{ width:90%;}
	.inicio .container-inner{ width:95%; }
	.inicio .canjear-puntos { width:100%;}

	.confirmacion-section h2, .gracias-section h2{ font-size:1.8rem;}
	#detalle-iframe { height: 300px; }	
    #detalle-titulo {font-size: 1.6rem; }
    .inicioVotarContenedor{ width:97%;}
	.botones-inicio,.canjear-container{ margin-bottom:45px; }
	.canjear-container .btnCanje { width:80%; display:block; margin:15px auto;}
	.canjear-puntos h2{ font-size:1.3rem; margin:10px;}
	.canjear-puntos p{ font-size:0.9rem; margin:10px;}
	.canjear-container{width:100%;}
}    /* móvil */


.error-votos { display: none; }
.error-votos p {
	font-size: 1.1rem; color: #FFF; margin: 30px; font-weight: 700;
}