
:root {
  --negro: #141313;
  --gris-oscuro: #1a1a1a;
  --gris: #3a3a3a;
  --blanco: #ffffff;
  --gris-claro: #f5f5f5;
  
  --color-body: linear-gradient(180deg, #0e0e0e 0%, #1c1c1c 100%);
  --color-main: linear-gradient(to top right, #0e0e0e 0%, #2a2a2a 100%);
}
.carousel-slide > article > p{
  font-size: 1.2vw;
  hyphens: auto;
}
#participar > p{
  font-size: 1.2vw;
  hyphens: auto;
}

body {
  overflow-y: scroll; /* fuerza scroll vertical siempre visible */
}

#inicio{
  overflow: hidden;
}

/* Scrollbar estrecha */
::-webkit-scrollbar {
  width: 0.6rem;
}

/* Riel de la scrollbar (invisible) */
::-webkit-scrollbar-track {
  background: transparent;
}

/* Scrollbar thumb con color más visible */
::-webkit-scrollbar-thumb {
  background-color: #3B3737;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(150, 150, 150, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* background: var(--color-body); */
  background: url("img/fondoWeb.png") center/cover no-repeat;
  background-attachment: fixed;
  color: var(--blanco);
  font-family: 'Inter', sans-serif !important;
  letter-spacing: 0.10em;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  padding: 2rem;
  background: none;
  width: 90%;
  margin: 0 auto;
}

h1{
	font-size:clamp(1.5rem, 4vw + 1rem, 3rem);
	text-align:center;
	text-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
}

p{
	text-align: justify;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--gris);
  padding: 1rem 2rem;
  flex-wrap: wrap;
}

nav a{
	font-family: 'Montserrat', sans-serif;
	font-weight: 800;
	transition: transform 0.3s ease;
}

nav img{
	max-height: 32px;
}

section {
  margin-bottom: 2rem;
  padding: 2rem;
  border-radius: 1rem;
}

section:nth-of-type(odd) {
  background-color: none;
}

section:nth-of-type(even) {
  background-color: var(--gris-oscuro);
}

/*HR*/

.scroll-hr {
  flex: none;
  width: 10%;
  height: 5px;
  border: none;
  border-top: 1.5px solid var(--blanco);
  transition: width 0.3s ease;
  max-width:80%;
}

.hr-with-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 3rem 0;
  gap: 1rem;
}

.hr-with-logo img {
  height: 24px;
  transform: rotate(-180deg);
  transition: transform 1s ease;
}

.logo-rotate.fixed {
  transform: rotate(0deg);
}

.hr-with-logo:nth-of-type(even) {
  flex-direction: row-reverse;
}


	/* Cuando alcanza el estado final */
	.scroll-hr.bloqueado {
	  width: 100% !important;
	}

	.logo-rotate.bloqueado {
	  transform: rotate(0deg) !important;
	}
	
/*////////////////////////////*/

.secciones{
  gap: 2rem;
  justify-content: center;
  flex: 1;
  flex-wrap: wrap;
}

.secciones a{
	color: #ffffff;
}

.logo,
.secciones,
.redes{
  display: flex;
  align-items: center;
}

.redes img {
  width: 32px;
  height: 32px;
}
.redes{
	gap: 1rem;
}


.redes a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  text-decoration: none;
  color: #f0f0f0;
  background-color: transparent;
  transition: all 0.3s ease;
}

.redes a:hover{
  background-color: #f0f0f0;
  color: #0e0e0e;
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}

/*NAVBAR se muestra al scrollear*/

#navbar{
  position: fixed;
  top: 0;
  width: 100%;
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
}

#navbar.oculto {
  transform: translateY(-100%);
}

@media(min-width:2560px){
  nav img{
	max-height: 64px;
  }
  nav a{
    font-size: 1.8rem;
  }
  .redes img {
  width: 48px;
  height: 48px;
  }
  .redes{
	gap: 1.8rem;
}
}

@media(min-width:3880px){
  nav img{
	max-height: 96px;
  }
  nav a{
    font-size: 2.5rem;
  }
  .redes img {
  width: 64px;
  height: 64px;
  }
  .redes{
	gap: 2.5rem;
}
}

/*----------------------------------*/

/*NAV-HAMBURGUESA*/

/* Ocultar botón hamburguesa en escritorio */
.menu-toggle {
  font-size: 24px;
  cursor: pointer;
  display: none;
}

/* --- Versión móvil --- */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .secciones {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px; /* debajo del nav */
    left: 0;
    width: 100%;
    background: var(--gris);
    padding: 10px 0;
  }

  .secciones a {
    padding: 10px;
    text-align: center;
    display: block;
  }

  /* Clase para mostrar menú en móvil */
  .secciones.active {
    display: flex;
  }
}

nav a {
  color: var(--blanco);
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  color: var(--gris-claro);
  transform: translateY(-6px);
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: var(--gris);
  color: var(--gris-claro);
}

/*CABECERA NUEVA*/

header {
  position: relative;
  width: 100%;
  height: 95vh;
  background: url("img/cabecera.png") center/cover no-repeat;
  display: flex;
  align-items: center;
}

/* Textos por encima de la imagen */
.hero-textos {
  position: relative;
  width: 50%;
  margin-left: auto;
  padding: 2rem;
  color: #f1eadc;
  z-index: 1;
  height: 500px;
}

.hero-textos h2 {
  position: absolute;
  right: 3rem;
  opacity: 0;
  transform: translateX(20px);
  transition: all 1s ease;
  text-align: right;
  max-width: 800px;
  pointer-events: none;
}

/* Ejemplo de resalte */
.hero-textos h2.active {
  top: 50%;
  transform: translateY(-50%) translateX(0);
  opacity: 1;
  font-size: clamp(1.6rem, 5cqi, 2.8rem);
  font-weight: 800;
  text-transform: uppercase;
}

.hero-textos h2.prev {
  top: 10%;
  opacity: 0.35;
  font-size: 1.8rem;
  font-weight: 400;
  transform: translateX(0);
}

.hero-textos h2.next {
  top: 90%;
  opacity: 0.35;
  font-size: 1.8rem;
  font-weight: 400;
  transform: translateX(0) translateY(-100%);
}

@media (max-width: 1440px) {
  
  .hero-textos{
    height: 250px;
  }
  .hero-textos h2 {
    max-width: 520px;
  }

  .hero-textos h2.active {
    font-size: 1.8rem;
    transform: translateY(-50%) scale(1.15);
  }

  .hero-textos h2.prev,
  .hero-textos h2.next {
    font-size: 1.2rem;
  }

  .hero-textos h2.prev {
    transform: translateY(-155%);
  }

  .hero-textos h2.next {
    transform: translateY(55%);
  }
  header{
    background: url("img/cabeceraLaptop.png") center/cover no-repeat;
  }
}

@media (max-width: 768px) {
  .hero-textos {
    display: none;
  }
  header{
    background: url("img/cabeceraMovil.png") center/cover no-repeat;
    height: 50vh;
  }
  main{
    padding: 1rem;
  }
}

@media (min-width: 2560px) {
  .hero-textos h2 {
    max-width: 900px;
    right: 6rem;
  }

  .hero-textos{
    height: 500px;
  }

  .hero-textos h2.active {
    font-size: 4rem;
    transform: translateY(-50%) scale(1.25);
    margin-right: 3rem;
  }

  .hero-textos h2.prev,
  .hero-textos h2.next {
    font-size: 1.6rem;
  }

  .hero-textos h2.prev {
    transform: translateY(-165%);
  }

  .hero-textos h2.next {
    transform: translateY(65%);
  }
  .hero-section{
    display: flex;
    align-items: center;
  }
  h1{
    font-size: 4.5rem;
  }
}

/* Pantallas 4K (Ultra HD) */
@media (min-width: 3840px) {
  .hero-textos {
    padding: 120px;
    height: 1000px;
  }

  .hero-textos h2 {
    max-width: 1400px;
    right: 8rem;
  }

  .hero-textos h2.active {
    font-size: 5.5rem;
    transform: translateY(-50%) scale(1.3);
    letter-spacing: 0.25em;
    margin-right: 8rem;
  }

  .hero-textos h2.prev,
  .hero-textos h2.next {
    font-size: 2.4rem;
    opacity: 0.25;
  }

  .hero-textos h2.prev {
    transform: translateY(-185%);
  }

  .hero-textos h2.next {
    transform: translateY(85%);
  }
}
/*----------------------------------------------------------------------------------------------*/
/*PANELES CON INFO*/

.carousel {
  position: relative;
  max-width: 100%;
  margin: auto;
  overflow: hidden;
}

.carousel-track-container {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  list-style: none;
  padding: 0;
  margin: 0;
}

.carousel-slide > article>h2{
  font-size: clamp(1.5rem, 5vw, 3rem);
}

.carousel-slide {
   min-width: 100%;
  box-sizing: border-box;
  padding: 3rem;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
}

.carousel-slide>article>p{
  text-align: justify;
}

.carousel-slide article {
  flex: 1;
  max-width: 80%;
}

.carousel-slide img {
  width: 280px;
  max-width: 100%;
  height: auto;
  border-radius: 50%;
  flex-shrink: 0;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 30px;
  padding: 10px;
  cursor: pointer;
}

.arrow.left {
  left: 10px;
}

.arrow.right {
  right: 10px;
}

.arrow:hover {
  background: rgba(0,0,0,0.8);
}

@media (max-width: 768px) {
  .carousel-slide {
    flex-direction: column;
    padding: 0.4rem;
    gap: 2rem;
  }

  .carousel-slide img {
    width: 180px;
  }

  .carousel-slide article {
    max-width: 100%;
  }
  .carousel-slide > article > p{
    font-size: 12px;
  }
}

@media (max-width: 1024px){

  .carousel-slide > article > p{
    font-size: 16px;
  }
  .carousel-slide{
    padding: 0.4rem;
  }
}


/*000000000000000000000000000000000000000000000000000000000000000000*/


/*Galería de vídeos*/

.video-gallery {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.video-main {
  flex: 2;
}

.video-main iframe {
  width: 100%;
  height: 30rem;
  border-radius: 8px;
  border: none;
  filter: grayscale(100%);
  transition: filter 0.8s ease;
}

.video-main iframe:hover{
	filter: grayscale(0%);
}

.video-thumbs {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 37rem;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.video-thumbs iframe {
  width: 100%;
  height: 15rem;
  border-radius: 8px;
  border: none;
  filter: grayscale(100%);
  transition: filter 0.8s ease;
}

.video-thumbs iframe:hover{
	filter: grayscale(0%);
}

.video-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.video-description {
  background-color: var(--gris);
  padding: 1rem;
  border-radius: 8px;
  color: var(--gris-claro);
}

.video-description h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: var(--blanco);
}

.video-description p {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--blanco);
}

@media (min-width: 2560px) {
  .video-main iframe {
    height: 40vh;
  }
  .video-thumbs iframe {
    height: 1000px;
  }
  .video-thumbs{
    max-height:53vh;
  }
  .video-description h3 {
  margin-bottom: 1rem;
  font-size: 2.5rem;
}
.video-description p {
  margin-bottom: 1rem;
  font-size: 2rem;
}
  #boton-youtube>h3{
    font-size: 1.6rem;
  }

}

/* Pantallas 4K (Ultra HD) */
@media (min-width: 3840px) {
  .video-main iframe {
    height: 40vh;
  }
  .video-thumbs{
    max-height:48.7vh;
  }
  .video-description h3 {
  margin-bottom: 1rem;
  font-size: 2.5rem;
}
.video-description p {
  margin-bottom: 1rem;
  font-size: 2rem;
}
  .video-thumbs iframe {
    height: 1000px;
  }
    #boton-youtube>h3{
    font-size: 1.8rem;
  }

}

@media (max-width: 768px) {
  .video-gallery {
    flex-direction: column;
  }

  .video-main iframe {
    height: 250px;
  }

  .video-thumbs {
    max-height: none;
    overflow-y: visible;
  }

  .video-thumbs iframe {
    height: 120px;
  }
}
#videos>a, #videos>a:visited{
  color: #ffffff;
  text-decoration: none;
}
#videos{
   background: rgb(39 39 39 / 60%); 
   background: linear-gradient(190deg, rgb(29 28 28 / 60%) 20%, rgb(48 48 48 / 60%) 97%);
}

#boton-youtube{
  background: #d91818;
  background: radial-gradient(circle,rgba(217, 24, 24, 1) 20%, rgb(48, 48, 48) 97%);
  border-radius: 20px;
  text-align: center;
  width: 60%;
  transition: width 0.5s ease;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1%;
}
#boton-youtube:hover{
  width: 100%;
}

/*FORMULARIO PARA PARTICIPAR EN EL PODCAST*/

#participar>form{
  max-width: 70%;
  margin-left: auto;
  margin-right: auto;
}
.contact h2 {
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-weight: 00;
}

.contact-form input,
.contact-form textarea {
  padding: 2rem;
  margin-top: 1rem;
  font-size: 18px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #534f4f;
  color:white;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  margin-top: 10px;
  padding: 12px;
  font-size: 16px;
  background-color: #555353;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #444;
}


@media (max-width: 768px) {
  #participar>p{
    font-size: 12px;
  }
  #participar>form{
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.contact-form input,
.contact-form textarea {
  padding: 2rem;
  margin-top: 1rem;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #534f4f;
  color:white;
}
}

@media(min-width:2560px){
  #participar > form {
    max-width: 70%; /* Reducimos el % para que las líneas no sean tan largas */
  }

  .contact-form input,
  .contact-form textarea {
    /* Escalamos el texto usando la lógica proporcional de tus H2 */
    font-size: clamp(18px, 1.5cqi, 24px); 
    padding: 2.5rem;
  }

  .contact-form button {
    font-size: 22px;
    padding: 20px;
  }
}

@media(min-width:3840px){
  #participar > form {
    max-width: 50%; /* En 4K, un ancho del 70% sería inabarcable con la vista */
  }

  .contact-form label {
    font-size: 2rem; /* Etiquetas más grandes para legibilidad */
  }

  .contact-form input,
  .contact-form textarea {
    /* En 4K subimos el rango para que coincida con el impacto visual del Hero */
    font-size: clamp(24px, 2cqi, 32px);
    padding: 3.5rem;
    border-width: 2px; /* Bordes más gruesos para que no desaparezcan */
  }

  .contact-form button {
    font-size: 28px;
    padding: 30px;
    margin-top: 25px;
  }
}


/*PATROCINADORES*/

#patrocinadores{
  background: rgb(39 39 39 / 60%); 
   background: linear-gradient(190deg, rgb(29 28 28 / 60%) 20%, rgb(48 48 48 / 60%) 97%);
}

.sponsors {
  max-width: 1000px;
  margin: 80px auto;
  padding: 20px;
}

.sponsors h2 {
  text-align: center;
  margin-bottom: 40px;
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.sponsor-card {
  position: relative;
  background: #5c5b5b;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(241, 240, 240, 0.1);
  cursor: pointer;
}

.sponsor-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  padding: 10px;
}

.sponsor-info {
  position: absolute;
  inset: 0;
  background: rgba(51, 50, 50, 0.8);
  color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sponsor-info>p{
  text-align: center;
}

.sponsor-card:hover .sponsor-info {
  opacity: 1;
}

/* --- PANTALLAS QHD / MONITORES GRANDES (2K) --- */
@media (min-width: 2560px) {
  .sponsor-accordion {
    max-width: 50%; /* Alineado con el formulario de participar */
    margin-top: 100px;
  }

  .sponsor-info>p{
  font-size: 26px;
  }
  .sponsor-info>h3{
    font-size: 32px;
  }

  .accordion-header {
    padding: 25px 35px;
    font-size: 26px; /* Encabezado más imponente */
  }

  .sponsor-form {
    gap: 25px;
    padding: 40px;
  }

  .sponsor-form label {
    font-size: 1.5rem;
  }

  .sponsor-form input,
  .sponsor-form textarea {
    padding: 20px;
    font-size: 20px;
  }

  .sponsor-accordion>button.accordion-header{
    font-size: 25px;
  }

  .sponsor-form button {
    padding: 20px;
    font-size: 22px;
  }

  /* Ajuste de altura máxima para contenido expandido en pantallas grandes */
  .sponsor-accordion.active .accordion-content {
    max-height: 1000px; 
  }
}

/* --- PANTALLAS 4K (ULTRA HD) --- */
@media (min-width: 3840px) {
  .sponsor-accordion {
    max-width: 40%;
    margin-top: 150px;
  }

  .sponsor-info>p{
  font-size: 30px;
  }
  .sponsor-info>h3{
    font-size: 42px;
  }

  .accordion-header {
    padding: 40px 50px;
    font-size: 38px;
    border-radius: 15px;
  }

  .sponsor-accordion>button.accordion-header{
    font-size: 40px;
  }

  .accordion-icon {
    font-size: 45px;
  }

  .sponsor-form {
    gap: 40px;
    padding: 60px;
  }

  .sponsor-form label {
    font-size: 2.2rem;
  }

  .sponsor-form input,
  .sponsor-form textarea {
    padding: 30px;
    font-size: 28px;
    border-radius: 12px;
    border-width: 2px;
  }

  .sponsor-form button {
    padding: 35px;
    font-size: 30px;
    border-radius: 12px;
  }

  .sponsor-accordion.active .accordion-content {
    max-height: 1500px;
  }
}

@media (max-width: 1024px) {
  .sponsors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .sponsors-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

/*Acordeón formulario patrocinadores*/

.sponsor-accordion {
  margin-top: 60px;
  max-width: 70%;
  margin-left: auto;
  margin-right: auto;
}

.accordion-header {
  width: 100%;
  padding: 15px 20px;
  font-size: 18px;
  font-weight: 600;
  background: #695e5e;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-icon {
  font-size: 24px;
  transition: transform 0.3s ease;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: #f5f5f5;
  border-radius: 0 0 8px 8px;
}

.sponsor-form {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sponsor-form label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: #0e0e0e;
}

.sponsor-form input,
.sponsor-form textarea {
  margin-top: 5px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.sponsor-form button {
  margin-top: 10px;
  padding: 12px;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.sponsor-form button:hover {
  background: #444;
}

/* Estado abierto */
.sponsor-accordion.active .accordion-content {
  max-height: 800px;
}

.sponsor-accordion.active .accordion-icon {
  transform: rotate(45deg);
}

@media (max-width:768px){
  .sponsor-accordion {
  margin-top: 60px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
}

/*TARJETA FLOTANTE*/

.floating-card {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  background-color: white;
  color: white;
  border-radius: 1rem;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 32rem;
  overflow: hidden;
  cursor: pointer;
  transition: width 0.3s ease, padding 0.3s ease;
  width: 4rem; /* colapsada inicialmente */
  height: 4rem;
  z-index: 1000;
}

.floating-card img {
  height: 3rem;
  width: 3rem;
  object-fit: contain;
  flex-shrink: 0;
}

.card-text {
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 0.9rem;
  color: black;
}

/* Efecto al hacer hover */
.floating-card:hover {
  width: 20rem;
  padding: 0.6rem 0.6rem;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.floating-card:hover .card-text {
  opacity: 1;
}

/*CONTACTO*/

#contacto>div>article>img{
  border-radius: 50%;
  max-width:200px;
  text-align: right;
}
.info-contacto-div{
  display: flex;
  justify-content: space-between;
}

/*DELAY AL HACER SCROLL*/

#paneles{
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
  will-change: opacity, transform;
}


/* Clase que se añade cuando el contenido entra en el viewport */
#paneles.visible {
  opacity: 1;
  transform: translateY(0);
}

@media(max-width:768px){
  .floating-card{
    display: none;
  }
}

footer>a, footer>a:visited{
  color: white;
}

/*BANNER COOKIES*/

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #333;
  color: #fff;
  padding: 20px;
  text-align: center;
  display: none;              /*Ojo con esto*/
  z-index: 10000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
.cookie-banner button {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 10px 20px;
  margin-left: 15px;
  cursor: pointer;
  border-radius: 4px;
}