/*
 * armon.ia — Website Styles
 * Liquid Glass Design System
 * ====================================
 */

/* ===== CSS Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ===== CSS Custom Properties (Design Tokens) ===== */
:root {
    /* Colors */
    --bg: #FAFAFA;
    --bg-alt: #F2F2F4;
    --ink: #18181B;
    --ink-light: #52525B;
    --ink-muted: #A1A1AA;
    --accent: #F97316;
    --accent-hover: #EA580C;
    --accent-light: rgba(249, 115, 22, 0.08);

    /* Glass Effect Variables */
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(255, 255, 255, 0.7);
    --glass-shadow: rgba(0, 0, 0, 0.04);
    --glass-blur: 16px;

    /* Utilities */
    --white: #FFFFFF;

    /* Typography */
    --font-serif: 'DM Serif Display', Georgia, serif;
    --font-serif-modern: 'Lora', Georgia, serif;
    --font-sans: 'Outfit', system-ui, sans-serif;

    /* Border Radius */
    --radius: 20px;
    --radius-sm: 14px;
}

/* ===== Base Styles ===== */
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
    font-family: var(--font-sans);
    background: linear-gradient(
        180deg,
        #F9F8F6 0%,
        #F6F3EF 35%,
        #F4F1EC 65%,
        #F6F3EF 100%
    );
    background-attachment: scroll;
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
    min-height: 100%;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* ===== Reveal Animation ===== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Glass Effect Mixins ===== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow:
        0 4px 24px var(--glass-shadow),
        inset 0 1px 0 rgba(255,255,255,0.6);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255,255,255,0.8);
}

/* ===== Liquid Glass Buttons ===== */
@keyframes shimmer {
    0% { transform: translateX(-100%) skewX(-15deg); }
    100% { transform: translateX(200%) skewX(-15deg); }
}

.btn-glass {
    --mouse-x: 50%;
    --mouse-y: 50%;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2.2rem;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: none;
    border-radius: 100px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s;
    isolation: isolate;
}

/* Layer 0: Backdrop blur + SVG distortion */
.btn-glass .glass-filter {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    filter: url(#glass-distortion);
    z-index: 0;
}

/* Layer 1: Color overlay — semi-transparent to let blur through */
.btn-glass .glass-overlay {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 1;
    transition: background 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s;
}

/* Layer 2: Specular highlight — follows mouse */
.btn-glass .glass-specular {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(
        circle 80px at var(--mouse-x) var(--mouse-y),
        rgba(255,255,255,0.5) 0%,
        rgba(255,255,255,0.08) 40%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s;
}
.btn-glass:hover .glass-specular {
    opacity: 1;
}

/* Layer 3: Content text */
.btn-glass .glass-content {
    position: relative;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Shimmer — animated light streak */
.btn-glass::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(255,255,255,0.15) 40%,
        rgba(255,255,255,0.35) 50%,
        rgba(255,255,255,0.15) 60%,
        transparent 80%
    );
    transform: translateX(-100%) skewX(-15deg);
    animation: shimmer 5s ease-in-out infinite;
    pointer-events: none;
}
.btn-glass:hover::after {
    animation-duration: 2s;
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(255,255,255,0.2) 40%,
        rgba(255,255,255,0.45) 50%,
        rgba(255,255,255,0.2) 60%,
        transparent 80%
    );
}

/* Top edge highlight — simulates glass refraction at top */
.btn-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    z-index: 3;
    pointer-events: none;
}

/* ===== Primary Button: Orange liquid glass ===== */
.btn-primary {
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow:
        0 4px 20px rgba(249, 115, 22, 0.3),
        0 1px 3px rgba(249, 115, 22, 0.15),
        inset 0 1px 0 rgba(255,255,255,0.2),
        inset 0 -1px 0 rgba(0,0,0,0.05);
}
.btn-primary .glass-overlay {
    background: linear-gradient(
        160deg,
        rgba(249, 115, 22, 0.72) 0%,
        rgba(234, 88, 12, 0.6) 50%,
        rgba(249, 115, 22, 0.68) 100%
    );
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255,255,255,0.5);
    box-shadow:
        0 14px 44px rgba(249, 115, 22, 0.35),
        0 6px 16px rgba(249, 115, 22, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.35),
        inset 0 -1px 0 rgba(0,0,0,0.05);
}
.btn-primary:hover .glass-overlay {
    background: linear-gradient(
        160deg,
        rgba(249, 115, 22, 0.55) 0%,
        rgba(234, 88, 12, 0.4) 50%,
        rgba(249, 115, 22, 0.5) 100%
    );
}
.btn-primary:active {
    transform: translateY(-1px) scale(1.0);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

/* ===== Secondary Button: Dark liquid glass ===== */
.btn-secondary {
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow:
        0 4px 18px rgba(0,0,0,0.15),
        0 1px 3px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.08),
        inset 0 -1px 0 rgba(0,0,0,0.1);
}
.btn-secondary .glass-overlay {
    background: linear-gradient(
        160deg,
        rgba(24, 24, 27, 0.72) 0%,
        rgba(50, 50, 55, 0.6) 50%,
        rgba(35, 35, 40, 0.68) 100%
    );
}
.btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255,255,255,0.25);
    box-shadow:
        0 14px 44px rgba(0,0,0,0.25),
        0 6px 16px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.15),
        inset 0 -1px 0 rgba(0,0,0,0.1);
}
.btn-secondary:hover .glass-overlay {
    background: linear-gradient(
        160deg,
        rgba(24, 24, 27, 0.5) 0%,
        rgba(60, 60, 65, 0.38) 50%,
        rgba(40, 40, 45, 0.45) 100%
    );
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    transition: all 0.4s;
}
.header.scrolled {
    padding: 0.6rem 0;
}
.header.scrolled .header-inner {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 4px 24px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.6);
    border-radius: 100px;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    transition: all 0.4s;
    border-radius: 0;
    border: 1px solid transparent;
}
.logo {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.logo span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink-light);
    transition: color 0.3s;
}
.nav a:hover { color: var(--ink); }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}
.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    z-index: 98;
    opacity: 0;
    transition: opacity 0.3s;
}

@media (max-width: 768px) {
    .menu-overlay.active {
        display: block;
        opacity: 1;
    }
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 0 4rem;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Gradient orbs for liquid glass background */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}
.hero::before {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, #F97316 0%, #FDBA74 60%);
    top: -15%;
    right: -8%;
    opacity: 0.22;
    max-width: 80vw;
}
.hero::after {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #FB923C 0%, #FED7AA 70%);
    bottom: -8%;
    left: -8%;
    opacity: 0.15;
    max-width: 60vw;
}

.calm-waves {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translate(0, -50%);
    width: 460px;
    height: 460px;
    pointer-events: none;
    max-width: 90vw;
}
.calm-waves .wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid rgba(249, 115, 22, 0.25);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.06);
    animation: calmExpand 7s ease-out infinite;
}
.calm-waves .wave:nth-child(1) { width: 60px; height: 60px; animation-delay: 0s; }
.calm-waves .wave:nth-child(2) { width: 60px; height: 60px; animation-delay: 1.4s; }
.calm-waves .wave:nth-child(3) { width: 60px; height: 60px; animation-delay: 2.8s; }
.calm-waves .wave:nth-child(4) { width: 60px; height: 60px; animation-delay: 4.2s; }
.calm-waves .wave:nth-child(5) { width: 60px; height: 60px; animation-delay: 5.6s; }

@keyframes calmExpand {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; border-color: rgba(249, 115, 22, 0.3); }
    50% { opacity: 0.35; }
    100% { transform: translate(-50%, -50%) scale(7); opacity: 0; border-color: rgba(249, 115, 22, 0.05); }
}

.calm-waves .center-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.6;
    box-shadow: 0 0 24px rgba(249, 115, 22, 0.4);
    animation: gentlePulse 3s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; box-shadow: 0 0 24px rgba(249, 115, 22, 0.4); }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.4; box-shadow: 0 0 36px rgba(249, 115, 22, 0.25); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
}
.hero-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}
.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 5.5vw, 4.2rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 1.5rem;
}
.hero h1 em {
    font-style: italic;
    color: var(--accent);
}
.hero p {
    font-size: 1.12rem;
    color: var(--ink-light);
    max-width: 460px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 0; }

.floating-labels {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translate(0, -50%);
    width: 460px;
    height: 460px;
    pointer-events: none;
    z-index: 1;
    max-width: 90vw;
}
.floating-label {
    position: absolute;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.7);
    padding: 0.45rem 1rem;
    border-radius: 100px;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--ink-light);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    white-space: nowrap;
    opacity: 0;
    animation: labelReveal 7s ease-in-out infinite;
    animation-fill-mode: both;
}
/* Posiciones dentro del radio de la onda (max 210px del centro del contenedor 460px).
   delay = 7s × (dist - 30) / 180 - 0.56s  (aparece exactamente cuando la onda los toca) */
.floating-label:nth-child(1)  { top: 38%; left: 62%;  animation-delay: 1.3s; } /* dist≈78px  */
.floating-label:nth-child(2)  { top: 56%; left: 28%;  animation-delay: 2.3s; } /* dist≈104px */
.floating-label:nth-child(3)  { top: 72%; left: 50%;  animation-delay: 2.2s; } /* dist≈101px */
.floating-label:nth-child(4)  { top: 24%; left: 46%;  animation-delay: 3.0s; } /* dist≈121px */
.floating-label:nth-child(5)  { top: 45%; left: 78%;  animation-delay: 3.4s; } /* dist≈131px */
.floating-label:nth-child(6)  { top: 64%; left: 24%;  animation-delay: 3.6s; } /* dist≈136px */
.floating-label:nth-child(7)  { top: 33%; left: 22%;  animation-delay: 4.2s; } /* dist≈151px */
.floating-label:nth-child(8)  { top: 70%; left: 74%;  animation-delay: 3.8s; } /* dist≈143px */
.floating-label:nth-child(9)  { top: 20%; left: 68%;  animation-delay: 4.5s; } /* dist≈161px */
.floating-label:nth-child(10) { top: 75%; left: 20%;  animation-delay: 5.3s; } /* dist≈180px */

@keyframes labelReveal {
    0%   { opacity: 0; transform: translateY(5px) scale(0.88); }
    8%   { opacity: 1; transform: translateY(0) scale(1); }
    30%  { opacity: 0.95; transform: translateY(-1px) scale(1); }
    42%  { opacity: 0; transform: translateY(-4px) scale(0.96); }
    100% { opacity: 0; }
}

/* ===== Hero Metrics (social proof below CTA) ===== */
.hero-metrics {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.07);
}
.metric-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.6rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    transition: transform 0.3s, box-shadow 0.3s;
}
.metric-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.metric-pill .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

/* ===== Section Common Styles ===== */
.section-tag {
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--ink-light);
    max-width: 520px;
    line-height: 1.65;
}

/* ===== Services Section ===== */
.services {
    padding: 6rem 0;
    position: relative;
}
.services::before,
.services::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}
.services::before {
    display: none;
}
.services::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #FDBA74 0%, transparent 70%);
    bottom: -15%;
    left: -10%;
    opacity: 0.1;
    filter: blur(60px);
}
.services-header { margin-bottom: 3.5rem; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
.service-card {
    border-radius: var(--radius);
    padding: 2rem;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s;
    position: relative;
    overflow: hidden;
}
.service-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #FDBA74);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: var(--radius) var(--radius) 0 0;
}
.service-card:hover::after { transform: scaleX(1); }
.service-card::before,
.case-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(255,255,255,0.12) 40%,
        rgba(255,255,255,0.25) 50%,
        rgba(255,255,255,0.12) 60%,
        transparent 80%
    );
    transform: translateX(-100%) skewX(-15deg);
    animation: shimmer 7s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}
.service-card:nth-child(1)::before { animation-delay: 0s; }
.service-card:nth-child(2)::before { animation-delay: 2.3s; }
.service-card:nth-child(3)::before { animation-delay: 4.6s; }
.service-card:nth-child(4)::before { animation-delay: 1.1s; }
.case-card:nth-child(1)::before { animation-delay: 0.8s; }
.case-card:nth-child(2)::before { animation-delay: 3.1s; }
.case-card:nth-child(3)::before { animation-delay: 5.4s; }
.service-card.glass,
.case-card.glass {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 4px 24px rgba(0,0,0,0.05),
        inset 0 1px 0 rgba(255,255,255,0.8);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
}
.service-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 0.7rem;
}
.service-card p {
    font-size: 0.9rem;
    color: var(--ink-light);
    line-height: 1.6;
}
.service-tag {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.02em;
}

/* Featured service card (Proyectos a Medida) */
.service-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.75) 0%, rgba(249,115,22,0.05) 100%);
    border: 1px solid rgba(249, 115, 22, 0.18);
    box-shadow:
        0 4px 24px rgba(249, 115, 22, 0.06),
        inset 0 1px 0 rgba(255,255,255,0.8);
}
.service-card.featured:hover {
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 16px 48px rgba(249, 115, 22, 0.1), inset 0 1px 0 rgba(255,255,255,0.9);
}
.service-card.featured .service-icon {
    background: var(--accent);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    margin-bottom: 0;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
}
.service-card.featured .service-card-body {
    min-width: 0;
}
.service-card.featured h3 {
    font-size: 1.45rem;
}
.card-logo {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 80px;
    height: 80px;
    pointer-events: none;
    opacity: 0.75;
    filter: blur(0.4px);
    -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 15%, transparent 68%);
    mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 15%, transparent 68%);
    transition: opacity 0.3s;
}
.service-card:hover .card-logo {
    opacity: 1;
}
.card-logo svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ===== Methodology Section ===== */
.methodology { padding: 6rem 0; }
.methodology-header { text-align: center; margin-bottom: 4rem; }
.methodology-header .section-subtitle { margin: 0 auto; }
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}
.steps::before {
    content: '';
    position: absolute;
    top: 44px;
    left: calc(16.66% + 28px);
    right: calc(16.66% + 28px);
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #FDBA74);
    opacity: 0.2;
}
.step { text-align: center; position: relative; }
.step-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--accent);
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    transition: all 0.4s;
}
.step:hover .step-number {
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 0 0 6px var(--accent-light), 0 4px 16px rgba(0,0,0,0.04);
}
.step h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 0.7rem;
}
.step p {
    font-size: 0.9rem;
    color: var(--ink-light);
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}
.step-duration {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    padding: 0.3rem 0.85rem;
    background: var(--accent-light);
    border-radius: 100px;
}

/* ===== Method Section ===== */
.method {
    padding: 6rem 0;
    position: relative;
}
.method::before {
    display: none;
}
.method-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.method-text h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}
.method-text p {
    font-size: 1.02rem;
    color: var(--ink-light);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}
.method-visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.method-card {
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}
.method-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.8);
}
.method-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
}
.method-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.method-card p {
    font-size: 0.86rem;
    color: var(--ink-light);
    line-height: 1.5;
    margin: 0;
}

/* ===== Cases Section ===== */
.cases {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}
.cases::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #FB923C 0%, transparent 70%);
    top: -10%;
    right: -10%;
    opacity: 0.08;
    filter: blur(70px);
    pointer-events: none;
}
.cases-header { text-align: center; margin-bottom: 4rem; }
.cases-header .section-subtitle { margin: 0 auto; }
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.case-card {
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s;
}
.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
}
.case-metric {
    font-family: var(--font-serif-modern);
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}
.case-metric-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.25rem;
}
.case-quote {
    font-size: 0.95rem;
    color: var(--ink-light);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1.5rem;
    font-style: italic;
}
.case-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.case-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.78rem;
    flex-shrink: 0;
}
.case-author-info { line-height: 1.3; }
.case-author-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
}
.case-author-role {
    font-size: 0.76rem;
    color: var(--ink-muted);
}

/* ===== Contact Section ===== */
.contact { padding: 6rem 0; }
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: start;
}
.contact-info h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}
.contact-info > p {
    font-size: 1.02rem;
    color: var(--ink-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}
.contact-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.92rem;
    color: var(--ink-light);
}
.contact-detail-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-form {
    border-radius: var(--radius);
    padding: 2.5rem;
}
.form-group { margin-bottom: 1.15rem; }
.form-group label {
    display: block;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.35rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--ink);
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}
.form-group textarea { resize: vertical; min-height: 85px; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-submit { margin-top: 0.5rem; }
.form-submit .btn-glass {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
}

/* Form feedback messages */
.form-feedback {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 500;
}
.form-feedback.success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}
.form-feedback.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.hidden { display: none !important; }

/* ===== Calendly Container Styling ===== */
.calendly-container {
    padding: 3rem 2.5rem;
    max-width: 100%;
}

.calendly-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.calendly-header h3 {
    font-size: 1.9rem;
    font-family: var(--font-serif);
    color: var(--ink);
    margin-bottom: 1rem;
}

.calendly-header p {
    font-size: 1.05rem;
    color: var(--ink-light);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.7;
}

.calendly-inline-widget {
    border-radius: var(--radius);
    overflow: hidden;
    border: none;
    box-shadow: none;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .calendly-container {
        padding: 2rem 1.5rem;
    }

    .calendly-header h3 {
        font-size: 1.6rem;
    }

    .calendly-header {
        margin-bottom: 2rem;
    }

    .calendly-inline-widget {
        height: 750px !important;
    }
}

/* ===== Footer ===== */
.footer {
    padding: 5rem 0 0;
    background: var(--ink);
    color: rgba(255,255,255,0.55);
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.4;
}
.footer-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 3.5rem;
    padding-bottom: 4rem;
    align-items: flex-start;
    width: 100%;
}
.footer-brand {
    width: 38% !important;
    max-width: none !important;
    flex-shrink: 0 !important;
    min-width: 0;
}
.footer-col {
    flex: 1 1 0 !important;
    max-width: none !important;
    min-width: 0;
}
.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 0.5rem;
}
.footer-logo span { color: var(--accent); }
.footer-brand-tagline {
    font-style: italic;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 1.25rem;
    font-family: var(--font-serif);
}
.footer-brand-desc {
    font-size: 0.86rem;
    color: rgba(255,255,255,0.38);
    line-height: 1.7;
    max-width: 280px;
}
.footer-col-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-bottom: 1.5rem;
}
.footer-col-links {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.footer-col-links a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    transition: color 0.25s;
}
.footer-col-links a:hover { color: rgba(255,255,255,0.95); }
.footer-email {
    display: block;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    transition: color 0.25s;
    margin-bottom: 0.5rem;
    word-break: break-all;
}
.footer-email:hover { color: var(--accent); }
.footer-response {
    font-size: 0.76rem;
    color: rgba(255,255,255,0.3);
    margin-bottom: 1.75rem;
}
.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--accent);
    padding: 0.6rem 1.25rem;
    border: 1px solid rgba(249, 115, 22, 0.35);
    border-radius: 100px;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.footer-cta-btn:hover {
    background: rgba(249, 115, 22, 0.12);
    border-color: rgba(249, 115, 22, 0.6);
    color: rgba(255, 200, 150, 1);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 1.75rem 0;
    display: flex;
    justify-content: center;
    font-size: 0.76rem;
    color: rgba(255,255,255,0.28);
}

/* ===== Overflow Fix ===== */
* {
    max-width: 100%;
}

.container,
.header-inner,
.calm-waves,
.floating-labels,
.hero::before,
.hero::after,
.services::after,
.cases::after,
.footer-grid,
.footer-brand,
.footer-col {
    max-width: none;
}

.header,
.chatbot,
.chatbot-toggler {
    max-width: 100vw;
}

/* ===== Responsive Design ===== */
@media (max-width: 960px) {
    .calm-waves, .floating-labels { display: none; }
    .hero-content { max-width: 100%; }
    .services-grid { grid-template-columns: 1fr; }
    .service-card.featured {
        grid-template-columns: auto 1fr;
    }
    .steps { grid-template-columns: 1fr; gap: 2.5rem; }
    .steps::before { display: none; }
    .method-content { grid-template-columns: 1fr; gap: 2.5rem; }
    .cases-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-wrapper { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-grid { flex-wrap: wrap !important; gap: 2rem; }
    .footer-brand { width: 100% !important; flex-shrink: 1 !important; }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100%;
        max-width: 100vw;
    }

    .hero::before,
    .hero::after {
        display: none;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%; /* Escondido por defecto */
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 5rem;
        align-items: center;
        gap: 2rem;
        z-index: 100;
        transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .nav.open {
        right: 0; /* Desliza desde la derecha */
    }

    .nav a { font-size: 1.2rem; }
    .nav .btn-glass { font-size: 1.1rem; padding: 0.85rem 2rem; }
    .menu-toggle {
        display: flex;
        z-index: 101;
        cursor: pointer;
        background: none;
        border: none;
    }

    .header.scrolled .header-inner {
        border-radius: 16px;
        margin: 0 1rem;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.97);
    }

    .hero { padding: 7rem 0 3rem; min-height: auto; }
    .hero h1 { font-size: 2.3rem; }

    .services-grid { grid-template-columns: 1fr; }
    .service-card.featured {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .service-card.featured .service-icon { margin-bottom: 1.25rem; }
    .cases-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .footer-grid { flex-direction: column !important; gap: 2rem; }
    .footer-brand { width: 100% !important; }
    .footer-brand-desc { max-width: 100%; }
    .footer-bottom { text-align: center; }
}

@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn-glass { width: 100%; justify-content: center; }
    .metric-pill { font-size: 0.8rem; padding: 0.55rem 1rem; }
}

/* ===== Print Styles ===== */
@media print {
    .header, .footer, .floating-labels, .calm-waves { display: none; }
    body { background: white; }
    .hero::before, .hero::after, .services::after, .cases::after { display: none; }
}
