/* I WISH - Design System — Sorani-inspired warmth */
:root {
    /* Warm palette — no pure blacks, no pure whites */
    --oro: #D4AF37;
    --oro-claro: #E8C547;
    --oro-oscuro: #9C8A2E;
    --oro-ghost: rgba(212,175,55,0.12);
    --negro: #1a1714;              /* warm charcoal, not pure black */
    --gris-oscuro: #2a2520;        /* warm dark */
    --gris-medio: #6b635a;         /* warm gray with brown undertone */
    --gris-claro: #e5e0da;         /* warm light gray */
    --gris-fondo: #f7f5f2;         /* warm off-white */
    --blanco: #fdfcfa;             /* cream white */
    --puro-blanco: #FFFFFF;
    --crema: #f0ebe4;              /* warm card bg */
    --font-display: 'Cormorant', serif;
    --font-body: 'DM Sans', sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* PAGE LOADER */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--negro);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    display: block;
    height: 120px;
    width: auto;
    margin: 0 auto 20px;
    filter: drop-shadow(0 0 20px rgba(212,175,55,0.3));
    animation: loaderPulse 1.5s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}

.loader-bar {
    width: 120px;
    height: 2px;
    background: rgba(212,175,55,0.15);
    margin: 0 auto;
    border-radius: 1px;
    overflow: hidden;
}

.loader-fill {
    height: 100%;
    width: 0;
    background: var(--oro);
    border-radius: 1px;
    animation: loaderFill 1.2s ease-out forwards;
}

@keyframes loaderFill {
    to { width: 100%; }
}

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
    font-family: var(--font-body);
    color: var(--negro);
    background: var(--blanco);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* SCROLL PROGRESS */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--oro-claro), var(--oro));
    z-index: 100;
    box-shadow: 0 0 8px rgba(212,175,55,0.4);
    transition: width 0.1s linear;
    pointer-events: none;
}

/* HEADER */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    height: 86px;
    background: var(--negro);
    border-bottom: 1px solid rgba(212,175,55,0.3);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s, box-shadow 0.3s, height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#header.header-scrolled {
    background: rgba(26,23,20,0.92);
    box-shadow: 0 4px 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    height: 64px;
}

#header.header-scrolled .nav-logo a {
    font-size: 24px;
}

#header.header-hidden {
    transform: translateY(-100%);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 48px;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 12px;
    font-weight: 500;
    color: rgba(253,252,250,0.7);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s var(--ease);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--oro);
    transition: width 0.4s var(--ease);
}

.nav-link:hover::after,
.nav-link.nav-active::after { width: 100%; }
.nav-link:hover { color: var(--oro); }
.nav-link.nav-active { color: var(--oro); }

.nav-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    height: 48px;
    width: auto;
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s;
    filter: drop-shadow(0 0 4px rgba(212,175,55,0.2));
}

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: #D4AF37 !important;
    letter-spacing: 4px;
    transition: font-size 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#header.header-scrolled .nav-logo-img {
    height: 36px;
}

#header.header-scrolled .nav-logo-text {
    font-size: 18px;
}

.nav-logo-link:hover .nav-logo-img {
    filter: drop-shadow(0 0 8px rgba(212,175,55,0.4));
}

.nav-logo-link:hover .nav-logo-text {
    color: var(--oro-claro);
}

.nav-social { display: flex; gap: 14px; }
.nav-social a { color: rgba(253,252,250,0.5); transition: all 0.3s; }
.nav-social a:hover { color: var(--oro); }

.nav-divider { width: 1px; height: 14px; background: rgba(255,255,255,0.15); }

/* Hamburger — hidden on desktop */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 70;
    position: relative;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--oro);
    margin: 5px 0;
    transition: all 0.3s var(--ease);
    border-radius: 1px;
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu overlay */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(26,23,20,0.97);
    z-index: 55;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
    backdrop-filter: blur(20px);
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mobile-menu-link {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 400;
    color: var(--blanco);
    opacity: 0.8;
    transition: all 0.3s var(--ease);
    letter-spacing: 2px;
}

.mobile-menu-link:hover {
    color: var(--oro);
    opacity: 1;
}

.mobile-menu-social {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 24px;
}

.mobile-menu-social a {
    color: rgba(253,252,250,0.4);
    transition: color 0.3s;
}

.mobile-menu-social a:hover {
    color: var(--oro);
}

.nav-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(253,252,250,0.6);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 6px 14px;
    border-radius: 99px;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.nav-lang:hover { border-color: var(--oro); color: var(--oro); }

/* HERO */
.hero {
    position: relative;
    height: 110vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    margin-top: 86px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: -10%;
    background: url('images/hero.jpg') center/cover no-repeat;
    will-change: transform;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(26,23,20,0.92) 0%,
        rgba(26,23,20,0.7) 40%,
        rgba(26,23,20,0.5) 70%,
        rgba(26,23,20,0.75) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 48px;
    margin-left: 8vw;
    max-width: 700px;
}

/* Staggered hero entrance — cinematic reveal */
@keyframes heroSlideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroLineGrow {
    from { width: 0; }
    to { width: 36px; }
}

.hero-logo {
    width: 180px;
    height: auto;
    margin-bottom: 32px;
    opacity: 0;
    animation: heroSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    filter: drop-shadow(0 0 20px rgba(212,175,55,0.3));
}

.hero-slogan {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 600;
    color: var(--blanco);
    line-height: 1.15;
    margin-bottom: 28px;
    letter-spacing: -0.5px;
    opacity: 0;
    animation: heroSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.hero-accent {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: var(--oro);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 24px;
    padding-left: 48px;
    position: relative;
    opacity: 0;
    animation: heroSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-accent::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 1px;
    background: var(--oro);
    opacity: 0.6;
    animation: heroLineGrow 0.6s ease-out 0.8s forwards;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 76px;
    font-weight: 600;
    color: var(--blanco);
    line-height: 1.05;
    margin-bottom: 28px;
    letter-spacing: -1px;
    opacity: 0;
    animation: heroSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.hero-subtitle {
    font-size: 17px;
    color: rgba(253,252,250,0.6);
    line-height: 1.9;
    margin-bottom: 48px;
    font-weight: 300;
    max-width: 500px;
    opacity: 0;
    animation: heroSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: heroSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.3s forwards;
}

.hero-scroll {
    margin-top: 60px;
    animation: scrollBounce 2.5s ease-in-out infinite;
    opacity: 0.4;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* BUTTONS */
.btn-primary {
    display: inline-block;
    background: var(--oro);
    color: var(--negro);
    font-weight: 600;
    font-size: 13px;
    padding: 14px 36px;
    border-radius: 99px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s var(--ease);
    border: 1px solid var(--oro);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.25) 50%, transparent 60%);
    transition: left 0.6s var(--ease);
    pointer-events: none;
}

.btn-primary:hover {
    background: var(--oro-oscuro);
    border-color: var(--oro-oscuro);
    color: var(--blanco);
    box-shadow: 0 8px 30px rgba(212,175,55,0.25);
    transform: translateY(-2px);
}

.btn-primary:hover::after {
    left: 125%;
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--oro);
    font-weight: 600;
    font-size: 13px;
    padding: 14px 36px;
    border-radius: 99px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid var(--oro);
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--oro);
    border-radius: inherit;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
    z-index: -1;
}

.btn-outline:hover {
    color: var(--negro);
    transform: translateY(-2px);
    background: transparent;
}

.btn-outline:hover::before {
    transform: scaleX(1);
}

.btn-outline-light {
    color: rgba(253,252,250,0.7);
    border-color: rgba(253,252,250,0.25);
}

.btn-outline-light::before {
    background: rgba(253,252,250,0.12);
}

.btn-outline-light:hover {
    color: var(--blanco);
    border-color: rgba(253,252,250,0.5);
    background: transparent;
}

/* STATS BANNER */
.stats-banner {
    background: var(--negro);
    padding: 60px 48px;
    position: relative;
}

.stats-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--oro), transparent);
    opacity: 0.3;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.stat-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 500;
    color: var(--oro);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 11px;
    font-weight: 500;
    color: rgba(253,252,250,0.45);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* SECTIONS */
.section {
    padding: 120px 48px 80px;
    max-width: 1300px;
    margin: 0 auto;
}

.section-alt {
    background: var(--gris-fondo);
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.section-alt > .section-header,
.section-alt > .cards-row,
.section-alt > .trust-logos {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 48px;
    padding-right: 48px;
}

.section-dark {
    background: var(--negro);
    color: var(--blanco);
    max-width: 100%;
}

.section-header {
    margin-bottom: 60px;
}

.section-accent {
    font-size: 12px;
    font-weight: 500;
    color: var(--oro);
    text-transform: uppercase;
    letter-spacing: 3px;
    display: inline-block;
    margin-bottom: 12px;
    padding-left: 36px;
    position: relative;
}

.section-accent::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 24px;
    height: 1px;
    background: var(--oro);
    opacity: 0.5;
}

.section-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 600;
    margin-top: 0;
    color: var(--negro);
    line-height: 1.1;
    text-wrap: balance;
}

.section-desc {
    font-size: 16px;
    color: var(--gris-medio);
    line-height: 1.8;
    margin-top: 20px;
    max-width: 550px;
    font-weight: 300;
}

/* SCROLL REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* CURVED SECTION DIVIDER */
.section-curve {
    width: 100%;
    height: 80px;
    display: block;
    margin-bottom: -2px;
}

/* CARDS */
.cards-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    min-height: 480px;
    cursor: pointer;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
    transform-style: preserve-3d;
    will-change: transform;
}

.card:hover {
    box-shadow: 0 20px 60px rgba(26,23,20,0.15);
}

/* Cards container needs perspective for 3D tilt */
.cards-row {
    perspective: 1000px;
}

.card-full { flex: 1 1 100%; min-height: 560px; }
.card-half { flex: 1 1 calc(50% - 10px); }
.card-third { flex: 1 1 calc(33.333% - 14px); }

.card-image {
    position: absolute;
    inset: 0;
    transition: transform 0.8s var(--ease);
}

.card:hover .card-image { transform: scale(1.04); }

/* Image mask — photos dissolve at top */
.card-image img {
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, black 30%, black 100%);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(26,23,20,0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 44px;
    transition: background 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card-overlay {
    background: linear-gradient(180deg, rgba(26,23,20,0.1) 0%, rgba(26,23,20,0.93) 60%);
}

.card-content { max-width: 480px; }

.card-content h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--blanco);
    margin-bottom: 12px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* On hover: title slides up to make room for revealed content */
.card:hover .card-content h3 {
    transform: translateY(-8px);
}

.card-separator {
    width: 48px;
    height: 2px;
    background: var(--oro);
    margin-bottom: 16px;
    transition: width 0.5s var(--ease), opacity 0.5s;
    opacity: 0.8;
}

.card:hover .card-separator { width: 72px; opacity: 1; }

/* Description hidden by default, revealed on hover */
.card-content p {
    font-size: 14px;
    color: rgba(253,252,250,0.75);
    line-height: 1.7;
    font-weight: 300;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease 0.1s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
    max-height: 0;
    overflow: hidden;
}

.card:hover .card-content p {
    opacity: 1;
    transform: translateY(0);
    max-height: 200px;
}

.card-icon {
    margin-bottom: 14px;
    opacity: 0;
    transform: translateY(10px) scale(0.8);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card-icon {
    opacity: 0.9;
    transform: translateY(0) scale(1);
}

/* Gold glow border on hover */
.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
    pointer-events: none;
    z-index: 2;
}

.card:hover::after {
    border-color: rgba(212,175,55,0.3);
    box-shadow: inset 0 0 30px rgba(212,175,55,0.06);
}

/* Arrow hint at bottom-right */
.card-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(212,175,55,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.4s ease 0.15s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
    z-index: 3;
}

.card-arrow svg { width: 16px; height: 16px; stroke: var(--oro); stroke-width: 2; fill: none; }

.card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* FOUNDER — asymmetric editorial */
.founder-section {
    padding: 120px 48px 80px;
    max-width: 1300px;
    margin: 0 auto;
}

.founder-layout {
    display: grid;
    grid-template-columns: 0.45fr 0.55fr;
    gap: 60px;
    align-items: center;
}

.founder-photo-wrap {
    position: relative;
}

/* Gold offset frame accent — sits behind the photo container */
.founder-photo-wrap::before {
    content: '';
    position: absolute;
    top: 16px;
    left: -12px;
    right: 16px;
    bottom: -12px;
    border: 1px solid var(--oro);
    border-radius: 16px;
    opacity: 0.3;
    z-index: 0;
    transition: all 0.6s var(--ease);
    pointer-events: none;
}

.founder-photo-wrap:hover::before {
    top: 20px;
    left: -16px;
    bottom: -16px;
    opacity: 0.5;
}

.founder-photo {
    height: 560px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.founder-photo img {
    mask-image: linear-gradient(to right, black 70%, transparent 100%);
    transition: transform 0.8s var(--ease);
}

.founder-photo:hover img {
    transform: scale(1.03);
}

.founder-bio {
    padding: 20px 0;
}

.founder-name {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 500;
    color: var(--negro);
    margin: 4px 0 0;
    line-height: 1.1;
}

.founder-line {
    width: 60px;
    height: 3px;
    background: var(--oro);
    margin: 24px 0;
    border-radius: 2px;
}

.founder-lead {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 400;
    font-style: italic;
    color: var(--gris-medio);
    line-height: 1.6;
    margin-bottom: 32px;
}

.founder-credentials {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.founder-cred {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gris-claro);
}

.founder-cred:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.founder-cred strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--oro-oscuro);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.founder-cred span {
    font-size: 15px;
    color: var(--gris-medio);
    line-height: 1.7;
    font-weight: 300;
}

@media (max-width: 1024px) {
    .founder-layout { grid-template-columns: 1fr; gap: 32px; }
    .founder-photo { height: 400px; }
}

@media (max-width: 768px) {
    .founder-section { padding: 80px 20px 50px; }
    .founder-photo { height: 320px; }
    .founder-name { font-size: 36px; }
}

/* QUOTE SECTION */
.quote-section {
    background: var(--crema);
    padding: 100px 48px;
    text-align: center;
    position: relative;
}

.quote-inner {
    max-width: 750px;
    margin: 0 auto;
}

.quote-mark {
    font-family: var(--font-display);
    font-size: 100px;
    color: var(--oro);
    line-height: 0.4;
    opacity: 0.2;
    margin-bottom: 16px;
}

.quote-text {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 400;
    font-style: italic;
    color: var(--negro);
    line-height: 1.55;
    margin-bottom: 28px;
    text-wrap: balance;
}

.quote-author {
    font-size: 12px;
    font-weight: 500;
    color: var(--oro);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-style: normal;
}

/* METHOD INFOGRAPHIC — Sorani-inspired data overlay */
.mi-section {
    position: relative;
    overflow: hidden;
}

/* Smooth fade from cream to next section bg */
.mi-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--gris-fondo));
    z-index: 2;
    pointer-events: none;
}

/* Background photo — bleeds behind everything */
.mi-bg-photo {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80vh;
    overflow: hidden;
}

.mi-bg-photo img {
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    opacity: 0.95;
}

/* Overlapping container — rounded top like Sorani */
.mi-container {
    position: relative;
    background: var(--crema);
    margin: 55vh 12px 0;
    border-radius: 28px 28px 0 0;
    padding: 80px 10vw 60px;
    min-height: 800px;
    box-shadow: 0 -20px 80px rgba(26,23,20,0.08);
}

/* Section header with floating number */
.mi-header {
    position: relative;
    margin-bottom: 16px;
    text-align: center;
}

.mi-header-logo {
    display: block;
    height: 140px;
    width: auto;
    margin: 0 auto 12px;
    filter: drop-shadow(0 0 16px rgba(212,175,55,0.25));
}

.mi-icon-number {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
}

.mi-icon-number::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--oro);
    border-radius: 50%;
    opacity: 0.4;
}

.mi-icon-number span {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--oro);
}

@media (min-width: 1536px) {
    .mi-icon-number {
        position: absolute;
        left: -60px;
        top: 8px;
    }
}

.mi-title {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 500;
    color: var(--negro);
    letter-spacing: 18px;
    margin: 0;
    line-height: 1;
}

/* Giant watermark behind the whole section */
.mi-container::before {
    content: 'IWISH';
    position: absolute;
    top: 200px;
    right: -40px;
    font-family: var(--font-display);
    font-size: 280px;
    font-weight: 900;
    color: var(--oro);
    opacity: 0.04;
    letter-spacing: 20px;
    pointer-events: none;
    user-select: none;
    writing-mode: vertical-rl;
    line-height: 1;
}

.mi-subtitle {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--negro);
    margin: 4px 0 0;
    text-wrap: balance;
}

.mi-line {
    width: 100px;
    height: 4px;
    background: var(--oro);
    margin: 32px 0;
    border-radius: 2px;
}

.mi-intro {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gris-medio);
    max-width: 640px;
    margin-bottom: 60px;
    font-weight: 300;
}

.mi-intro strong {
    color: var(--negro);
    font-weight: 600;
}

/* Editorial flow — single column, organic rhythm */
.mi-flow {
    max-width: 680px;
    position: relative;
}

/* Photo with caption — floats or full-width */
.mi-flow-visual {
    margin-bottom: 48px;
    position: relative;
}

.mi-flow-visual img {
    border-radius: 16px;
    height: 340px;
    mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
}

.mi-flow-caption {
    font-family: var(--font-display);
    font-size: 17px;
    font-style: italic;
    color: var(--gris-medio);
    margin-top: 16px;
    line-height: 1.6;
    max-width: 400px;
}

/* Each step — letter + body side by side */
.mi-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 48px;
    position: relative;
}

/* Initial hidden state — JS will animate these in */
.mi-step .mi-step-letter {
    opacity: 0;
    transform: translateX(-30px);
}

.mi-step .mi-step-body {
    opacity: 0;
    transform: translateY(20px);
}

/* Alternating indent for rhythm */
.mi-step-indent {
    margin-left: 80px;
}

/* The big letter */
.mi-step-letter {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 300;
    color: var(--oro);
    line-height: 0.85;
    flex-shrink: 0;
    width: 56px;
    opacity: 0.7;
    transition: opacity 0.4s var(--ease);
}

.mi-step:hover .mi-step-letter {
    opacity: 1;
}

.mi-step-body {
    flex: 1;
    padding-top: 4px;
}

.mi-step-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--gris-medio);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.mi-step-question {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 500;
    font-style: italic;
    color: var(--negro);
    line-height: 1.15;
    margin-bottom: 10px;
}

.mi-step-answer {
    font-size: 15px;
    color: var(--gris-medio);
    line-height: 1.75;
    font-weight: 300;
    margin-bottom: 12px;
}

.mi-step-tools {
    font-size: 11px;
    color: var(--oro-oscuro);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Expandable "Más sobre este paso" */
.mi-step-expand {
    margin-top: 16px;
    cursor: pointer;
}

.mi-expand-toggle {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 500;
    color: var(--oro-oscuro);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s var(--ease);
    border-bottom: 1px dashed rgba(212,175,55,0.3);
    padding-bottom: 2px;
}

.mi-step-expand:hover .mi-expand-toggle {
    color: var(--oro);
    border-color: var(--oro);
}

.mi-step-expand.open .mi-expand-toggle {
    color: var(--oro);
}

.mi-toggle-icon {
    display: inline-block;
    transition: transform 0.3s var(--ease);
    font-weight: 600;
    margin-right: 2px;
}

.mi-step-expand.open .mi-toggle-icon {
    transform: rotate(45deg);
}

.mi-expand-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s var(--ease), opacity 0.4s var(--ease), margin 0.4s var(--ease);
    margin-top: 0;
}

.mi-step-expand.open .mi-expand-content {
    max-height: 400px;
    opacity: 1;
    margin-top: 16px;
}

.mi-expand-content p {
    font-size: 14px;
    color: var(--gris-medio);
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 12px;
}

.mi-expand-content strong {
    color: var(--negro);
    font-weight: 600;
}

/* Break photo between steps */
.mi-flow-break {
    margin: 16px 0 48px;
    margin-left: 80px;
    max-width: 400px;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
}

.mi-flow-break img {
    mask-image: linear-gradient(160deg, black 50%, transparent 100%);
    transition: transform 0.7s var(--ease);
}

.mi-flow-break:hover img {
    transform: scale(1.04);
}

/* Final step — with side photo */
.mi-step-final {
    margin-left: 0;
    align-items: stretch;
}

.mi-step-final .mi-step-body {
    flex: 1;
}

.mi-step-photo {
    width: 280px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    margin-left: 32px;
}

.mi-step-photo img {
    mask-image: linear-gradient(to left, black 60%, transparent 100%);
}

/* Closing statement */
.mi-closing {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    color: var(--negro);
    max-width: 640px;
    line-height: 1.45;
    margin: 60px 0 16px;
    text-wrap: balance;
    position: relative;
    padding-left: 24px;
    border-left: 3px solid var(--oro);
}

.mi-closing-sub {
    font-size: 16px;
    color: var(--gris-medio);
    line-height: 1.7;
    font-weight: 300;
    max-width: 640px;
    margin-bottom: 40px;
}

/* CTA button — Sorani style: round with + icon */
.mi-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 600;
    color: var(--negro);
    padding: 10px 0;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.3s var(--ease);
}

.mi-cta:hover {
    color: var(--oro);
}

.mi-cta-icon {
    font-size: 24px;
    font-weight: 600;
    width: 36px;
    height: 36px;
    border: 2px solid currentColor;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease);
}

.mi-cta:hover .mi-cta-icon {
    background: var(--oro);
    border-color: var(--oro);
    color: var(--blanco);
}

/* Responsive */
@media (max-width: 1024px) {
    .mi-container { padding: 60px 5vw 80px; margin-top: 40vh; }
    .mi-step-indent { margin-left: 40px; }
    .mi-flow-break { margin-left: 40px; }
    .mi-title { font-size: 48px; letter-spacing: 8px; }
    .mi-step-photo { width: 200px; }
}

@media (max-width: 768px) {
    .mi-container { margin: 30vh 0 0; border-radius: 20px 20px 0 0; padding: 40px 20px 60px; }
    .mi-bg-photo { height: 50vh; }
    .mi-title { font-size: 36px; letter-spacing: 4px; }
    .mi-subtitle { font-size: 18px; }
    .mi-step-indent { margin-left: 0; }
    .mi-step .mi-step-letter { opacity: 0.7; transform: none; }
    .mi-step .mi-step-body { opacity: 1; transform: none; }
    .mi-step-letter { font-size: 52px; width: 40px; }
    .mi-step-question { font-size: 26px; }
    .mi-flow-break { margin-left: 0; max-width: 100%; }
    .mi-step-final { flex-direction: column; }
    .mi-step-photo { width: 100%; height: 200px; margin-left: 0; margin-top: 16px; }
    .mi-flow-visual img { height: 240px; }
}

/* TRUST LOGOS */
.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    padding: 60px 48px 30px;
    flex-wrap: wrap;
}

.trust-logo-item {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--gris-medio);
    opacity: 0.35;
    transition: opacity 0.3s;
    letter-spacing: 1px;
}

.trust-logo-item:hover { opacity: 0.8; }

/* TESTIMONIALS */
.testimonials-section {
    padding: 120px 48px 100px;
    max-width: 100%;
}

.testimonials-section .section-header {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto 60px;
}

/* Carousel wrapper */
.testimonials-carousel {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.testimonials-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.testimonials-dots {
    display: none;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
}

.testi-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(253,252,250,0.2);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}

.testi-dot.active {
    background: var(--oro);
    transform: scale(1.3);
}

.testimonial-card {
    background: rgba(253,252,250,0.04);
    border: 1px solid rgba(253,252,250,0.08);
    border-radius: 12px;
    padding: 36px;
    transition: all 0.4s var(--ease);
    position: relative;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--oro), transparent);
    opacity: 0.4;
}

.testimonial-card:hover {
    background: rgba(253,252,250,0.06);
    transform: translateY(-3px);
    border-color: rgba(212,175,55,0.2);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.testimonial-stars {
    color: var(--oro);
    font-size: 14px;
    letter-spacing: 3px;
    margin-bottom: 18px;
    opacity: 0.8;
}

.testimonial-text {
    font-size: 15px;
    font-style: italic;
    color: rgba(253,252,250,0.8);
    line-height: 1.75;
    margin-bottom: 28px;
    font-weight: 300;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--oro);
    color: var(--negro);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.testimonial-author strong {
    display: block;
    color: var(--blanco);
    font-size: 14px;
    font-weight: 500;
}

.testimonial-author span {
    display: block;
    color: rgba(253,252,250,0.4);
    font-size: 12px;
    margin-top: 2px;
}

/* CONTACT */
.contact-section {
    padding: 120px 48px 100px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

.contact-left .section-title { margin-bottom: 20px; }

.contact-pitch {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 400;
    font-style: italic;
    color: rgba(253,252,250,0.55);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.contact-right {
    padding-left: 40px;
    border-left: 1px solid rgba(253,252,250,0.08);
}

.contact-info-block { display: flex; flex-direction: column; gap: 32px; }

.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-item svg { flex-shrink: 0; margin-top: 3px; opacity: 0.8; }
.contact-info-item strong { display: block; font-size: 13px; font-weight: 600; color: var(--blanco); margin-bottom: 4px; }
.contact-info-item span { font-size: 14px; color: rgba(253,252,250,0.5); font-weight: 300; }

/* FOOTER */
footer {
    background: var(--gris-fondo);
    padding: 80px 48px 30px;
    border-top: 1px solid var(--gris-claro);
}

.footer-content { max-width: 1200px; margin: 0 auto; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 4px rgba(212,175,55,0.15));
}

.footer-logo {
    display: none;
}

.footer-tagline { font-size: 14px; color: var(--gris-medio); margin-bottom: 24px; font-weight: 300; }

.footer-social { display: flex; gap: 16px; }
.footer-social a { color: var(--gris-medio); transition: color 0.3s; opacity: 0.6; }
.footer-social a:hover { color: var(--oro); opacity: 1; }

.footer-col h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--negro);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    width: fit-content;
    font-size: 14px;
    color: var(--gris-medio);
    margin-bottom: 12px;
    transition: color 0.3s var(--ease);
    font-weight: 300;
    position: relative;
}

.footer-col a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--oro);
    transition: width 0.3s var(--ease);
}

.footer-col a:hover { color: var(--oro); }
.footer-col a:hover::after { width: 100%; }

.cert-logos { display: flex; flex-wrap: wrap; gap: 8px; }

.cert-badge {
    font-size: 11px;
    font-weight: 500;
    color: var(--gris-medio);
    border: 1px solid var(--gris-claro);
    padding: 5px 12px;
    border-radius: 99px;
    background: var(--blanco);
    transition: all 0.3s;
}

.cert-badge:hover { border-color: var(--oro); color: var(--oro); }

.footer-bottom {
    border-top: 1px solid var(--gris-claro);
    padding-top: 24px;
}

.footer-bottom p { font-size: 12px; color: var(--gris-medio); font-weight: 300; }

/* AUDIENCE SECTION */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.audience-card {
    background: var(--blanco);
    border: 1px solid var(--gris-claro);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.4s var(--ease);
}

.audience-card:hover {
    border-color: rgba(212,175,55,0.3);
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
    transform: translateY(-4px);
}

.audience-icon {
    margin-bottom: 20px;
}

.audience-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--negro);
    margin-bottom: 12px;
    line-height: 1.3;
}

.audience-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gris-medio);
}

/* CONTACT FORM */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(253,252,250,0.45);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(253,252,250,0.06);
    border: 1px solid rgba(253,252,250,0.12);
    border-radius: 8px;
    color: var(--blanco);
    font-family: var(--font-body);
    font-size: 15px;
    padding: 14px 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(253,252,250,0.25);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--oro);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.12);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(253,252,250,0.4)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-group select option {
    background: var(--negro);
    color: var(--blanco);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    padding-top: 8px;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 88px;
    z-index: 50;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 0 0 12px rgba(37,211,102,0.1); }
}

.whatsapp-float {
    animation: whatsappPulse 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    animation: none;
}

/* BACK TO TOP */
#back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    background: var(--negro);
    color: var(--oro);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s var(--ease);
    z-index: 50;
}

#back-to-top.btt-visible { opacity: 1; transform: translateY(0); }

#back-to-top:hover {
    background: var(--oro);
    color: var(--negro);
    border-color: var(--oro);
    transform: translateY(-2px);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-right { padding-left: 0; border-left: none; border-top: 1px solid rgba(253,252,250,0.08); padding-top: 40px; }
    .stats-grid { gap: 40px; }
    .hero-content { margin-left: 5vw; }
    .audience-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .audience-card:last-child { grid-column: 1 / -1; max-width: 50%; margin: 0 auto; }
}

@media (max-width: 768px) {
    nav { padding: 0 20px; }
    .nav-left, .nav-right { display: none; }
    .nav-hamburger { display: block; }
    .hero { height: 100vh; min-height: 600px; }
    .hero-content { margin-left: 0; padding: 0 20px; text-align: center; align-items: center; }
    .hero-logo { width: 140px; }
    .hero-slogan { font-size: 36px; }
    .hero-accent { padding-left: 0; }
    .hero-accent::before { display: none; }
    .hero-title { font-size: 40px; }
    .hero-subtitle { max-width: none; }
    .hero-actions { justify-content: center; }
    .section { padding: 80px 20px 50px; }
    .section-alt > .section-header,
    .section-alt > .cards-row,
    .section-alt > .trust-logos { padding-left: 20px; padding-right: 20px; }
    .section-title { font-size: 32px; }
    .section-accent { padding-left: 0; }
    .section-accent::before { display: none; }
    .cards-row { flex-direction: column; }
    .card { min-height: 380px; }
    .contact-section { padding: 80px 20px 60px; }
    .contact-actions { flex-direction: column; align-items: stretch; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
    .form-actions { flex-direction: column; align-items: stretch; text-align: center; }
    .audience-grid { grid-template-columns: 1fr; gap: 20px; }
    .testimonials-section { padding: 80px 20px 60px; }
    .testimonials-track { display: flex; overflow: hidden; gap: 0; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
    .testimonial-card { min-width: 100%; flex-shrink: 0; box-sizing: border-box; padding: 28px 20px; }
    .testimonials-dots { display: flex; }
    .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; }
    #back-to-top { bottom: 20px; right: 76px; }
    .stats-grid { flex-direction: column; gap: 28px; }
    .stat-number { font-size: 40px; }
    .quote-section { padding: 80px 20px; }
    .quote-text { font-size: 21px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    footer { padding: 50px 20px 20px; }
    .trust-logos { gap: 24px; }
    .hero-actions { flex-direction: column; align-items: center; }
}

/* SELECTION */
::selection {
    background: rgba(212,175,55,0.2);
    color: var(--negro);
}

/* TEXT WRAP BALANCE */
h1, h2, h3, .quote-text { text-wrap: balance; }

/* ═══════════════════════════════════════════
   2026 INTERACTIONS — cursor, grain, magnetic
   ═══════════════════════════════════════════ */

/* Custom cursor — gold dot + ring */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--oro);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
    transform: translate(-50%, -50%);
    will-change: transform;
}

.cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(212,175,55,0.35);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: width 0.4s cubic-bezier(0.16,1,0.3,1), height 0.4s cubic-bezier(0.16,1,0.3,1), border-color 0.3s ease, opacity 0.3s ease;
    transform: translate(-50%, -50%);
    will-change: transform;
}

/* Cursor states */
.cursor-dot.cursor-hover {
    width: 50px;
    height: 50px;
    background: rgba(212,175,55,0.08);
    border: 1px solid var(--oro);
    mix-blend-mode: normal;
}

.cursor-ring.cursor-hover {
    width: 60px;
    height: 60px;
    border-color: transparent;
    opacity: 0;
}

.cursor-dot.cursor-text {
    width: 4px;
    height: 32px;
    border-radius: 2px;
    background: var(--oro);
    mix-blend-mode: normal;
}

/* Film grain overlay */
.grain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px;
}

/* Magnetic button pull */
.btn-magnetic {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Smooth scroll — scroll-driven parallax depth */
.parallax-slow { will-change: transform; }
.parallax-medium { will-change: transform; }

/* Word-by-word reveal for section titles */
.word-reveal .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px) rotateX(-40deg);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: bottom center;
}

.word-reveal.revealed .word {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

/* Stagger delays for words — set by JS via --i custom property */
.word-reveal .word {
    transition-delay: calc(var(--i, 0) * 0.07s);
}

/* Glow accent line that pulses subtly */
@keyframes accentPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; box-shadow: 0 0 12px rgba(212,175,55,0.4); }
}

.section-accent::before {
    animation: accentPulse 3s ease-in-out infinite;
}

/* Smooth hover lift for testimonial cards */
.testimonial-card {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

/* Quote section — parallax text */
.quote-text {
    transition: transform 0.1s linear;
}

/* Stats number — tabular figures for smooth counting */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* Hide custom cursor on touch devices + show card content */
@media (hover: none), (pointer: coarse) {
    .cursor-dot, .cursor-ring { display: none !important; }
    .grain-overlay { display: none; }
    /* Always show card content on touch — no hover available */
    .card-content p { opacity: 1; transform: none; max-height: 200px; }
    .card-icon { opacity: 0.8; transform: none; }
    .card-overlay { background: linear-gradient(180deg, transparent 10%, rgba(26,23,20,0.92) 100%); }
}

/* NAV CTA BUTTON */
.nav-cta-btn {
    display: inline-block;
    background: var(--oro);
    color: var(--negro);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 99px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s var(--ease);
    white-space: nowrap;
}
.nav-cta-btn:hover {
    background: var(--oro-oscuro);
    color: var(--blanco);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(212,175,55,0.3);
}
#header.header-scrolled .nav-cta-btn {
    padding: 8px 20px;
    font-size: 10px;
}

/* HERO BUTTONS — ensure visibility */
.hero-actions {
    opacity: 0;
    animation: heroSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.3s forwards;
}
.hero-actions .btn-primary {
    font-size: 14px;
    padding: 16px 40px;
}
.hero-actions .btn-outline-light {
    font-size: 14px;
    padding: 16px 40px;
}

/* ============================================= */
/* MOBILE FIX — overflow, images, spacing        */
/* ============================================= */

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    /* Global overflow fix */
    *, *::before, *::after {
        max-width: 100vw;
    }
    
    section, .section, .container {
        overflow: hidden;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Hero */
    .hero { min-height: 100vh; }
    .hero-content { 
        margin-left: 0 !important; 
        padding: 0 20px !important;
        max-width: 100% !important;
    }
    .hero-title, .hero-slogan { 
        font-size: 36px !important; 
        line-height: 1.15 !important;
    }
    .hero-actions { 
        flex-direction: column !important; 
        gap: 12px !important;
        width: 100% !important;
    }
    .hero-actions .btn-primary,
    .hero-actions .btn-outline { 
        width: 100% !important;
        text-align: center !important;
        padding: 14px 24px !important;
        font-size: 13px !important;
    }

    /* Stats bar */
    .stats { 
        flex-wrap: wrap !important;
        gap: 16px !important;
        padding: 32px 20px !important;
    }
    .stat-item { 
        width: 45% !important;
        text-align: center !important;
    }

    /* Founder */
    .founder-grid { 
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    .founder-photo-wrap { 
        max-height: 400px !important;
        overflow: hidden !important;
    }
    .founder-photo-wrap img {
        width: 100% !important;
        height: 400px !important;
        object-fit: cover !important;
    }

    /* Service cards */
    .cards-row, .services-grid, .card-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .card, .service-card {
        max-width: 100% !important;
        overflow: hidden !important;
    }
    .card img, .service-card img, .card-image img {
        width: 100% !important;
        height: 200px !important;
        object-fit: cover !important;
    }

    /* Method section */
    .mi-step { padding: 0 !important; }
    .mi-step-indented { margin-left: 0 !important; }
    .mi-step-letter { 
        font-size: 48px !important; 
    }
    .mi-flow-visual, .mi-flow-break, .mi-step-photo {
        max-width: 100% !important;
        overflow: hidden !important;
        border-radius: 12px !important;
    }
    .mi-flow-visual img, .mi-flow-break img, .mi-step-photo img {
        width: 100% !important;
        height: auto !important;
        max-height: 300px !important;
        object-fit: cover !important;
    }
    .mi-flow-break-right {
        margin-left: 0 !important;
    }

    /* Audience cards */
    .audience-grid {
        grid-template-columns: 1fr !important;
    }

    /* Credentials */
    .cred-grid {
        grid-template-columns: 1fr !important;
    }
    .trust-logos {
        flex-wrap: wrap !important;
        gap: 20px !important;
        justify-content: center !important;
    }
    .trust-logos img {
        height: 30px !important;
        width: auto !important;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr !important;
    }

    /* Contact */
    .contact-actions {
        flex-direction: column !important;
        gap: 12px !important;
    }
    .contact-grid {
        grid-template-columns: 1fr !important;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    /* Section titles */
    .section-title {
        font-size: 32px !important;
        line-height: 1.2 !important;
    }

    /* Nav */
    .nav-left, .nav-right .nav-social, .nav-right .nav-divider, .nav-right .nav-lang {
        display: none !important;
    }
    .nav-hamburger {
        display: flex !important;
    }
    .nav-cta-btn {
        display: none !important;
    }
    nav {
        padding: 0 16px !important;
    }

    /* General spacing reduction */
    section {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }
}

@media (max-width: 480px) {
    .hero-title, .hero-slogan {
        font-size: 28px !important;
    }
    .section-title {
        font-size: 26px !important;
    }
    .stat-number {
        font-size: 28px !important;
    }
}

/* PORTFOLIO GRID */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 40px auto 0;
    padding: 0 48px;
}
.portfolio-card {
    background: var(--blanco);
    border: 1px solid var(--gris-claro);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    text-decoration: none;
    transition: all 0.4s var(--ease);
}
.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border-color: var(--oro);
}
.portfolio-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--oro-ghost);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.portfolio-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--negro);
    margin-bottom: 8px;
}
.portfolio-card p {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--gris-medio);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr !important;
        padding: 0 20px !important;
    }
}
