/* ==================================================
   QUIÉNES SOMOS — HERO
   ================================================== */

.ff-about-hero {
	width: 100%;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 40px;
	box-sizing: border-box;
	color: #0f1115;
}

/* Contenido interior */
.ff-about-hero .about-hero {
	position: relative;
	width: 100%;
	margin: 0 auto;
	padding-bottom: 80px;
	overflow: hidden;
}

/* Resplandor terracota del fondo */
.ff-about-hero .about-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
			transparent 55%
		);
	opacity: 0.85;
}

/* Mantiene el contenido por encima del resplandor */
.ff-about-hero .about-hero > * {
	position: relative;
	z-index: 1;
}

/* Etiqueta superior */
.ff-about-hero .hero__pre {
	display: inline-flex;
	align-items: center;
	gap: 11.2px;
	margin-bottom: 41.6px;
	font-size: 12.48px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 1.4976px;
	text-transform: uppercase;
	color: #0f11158c;
}

/* Línea de la etiqueta */
.ff-about-hero .hero__pre::before {
	content: "";
	width: 28px;
	height: 2px;
	flex: none;
	background: #b0361d;
	opacity: 0.75;
}

/* Título principal */
.ff-about-hero .hero__claim {
	max-width: 1400px;
	margin: 0 0 56px !important;
	font-family: 'Inter Tight', sans-serif !important;
	font-size: clamp(40px, 6.2vw, 99.2px) !important;
	font-weight: 500 !important;
	line-height: 1.02 !important;
	letter-spacing: -0.038em !important;
	color: #0f1115 !important;
}

/* Cada línea ocupa su propia fila */
.ff-about-hero .hero__claim .mask {
	display: block;
	overflow: hidden;
	padding-bottom: 0.14em;
	margin-bottom: -0.14em;
}

/* Líneas secundarias atenuadas */
.ff-about-hero .hero__claim .soft {
	opacity: 0.32;
}

/* Fila inferior del hero */
.ff-about-hero .hero__meta {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 48px;
	padding-top: 32px;
	border-top: 1px solid #0f11151f;
}

/* Contenedor del texto */
.ff-about-hero .hero__tag {
	max-width: 52ch;
}

/* Párrafos */
.ff-about-hero .hero__tag p {
	margin: 0;
	font-size: 15.68px;
	font-weight: 400;
	line-height: 1.6;
	color: #0f11158c;
}

.ff-about-hero .hero__tag p + p {
	margin-top: 12px;
}

/* Frase destacada */
.ff-about-hero .hero__tag .hi {
	color: #0f1115;
	font-weight: 500;
}

/* Botón */
.ff-about-hero .hero__cta {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 15.2px 26.4px;
	border-radius: 100px;
	background: #0f1115;
	color: #f9f7f1 !important;
	font-family: 'Inter Tight', sans-serif;
	font-size: 15.04px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none !important;
	white-space: nowrap;
	transition:
		transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
		background 0.25s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Flecha */
.ff-about-hero .hero__cta svg {
	width: 14px;
	height: 14px;
	flex: none;
	transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hover del botón */
.ff-about-hero .hero__cta:hover {
	transform: translateY(-2px);
	background: #b0361d;
	box-shadow:
		0 12px 40px -12px rgba(176, 54, 29, 0.22),
		0 2px 0 #b0361d inset;
}

/* Movimiento de la flecha */
.ff-about-hero .hero__cta:hover svg {
	transform: translateX(3px);
}

/* Menú sobre las secciones oscuras */
body:has(#quienes-somos-hero) #masthead.ff-navigation-dark,
body:has(#quienes-somos-hero) #masthead.ff-navigation-dark .ast-primary-header-bar,
body:has(#quienes-somos-hero) #masthead.ff-navigation-dark .site-primary-header-wrap,
body:has(#quienes-somos-hero) #masthead.ff-navigation-dark .ast-builder-grid-row,
body:has(#quienes-somos-hero) #masthead.ff-navigation-dark .ast-builder-grid-row-container {
    background-color: #0F1115 !important;
}

body:has(#quienes-somos-hero) #masthead.ff-navigation-dark .menu-link,
body:has(#quienes-somos-hero) #masthead.ff-navigation-dark .site-title a,
body:has(#quienes-somos-hero) #masthead.ff-navigation-dark .ff-lang-switcher a,
body:has(#quienes-somos-hero) #masthead.ff-navigation-dark .ff-lang-switcher span {
    color: #f9f7f1 !important;
}

body:has(#quienes-somos-hero) #masthead.ff-navigation-dark .ast-custom-button {
    color: #f9f7f1 !important;
    border-color: #f9f7f1 !important;
    background-color: transparent !important;
}

/* Logos: quitar padding únicamente en esta página */
body:has(#quienes-somos-hero) .clients__grid {
    padding: 0;
}

/* Numeración editorial */
body:has(#quienes-somos-hero) .edl__num {
    font-weight: 500;
    color: #B0361D;
    font-size: 12.8px;
    letter-spacing: 0.512px;
}

/* Etiquetas editoriales */
body:has(#quienes-somos-hero) .edl {
    font-size: 11.84px;
    font-weight: 500;
    letter-spacing: 1.4208px;
    line-height: 11.84px;
    text-transform: uppercase;
}

/* Título de Trabajo */
body:has(#quienes-somos-hero) .work__title {
    font-family: 'Inter Tight', sans-serif;
    font-size: 57px;
    color: #0F1115;
    font-weight: 500;
    letter-spacing: -1.1232px;
    line-height: 1.1;
    margin-top: 19px;
}

/* Textos destacados */
body:has(#quienes-somos-hero) .accent {
    color: #B0361D;
}

/* Descripción de Trabajo */
body:has(#quienes-somos-hero) .work__note {
    margin-top: 19.2px;
    font-size: 19.2px;
    line-height: 1.6;
    color: #0f11158c;
    max-width: 524.875px;
}

/* Transición del contenedor de imagen */
body:has(#quienes-somos-hero) .work__media.work__media--air {
    transition: transform .6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Nombre de marca */
body:has(#quienes-somos-hero) .work__name {
    font-family: 'Inter Tight', sans-serif;
    color: #0F1115;
    font-weight: 600;
    font-size: 17.92px;
    letter-spacing: -0.448px;
}

/* Enlace al creador */
body:has(#quienes-somos-hero) .work__creator {
    display: inline-flex;
    align-items: center;
    gap: 6.4px;
    font-size: 14.08px;
    font-weight: 500;
    color: #B0361D;
    border-bottom: 1px solid transparent;
    transition:
        border-color .25s cubic-bezier(0.22, 1, 0.36, 1),
        gap .25s cubic-bezier(0.22, 1, 0.36, 1);
}

body:has(#quienes-somos-hero) .contact-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

body:has(#quienes-somos-hero) .contact-divider::before,
body:has(#quienes-somos-hero) .contact-divider::after {
    content: "";
    position: static;
    flex: 0 1 140px;
    width: 140px;
    height: 1px;
    margin: 0;
    background-color: #0f11151f;
    transform: none;
}

body:has(#quienes-somos-hero) .contact-divider__flamingo {
    flex: 0 0 auto;
    margin: 0;
}

/* Quitar padding lateral de los contenedores de la landing */
body:has(#quienes-somos-hero) .entry-content,
body:has(#quienes-somos-hero) .ff-scroll-section,
body:has(#quienes-somos-hero) .ff-scroll-section > section,
body:has(#quienes-somos-hero) .ff-about-contact > .ct,
body:has(#quienes-somos-hero) .contact-divider {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

body:has(#quienes-somos-hero) .vhead,
body:has(#quienes-somos-hero) .vlist {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

/* Salto exclusivo de mobile */
.ff-about-mobile-break {
    display: none;
}

@media (max-width: 767px) {

    /* HERO */

    body .ff-about-hero .about-hero {
        margin-top: 20px !important;
    }

    body .ff-about-hero .ff-about-mobile-break {
        display: initial;
    }

    body .ff-about-hero .hero__claim,
    body .ff-about-hero .hero__claim .mask,
    body .ff-about-hero .hero__claim .mask > span {
        font-size: 30px !important;
        line-height: 1.1 !important;
    }

    body .ff-about-hero .hero__meta {
        flex-direction: column;
        align-items: stretch;
    }

    body .ff-about-hero .hero__cta,
    body .ff-about-direction .dir__cta .btn.btn--primary {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box;
    }

    /* EXPERIENCIA */

    body .ff-about-brands .brands__title {
        max-width: none;
        font-size: 22px !important;
        line-height: 1.2 !important;
    }

    body .ff-about-brands .brands__title .mask,
    body .ff-about-brands .brands__title .mask > span {
        display: inline !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible;
        transform: none !important;
        opacity: 1 !important;
    }

    body .ff-about-brands .brands__title .mask + .mask::before {
        content: " ";
    }

    body .ff-about-brands .brands__sub,
    body .ff-about-brands .brands__sub p {
        font-size: 16px !important;
    }

    /* LOGOS: CARRUSEL DESLIZABLE */

    body .ff-about-brands .clients__block {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    body .ff-about-brands #aboutClientsGrid {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        gap: 0;
        padding: 0 !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
        box-sizing: border-box;
    }

    body .ff-about-brands #aboutClientsGrid .c-slot {
        flex: 0 0 100%;
        width: 100%;
        height: 120px;
        scroll-snap-align: start;
    }

    body .ff-about-brands #aboutClientsGrid .c-slot__item {
        opacity: 1 !important;
        transition: none !important;
    }

    body .ff-about-brands #aboutClientsGrid .cl-img {
        max-width: 180px;
        max-height: 90px;
        object-fit: contain;
    }

    /* ORIGEN: TRES FILAS */

    body .ff-about-origin .org__diagram {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body .ff-about-origin .org__node {
        border-right: 0;
        border-bottom: 1px solid #0f11151f;
    }

    body .ff-about-origin .org__node:last-child {
        border-bottom: 0;
    }

    body .ff-about-origin .org__arrow {
        top: auto;
        right: auto;
        bottom: -7px;
        left: 50%;
        transform: translateX(-50%) rotate(90deg);
    }

    /* DIRECCIÓN */

    body .ff-about-direction .dir {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 32px;
    }

    body .ff-about-direction .dir__photo,
    body .ff-about-direction .dir__content {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    /* EQUIPO: NÚMERO, TÍTULO Y DESCRIPCIÓN */

    body .ff-about-direction .team__grid {
        display: block;
    }

    body .ff-about-direction .team__row {
        display: grid !important;
        grid-template-columns: 28px minmax(0, 1fr) !important;
        gap: 10px 16px;
        align-items: baseline;
    }

    body .ff-about-direction .team__row::before {
        grid-column: 1;
        grid-row: 1;
    }

    body .ff-about-direction .team__row > strong {
        grid-column: 2;
        grid-row: 1;
    }

    body .ff-about-direction .team__row > span {
        grid-column: 2;
        grid-row: 2;
        max-width: none;
    }

    body .ff-about-direction .team__row::after {
        inset-inline: 0;
    }

    /* TRABAJOS */

    body .ff-about-work .work__nav--mobile {
        display: flex !important;
        gap: 10px;
        margin: 24px 0;
    }

    body .ff-about-work .work__nav--mobile button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid #0f111540;
        border-radius: 50%;
        background: transparent;
        color: #0f1115;
        font-size: 22px;
        cursor: pointer;
    }

    body .ff-about-work .work__nav--mobile button:disabled {
        opacity: 0.3;
        cursor: default;
    }

    body .ff-about-work .work__track-wrapper {
        min-width: 0;
        max-width: 100%;
        padding-inline: 0;
    }

    body .ff-about-work .work__track {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        transform: none !important;
        transition: none;
    }

    body .ff-about-work .work__item {
        flex: 0 0 100%;
        min-width: 0;
        scroll-snap-align: start;
    }

    /* VERTICALES */

    body .ff-about-creators .vrow {
        grid-template-columns: 28px minmax(0, 1fr) !important;
        gap: 10px 16px;
        align-items: baseline;
    }

    body .ff-about-creators .vrow__folio {
        grid-column: 1;
        grid-row: 1;
    }

    body .ff-about-creators .vrow__name {
        grid-column: 2;
        grid-row: 1;
    }

    body .ff-about-creators .vrow__desc {
        grid-column: 2;
        grid-row: 2;
        max-width: none;
        padding-top: 0;
    }

    /* PREMIOS: FOTOS Y DESPUÉS LISTADO */

    body .ff-about-creators .awards__body:has(.plates) {
        display: flex !important;
        flex-direction: column;
        gap: 32px;
    }

    body .ff-about-creators .plates {
        order: 1;
        width: 100%;
        min-width: 0;
    }

    body .ff-about-creators .ledger {
        order: 2;
        width: 100%;
        min-width: 0;
    }

    body .ff-about-creators .plate {
        margin-inline: 0;
    }

    /* CONTACTO: TEXTO Y DESPUÉS FORMULARIO */

    body .ff-about-contact .ct {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch;
        gap: 40px;
    }

    body .ff-about-contact .ct > .ct__content,
    body .ff-about-contact .ct > .ct__form {
        flex: none !important;
        width: 100% !important;
        min-width: 0;
        max-width: none;
        margin: 0;
    }

    body .ff-about-contact .ct__content {
        order: 1;
    }

    body .ff-about-contact .ct__form {
        order: 2;
    }
}

/* La navegación nueva solo aparece en mobile */
@media (min-width: 768px) {
    .ff-about-work .work__nav--mobile {
        display: none !important;
    }
}

/* Ocultar el salto en desktop */
.ff-about-mobile-break {
    display: none;
}

/* Mostrar el salto en mobile */
@media (max-width: 767px) {
    .ff-about-mobile-break {
        display: initial;
    }
}

@media (max-width: 767px) {

    body:has(#quienes-somos-hero) #masthead.ff-navigation-dark,
    body:has(#quienes-somos-hero) #masthead.ff-navigation-dark #ast-mobile-header,
    body:has(#quienes-somos-hero) #masthead.ff-navigation-dark .ast-primary-header-bar,
    body:has(#quienes-somos-hero) #masthead.ff-navigation-dark .ast-mobile-header-wrap,
    body:has(#quienes-somos-hero) #masthead.ff-navigation-dark .ast-builder-grid-row-container {
        background-color: #0F1115 !important;
    }

    body:has(#quienes-somos-hero) #masthead.ff-navigation-dark .menu-toggle {
        color: #F9F7F1 !important;
    }

    body:has(#quienes-somos-hero) #masthead.ff-navigation-dark .menu-toggle svg {
        fill: currentColor;
    }

}

@media (max-width: 767px) {
    body .ff-about-work .work__nav--mobile {
        justify-content: flex-start !important;
    }
}

@media (max-width: 767px) {

    /* Eliminar el recorrido sticky en mobile */
    body .ff-about-criteria .crit__scroller {
        height: auto !important;
        margin-top: 32px !important;
    }

    body .ff-about-criteria .crit__pin {
        position: static !important;
        display: block !important;
        height: auto !important;
        min-height: 0;
        padding: 0 !important;
    }

    /* Ocultar la numeración lateral de desktop */
    body .ff-about-criteria .crit__stage {
        display: none !important;
    }

    /* Mostrar los tres contenidos en una columna */
    body .ff-about-criteria .crit__spreads {
        display: flex !important;
        flex-direction: column;
        gap: 48px;
        height: auto !important;
    }

    body .ff-about-criteria .crit__item {
        position: static !important;
        inset: auto;
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        height: auto;
        min-width: 0;
        padding: 0;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        transition: none !important;
    }

    /* Número grande de cada ítem */
    body .ff-about-criteria .crit__item-folio {
        display: block !important;
        margin: 0 0 12px;
        font-family: 'Inter Tight', sans-serif;
        font-size: 100px;
        font-weight: 600;
        line-height: 0.9;
        letter-spacing: -0.05em;
        color: #F9F7F1;
    }

    /* Nombre del criterio */
    body .ff-about-criteria .crit__kicker {
        display: block !important;
        margin: 0 0 24px;
        font-family: 'Inter Tight', sans-serif;
        font-size: 20px;
        font-weight: 500;
        color: #B0361D;
    }

    body .ff-about-criteria .crit__name,
    body .ff-about-criteria .crit__lead {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 767px) {

    body .ff-about-criteria .crit__item-folio {
        color: #f9f7f129;
    }

    body .ff-about-criteria .crit__kicker {
        text-transform: uppercase;
        letter-spacing: 1.8368px;
        margin-bottom: 22.4px;
    }

    /* Texto continuo, con ajuste natural al ancho */
    body .ff-about-criteria .crit__name > span {
        display: inline;
    }

    body .ff-about-criteria .crit__name > span + span::before {
        content: " ";
    }

}