/*
Theme Name: STB Events Theme
Theme URI: https://stbevents.com
Author: STB Events
Author URI: https://stbevents.com
Description: Tema WordPress para la landing page de producción de eventos STB Events.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stb-events-theme
*/

/* =========================================================
   STB EVENTS — Producción de Eventos
   Marca: fondo blanco + azul / cian / coral
   Tipografía: Poppins (display, geométrica) + Inter (texto)
   Paleta: #005C8F · #00A7D8 · #E45349 · #FFFFFF
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
    /* Brand */
    --blue: #005C8F;
    /* primario */
    --blue-700: #004B75;
    --blue-900: #00324E;
    /* footer / texto fuerte */
    --cyan: #00A7D8;
    /* secundario */
    --cyan-200: #9FD9EC;
    --cyan-50: #EAF6FB;
    /* tinte de fondo */
    --coral: #E45349;
    /* acento */
    --coral-600: #D2453B;
    --coral-100: #FBE5E2;
    --white: #FFFFFF;

    /* Neutrals */
    --ink: #142733;
    /* texto principal (azul-tinta) */
    --muted: #5B6B76;
    /* texto secundario */
    --muted-2: #8A97A0;
    --border: #E2E9ED;

    /* Surfaces */
    --bg: #FFFFFF;
    --bg-soft: #F3F9FC;
    --bg-deep: #005C8F;

    /* Dark (deep section) */
    --on-deep: #FFFFFF;
    --on-deep-muted: #BBD9E8;
    --deep-surface: #074E76;
    --deep-border: rgba(255, 255, 255, 0.16);

    /* Semantic */
    --danger: #D2453B;
    --success: #1FA37A;

    /* Type */
    --font-display: 'Poppins', system-ui, sans-serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    /* Layout */
    --space-section: clamp(4.5rem, 10vw, 9rem);
    --container: 1240px;
    --gutter: clamp(1.25rem, 5vw, 3rem);
    --radius: 14px;
    --radius-lg: 22px;

    /* Motion */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    /* Z-scale */
    --z-deco: 0;
    --z-nav: 100;
    --z-menu: 200;
    --z-progress: 300;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
select,
textarea {
    font: inherit;
}

::selection {
    background: var(--coral);
    color: var(--white);
}

/* highlight word */
.hl {
    color: var(--coral);
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: var(--space-section);
    position: relative;
    overflow: hidden;
}

.section--soft {
    background: var(--bg-soft);
}

.section--deep {
    background: var(--bg-deep);
    color: var(--on-deep);
}

/* subtle isometric cube pattern on the deep section */
.section--deep::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='104'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.08' stroke-width='1.4'%3E%3Cpath d='M45 30 L64 41 L64 63 L45 74 L26 63 L26 41 Z'/%3E%3Cpath d='M45 52 L45 30 M45 52 L64 63 M45 52 L26 63'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
    pointer-events: none;
}

.section--deep>.container {
    position: relative;
    z-index: 1;
}

.section__head {
    max-width: 760px;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section__eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.section__eyebrow--light {
    color: var(--cyan-200);
}

.section--deep .section__eyebrow {
    color: var(--cyan-200);
}

.section__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.85rem, 4.2vw, 3.1rem);
    line-height: 1.14;
    letter-spacing: -0.015em;
    color: var(--ink);
}

.section--deep .section__title {
    color: var(--white);
}

/* ---------- Skip link ---------- */
.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 999;
    background: var(--blue);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    left: 0;
}

/* ---------- Focus ---------- */
:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    z-index: var(--z-progress);
    transition: width 0.1s linear;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--coral);
    color: var(--white);
    padding: 0.85rem 1.6rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    min-height: 46px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out), background 0.3s ease, box-shadow 0.4s ease;
    will-change: transform;
}

.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--coral-600);
    transform: translateY(101%);
    transition: transform 0.45s var(--ease-out);
    z-index: 0;
}

.btn>* {
    position: relative;
    z-index: 1;
}

.btn:hover {
    box-shadow: 0 14px 30px -10px rgba(228, 83, 73, 0.5);
}

.btn:hover::after {
    transform: translateY(0);
}

.btn:active {
    transform: scale(0.97);
}

.btn--lg {
    padding: 1.05rem 2rem;
    min-height: 54px;
    font-size: 1rem;
}

.btn--sm {
    padding: 0.6rem 1.15rem;
    min-height: 40px;
    font-size: 0.875rem;
}

.btn--block {
    width: 100%;
}

.btn--ghost {
    background: transparent;
    color: var(--blue);
    border: 1.5px solid var(--blue);
}

.btn--ghost::after {
    background: var(--blue);
}

.btn--ghost:hover {
    color: var(--white);
}

.section--deep .btn--ghost {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.55);
}

.section--deep .btn--ghost::after {
    background: var(--white);
}

.section--deep .btn--ghost:hover {
    color: var(--blue);
}

/* ============ DECORATIVE GRAPHIC RESOURCES ============ */
.deco {
    position: absolute;
    z-index: var(--z-deco);
    pointer-events: none;
}

.deco--cube {
    color: var(--coral);
    opacity: 0.5;
}

.deco--dots {
    width: 92px;
    height: 92px;
    background-image: radial-gradient(var(--cyan) 2.2px, transparent 2.2px);
    background-size: 22px 22px;
    opacity: 0.5;
}

.deco--tri {
    width: 0;
    height: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-bottom: 26px solid var(--coral);
    opacity: 0.55;
}

.deco--sec {
    width: 70px;
    height: 80px;
    top: 2.5rem;
    right: 4%;
    opacity: 0.35;
}

.deco--sec-right {
    left: auto;
    right: 5%;
    color: var(--cyan);
}

.float {
    animation: floaty 7s var(--ease-in-out) infinite;
}

@keyframes floaty {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-14px) rotate(4deg);
    }
}

/* ============ NAV ============ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    padding-block: 1.1rem;
    transition: padding 0.4s var(--ease-out), background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.is-scrolled {
    padding-block: 0.55rem;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px) saturate(150%);
    box-shadow: 0 1px 0 var(--border), 0 8px 24px -18px rgba(0, 50, 78, 0.35);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* brand / logo */
.brand {
    display: inline-flex;
    align-items: center;
}

.nav__links {
    display: flex;
    gap: clamp(1rem, 2.5vw, 2.2rem);
    margin-inline: auto;
    margin-block: 0;
    padding: 0;
    list-style: none;
}

.nav__links li {
    display: flex;
    align-items: center;
}

.brand__img {
    height: 52px;
    width: auto;
    transition: height 0.4s var(--ease-out);
}

.nav.is-scrolled .brand__img {
    height: 44px;
}

.brand__fallback {
    display: none;
    align-items: center;
    gap: 0.1rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: -0.01em;
}

.brand__fallback strong {
    color: var(--ink);
    font-weight: 600;
}

.nav__link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink);
    position: relative;
    padding-block: 0.25rem;
    display: inline-block;
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--coral);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-out);
}

.nav__link:hover::after,
.nav__link.is-active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav__link.is-active {
    color: var(--blue);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
}

.nav__toggle span {
    width: 24px;
    height: 2px;
    background: var(--blue);
    border-radius: 2px;
    transition: transform 0.35s var(--ease-out), opacity 0.25s ease;
}

.nav__toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav__toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: var(--z-menu);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: circle(0% at calc(100% - 44px) 40px);
    transition: clip-path 0.6s var(--ease-in-out);
    pointer-events: none;
}

.mobile-menu.is-open {
    clip-path: circle(150% at calc(100% - 44px) 40px);
    pointer-events: auto;
}

.mobile-menu__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.mobile-menu__link {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 8vw, 2.5rem);
    font-weight: 600;
    color: var(--ink);
    opacity: 0;
    transform: translateY(18px);
}

.mobile-menu.is-open .mobile-menu__link {
    animation: menuIn 0.5s var(--ease-out) forwards;
}

.mobile-menu.is-open .mobile-menu__link:nth-child(1) {
    animation-delay: 0.15s;
}

.mobile-menu.is-open .mobile-menu__link:nth-child(2) {
    animation-delay: 0.22s;
}

.mobile-menu.is-open .mobile-menu__link:nth-child(3) {
    animation-delay: 0.29s;
}

.mobile-menu.is-open .mobile-menu__link:nth-child(4) {
    animation-delay: 0.36s;
}

.mobile-menu.is-open .mobile-menu__link:nth-child(5) {
    animation-delay: 0.43s;
}

.mobile-menu.is-open .mobile-menu__cta {
    animation-delay: 0.52s;
}

@keyframes menuIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu__cta {
    margin-top: 1rem;
}

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 8rem 4rem;
    background:
        radial-gradient(120% 80% at 85% 0%, var(--cyan-50) 0%, transparent 55%),
        var(--white);
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

/* hero background decorations */
.deco--hero-1 {
    top: 22%;
    left: 3%;
    width: 70px;
    height: 70px;
    opacity: 0.4;
}

.deco--hero-2 {
    bottom: 14%;
    left: 46%;
    width: 54px;
    height: 62px;
    color: var(--cyan);
    opacity: 0.4;
}

.deco--hero-3 {
    top: 30%;
    right: 6%;
    opacity: 0.4;
}

@media (max-width: 1024px) {

    .deco--hero-1,
    .deco--hero-2,
    .deco--hero-3 {
        display: none;
    }
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 1.4rem;
}

.hero__eyebrow-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--coral);
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 1.6rem;
}

.line-mask {
    display: block;
    overflow: hidden;
    padding-block: 0.04em;
}

.line-mask__inner {
    display: block;
    transform: translateY(110%);
    animation: lineUp 1s var(--ease-out) forwards;
}

.line-mask:nth-child(1) .line-mask__inner {
    animation-delay: 0.1s;
}

.line-mask:nth-child(2) .line-mask__inner {
    animation-delay: 0.26s;
}

@keyframes lineUp {
    to {
        transform: translateY(0);
    }
}

.hero__lead {
    font-size: clamp(1.02rem, 1.6vw, 1.18rem);
    color: var(--muted);
    max-width: 50ch;
    margin-bottom: 2.2rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.2rem;
}

.hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.hero__badges li {
    font-size: 0.92rem;
    color: var(--muted);
}

.hero__badges strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--blue);
}

/* hero visual */
.hero__visual {
    position: relative;
    aspect-ratio: 1 / 1;
}

.hero__frame {
    position: absolute;
    inset: 8% 0 8% 8%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 60px -28px rgba(0, 50, 78, 0.45);
    z-index: 2;
}

.hero__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__block {
    position: absolute;
    inset: 16% 10% 0 0;
    border: 2.5px solid var(--blue);
    border-radius: var(--radius-lg);
    z-index: 1;
}

.hero__cube {
    position: absolute;
    top: -4%;
    right: 4%;
    width: 76px;
    height: 88px;
    color: var(--coral);
    z-index: 3;
}

.hero__dots {
    position: absolute;
    bottom: 2%;
    left: -2%;
    width: 96px;
    height: 96px;
    z-index: 3;
    background-image: radial-gradient(var(--cyan) 2.4px, transparent 2.4px);
    background-size: 20px 20px;
}

.hero__scroll {
    position: absolute;
    bottom: 1.6rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    color: var(--muted);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero__scroll-line {
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, var(--blue), transparent);
    position: relative;
    overflow: hidden;
}

.hero__scroll-line::after {
    content: "";
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--coral);
    animation: scrollDot 2s var(--ease-in-out) infinite;
}

@keyframes scrollDot {
    0% {
        top: -50%;
    }

    100% {
        top: 100%;
    }
}

/* ============ LOGO CLOUD (clientes) ============ */
.logos {
    background: var(--white);
    padding-block: clamp(2.5rem, 6vw, 4rem);
}

.logos__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 780px;
}

.logos__title {
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.4vw, 1.6rem);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.logos__title-muted {
    color: var(--muted);
    font-weight: 500;
    display: block;
}

.logos__title-strong {
    color: var(--ink);
    font-weight: 600;
    display: block;
}

.logos__divider {
    width: 100%;
    max-width: 360px;
    height: 1px;
    background: var(--border);
    margin-block: 1.4rem;
    -webkit-mask-image: linear-gradient(to right, transparent, black, transparent);
    mask-image: linear-gradient(to right, transparent, black, transparent);
}

.logos__viewport {
    width: 100%;
    overflow: hidden;
    padding-block: 0.5rem;
    -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
    mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.logos__track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: clamp(48px, 7vw, 80px);
    animation: logos-scroll 32s linear infinite;
    will-change: transform;
}

.logos__viewport:hover .logos__track {
    animation-play-state: paused;
}

.logos__item {
    height: clamp(34px, 5vw, 46px);
    width: auto;
    flex: none;
    object-fit: contain;
    user-select: none;
    opacity: 0.9;
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.logos__item:hover {
    opacity: 1;
    transform: scale(1.06);
}

.logos__item.is-missing {
    display: none;
}

@keyframes logos-scroll {
    to {
        transform: translateX(-50%);
    }
}

/* Desktop: agrandar toda la sección de marcas (móvil queda igual) */
@media (min-width: 1025px) {
    .logos {
        padding-block: clamp(4rem, 7vw, 6rem);
    }

    .logos__inner {
        max-width: 1120px;
    }

    .logos__title {
        font-size: 2rem;
    }

    .logos__divider {
        max-width: 520px;
        margin-block: 2rem;
    }

    .logos__viewport {
        padding-block: 1rem;
    }

    .logos__track {
        gap: 104px;
    }

    .logos__item {
        height: 64px;
    }
}

/* ============ SERVICIOS ============ */
.services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.service {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(1.75rem, 3vw, 2.75rem);
    overflow: hidden;
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.4s ease;
}

.service::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--coral);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.5s var(--ease-out);
}

.service:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 50px -24px rgba(0, 50, 78, 0.28);
    border-color: var(--cyan-200);
}

.service:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.service__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--cyan-50);
    color: var(--blue);
    display: grid;
    place-items: center;
    margin-bottom: 1.5rem;
    transition: transform 0.5s var(--ease-out), background 0.4s ease, color 0.4s ease;
}

.service__icon svg {
    width: 28px;
    height: 28px;
}

.service:hover .service__icon {
    transform: scale(1.08) rotate(-4deg);
    background: var(--coral);
    color: var(--white);
}

.service__title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
    color: var(--ink);
}

.service__text {
    color: var(--muted);
    font-size: 0.96rem;
    max-width: 42ch;
}

.service__num {
    position: absolute;
    top: 1.5rem;
    right: 1.75rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--cyan-200);
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: color 0.4s ease;
}

.service:hover .service__num {
    color: var(--coral);
}

/* ============ PORTAFOLIO ============ */
.portfolio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 240px;
    gap: 1.1rem;
}

.port-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    grid-row: span 1;
    transform-style: preserve-3d;
    box-shadow: 0 18px 40px -28px rgba(0, 50, 78, 0.4);
}

.port-card--tall {
    grid-row: span 2;
}

.port-card--wide {
    grid-column: span 2;
}

.port-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease-out), filter 0.6s ease;
    filter: saturate(1);
}

.port-card:hover img {
    transform: scale(1.07);
}

.port-card__overlay {
    position: absolute;
    inset: 0;
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0, 50, 78, 0.9) 0%, rgba(0, 50, 78, 0.25) 48%, transparent 78%);
    color: var(--white);
}

.port-card__tag {
    align-self: flex-start;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--coral);
    color: var(--white);
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    margin-bottom: auto;
    transform: translateY(-6px);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s var(--ease-out);
}

.port-card__title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    transform: translateY(12px);
    transition: transform 0.5s var(--ease-out);
}

.port-card__meta {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.82);
    margin-top: 0.25rem;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease 0.05s, transform 0.5s var(--ease-out) 0.05s;
}

.port-card:hover .port-card__tag,
.port-card:focus-visible .port-card__tag {
    opacity: 1;
    transform: translateY(0);
}

.port-card:hover .port-card__title,
.port-card:focus-visible .port-card__title {
    transform: translateY(0);
}

.port-card:hover .port-card__meta,
.port-card:focus-visible .port-card__meta {
    opacity: 1;
    transform: translateY(0);
}

/* ============ NOSOTROS / ABOUT ============ */
.about {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.about__media {
    position: relative;
    aspect-ratio: 4 / 5;
}

.about__frame {
    position: absolute;
    inset: 0 0 0 7%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 60px -30px rgba(0, 50, 78, 0.45);
    z-index: 2;
}

.about__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__block {
    position: absolute;
    inset: 8% 8% 8% 0;
    border: 2.5px solid var(--cyan);
    border-radius: var(--radius-lg);
    z-index: 1;
}

.about__badge {
    position: absolute;
    bottom: 1.1rem;
    left: 0;
    z-index: 3;
    background: var(--white);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    box-shadow: 0 16px 36px -18px rgba(0, 50, 78, 0.4);
}

.about__badge-num {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--coral);
}

.about__badge-label {
    font-size: 0.78rem;
    color: var(--muted);
}

.about__text {
    color: var(--muted);
    margin-top: 1.1rem;
    max-width: 52ch;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1.5rem, 4vw, 3rem);
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat__num {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--blue);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.stat__label {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.4rem;
}

/* ============ PROCESO ============ */
.process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.process__step {
    position: relative;
    padding-top: 1.75rem;
    border-top: 3px solid var(--cyan-200);
    transition: border-color 0.4s ease;
}

.process__step:hover {
    border-color: var(--coral);
}

.process__num {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--coral);
    letter-spacing: 0.05em;
}

.process__title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    margin-block: 0.55rem;
    color: var(--ink);
}

.process__text {
    color: var(--muted);
    font-size: 0.94rem;
}

/* ============ TESTIMONIOS ============ */
.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(1.6rem, 3vw, 2.25rem);
    display: flex;
    flex-direction: column;
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 46px -26px rgba(0, 50, 78, 0.28);
}

.testimonial__stars {
    color: var(--coral);
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.testimonial__quote {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--ink);
    margin-bottom: 1.5rem;
    flex: 1;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.testimonial__avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font-display);
}

.testimonial__author strong {
    display: block;
    font-size: 0.95rem;
    color: var(--ink);
}

.testimonial__author em {
    font-style: normal;
    font-size: 0.82rem;
    color: var(--muted);
}

/* ============ CONTACTO ============ */
.contact {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.contact__text {
    color: var(--on-deep-muted);
    margin-top: 1rem;
    max-width: 40ch;
}

.contact__details {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact__details li {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--deep-border);
}

.contact__label {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan-200);
}

.contact__details a,
.contact__details span:not(.contact__label) {
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 500;
    color: var(--white);
    transition: color 0.3s ease;
}

.contact__details a:hover {
    color: var(--cyan-200);
}

/* Base Form Structure */
.contact__form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: clamp(1.6rem, 4vw, 2.5rem);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    box-shadow: 0 30px 70px -30px rgba(0, 30, 50, 0.55);
}

/* Field Layout Elements */
.field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}

.field label,
.contact__form .wpcf7-form label {
    font-size: 0.85rem;
    color: var(--ink);
    font-weight: 600;
}

.field label span,
.contact__form .wpcf7-form label span {
    color: var(--coral);
}

/* Form Controls & CF7 Structural Integration */
.contact__form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.field input,
.field select,
.field textarea,
.contact__form .wpcf7-form input[type="text"],
.contact__form .wpcf7-form input[type="email"],
.contact__form .wpcf7-form input[type="tel"],
.contact__form .wpcf7-form input[type="date"],
.contact__form .wpcf7-form select,
.contact__form .wpcf7-form textarea {
    -webkit-appearance: none;
    appearance: none;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: var(--ink);
    min-height: 48px;
    width: 100%;
    font-family: var(--font-sans);
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.field textarea,
.contact__form .wpcf7-form textarea {
    min-height: 110px;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder,
.contact__form .wpcf7-form input::placeholder,
.contact__form .wpcf7-form textarea::placeholder {
    color: var(--muted-2);
}

.field select,
.contact__form .wpcf7-form select {
    color: var(--muted);
}

.field select:valid,
.contact__form .wpcf7-form select:valid {
    color: var(--ink);
}

/* Focus States */
.field input:focus,
.field select:focus,
.field textarea:focus,
.contact__form .wpcf7-form input:focus,
.contact__form .wpcf7-form select:focus,
.contact__form .wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 167, 216, 0.18);
}

/* Validation Errors & Status Output */
.field--invalid input,
.field--invalid select,
.field--invalid textarea,
.contact__form .wpcf7-not-valid {
    border-color: var(--danger) !important;
}

.field__error,
.contact__form .wpcf7-not-valid-tip {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

.form__status {
    font-size: 0.92rem;
    margin-top: 0.25rem;
    min-height: 1.2em;
}

.form__status.is-success {
    color: var(--success);
}

.form__status.is-error {
    color: var(--danger);
}

.contact__form .wpcf7-response-output {
    margin: 0.5rem 0 0 0 !important;
    padding: 0.8rem 1rem !important;
    border-radius: 10px !important;
    font-size: 0.92rem !important;
    border: 1px solid transparent !important;
}

.contact__form form.sent .wpcf7-response-output {
    background-color: rgba(31, 163, 122, 0.1) !important;
    border-color: var(--success) !important;
    color: var(--success) !important;
}

.contact__form form.failed .wpcf7-response-output,
.contact__form form.invalid .wpcf7-response-output {
    background-color: rgba(210, 69, 59, 0.1) !important;
    border-color: var(--danger) !important;
    color: var(--danger) !important;
}

/* Submit Buttons */
.contact__form .btn,
.contact__form .wpcf7-submit,
.contact__form input[type="submit"] {
    appearance: none;
    border: 0 !important;
    width: 100%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--coral) !important;
    color: var(--white) !important;
    padding: 1.05rem 2rem !important;
    border-radius: 100px !important;
    font-weight: 600 !important;
    font-size: 1rem;
    min-height: 54px !important;
    transition: transform 0.4s var(--ease-out), background 0.3s ease, box-shadow 0.4s ease;
}

.contact__form .btn:hover,
.contact__form .wpcf7-submit:hover,
.contact__form input[type="submit"]:hover {
    box-shadow: 0 14px 30px -10px rgba(228, 83, 73, 0.5);
    background: var(--coral-600) !important;
}

.contact__form hr,
.contact__form .wpcf7-form>hr,
.contact__form .wpcf7-form>p[role="separator"] {
    display: none;
}

.contact__form .hidden-fields-container {
    display: none;
}

/* Hide screen reader response visually while preserving accessibility */
.wpcf7 .screen-reader-response {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Buttons Loader & Spinners */
.btn.is-loading {
    pointer-events: none;
}

.btn.is-loading .btn__label {
    opacity: 0;
}

.btn.is-loading::before {
    content: "";
    position: absolute;
    z-index: 2;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.contact__form .wpcf7-spinner {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============ FOOTER ============ */
.footer {
    background: var(--blue-900);
    color: var(--white);
    padding-block: clamp(3rem, 6vw, 4.5rem) 1.75rem;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer__logo-chip {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer__logo-chip img {
    height: 60px;
    width: auto;
    margin-left: -6px;
}

.brand__fallback--chip {
    font-size: 1.3rem;
}

.footer__brand p {
    color: var(--on-deep-muted);
    font-size: 0.92rem;
}

.footer__nav,
.footer__social {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer__nav a,
.footer__social a {
    color: var(--on-deep-muted);
    font-size: 0.92rem;
    width: fit-content;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer__nav a:hover,
.footer__social a:hover {
    color: var(--cyan-200);
    transform: translateX(4px);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .nav__links {
        display: none;
    }

    .nav__cta {
        display: none;
    }

    .nav__toggle {
        display: flex;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero__visual {
        max-width: 460px;
        order: -1;
        aspect-ratio: 4 / 3;
    }

    .about {
        grid-template-columns: 1fr;
    }

    .about__media {
        max-width: 460px;
    }

    .contact {
        grid-template-columns: 1fr;
    }

    .process {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .services {
        grid-template-columns: 1fr;
    }

    .portfolio {
        grid-template-columns: 1fr;
        grid-auto-rows: 280px;
    }

    .port-card--tall {
        grid-row: span 1;
    }

    .port-card--wide {
        grid-column: span 1;
    }

    .testimonials {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-block: 7rem 3.5rem;
    }

    .hero__scroll {
        display: none;
    }

    .deco--sec {
        display: none;
    }
}

@media (max-width: 420px) {
    .process {
        grid-template-columns: 1fr;
    }

    .hero__badges {
        gap: 1.25rem;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .line-mask__inner {
        transform: none;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .logos__track {
        animation: none;
    }

    .hero__scroll-line::after {
        animation: none;
    }
}