/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/
html, html a{
	text-shadow: 1px 1px 1px rgba(0,0,0,0.004);
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}
html {
  scroll-behavior: smooth;
}
body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
.menu-item{
	width: 190px;
}
.menu-item .awb-menu__main-a{
	justify-content: start;
}
#menu-menu-abajo{
	margin-left: 190px;
}
.menu-doble nav{
	height: 28px;
}
.post-content .ey-hola p{
    margin-bottom: 5px;
}
/* Garabatos */
.oseain-garabatos .fusion-image-element:first-of-type{
    position: absolute;
    z-index: -1;
}
.garabato-home .fusion-image-element:first-of-type{
    left: -125px;
    top: -50px;
}
.garabato-portfolio .fusion-image-element:first-of-type{
    left: -125px;
    top: -50px;
}
.garabato-equipo .fusion-image-element:first-of-type{
    left: -125px;
    top: -50px;
}

/* Efecto texto scroll */
.scrolling-text-container {
    overflow: hidden;
    height: 80px;
    position: relative;
}

.scrolling-text {
    position: absolute;
    animation: scrollText 18s linear infinite;
    width: 100%;
    text-align: right;
}

@keyframes scrollText {
    0% { top: 0; opacity: 1; }              /* Primera línea */
    10% { top: 0; opacity: 1; }             /* Mantiene primera línea */
    
    12% { top: -100px; opacity: 1; }        /* Transición a segunda línea */
    20% { top: -100px; opacity: 1; }        /* Mantiene segunda línea */
    
    22% { top: -200px; opacity: 1; }        /* Tercera línea */
    30% { top: -200px; opacity: 1; }        /* Mantiene tercera línea */
    
    32% { top: -300px; opacity: 1; }        /* Cuarta línea */
    40% { top: -300px; opacity: 1; }        /* Mantiene cuarta línea */
    
    42% { top: -400px; opacity: 1; }        /* Quinta línea */
    50% { top: -400px; opacity: 1; }        /* Mantiene quinta línea */
    
    52% { top: -500px; opacity: 1; }        /* Sexta línea */
    60% { top: -500px; opacity: 1; }        /* Mantiene sexta línea */
    
    62% { top: -600px; opacity: 1; }        /* Séptima línea */
    70% { top: -600px; opacity: 1; }        /* Mantiene séptima línea */
    
    72% { top: -700px; opacity: 1; }        /* Octava línea */
    80% { top: -700px; opacity: 1; }        /* Mantiene octava línea */
    
    82% { top: -800px; opacity: 1; }        /* Novena línea */
    90% { top: -800px; opacity: 1; }        /* Mantiene novena línea */
    
    92% { top: -900px; opacity: 1; }        /* Décima línea */
    98% { top: -900px; opacity: 1; }        /* Mantiene décima línea */
    
    100% { top: 0; opacity: 1; }            /* Vuelve inmediatamente a la primera línea */
}



.scrolling-text p {
	margin: 0;
	padding: 0;
	height: 100px; /* Asegúrate de que coincida con la altura del contenedor */
	line-height: 100px; /* Centrar verticalmente el texto */
	font-family: "DM Sans";
	font-style: italic;
	font-weight: 200;
	margin: 0!important;
	font-size: 76px;
	text-transform: uppercase;
	color: #2d2d2d;
}
.subt-enlace{
	font-family: "BIZ UDPMincho";
	color: #aaa49c;
	font-size: 15px;
}
span.oseain-rotating-text{
	display: inline-block;
	transform: rotate(15deg);
	transition: transform 0.3s ease-in-out;
	cursor: pointer;
}
span.oseain-rotating-text:hover {
	transform: rotate(-15deg);
}
.oseain-vision, .oseain-cercania, .oseain-palabra{
	position: relative;
}
.oseain-vision .fusion-title, .oseain-cercania .fusion-title, .oseain-palabra .fusion-title{
	z-index: 30;
}
.oseain-vision .fusion-image-element{
	position: absolute;
	left: 625px;
	top: 188px;
}
.oseain-cercania .fusion-image-element{
	position: absolute;
	left: 380px;
	top: 288px;
}
.oseain-palabra .fusion-image-element{
	position: absolute;
	left: 725px;
	top: 180px;
}
/* Carrusel clientes */
/* Contenedor principal */
.carousel-container {
    width: 100%;
    overflow: hidden; /* Ocultar el contenido que se sale del contenedor */
    position: relative;
}

/* Carrusel flexible */
.carousel {
    display: flex;
    gap: 2%;
    overflow-x: auto; /* Permitir scroll horizontal */
    scroll-behavior: smooth; /* Para un desplazamiento suave */
    cursor: grab; /* Cursor para indicar que se puede arrastrar */
    padding:40px;
}

/* Eliminar scrollbars visibles (opcional) */
.carousel::-webkit-scrollbar {
    display: none;
}
.carousel {
    -ms-overflow-style: none; /* Para Internet Explorer */
    scrollbar-width: none; /* Para Firefox */
}

/* Elemento del carrusel */
.carousel-item {
    flex: 0 0 calc(100% / 5 - 2%); /* 5 elementos visibles con un gap del 2% */
    position: relative;
    z-index: 1;
}

/* Wrapper de imágenes */
.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Imagen principal */
.image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
    z-index: 0;
}

/* Imagen de sustitución (hover) */
.image-wrapper .image-hover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 10;
}

/* Hover: mostrar y ampliar imagen de sustitución */
.image-wrapper:hover .image-hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.3);
    z-index: 20;
}

/* Asegura que las imágenes del carrusel no se solapen */
.carousel-item:hover {
    z-index: 20;
}

/* Flechas de navegación */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 50;
}

.arrow.left {
    left: 35px;
}

.arrow.right {
    right: 35px;
}
/* Servicios */
.anclas-servicios a{
    text-align: right;
    text-transform: uppercase;
    font-family: "DM Sans";
    font-size: 14px;
    color: #2e2e2e;
}
/* Formulario */
.wpcf7{
    max-width: 540px;
}
.wpcf7-form p{
	display: flex;
	flex-direction: row;
}
.wpcf7-form p span:first-child{
	margin-right: 55px;
}
.wpcf7-form p span:nth-child(2){
	margin-right: 90px;
}
.wpcf7-form .wpcf7-text.oseain-form-mail{
	border: none;
	background-color: transparent;
	font-family: "DM Sans";
	font-size: 14px;
	height: 40px;
	background-image: url('img/oseain-formulario-email.svg');
	background-repeat: no-repeat;
	background-position: bottom;
	background-size: contain;
	width: 360px!important;
    color: #fff;
}
.wpcf7-form textarea.oseain-cuentanos{
    border: none;
    background-color: transparent;
    font-family: "DM Sans";
    font-size: 14px;
    height: 220px;
    resize: none;
    background-image: url('img/oseain-formulario-cuentanos.svg');
    background-repeat: no-repeat;
    background-position: top left;
    background-size: contain;
    width: 550px!important;
    line-height: 30px;
    color: #fff;
}
.wpcf7-form .wpcf7-text.oseain-form-mail::placeholder, .wpcf7-form textarea.oseain-cuentanos::placeholder{
	color: #fff;
}
.oseain-aceptar {
  appearance: none;
  -webkit-appearance: none;
  width: 10px;         /* Tamaño 10x10px */
  height: 10px;
  background-color: #ada59c; /* Fondo desmarcado */
  border: none;        /* Sin borde */
  outline: none;
  cursor: pointer;
  transition: background-color 0.3s; /* Transición suave */
  position: relative;
}

/* Estilo cuando está marcado */
.oseain-aceptar:checked {
  background-color: #4CAF50; /* Verde */
}

/* Checkmark personalizado (blanco) */
.oseain-aceptar:checked::after {
  content: "";
  position: absolute;
  left: 3px;          /* Ajuste para centrar en 10px */
  top: 0px;
  width: 3px;
  height: 6px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.wpcf7-acceptance .wpcf7-list-item{
    margin-right: 0;
    margin-left: 0;
}
.wpcf7-acceptance .wpcf7-list-item .wpcf7-list-item-label{
    font-size: 8px;
    color: #fff7ea;
}
 body .wpcf7-form input[type="submit"]{
	font-family: "Viksjoe";
	color: #fff;
	background-color: #767675;
	border-radius: 20px;
	height: 27px;
	padding-top: 5px;
	margin-top: 10px;
	text-transform: uppercase;
}
.oseain-datos-footer a{
	color: #fff58f;
}
.oseain-equipo{
	position: relative;
}
.oseain-equipo .oseain-nombre{
	position: absolute;
	bottom: 22px;
	left: 31px;
	z-index: 30;
}
.oseain-equipo .oseain-apellido{
	position: absolute;
	bottom: -20px;
	right: 34px;
	z-index: 30;
}
.oseain-staff .fusion-builder-row{
    max-width: 1153px!important;
}
.titulo-ficha-cliente h1{
	mix-blend-mode: difference;
	position: sticky;
	top: 50px; /* Ajusta el valor según lo que necesites */
	z-index: 3000;
	transition: transform 0.8s ease;
	right: 0;
	opacity: 1;
}
.titulo-pagina-efecto h1 {
    mix-blend-mode: difference;
    position: sticky;
    top: -225px; /* Posición inicial fija */
    z-index: 3000;
    transition: transform 0.8s ease;
    left: 40px;
    opacity: 1;
    transform: translateY(-225px); /* Empieza un poco más arriba */
}
.titulo-contacto-efecto h1 {
    mix-blend-mode: difference;
    position: sticky;
    top: 0; /* Posición inicial fija */
    z-index: 3000;
    transition: transform 0.8s ease;
    opacity: 1;
    transform: translateY(0); /* Empieza un poco más arriba */
}
/* Testimonios */
.oseain-clientes-testimonios{
    width: 950px;
    margin: 0 auto!important;
    max-width: 100%;
}
/* Grid General */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)); /* Siempre 4 columnas */
    gap: 5px; /* Espacio entre celdas */
    width: 100%; /* Que ocupe todo el ancho disponible */
    max-width: 100%; /* Ajuste flexible */
    margin: 0 auto; /* Centrado del grid */
}
.photo-grid p, .photo-grid .fusion-flex-container, .photo-grid .fusion-builder-row, .photo-grid .fusion-layout-column, .photo-grid .fusion-column-wrapper, .photo-grid .fusion-image-element{
	display: contents!important;
}
/* Estilo para los elementos del grid */
.grid-item-1x1 {
    grid-column: span 1; /* Ocupa 1 columna */
    grid-row: span 1;    /* Ocupa 1 fila */
    aspect-ratio: 1 / 1; /* Proporción cuadrada */
}

.grid-item-1x2 {
    grid-column: span 1; /* Ocupa 1 columna */
    grid-row: span 2;    /* Ocupa 2 filas */
    aspect-ratio: 1 / 2;  /* El alto será el doble del ancho */
}

.grid-item-2x1 {
    grid-column: span 2; /* Ocupa 2 columnas */
    grid-row: span 1;    /* Ocupa 1 fila */
    aspect-ratio: 2 / 1;  /* El ancho será el doble del alto */
}

.grid-item-2x2 {
    grid-column: span 2; /* Ocupa 2 columnas */
    grid-row: span 2;    /* Ocupa 2 filas */
    aspect-ratio: 1 / 1; /* Proporción cuadrada */
}

.grid-item-3x3 {
    grid-column: span 3; /* Ocupa 2 columnas */
    grid-row: span 3;    /* Ocupa 2 filas */
    aspect-ratio: 1 / 1; /* Proporción cuadrada */
}
.grid-item-3x1 {
    grid-column: span 3; /* Ocupa 3 columnas */
    grid-row: span 1;    /* Ocupa 2 filas */
    aspect-ratio: 3 / 1;  /* Relación proporcional */
}
.grid-item-3x2 {
    grid-column: span 3; /* Ocupa 3 columnas */
    grid-row: span 2;    /* Ocupa 2 filas */
    aspect-ratio: 3 / 2;  /* Relación proporcional */
}
.grid-item-4x1 {
    grid-column: span 4; /* Ocupa 3 columnas */
    grid-row: span 1;    /* Ocupa 2 filas */
    aspect-ratio: 4 / 1;  /* Relación proporcional */
}
.grid-item-1x3 {
    grid-column: span 1; /* Ocupa 1 columnas */
    grid-row: span 3;    /* Ocupa 3 filas */
    aspect-ratio: 1 / 3;  /* Relación vertical */
}
.grid-item-2x3 {
    grid-column: span 2; /* Ocupa 2 columnas */
    grid-row: span 3;    /* Ocupa 5 filas */
    aspect-ratio: 2 / 3;  /* Relación vertical */
}
.grid-item-2x5 {
    grid-column: span 2; /* Ocupa 2 columnas */
    grid-row: span 5;    /* Ocupa 5 filas */
    aspect-ratio: 2 / 5;  /* Relación vertical */
}

/* Ajuste de imágenes y vídeos */
.photo-grid img, 
.photo-grid video {
    width: 100%; /* Que ocupen todo el ancho de su celda */
    height: 100%; /* Que ocupen toda la altura de su celda */
    object-fit: cover; /* Ajuste sin deformar */
    display: block;
}
/* Archivo clientes */
.clientes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0 106px; /* Espacio horizontal entre clientes */
}

.cliente-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 80px;
}

.cliente-item {
    flex: 1;
    max-width: calc(33.333% - 60px); /* Ajusta el ancho teniendo en cuenta el espacio */
}

.cliente-vacio {
    flex: 1;
    max-width: calc(33.333% - 60px);
    visibility: hidden;
}
.post-content h3.cliente-titulo{
    font-family: "DM Sans";
    font-size: 15px;
    font-weight: 300;
    color: #2e2f2f;
    text-transform: uppercase;
    float: left;
    margin-top: 0;
    margin-bottom: 0;
}
.post-content p.cliente-fecha{
    font-family: "DM Sans";
    font-size: 15px;
    font-weight: 300;
    color: #2e2f2f;
    text-transform: uppercase;
    font-style: italic;
    float: right;
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.2;
}
/* Archivo clientes */
.bloque-contenido {
    display: none!important;
    opacity: 0!important;
    transform: translateY(10px)!important;
}

/* Mostrar con animación */
.bloque-contenido.activo {
    display: flex!important;
    opacity: 1!important;
    transform: translateY(0)!important;
}
a.enlace-desplegable{
    font-family: "DM Sans";
    font-size: 15px;
    font-weight: 300;
    color: #00908b;
}
.enlace-desplegable.enlace-activo {
    font-weight: bold;
    color: #00908b;
    text-decoration: underline;
    font-weight: 400;
}
button.play-button{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 210px;
    height: 204px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 0;
}
/* Contacto */
.info-proteccion ol{
    padding-left: 10px;
}
.info-proteccion ol li strong{
    font-weight: 800;
}
.info-proteccion ol li a{
    text-decoration: underline;
}


.avada-container.fusion-no-small-visibility.active {
  display: block !important;
  /* Añade las mismas propiedades que arriba si es necesario */
}
/* Estilos base del botón */
.custom-toggle-button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-bottom: 5px;
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
}

.button-content {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

/* Imagen del botón (inicialmente oculta) */
.button-icon {
  width: 0;
  height: 60px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.3s ease;
  object-fit: contain;
  flex-shrink: 0;
}

/* Texto del botón */
.button-text {
  font-family: 'Viksjoe', sans-serif; /* Ajusta la fuente */
  font-size: 20px;
  color: #2d2d2d;
  transition: all 0.3s ease;
  flex-grow: 1;
  text-transform: uppercase;
  white-space: normal;
  word-break: break-word;
  padding-right: 8px;
}

/* Flecha del botón */
.button-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  margin-left: auto;
  transform: rotate(180deg);
}

/* --- Estados activos --- */
.custom-toggle-button.active .button-icon {
  width: 60px;
  opacity: 1;
  transform: translateX(0);
}

.custom-toggle-button.active .button-text {
  transform: translateX(10px); /* Ajusta según diseño */
}

.custom-toggle-button.active .button-arrow {
  transform: rotate(0deg);
}

/* --- Contenedores Avada --- */
.avada-container {
  display: none;
}

.avada-container.active {
  display: block !important;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (max-width: 1024px){
    .oseain-vision, .oseain-cercania, .oseain-palabra{
        background-size: cover;
    }
    .oseain-vision .fusion-column-wrapper, .oseain-cercania .fusion-column-wrapper, .oseain-palabra .fusion-column-wrapper{
        padding-top: 20%!important;
        padding-bottom: 20%!important;
    }
}
@media (max-width: 640px){
    .oseain-garabatos{
        background-size: contain!important;
    }
    /* Efecto texto scroll */
    .scrolling-text-container {
        height: 20px;
    }
    @keyframes scrollText {
        0% { top: 0; opacity: 1; }              /* Primera línea */
        10% { top: 0; opacity: 1; }             /* Mantiene primera línea */
        
        12% { top: -30px; opacity: 1; }        /* Transición a segunda línea */
        20% { top: -30px; opacity: 1; }        /* Mantiene segunda línea */
        
        22% { top: -60px; opacity: 1; }        /* Tercera línea */
        30% { top: -60px; opacity: 1; }        /* Mantiene tercera línea */
        
        32% { top: -90px; opacity: 1; }        /* Cuarta línea */
        40% { top: -90px; opacity: 1; }        /* Mantiene cuarta línea */
        
        42% { top: -120px; opacity: 1; }        /* Quinta línea */
        50% { top: -120px; opacity: 1; }        /* Mantiene quinta línea */
        
        52% { top: -150px; opacity: 1; }        /* Sexta línea */
        60% { top: -150px; opacity: 1; }        /* Mantiene sexta línea */
        
        62% { top: -180px; opacity: 1; }        /* Séptima línea */
        70% { top: -180px; opacity: 1; }        /* Mantiene séptima línea */
        
        72% { top: -210px; opacity: 1; }        /* Octava línea */
        80% { top: -210px; opacity: 1; }        /* Mantiene octava línea */
        
        82% { top: -240px; opacity: 1; }        /* Novena línea */
        90% { top: -240px; opacity: 1; }        /* Mantiene novena línea */
        
        92% { top: -270px; opacity: 1; }        /* Décima línea */
        98% { top: -270px; opacity: 1; }        /* Mantiene décima línea */
        
        100% { top: 0; opacity: 1; }            /* Vuelve inmediatamente a la primera línea */
    }
    
    
    
    .scrolling-text p {
        height: 30px; /* Asegúrate de que coincida con la altura del contenedor */
        line-height: 25px; /* Centrar verticalmente el texto */
        font-size: 22px;
    }
    .home-subt .fusion-title-heading{
        font-size: 12px!important;
        line-height: 14px!important;
    }
    .home-title .fusion-title-heading{
        font-size: 30px!important;
        line-height: 30px!important;
    }
    .carousel-item {
        flex: 0 0 calc(100% / 3 - 2%); /* 5 elementos visibles con un gap del 2% */
    }
    .texto-flechas p{
        line-height: 16px;
    }
    .texto-flechas p, .texto-flechas p a, .texto-flechas p span.subt-enlace{
        font-size: 12px;
    }
    .evolucion-spacing .fusion-title-heading{
        letter-spacing: -7px!important;
    }
    .title-evolucion.fusion-title{
        margin-top: 0!important;
        margin-bottom: 0!important;
    }
    .title-nos-buscan .fusion-title-heading{
        font-size: 12px!important;
    }
    .oseain-vision .fusion-column-wrapper, .oseain-cercania .fusion-column-wrapper, .oseain-palabra .fusion-column-wrapper{
        padding-top: 15%!important;
        padding-bottom: 15%!important;
    }
    .fusion-footer .fusion-text p{
        font-size: 12px;
    }
    .fusion-body #wrapper .fusion-title.oseain-nombre h2, .fusion-body #wrapper .fusion-title.oseain-apellido h2{
        font-size: 24px!important;
    }
    .oseain-equipo .oseain-nombre{
        bottom: -5px;
        left: 11px;
    }
    .oseain-equipo .oseain-apellido{
            bottom: -25px;
            right: 14px;
    }
    .oseain-staff a img{
        width: 20px;
        height: auto;
    }
    .oseain-staff p{
        margin-bottom: 0!important;
    }
    .cargo-txt .fusion-title{
        font-size: 10px!important;

    }
    .cargo-txt .fusion-title p{
        line-height: 11px!important; 
    }
    .te-haremos-destacar .fusion-column-wrapper{
        background-position: 30% 100%!important;
    }
    .te-haremos-destacar .te-haremos-peq p{
        font-size: 16px!important;
    }
    .te-haremos-destacar .te-haremos-grande p{
        font-size: 30px!important;
    }
    .cliente-item.cliente-vacio{
        display: none;
    }
    .cliente-item{
        max-width: calc(50% - 7px);
    }
    .cliente-row{
        margin-bottom: 20px;
    }

    .avada-container {
        display: block !important;
    }
    .single-clientes h1.fusion-title-heading{
        font-size: 30px!important;
        line-height: 30px!important;
    }
    button.play-button{
        width: 80px;
        height: auto;
    }
    .wpcf7{
        max-width: 100%;
    }
    .wpcf7-form p{
        display: flex;
        flex-direction: row;
    }
    .wpcf7-form p span:first-child{
        margin-right: 0;
    }
    .wpcf7-form p span:nth-child(2){
        margin-right: 0;
    }
    .wpcf7-form .wpcf7-text.oseain-form-mail{
        width: 100%!important;
    }
    .wpcf7-form textarea.oseain-cuentanos{
        width: 100%!important;
        height: 150px!important;
        background-image: url(img/oseain-formulario-email.svg);
        background-position: 100% 26%;

    }
    .wpcf7-form p{
        display: block!important;
    }
    .arrow.left, .arrow.right{
        display: none;
    }

}
@media (max-width: 450px){
    .oseain-vision .fusion-column-wrapper, .oseain-cercania .fusion-column-wrapper, .oseain-palabra .fusion-column-wrapper{
        padding-top: 12%!important;
        padding-bottom: 12%!important;
    }
}
