/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* GENERALES */
html, body {
  ::selection {
    background-color: var(--e-global-color-accent);
    color: var(--e-global-color-secondary);
  }
  ::-moz-selection {
    background-color: var(--e-global-color-accent);
    color: var(--e-global-color-secondary);
  }
}

.accent { color: var(--e-global-color-accent); }
.accent-bold { font-weight: 700; }

a.link-lopd {
	color: var(--e-global-color-secondary);
	
	&:hover {
		color: var(--e-global-color-accent);
	}
}

a.link-jpr {
	color: var(--e-global-color-secondary);
	
	&:hover {
		color: var(--e-global-color-secondary);
	}
}


/* FORM CHECKBOX CUSTOM */
/* Contenedor del checkbox + texto */
label {
  display: inline-flex;
  align-items: center;
	margin-left: 8px;
  cursor: pointer;
}

/* Checkbox personalizado */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--e-global-color-text);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  display: inline-block;
  vertical-align: middle;
}

/* Hover */
input[type="checkbox"]:hover {
  border-color: var(--e-global-color-secondary);
}

/* Marcado */
input[type="checkbox"]:checked {
  background-color: var(--e-global-color-accent);
  border-color: var(--e-global-color-accent);
}

/* Check interno */
input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 6px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}



/* EFECTO MARQUEE*/

.marquee {
  width: 100vw; /* ancho total de la ventana */
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  font-size: 20px;
  font-weight: bold;
  padding: 10px 0;
  position: relative;
}

.marquee span {
  display: inline-block;
  /*padding-left: 100%;*/ /* empieza fuera de pantalla */
  animation: marquee 50s linear infinite; /* velocidad */
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Móvil: texto más pequeño y animación más rápida */

@media (max-width:912px) and (min-width:768px){
	.secc_hero{
		min-height:50vh;
	}
}

@media (max-width: 768px) {
  .marquee {
    font-size: 16px;
  }
  .marquee span {
    animation: marquee 40s linear infinite;
  }
}



/* FONDO DE LA CAJA DE LUZ FANCYBOX */
/* Fondo semitranslúcido detrás del lightbox */
.fancybox__container.video-lightbox .fancybox__backdrop {
  background-color: rgba(17, 17, 17, 0.8) !important;
  opacity: 1 !important;
}

/* Contenedor visible del vídeo - escritorio */
.fancybox__container.video-lightbox .f-html {
  background-color: transparent !important;
  aspect-ratio: 16 / 9;
  width: 80vw;           /* 80% del ancho */
  /*max-width: 960px;*/      /* límite máximo */
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Asegura que el iframe del vídeo se adapte al contenedor */
.fancybox__container.video-lightbox .f-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 16px;
  display: block;
}

.has-iframe .f-html {
	height: auto !important;
}

/* Ajustes del botón de cierre */
.fancybox__container.video-lightbox .f-button.is-close-button {
  color: #ffffff;
  top: 8px;
  right: 8px;
  transition: background 0.2s ease;
}

/* Animación suave de aparición */
.fancybox__container.video-lightbox.is-ready .f-html {
  animation: fadeZoomIn 0.3s ease;
}

@keyframes fadeZoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* COOKIES */
.secc_legal .legal #cmplz-document a{
	color:#FFFFFF;

}
.secc_legal .legal #cmplz-document a:hover{
	color:#E83C11;
}

/* ======== RESPONSIVE ======== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .fancybox__container.video-lightbox .f-html {
    width: 90vw;         /* un poco más ancho que en desktop */
    max-width: 720px;
    aspect-ratio: 16 / 9; 
  }
}

/* Mobile (menos de 768px) */
@media (max-width: 767px) {
  .fancybox__container.video-lightbox .f-html {
    width: 95vw;         /* casi toda la pantalla */
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
  }
}


/*.f-html {
	background: transparent !important;
}*/

