/*
Theme Name: Impreza Child
Template: Impreza
Version: 1.0
Author:	UpSolution
Theme URI: http://impreza.us-themes.com/
Author URI: http://us-themes.com/
*/

/*Add your own styles here:*/

.cmplz-cookiebanner .cmplz-buttons {
    flex-direction: row-reverse;
}

.grecaptcha-badge {
    visibility: hidden;
}

/* CABECERA */
.logo-blanco,
.logo-color {
	transition: opacity 0.35s ease, visibility 0.35s ease;
}

/* Estado normal */
.logo-blanco {
	opacity: 1;
	visibility: visible;
}

.logo-color {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

/* Header sticky */
.l-header.sticky .logo-blanco {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.l-header.sticky .logo-color {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* Título cabecera */
.titulo-cabecera::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 12%;
    transform: translateX(-50%);
    width: 64px;
    height: 0.5px;
    background: var(--color-alt-content-primary);
}

/* Menú principal */
#menu-principal .w-nav-title {
	position: relative;
	display: inline-block;
}

#menu-principal .w-nav-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -6px;
	width: 100%;
	height: 2px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s ease;
}

#menu-principal .w-nav-anchor:hover .w-nav-title::after,
#menu-principal .current-menu-item > .w-nav-anchor .w-nav-title::after {
	transform: scaleX(1);
}

/* HOME */

/* sobre nosotros */
.section-mark-eyebrow::after {flex:1;}

/* servicios */
.eyebrow::before {flex:0 0 clamp(120px, 16vw, 300px);}
article.servicio  {border-top:1px solid var(--color-alt-content-text);}
article.servicio:last-child {border-bottom:1px solid var(--color-alt-content-text);}

/* Evita que la columna de imagen se recoloque verticalmente */
.svc {
	align-items: flex-start !important;
}

.svc-media {
	align-self: flex-start !important;
}

/* Contenido cerrado */
.contenido-servicio > :nth-child(2),
.contenido-servicio > .link-more-wrap {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition:
		max-height 0.4s ease,
		opacity 0.3s ease;
}

/* Contenido abierto */
.contenido-servicio.activo > :nth-child(2) {
	max-height: 300px;
	opacity: 1;
}

.contenido-servicio.activo > .link-more-wrap {
	max-height: 80px;
	opacity: 1;
}

/* Cambio de color del título */
.contenido-servicio:hover h3 {
	color: var(--color-content-heading) !important;
}


/* Separación del enlace cuando está abierto */
.contenido-servicio.activo .link-more-wrap {
	margin-top: 0.8rem !important;
}

/* Angle cerrado: hacia abajo */
.contenido-servicio .icono-angle {
	transform: rotate(180deg);
	transition: transform 0.3s ease;
}

/* Angle abierto: hacia arriba */
.contenido-servicio.activo .icono-angle {
	transform: rotate(0);
}

.contenido-servicio.activo .icono-angle .fa-angle-up {
	margin:0;
}

/* Contenedor fijo de las imágenes */
.servicios-imagenes {
	position: relative;
	width: 100%;
	aspect-ratio: 1051 / 572;
	overflow: hidden;
}

/* Todas las imágenes permanecen superpuestas */
.servicios-imagenes article {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;

	opacity: 0;
	visibility: hidden;
	pointer-events: none;

	transition:
		opacity 0.4s ease,
		visibility 0s linear 0.4s;
}

/* Imagen activa */
.servicios-imagenes article.activo {
	position: absolute !important;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	z-index: 2;
	transition-delay: 0s;
}

/* La imagen ocupa siempre el mismo espacio */
.imagen-destacada-servicio,
.imagen-destacada-servicio > div {
	width: 100%;
	height: 100%;
}

.imagen-destacada-servicio img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: none !important;
}

/* Proyectos home */
/* Permitir el sticky */
#proyectos,
#proyectos .l-section-h,
#proyectos .vc_col-sm-8,
#proyectos .vc_column-inner,
#proyectos .wpb_wrapper {
	overflow: visible !important;
}

/* Proyecto 1 y 2 sticky */
#proyectos .cuadricula-proyectos:nth-child(1),
#proyectos .cuadricula-proyectos:nth-child(2) {
	position: sticky;
	top: 100px;
}

/* Orden de superposición */
#proyectos .cuadricula-proyectos:nth-child(1) {
	z-index: 1;
}

#proyectos .cuadricula-proyectos:nth-child(2) {
	z-index: 2;
}

/* Proyecto 3 pasa por encima, pero no es sticky */
#proyectos .cuadricula-proyectos:nth-child(3) {
	position: relative;
	z-index: 3;
}


/* Contadores Home */
.contadores > .w-counter {
	flex: 1;
}

p.w-counter-title, div.w-counter-title, span.w-counter-title {
	font-size:0.85rem;
}


/* Formulario */
.form {
	width: 100%;
}

.form-row {
	display: flex;
	gap: 1.2rem;
}

.form-row .field {
	flex: 1;
}

.form .field {
	margin-bottom: 1.5rem;
}

.form input,
.form select,
.form textarea {
	width: 100%;
	padding: 0.8rem 0;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 0;
	background: transparent;
	color: #fff;
	outline: none;
	box-shadow: none;
}

.form input::placeholder,
.form textarea::placeholder {
	color: rgba(255, 255, 255, 0.7);
	opacity: 1;
}

.form select option {
	color: #222 !important;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
	border-bottom-color: #fff;
	background:transparent;
}


.form .wpcf7-spinner {
	display: none;
}

.btn-submit {
	margin-top:1rem;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
}

.btn-submit .link-more {
	color:#fff !important;
}


@media (max-width: 767px) {
	.form-row {
		flex-direction: column;
		gap: 0;
	}
}


/* ENLACE PROYECTOS */
.imagen-destacada-proyecto {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
}


/* PIE DE PÁGINA */
footer .iconos a, footer .iconos a:hover  {
	color:#fff;
}


/* CSS CREADO POR CLAUDE */

/* CUSTOM STYLE */
/* ── Secciones ── */
/* ── #estudio ── */
.section-mark-eyebrow { display: flex; align-items: center; gap: 1rem; }
.section-mark-eyebrow::after { content: ''; display: block; width: 64px; height: 1px; background: #c1bfc0; }
.link-more { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.85rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: #5e6f88; text-decoration: none; position: relative; }
.link-more::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.link-more:hover::after { transform: scaleX(1); }
.link-more .arr { display: inline-block; transition: transform 0.3s ease; }
.link-more:hover .arr { transform: translate(4px, -4px) rotate(-45deg); }
.legacy-figure { overflow: hidden; }
.legacy-figure img { border-radius: 16px; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }

/* ── #servicios ── */
.svc-head .eyebrow { display:inline-flex; align-items:center; gap:1.25rem; font-size:0.85rem; font-weight:500; letter-spacing:0.12em; text-transform:uppercase; color:#565658; }
.svc-head .eyebrow::before { content:''; display:inline-block; width:48px; height:1px; background:#c1bfc0; }
/*.svc-media { position:relative; overflow:hidden; background:#f4f3f4; aspect-ratio:3/4; }
.svc-media .svc-media-img { position:absolute; inset:0; opacity:0; transform:scale(1.04); transition:opacity 0.6s ease, transform 0.6s ease; }
.svc-media .svc-media-img img { width:100%; height:100%; object-fit:cover; }
.svc-media .svc-media-img.active { opacity:1; transform:scale(1); }*/
/*.svc-accordion .w-grid-item + .w-grid-item {border-top:1px solid #c1bfc0; }*/
.link-more { display:inline-flex; align-items:center; gap:0.5rem; font-size:0.85rem; font-weight:500; text-transform:uppercase; text-decoration:none; position:relative; }
.link-more .arr { display:inline-block; transition:transform 0.3s ease; }
.link-more::after { content:''; position:absolute; left:0; bottom:-2px; width:100%; height:1px; background:currentColor; transform:scaleX(0); transform-origin:left; transition:transform 0.3s ease; }
.link-more:hover::after { transform:scaleX(1); }
.link-more:hover .arr { transform:translate(4px,-4px) rotate(-45deg); }

/* ── #proyectos ── 
.stack-panel { position: sticky; top: 0; overflow: hidden; }
#proyecto-1 { z-index: 1; }
#proyecto-2 { z-index: 2; }
#proyecto-3 { z-index: 3; }
#proyecto-4 { z-index: 4; }
.stack-panel .panel-card { position: relative; max-width: 1000px; margin: 0 auto; }
.panel-media { position: relative; }
.panel-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.panel-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 45%); }
.panel-content { position: absolute; left: 2.5rem; bottom: 2rem; z-index: 1; color: #fffefe; }
.panel-content h3 { color: #fffefe; margin-bottom: 0.4rem; }
.panel-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; text-transform: uppercase; font-size: 0.85rem; color: rgba(255,255,255,0.75); }
/*.proyectos-cta-wrap { position: sticky; top: 0; z-index: 5; height: 0; padding: 0; }
.proyectos-cta-wrap .panel-cta { position: relative; transform: translateY(clamp(3rem, 20vh, 12rem)); pointer-events: auto; }
.panel-cta .w-btn-label { text-transform: uppercase; }*/

/* ── #partners ── */
.partners-logos img { filter: grayscale(1); opacity: 0.75; transition: filter 0.3s ease, opacity 0.3s ease; }
.partners-logos img:hover { filter: grayscale(0); opacity: 1; }
.partners-logos .w-image { display: flex; align-items: center; justify-content: center; }

/* ── #filosofia ── */
#filosofia .accent { color: #9aa9c0; }
#filosofia .w-counter-value { font-size: clamp(2.6rem, 1.6rem + 3vw, 4.25rem); font-weight: 600; color: #fff; }

/* ── #contacto ── 
.contacto-form input[type="text"], .contacto-form input[type="email"], .contacto-form input[type="tel"], .contacto-form select, .contacto-form textarea { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.2); color: #ffffff; border-radius: 0; }
.contacto-form input::placeholder, .contacto-form textarea::placeholder { color: rgba(255,255,255,0.55); }
.contacto-form select { color: rgba(255,255,255,0.75); }
.contacto-form input[type="submit"] { background: none; border: none; color: #ffffff; text-transform: uppercase; font-size: 0.85rem; font-weight: 500; padding: 0; }
.contacto-form input[type="submit"]:hover { color: #9aa9c0; }*/


/* ── Pie de página ── */
.link-more { background: transparent !important; color: #5e6f88; padding: 0 !important; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; position: relative; }
.link-more::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: #5e6f88; transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
.link-more:hover::after { transform: scaleX(1); }
.link-more i { transition: transform 0.3s; }
.link-more:hover i { transform: translate(4px, -4px) rotate(-45deg); }
/* END CUSTOM STYLE */
