/* ============================================
   WAE - World AI Engineers
   Minimalist Edition — Data Engineering Aesthetic
   Clean, Structured, Precise.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,300&family=DM+Mono:wght@400;500&display=swap');

/* ============================================
   CSS Custom Properties — Minimalist Tokens
   ============================================ */
:root {
    /* Core Palette */
    --color-primary: #17345c;
    /* Deep navy — precision/trust */
    --color-primary-light: #214878;
    --color-accent: #3fa89a;
    /* Electric blue accent (used sparingly) */
    --color-accent-muted: rgba(63, 168, 154, 0.10);

    /* Backgrounds */
    --bg-root: #f4f7fb;
    /* Very light tech blue / ice-white (professional data feel) */
    --bg-section-alt: #e8f0f7;
    /* Slightly darker cool white for alternating sections */
    --bg-card: #ffffff;
    --bg-dark: #0a1930;
    /* Footer / dark elements */
    --bg-dark-secondary: #17345c;

    /* Text */
    --text-primary: #0a1930;
    --text-secondary: #5a5a72;
    --text-tertiary: #9a9ab0;
    --text-on-dark: #f0f0ee;
    --text-on-dark-secondary: rgba(240, 240, 238, 0.6);

    /* Borders */
    --border-light: #e8e8e2;
    --border-medium: #d0d0c8;
    --border-accent: rgba(63, 168, 154, 0.35);

    /* Typography */
    --font-primary: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'IBM Plex Mono', 'JetBrains Mono', monospace;

    /* Scale */
    --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
    --text-sm: clamp(0.85rem, 0.8rem + 0.25vw, 0.95rem);
    --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.05rem);
    --text-lg: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
    --text-3xl: clamp(2rem, 1.5rem + 2.5vw, 2.75rem);
    --text-4xl: clamp(2.5rem, 1.75rem + 3.75vw, 3.75rem);
    --text-5xl: clamp(3rem, 2rem + 4vw, 4.5rem);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4.5rem;
    --space-4xl: 6rem;
    --space-5xl: 9rem;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows — very subtle */
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.09);
    --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 160ms ease;
    --transition-base: 280ms ease;
    --transition-slow: 480ms ease;

    /* Z-index */
    --z-fixed: 300;
    --z-modal: 400;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.65;
    color: var(--text-primary);
    background-color: var(--bg-root);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-section-alt);
}

::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

::selection {
    background: rgba(15, 122, 255, 0.15);
    color: var(--text-primary);
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   Header & Navigation
   ============================================ */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: transparent;
    padding: var(--space-lg) var(--space-xl) 0;
    transition: padding var(--transition-base);
}

.main-header.scrolled {
    padding-top: var(--space-sm);
}

.nav-container {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.25rem;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(26, 58, 107, 0.08);
    border-radius: var(--radius-full);
    padding: 0.6rem 1.6rem;
    box-shadow:
        0 1px 2px rgba(26, 58, 107, 0.06),
        0 22px 44px -18px rgba(26, 58, 107, 0.32);
    transition: box-shadow var(--transition-base), background var(--transition-base);
}

.main-header.scrolled .nav-container {
    box-shadow:
        0 1px 3px rgba(26, 58, 107, 0.08),
        0 26px 48px -16px rgba(26, 58, 107, 0.4);
    background: rgba(255, 255, 255, 0.88);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    transition: opacity var(--transition-fast);
}

.logo-link:hover {
    opacity: 0.82;
}

.header-logo {
    height: 36px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
    white-space: nowrap;
    padding-bottom: 2px;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    border-radius: var(--radius-full);
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.cta-nav {
    color: var(--bg-card);
    background: var(--color-primary);
    padding: 0.55rem 1.4rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-left: 0.5rem;
    box-shadow: 0 2px 10px rgba(26, 58, 107, 0.18);
}

.nav-link.cta-nav::after {
    display: none;
}

.nav-link.cta-nav:hover {
    background: var(--color-primary-light);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(26, 58, 107, 0.3);
}

.header-actions {
    display: none;
    align-items: center;
    gap: var(--space-sm);
}

.mobile-menu-btn {
    display: none;
    color: var(--text-primary);
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
}

.mobile-menu-btn .material-symbols-outlined {
    font-size: 24px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn .material-symbols-outlined {
    font-size: 18px;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(26, 58, 107, 0.28);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-accent-muted);
}

.btn-large {
    padding: 1rem 2.25rem;
    font-size: var(--text-base);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ============================================
   Hero Section — Centered Minimalist + Watermark
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Removed text-align: center and align-items: center so it can strictly left-align */
    padding: 9rem 0 var(--space-5xl);
    overflow: hidden;
    background: var(--bg-root);
}

/* Full background image */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Corner-bracket "viewfinder" frame around the hero, inspired by the reference site */
.hero-frame-corner {
    position: absolute;
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    border-color: var(--color-accent);
    pointer-events: none;
}

.hero-frame-corner--tl {
    top: 6rem;
    left: 1.75rem;
    border-top: 2px solid;
    border-left: 2px solid;
}

.hero-frame-corner--tr {
    top: 6rem;
    right: 1.75rem;
    border-top: 2px solid;
    border-right: 2px solid;
}

.hero-frame-corner--bl {
    bottom: 1.75rem;
    left: 1.75rem;
    border-bottom: 2px solid;
    border-left: 2px solid;
}

.hero-frame-corner--br {
    bottom: 1.75rem;
    right: 1.75rem;
    border-bottom: 2px solid;
    border-right: 2px solid;
}

/* Hero content left-aligned */
/* Hero content left-aligned */
.hero-inner-left {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: var(--space-lg);

    /* Align perfectly with the 1200px grid of the header/sections */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* Constrain text elements so they don't hit the character */
.hero-inner-left>* {
    max-width: 650px;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    animation: fadeInUp 0.7s ease-out both;
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    animation: fadeInUp 0.7s ease-out 0.1s both;
}

.hero-title em {
    font-style: normal;
    color: var(--color-primary);
    font-weight: 300;
}

.hero-title-dot {
    color: #7dd3fc; /* azul claro */
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    font-weight: 400;
    line-height: 1.7;
    animation: fadeInUp 0.7s ease-out 0.2s both;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: flex-start;
    animation: fadeInUp 0.7s ease-out 0.3s both;
}


/* Tech stack bar below hero CTA */
.hero-stack {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-light);
    animation: fadeInUp 0.7s ease-out 0.4s both;
}

.hero-stack-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stack-tag {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    background: var(--bg-section-alt);
    border: 1px solid var(--border-light);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.04em;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.stack-tag:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Scroll Indicator — sits at bottom of left panel */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    /* approx center of left 55% panel */
    transform: translateX(-50%);
    color: var(--text-tertiary);
    animation: bounce 2s ease-in-out infinite;
    z-index: 5;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* ============================================
   Section Common Styles
   ============================================ */
.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.section-eyebrow {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    display: block;
    margin-bottom: var(--space-md);
}

.section-header {
    margin-bottom: var(--space-3xl);
}

.section-header.centered {
    text-align: center;
}

.section-header.centered .section-description {
    margin: 0 auto;
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.section-title em {
    font-style: normal;
    font-weight: 300;
    color: var(--text-secondary);
}

.section-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
}

/* ============================================
   Services / Pillars Section
   ============================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.service-card:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-medium);
    transform: translateY(-4px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card.featured {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-md);
}

.service-card.featured::before {
    transform: scaleX(1);
}

.service-number {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    letter-spacing: 0.1em;
}

.service-icon-wrap {
    width: 48px;
    height: 48px;
    background: var(--color-accent-muted);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-base);
}

.service-icon-wrap .material-symbols-outlined {
    font-size: 26px;
    color: var(--color-primary);
}

.service-card:hover .service-icon-wrap {
    background: var(--color-primary);
}

.service-card:hover .service-icon-wrap .material-symbols-outlined {
    color: #fff;
}

.service-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.service-description {
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: 1.65;
    flex: 1;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.service-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-primary);
    background: var(--color-accent-muted);
    border: 1px solid rgba(15, 122, 255, 0.15);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.04em;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    transition: gap var(--transition-fast);
}

.service-link .material-symbols-outlined {
    font-size: 16px;
}

.service-link:hover {
    gap: 0.7rem;
}

/* ============================================
   About Section
   ============================================ */









.highlight-chip {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    border: 1px solid var(--border-medium);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    background: var(--bg-card);
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    padding: var(--space-5xl) 0;
    background: var(--bg-section-alt);
    border-top: 1px solid var(--border-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--space-4xl);
    align-items: start;
}

.contact-tagline {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

.contact-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--text-secondary);
    font-size: var(--text-base);
    transition: color var(--transition-fast);
}

.contact-method:hover {
    color: var(--color-primary);
}

.contact-method .material-symbols-outlined {
    font-size: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.contact-method span:last-child {
    font-size: var(--text-sm);
}

/* ---- Certifications block ---- */
.certifications-block {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-light);
}

.cert-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: var(--space-lg);
}

.cert-badges {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

/* Coin flip: 3-D perspective container */
.badge-coin {
    perspective: 600px;
    cursor: pointer;
}

.badge-coin img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
    border-radius: 4px;
    /* Smooth base transition always present */
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.3s ease,
        box-shadow 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
    filter: drop-shadow(0 2px 6px rgba(26, 58, 107, 0.12));
}

/* Coin flip on hover — full 360° Y rotation for the "coin" effect */
.badge-coin:hover img {
    transform: rotateY(360deg) scale(1.08);
    filter: drop-shadow(0 6px 18px rgba(26, 58, 107, 0.28));
}


/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    color: var(--text-primary);
    background: var(--bg-root);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.7rem 0.9rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
    width: 100%;
    -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-tertiary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(15, 122, 255, 0.1);
}

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

.form-group select {
    cursor: pointer;
}



/* ============================================
   Company Logos Ticker (auto-scroll)
   ============================================ */
.clients-section {
    padding: var(--space-4xl) 0;
    background: var(--bg-root);
    border-top: 1px solid var(--border-light);
    overflow: hidden;
}

.clients-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.clients-title {
    font-size: var(--text-sm);
    font-family: var(--font-mono);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

/* The scrolling track — two copies of logos for seamless loop */
.clients-track-wrapper {
    position: relative;
    overflow: hidden;
    /* Fade out edges */
    mask-image: linear-gradient(to right,
            transparent 0%,
            black 10%,
            black 90%,
            transparent 100%);
    -webkit-mask-image: linear-gradient(to right,
            transparent 0%,
            black 10%,
            black 90%,
            transparent 100%);
}

.clients-track {
    display: flex;
    gap: var(--space-4xl);
    align-items: center;
    width: max-content;
    animation: logoScroll 28s linear infinite;
}

.clients-track:hover {
    animation-play-state: paused;
}

@keyframes logoScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.client-logo {
    height: 52px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    flex-shrink: 0;
    filter: grayscale(1);
    opacity: 0.55;
    transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}

.client-logo:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.08);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Responsive — Tablet (≤1024px)
   ============================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }



    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    .hero-inner-left {
        padding: 0 var(--space-lg);
    }
}

/* ============================================
   Responsive — Mobile (≤768px)
   ============================================ */
@media (max-width: 768px) {

    /* ---- Hero ---- */
    .hero-section {
        min-height: 100svh;
        /* Safe viewport height on iOS */
        padding: 7rem 0 var(--space-4xl);
    }

    .hero-frame-corner {
        width: 1.5rem;
        height: 1.5rem;
    }

    .hero-frame-corner--tl,
    .hero-frame-corner--tr {
        top: 5.5rem;
    }

    .hero-frame-corner--tl,
    .hero-frame-corner--bl {
        left: 1rem;
    }

    .hero-frame-corner--tr,
    .hero-frame-corner--br {
        right: 1rem;
    }

    .hero-frame-corner--bl,
    .hero-frame-corner--br {
        bottom: 1rem;
    }

    .hero-inner-left {
        padding: 0 1.5rem;
        gap: var(--space-md);
        max-width: 100%;
    }

    .hero-inner-left>* {
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
        line-height: 1.12;
    }

    .hero-subtitle {
        font-size: var(--text-base);
        line-height: 1.65;
    }

    .hero-eyebrow {
        font-size: 0.65rem;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    .hero-cta-group .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        min-height: 48px;
        /* Comfortable touch target */
    }

    .scroll-indicator {
        display: none;
    }

    /* ---- Navigation ---- */
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-root);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-xl);
        z-index: 200;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        font-size: var(--text-xl);
    }

    .header-actions {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 201;
    }

    /* ---- Sections ---- */
    .section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .section-container {
        padding: 0 1.5rem;
    }

    /* ---- Services ---- */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .service-card {
        padding: var(--space-xl);
    }

    /* ---- About ---- */

    /* ---- Contact ---- */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .contact-tagline {
        font-size: clamp(1.4rem, 5.5vw, 1.9rem);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Make inputs comfortable for touch */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: var(--text-base);
        min-height: 48px;
    }

    /* ---- Certifications ---- */
    .certifications-block {
        margin-top: var(--space-xl);
    }

    .cert-badges {
        gap: var(--space-lg);
    }

    .badge-coin img {
        width: 80px;
        height: 80px;
    }

    /* ---- Clients ticker ---- */
    .clients-section {
        padding: var(--space-2xl) 0;
    }

    .client-logo {
        height: 38px;
        max-width: 100px;
    }

    .clients-track {
        gap: var(--space-2xl);
        /* Faster scroll on mobile for a snappier feel */
        animation-duration: 20s;
    }

    /* ---- Footer ---- */
    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }

    .footer-legal {
        justify-content: center;
    }
}

/* ============================================
   Responsive — Small phones (≤480px)
   ============================================ */
@media (max-width: 480px) {
    .main-header {
        padding: var(--space-sm) var(--space-md) 0;
    }

    .nav-container {
        padding: 0.45rem 0.45rem 0.45rem 0.9rem;
    }

    .header-logo {
        height: 26px;
    }

    .hero-title {
        font-size: clamp(1.75rem, 9vw, 2.4rem);
    }

    .section-container {
        padding: 0 1.25rem;
    }

    .service-card {
        padding: var(--space-lg);
    }

    .contact-form-wrapper {
        padding: var(--space-lg);
    }

    .certifications-block {
        margin-top: var(--space-lg);
    }

    .cert-badges {
        gap: var(--space-md);
    }

    .badge-coin img {
        width: 70px;
        height: 70px;
    }

    .btn {
        width: 100%;
        max-width: 340px;
    }
}

/* ============================================
   Corporate Video Section
   ============================================ */
.video-section {
    background: var(--bg-body);
}

.video-responsive-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.video-responsive-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
/* ============================================================
   HERO CINEMATOGRÁFICO CONTROLADO POR SCROLL
   Secuencia WebP sobre canvas 2D + GSAP ScrollTrigger.
   Parámetros de tiempo y encuadre viven en hero-cinematic.js
   ============================================================ */

.hero-cinematic {
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100svh;
    padding: 0;
    justify-content: flex-end;
}

.hero-cinematic .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--bg-root);
    overflow: hidden;
}

/* Poster y canvas ocupan el mismo hueco: el poster se retira al primer pintado */
.hero-cinematic .hero-poster,
.hero-cinematic .hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.hero-cinematic .hero-poster {
    object-fit: cover;
    object-position: center;
    z-index: 1;
    transition: opacity .5s ease;
}

.hero-cinematic .hero-canvas {
    z-index: 2;
    opacity: 0;
    transition: opacity .5s ease;
}

.hero-cinematic.hero-ready .hero-canvas { opacity: 1; }
.hero-cinematic.hero-ready .hero-poster { opacity: 0; }

/* Degradado que sostiene la legibilidad del texto sobre cualquier fotograma.
   El material se aclara mucho en el tramo final (brillo medio 29 -> 126). */
.hero-cinematic .hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(4, 10, 20, .92) 0%, rgba(4, 10, 20, .72) 34%,
                        rgba(4, 10, 20, .28) 62%, rgba(4, 10, 20, .05) 100%),
        linear-gradient(0deg, rgba(4, 10, 20, .80) 0%, rgba(4, 10, 20, .15) 38%,
                        transparent 62%);
}

/* ─── Los tres actos ─── */
.hero-cinematic .hero-inner-left {
    z-index: 4;
    position: relative;
    display: grid;
    padding-bottom: clamp(5rem, 12vh, 9rem);
}

/* Se apilan en la misma celda para que el relevo no mueva la maqueta */
.hero-cinematic .hero-act {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(22px);
    transition: opacity .55s ease, transform .55s cubic-bezier(.22, .61, .36, 1),
                visibility 0s linear .55s;
}

.hero-cinematic .hero-act.is-on {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s, 0s, 0s;
}

.hero-cinematic .hero-act > * { max-width: 650px; }

/* ─── Indicador de progreso ─── */
.hero-progress {
    position: absolute;
    z-index: 5;
    left: 50%;
    transform: translateX(-50%);
    bottom: var(--space-xl);
    width: 100%;
    max-width: 1200px;
    padding: 0 var(--space-xl);
    display: flex;
    align-items: center;
    gap: .75rem;
    font-variant-numeric: tabular-nums;
    /* Alineado con la columna de texto: el video lleva la marca WAE
       quemada abajo a la derecha y chocaban entre sí. */
}

.hero-progress-num {
    font-size: .75rem;
    letter-spacing: .18em;
    color: var(--color-accent);
}

.hero-progress-track {
    display: block;
    width: clamp(90px, 14vw, 200px);
    height: 2px;
    background: rgba(255, 255, 255, .18);
    overflow: hidden;
}

.hero-progress-bar {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
}

/* El indicador de scroll solo tiene sentido al principio */
.hero-cinematic .scroll-indicator { z-index: 5; }

/* ─── Móvil: banda de aspecto natural ───
   Un "cover" a pantalla completa sobre 16:9 en vertical dejaría ver
   apenas el 26% del ancho y recortaría a la protagonista. */
@media (max-width: 820px) {
    .hero-cinematic { justify-content: flex-start; }

    .hero-cinematic .hero-bg {
        inset: 0 0 auto 0;
        height: 56vh;
        height: 56svh;
    }

    .hero-cinematic .hero-scrim {
        background:
            linear-gradient(0deg, var(--bg-root) 0%, rgba(4, 10, 20, .55) 30%, transparent 70%),
            linear-gradient(180deg, rgba(4, 10, 20, .55) 0%, transparent 28%);
    }

    .hero-cinematic .hero-inner-left {
        margin-top: 50vh;
        margin-top: 50svh;
        padding-bottom: var(--space-2xl);
    }

    .hero-progress {
        bottom: var(--space-lg);
        padding: 0 var(--space-lg);
    }

    .hero-progress-track { width: 70px; }
}

/* ─── Versión estática: sin recorrido, todo el relato visible ─── */
.hero-cinematic.hero-static {
    height: auto;
    min-height: 100vh;
    justify-content: center;
}

.hero-cinematic.hero-static .hero-canvas,
.hero-cinematic.hero-static .hero-progress { display: none; }

.hero-cinematic.hero-static .hero-poster { opacity: 1; }

.hero-cinematic.hero-static .hero-inner-left {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    padding-block: clamp(6rem, 14vh, 10rem);
    margin-top: 0;
}

.hero-cinematic.hero-static .hero-act {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
}

@media (prefers-reduced-motion: reduce) {
    .hero-cinematic .hero-act { transition: none; }
    .hero-cinematic .scroll-indicator { animation: none; }
}

/* ── Contraste del texto sobre la secuencia ──
   El material va de un brillo medio de 29 a 126, así que el texto del hero
   no puede depender de las variables de tema: se fija claro y con sombra. */
.hero-cinematic .hero-eyebrow {
    color: #6FBBFF;
    text-shadow: 0 1px 12px rgba(0, 8, 20, .8);
}

.hero-cinematic .hero-title {
    color: #F4F8FC;
    text-shadow: 0 2px 28px rgba(0, 8, 20, .75), 0 1px 4px rgba(0, 8, 20, .5);
    animation: none;            /* el relevo entre actos ya anima la entrada */
}

.hero-cinematic .hero-title em { color: #6FBBFF; }
.hero-cinematic .hero-title-dot { color: #6FBBFF; }

.hero-cinematic .hero-subtitle {
    color: rgba(240, 247, 255, .86);
    text-shadow: 0 1px 16px rgba(0, 8, 20, .75);
    animation: none;
}

/* El botón secundario necesita borde propio: el del tema desaparece sobre foto */
.hero-cinematic .btn-secondary {
    color: #F4F8FC;
    border-color: rgba(255, 255, 255, .45);
    background: rgba(8, 18, 32, .35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.hero-cinematic .btn-secondary:hover {
    border-color: #6FBBFF;
    background: rgba(8, 18, 32, .6);
}

.hero-cinematic .scroll-indicator { color: rgba(240, 247, 255, .7); }

/* ── El hero es un bloque oscuro siempre ──
   El texto va fijado en claro para sostenerse sobre el video, así que el
   fondo no puede depender del tema: en claro dejaba el texto invisible. */
.hero-cinematic {
    background: #0a1930;
    color-scheme: dark;
}

@media (max-width: 820px) {
    .hero-cinematic .hero-scrim {
        background:
            linear-gradient(0deg, #0a1930 0%, rgba(10, 25, 48, .82) 22%,
                            rgba(10, 25, 48, .30) 52%, transparent 78%),
            linear-gradient(180deg, rgba(10, 25, 48, .55) 0%, transparent 28%);
    }
}

/* ============================================================
   AJUSTES DE HEADER Y LUMINOSIDAD DEL HERO
   ============================================================ */

/* El CTA era un <a> en línea: su relleno no contaba para la altura de la
   caja y quedaba 2 px descentrado (11 arriba, 9 abajo). */
.nav-link.cta-nav {
    display: inline-flex;
    align-items: center;
    margin-left: 0.65rem;   /* iguala el hueco logo->menú (2.25rem) */
}

/* Más aire dentro del pill blanco, manteniendo la simetría */
.nav-container {
    padding: 0.85rem 1.9rem;
    gap: 2.25rem;
}

@media (max-width: 860px) {
    .nav-container { padding: 0.7rem 1.1rem; }
}

/* Hero más natural: el velo pasaba de 92% de negro en el borde izquierdo.
   Se aligera y el contraste del texto se sostiene con la sombra. */
.hero-cinematic .hero-scrim {
    background:
        linear-gradient(90deg, rgba(4, 10, 20, .60) 0%, rgba(4, 10, 20, .34) 30%,
                        rgba(4, 10, 20, .08) 58%, transparent 80%),
        linear-gradient(0deg, rgba(4, 10, 20, .52) 0%, rgba(4, 10, 20, .06) 32%,
                        transparent 56%);
}

.hero-cinematic .hero-title {
    text-shadow: 0 2px 18px rgba(0, 6, 16, .92), 0 1px 3px rgba(0, 6, 16, .8);
}

.hero-cinematic .hero-subtitle {
    text-shadow: 0 1px 12px rgba(0, 6, 16, .92), 0 1px 3px rgba(0, 6, 16, .7);
}

.hero-cinematic .hero-eyebrow {
    text-shadow: 0 1px 10px rgba(0, 6, 16, .95), 0 1px 3px rgba(0, 6, 16, .8);
}

/* ============================================================
   HERO · TEXTO ABAJO A LA IZQUIERDA, ENTRADA TARDÍA
   ============================================================ */

:root {
    --hero-acento: #50b7a8;
}

/* El bloque se pega a la esquina inferior izquierda y se estrecha,
   para dejar el video despejado el mayor tiempo posible. */
.hero-cinematic .hero-inner-left {
    padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
}

.hero-cinematic .hero-act > * {
    max-width: 560px;
}

/* ─── Tipografía: blanca, con el acento como único color ─── */
.hero-cinematic .hero-eyebrow {
    color: var(--hero-acento);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-shadow: 0 1px 10px rgba(0, 6, 16, .95), 0 1px 3px rgba(0, 6, 16, .8);
}

.hero-cinematic .hero-title {
    color: #ffffff;
    font-size: clamp(1.9rem, 3.4vw, 3rem);
    line-height: 1.14;
    text-shadow: 0 2px 18px rgba(0, 6, 16, .92), 0 1px 3px rgba(0, 6, 16, .8);
}

.hero-cinematic .hero-title em,
.hero-cinematic .hero-title-dot {
    color: var(--hero-acento);
}

/* Acto 02: párrafo corriente, no titular */
.hero-lead {
    color: #ffffff;
    font-size: clamp(1rem, 1.25vw, 1.15rem);
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: 0.005em;
    max-width: 560px;
    text-shadow: 0 1px 12px rgba(0, 6, 16, .95), 0 1px 3px rgba(0, 6, 16, .8);
}

.hero-lead em {
    font-style: normal;
    font-weight: 500;
    color: var(--hero-acento);
}

.hero-cinematic .btn-secondary:hover {
    border-color: var(--hero-acento);
}

/* En pantallas estrechas los saltos de línea del titular estorban */
@media (max-width: 720px) {
    .hero-cinematic .hero-title br { display: none; }
    .hero-cinematic .hero-act > *,
    .hero-lead { max-width: 100%; }
}

/* ─── Logo más grande y más arriba ─── */
.header-logo {
    height: 46px;
}

.main-header {
    padding-top: 0.85rem;
}

@media (max-width: 860px) {
    .header-logo { height: 40px; }
    .main-header { padding-top: 0.7rem; }
}

/* El indicador ocupaba la misma esquina que el texto. Pasa a ser una línea
   fina al borde inferior del hero, como el scrubber de un reproductor. */
.hero-cinematic .hero-progress {
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    max-width: none;
    padding: 0;
    gap: 0;
}

.hero-cinematic .hero-progress-num { display: none; }

.hero-cinematic .hero-progress-track {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, .10);
}

.hero-cinematic .hero-progress-bar {
    background: var(--hero-acento);
    box-shadow: 0 0 12px rgba(80, 183, 168, .55);
}

/* La flecha de "sigue bajando" solo tiene sentido antes de arrancar */
.hero-cinematic .scroll-indicator {
    transition: opacity .45s ease;
}

.hero-cinematic.hero-avanzado .scroll-indicator {
    opacity: 0;
    pointer-events: none;
}

/* Los tres actos comparten celda de rejilla. Sin esto, los más cortos
   quedaban flotando arriba y el bloque saltaba de sitio entre salidas. */
.hero-cinematic .hero-act {
    justify-content: flex-end;
}

/* La rejilla heredaba align-items:flex-start de la regla base, así que cada
   acto se colocaba arriba de su celda y la línea base bailaba entre salidas. */
.hero-cinematic .hero-inner-left {
    align-items: end;
}

/* En la versión estática el contenedor vuelve a ser flex en columna, donde
   align-items actúa en el eje horizontal: sin esto el texto se iba a la derecha. */
.hero-cinematic.hero-static .hero-inner-left {
    align-items: flex-start;
}

/* ============================================================
   MANUAL DE MARCA · JERARQUÍA TIPOGRÁFICA
   "Manrope lidera. Inter sostiene. IBM Plex Mono evidencia."
   ============================================================ */

body {
    font-family: var(--font-body);   /* Inter sostiene el texto corrido */
}

h1, h2, h3, h4, h5, h6,
.hero-title, .section-title, .btn, .nav-link, .logo-link {
    font-family: var(--font-primary);   /* Manrope lidera */
}

.hero-eyebrow, .hero-progress-num,
.mono, code, kbd, pre {
    font-family: var(--font-mono);      /* IBM Plex Mono evidencia */
}

/* ── Hero: acento de marca y segunda salida más legible ── */
:root {
    /* Acento oficial del manual (10% de la paleta). El #50b7a8 pedido
       queda a cuatro puntos de este valor documentado. */
    --hero-acento: #3fa89a;
}

.hero-lead {
    font-family: var(--font-body);
    font-size: clamp(1.15rem, 1.55vw, 1.45rem);
    line-height: 1.7;
    font-weight: 400;
    color: #ffffff;
    max-width: 640px;
}

.hero-lead em {
    font-weight: 600;
    color: var(--hero-acento);
}

.hero-cinematic .hero-act > * {
    max-width: 640px;
}

/* El rótulo pequeño se pega al titular: 24px lo dejaban flotando suelto.
   Los botones recuperan su aire por separado. */
.hero-cinematic .hero-act {
    gap: 0.5rem;
}

.hero-cinematic .hero-cta-group {
    margin-top: 1.1rem;
}

/* Apertura en plano de color: navy de marca cubriendo el hero antes del
   primer fotograma. Se disuelve en el primer tramo del recorrido. */
.hero-cinematic .hero-intro {
    position: absolute;
    inset: 0;
    z-index: 4;                 /* sobre canvas y velo, bajo el texto (5) */
    background: #0a1930;
    pointer-events: none;
    will-change: opacity;
}

.hero-cinematic.hero-static .hero-intro {
    display: none;              /* la versión estática muestra el póster */
}

@media (max-width: 820px) {
    /* En móvil el fondo es una banda: la apertura cubre solo esa zona */
    .hero-cinematic .hero-intro { inset: 0; }
}

/* ============================================================
   SERVICIOS · ACORDEÓN BAJO EL HERO
   Patrón: cerrado = tarjeta clara; abierto = tarjeta navy con
   imagen, descripción, etiquetas y número.
   ============================================================ */

.services-section {
    position: relative;
    padding: clamp(4.5rem, 9vw, 8rem) 0;
    background: var(--bg-root);
}

/* ─── Cabecera ─── */
.services-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.services-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-full);
    background: #ffffff;
    border: 1px solid rgba(23, 52, 92, 0.08);
    box-shadow: 0 2px 10px rgba(23, 52, 92, 0.06);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.services-badge i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
}

.services-title {
    margin: 1.25rem 0 0;
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4.2vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-primary);
}

.services-sub {
    margin: 1.1rem auto 0;
    max-width: 620px;
    font-family: var(--font-body);
    font-size: clamp(0.98rem, 1.15vw, 1.08rem);
    line-height: 1.75;
    color: var(--text-secondary);
}

/* ─── Acordeón ─── */
.services-accordion {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 1120px;
    margin: 0 auto;
}

.service-item {
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(23, 52, 92, 0.09);
    box-shadow: 0 2px 14px rgba(23, 52, 92, 0.05);
    overflow: hidden;
    transition: background .45s var(--transition-base, ease),
                border-color .45s ease, box-shadow .45s ease;
}

.service-item.is-open {
    background: #0a1930;
    border-color: rgba(63, 168, 154, 0.35);
    box-shadow: 0 26px 60px -28px rgba(10, 25, 48, 0.55);
}

.service-head-wrap {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

.service-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: clamp(1.4rem, 2.4vw, 2rem) clamp(1.4rem, 2.6vw, 2.4rem);
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
}

.service-name {
    font-family: var(--font-primary);
    font-size: clamp(1.25rem, 2.3vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--color-primary);
    transition: color .35s ease;
}

.service-item.is-open .service-name { color: #ffffff; }

/* Botón circular con flecha */
.service-toggle {
    flex-shrink: 0;
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(23, 52, 92, 0.22);
    transition: background .35s ease, border-color .35s ease, transform .35s ease;
}

.service-toggle::before,
.service-toggle::after {
    content: "";
    position: absolute;
    background: var(--color-primary);
    transition: background .35s ease;
}

/* trazo de la flecha */
.service-toggle::before {
    left: 50%;
    top: 50%;
    width: 15px;
    height: 1.5px;
    transform: translate(-50%, -50%);
}

/* punta de la flecha, anclada al extremo derecho del trazo */
.service-toggle::after {
    left: 50%;
    top: 50%;
    width: 7px;
    height: 7px;
    border-top: 1.5px solid var(--color-primary);
    border-right: 1.5px solid var(--color-primary);
    background: none;
    transform: translate(calc(-50% + 4px), -50%) rotate(45deg);
}

.service-head:hover .service-toggle {
    border-color: var(--color-accent);
    transform: translateX(3px);
}

.service-item.is-open .service-toggle {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: rotate(45deg);
}

.service-item.is-open .service-toggle::before { background: #0a1930; }
.service-item.is-open .service-toggle::after {
    border-top-color: #0a1930;
    border-right-color: #0a1930;
}

/* ─── Cuerpo desplegable ─── */
.service-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .5s cubic-bezier(.22, .61, .36, 1);
}

.service-item.is-open .service-body {
    grid-template-rows: 1fr;
}

.service-inner {
    overflow: hidden;
    min-height: 0;
}

.service-item.is-open .service-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(1.5rem, 3vw, 2.75rem);
    padding: 0 clamp(1.4rem, 2.6vw, 2.4rem) clamp(1.6rem, 2.8vw, 2.4rem);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 0;
    padding-top: clamp(1.4rem, 2.4vw, 2rem);
}

.service-media img {
    width: 100%;
    height: 100%;
    max-height: 340px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

.service-copy {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.service-desc {
    margin: 0;
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.1vw, 1.03rem);
    line-height: 1.8;
    color: rgba(232, 240, 247, 0.82);
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-tags li {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: #e8f0f7;
}

.service-num {
    margin-top: auto;
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: rgba(255, 255, 255, 0.09);
}

/* ─── Móvil: una columna ─── */
@media (max-width: 860px) {
    .service-item.is-open .service-inner {
        grid-template-columns: minmax(0, 1fr);
    }
    .service-media img { max-height: 220px; }
    .service-num { margin-top: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .service-body, .service-item, .service-toggle { transition: none; }
}

/* El rótulo ahora es una línea de código: sin mayúsculas forzadas ni
   tracking ancho, que romperían la lectura como tal. */
.services-badge {
    text-transform: none;
    letter-spacing: 0.01em;
    font-size: 0.8rem;
}

.services-badge i {
    box-shadow: 0 0 0 3px rgba(63, 168, 154, 0.18);
}

/* El titular nuevo es más largo: se le da ancho para que rompa en dos
   líneas en vez de tres, y el subtítulo se mantiene más estrecho. */
.services-head { max-width: 900px; }
.services-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.services-sub { max-width: 640px; }

/* ─── Panel de servicio: frase destacada, pie con botón y número ─── */
.service-lead {
    margin: 0;
    font-family: var(--font-primary);
    font-size: clamp(1.05rem, 1.55vw, 1.4rem);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.012em;
    color: #ffffff;
}

.service-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: auto;
    padding-top: 0.4rem;
}

/* El botón primario del sitio es navy: sobre la tarjeta navy no se veía.
   Aquí usa el acento de la paleta con texto oscuro. */
.service-cta {
    background: var(--color-accent);
    color: #0a1930;
    border: 0;
    border-radius: var(--radius-full);
    padding: 0.8rem 1.6rem;
    box-shadow: 0 10px 26px -12px rgba(63, 168, 154, 0.7);
}

.service-cta:hover {
    background: #93d5cb;
    color: #0a1930;
    transform: translateY(-2px);
}

.service-cta .material-symbols-outlined {
    font-size: 1.1rem;
}

.service-num {
    margin-top: 0;
}

@media (max-width: 560px) {
    .service-foot { justify-content: flex-start; }
    .service-cta { width: 100%; justify-content: center; }
}

/* ============================================================
   PROCESO · encabezado fijo + carrusel horizontal
   Carrusel con scroll nativo y scroll-snap, sin librería.
   ============================================================ */

.process-section {
    padding: clamp(4rem, 8vw, 7rem) 0 clamp(4.5rem, 9vw, 8rem);
    background: var(--bg-section-alt);
    overflow: hidden;
}

.process-layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
}

/* ─── Columna izquierda ─── */
.process-title {
    margin: 1.25rem 0 0;
    font-family: var(--font-primary);
    font-size: clamp(2rem, 3.8vw, 3.1rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--color-primary);
}

.process-sub {
    margin: 1.1rem 0 0;
    max-width: 38ch;
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.1vw, 1.03rem);
    line-height: 1.75;
    color: var(--text-secondary);
}

.process-nav {
    display: flex;
    gap: 0.75rem;
    margin-top: clamp(1.75rem, 3vw, 2.75rem);
}

.process-arrow {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(23, 52, 92, 0.2);
    background: #ffffff;
    cursor: pointer;
    transition: border-color .3s ease, background .3s ease, opacity .3s ease;
}

.process-arrow::before,
.process-arrow::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: var(--color-primary);
}

.process-arrow::before {
    width: 14px;
    height: 1.5px;
    transform: translate(-50%, -50%);
}

.process-arrow::after {
    width: 7px;
    height: 7px;
    background: none;
    border-top: 1.5px solid var(--color-primary);
    border-right: 1.5px solid var(--color-primary);
    transform: translate(calc(-50% + 3.5px), -50%) rotate(45deg);
}

.process-arrow[data-dir="-1"]::before,
.process-arrow[data-dir="-1"]::after { transform-origin: center; }
.process-arrow[data-dir="-1"] { transform: rotate(180deg); }

.process-arrow:hover:not(:disabled) {
    border-color: var(--color-accent);
    background: var(--color-accent);
}

.process-arrow:hover:not(:disabled)::before { background: #ffffff; }
.process-arrow:hover:not(:disabled)::after {
    border-top-color: #ffffff;
    border-right-color: #ffffff;
}

.process-arrow:disabled { opacity: .35; cursor: default; }

/* ─── Carrusel ─── */
.process-viewport {
    /* se desborda hacia el margen derecho, como en la referencia */
    margin-right: calc(50% - 50vw);
}

.process-track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0.5rem 1.25rem 1.5rem 0;
    scrollbar-width: none;
}

.process-track::-webkit-scrollbar { display: none; }

.process-card {
    flex: 0 0 clamp(260px, 30vw, 340px);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: clamp(1.5rem, 2.4vw, 2rem);
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(23, 52, 92, 0.08);
    box-shadow: 0 18px 40px -26px rgba(23, 52, 92, 0.4);
}

.process-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: var(--color-accent);
    color: #ffffff;
    box-shadow: 0 14px 28px -12px rgba(63, 168, 154, 0.75);
}

.process-icon .material-symbols-outlined { font-size: 1.65rem; }

.process-card-title {
    margin: 0.4rem 0 0;
    font-family: var(--font-primary);
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--color-primary);
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(23, 52, 92, 0.1);
}

.process-card-text {
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.93rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.process-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
}

.process-dur {
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(23, 52, 92, 0.15);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
    white-space: nowrap;
}

.process-index {
    font-family: var(--font-primary);
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: rgba(23, 52, 92, 0.22);
    line-height: 1;
}

.process-index b {
    font-weight: 700;
    color: var(--color-primary);
}

/* ─── Móvil ─── */
@media (max-width: 900px) {
    .process-layout { grid-template-columns: minmax(0, 1fr); }
    .process-viewport { margin-right: calc(50% - 50vw); }
    .process-nav { margin-top: 1.5rem; }
    .process-card { flex-basis: min(82vw, 320px); }
}

@media (prefers-reduced-motion: reduce) {
    .process-track { scroll-behavior: auto; }
}

/* ─── Proceso: iconos de marca, sin píldora de duración, y cierre ─── */

/* Los iconos de marca son line-art en teal y navy: el recuadro pasa a un
   fondo claro de la paleta para no competir con ellos. */
.process-icon {
    background: #e4f5f2;
    border: 1px solid rgba(63, 168, 154, 0.22);
    box-shadow: none;
    width: 66px;
    height: 66px;
}

.process-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.process-card-text {
    font-size: clamp(0.95rem, 1.15vw, 1.05rem);
    line-height: 1.65;
    color: var(--color-primary);
}

.process-card-foot {
    justify-content: flex-end;
    border-top: 1px solid rgba(23, 52, 92, 0.1);
}

/* El titular resalta la palabra clave con el acento */
.process-title em {
    font-style: normal;
    color: var(--color-accent);
}

/* ─── Cierre de la sección ─── */
.process-cierre {
    position: relative;
    max-width: 860px;
    margin: clamp(2.5rem, 5vw, 4rem) auto 0;
    padding: clamp(1.4rem, 2.4vw, 1.9rem) clamp(1.5rem, 2.6vw, 2.25rem);
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(23, 52, 92, 0.08);
    border-left: 3px solid var(--color-accent);
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.35vw, 1.22rem);
    line-height: 1.7;
    color: var(--color-primary);
    box-shadow: 0 16px 38px -28px rgba(23, 52, 92, 0.45);
}

.process-cierre em {
    font-style: normal;
    font-weight: 600;
    color: var(--color-accent);
}

@media (max-width: 900px) {
    .process-cierre { margin-top: 2rem; }
}

/* ============================================================
   OPERATION · tarjetas a la altura del encabezado, con volumen
   ============================================================ */

/* 1. La tarjeta arranca con el rótulo y termina con los botones:
   encabezado y pista comparten los mismos márgenes verticales. El
   inferior deja sitio a la base de la tarjeta sin que se recorte. */
.process-layout { align-items: stretch; }

.process-heading { padding: 14px 0 46px; }

.process-viewport {
    display: flex;
    margin-right: 0;            /* lo ajusta el JS al borde real de la pantalla */
}

.process-track {
    align-items: stretch;
    padding: 14px 32px 46px 14px;
    scroll-padding-left: 14px;
}

/* 2. Profundidad como la referencia: base inferior sólida + sombra amplia */
.process-card {
    flex: 0 0 clamp(290px, 25vw, 370px);
    justify-content: flex-start;
    gap: 0;
    padding: clamp(1.75rem, 2.4vw, 2.3rem);
    border-radius: 26px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
    border: 1px solid rgba(23, 52, 92, 0.06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 9px 0 0 #dbe4ee,
        0 32px 48px -26px rgba(23, 52, 92, 0.45);
    transition: transform .35s ease, box-shadow .35s ease;
}

.process-card:hover { transform: translateY(-4px); }

/* 3. Texto más grande; icono y texto arriba, índice abajo */
.process-card-text {
    margin-top: 2rem;
    font-family: var(--font-primary);
    font-size: clamp(1.18rem, 1.45vw, 1.38rem);
    font-weight: 600;
    line-height: 1.42;
    letter-spacing: -0.012em;
    color: var(--color-primary);
}

.process-card-foot {
    margin-top: auto;
    padding-top: 1.25rem;
    justify-content: flex-end;
}

.process-index {
    font-size: clamp(2.4rem, 3.4vw, 3.2rem);
    letter-spacing: -0.05em;
}

/* 4. Resplandor del recuadro del icono, como en la referencia */
.process-icon {
    box-shadow:
        0 16px 30px -6px rgba(63, 168, 154, 0.55),
        0 0 38px 4px rgba(63, 168, 154, 0.16);
}

/* 5. Tarjeta de cierre en el navy de marca */
.process-card--cierre {
    background: linear-gradient(180deg, #102443 0%, #0a1930 100%);
    border-color: rgba(63, 168, 154, 0.3);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 9px 0 0 #050e1c,
        0 32px 48px -24px rgba(10, 25, 48, 0.7);
}

.process-card--cierre .process-card-text { color: #ffffff; }

.process-card--cierre .process-card-text em {
    font-style: normal;
    color: var(--color-accent);
}

.process-card--cierre .process-icon {
    background: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow:
        0 16px 32px -6px rgba(63, 168, 154, 0.8),
        0 0 44px 6px rgba(63, 168, 154, 0.22);
}

.process-card--cierre .process-card-foot {
    justify-content: flex-start;
    border-top-color: rgba(255, 255, 255, 0.12);
}

.process-firma {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #93d5cb;
}

@media (max-width: 900px) {
    .process-heading { padding: 0; }
    .process-card { flex-basis: min(80vw, 330px); min-height: 380px; }
}

/* ── Ajustes finos del carrusel de operation ── */

/* La pista hace scroll horizontal y eso recorta las sombras en seco,
   dibujando un rectángulo. Se le da margen suficiente para que la sombra
   quepa entera; el encabezado usa el mismo margen para seguir alineado. */
.process-heading { padding: 18px 0 66px; }

.process-track {
    padding: 18px 32px 66px 22px;
    scroll-padding-left: 22px;
}

.process-card {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 9px 0 0 #dbe4ee,
        0 26px 40px -24px rgba(23, 52, 92, 0.42);
}

.process-card--cierre {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 9px 0 0 #050e1c,
        0 26px 40px -22px rgba(10, 25, 48, 0.65);
}

/* Texto centrado entre icono y pie: reparte el alto en vez de dejar un
   hueco grande bajo el texto */
.process-card-text {
    margin: auto 0;
    padding: 1.75rem 0;
    font-size: clamp(1.25rem, 1.6vw, 1.5rem);
    line-height: 1.4;
}

.process-card-foot { margin-top: 0; }

/* Resplandor del icono un punto más marcado */
.process-icon {
    box-shadow:
        0 18px 34px -6px rgba(63, 168, 154, 0.6),
        0 0 42px 6px rgba(63, 168, 154, 0.18);
}

/* Fundido donde las tarjetas salen por la izquierda, solo con scroll hecho:
   en reposo la primera tarjeta queda intacta */
.process-viewport.is-scrolled {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 44px);
            mask-image: linear-gradient(90deg, transparent 0, #000 44px);
}

/* La banda de cierre pasó al carrusel: sobra aire al pie de la sección */
.process-section { padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }

@media (max-width: 900px) {
    .process-heading { padding: 0; }
    .process-track { padding: 12px 20px 60px 2px; scroll-padding-left: 2px; }
}

/* ============================================================
   SERVICIOS · abrir/cerrar limpio y profundidad del carrusel
   ============================================================ */

/* El panel ya no cambia de maqueta al abrir: la rejilla vive siempre en
   .service-grid y solo se anima la altura. Antes la rejilla y su relleno
   dependían de .is-open y se desarmaban de golpe al cerrar. */
.service-item.is-open .service-inner,
.service-inner {
    display: block;
    padding: 0;
    border-top: 0;
    gap: 0;
}

.service-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(1.5rem, 3vw, 2.75rem);
    padding: clamp(1.4rem, 2.4vw, 2rem) clamp(1.4rem, 2.6vw, 2.4rem) clamp(1.6rem, 2.8vw, 2.4rem);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 0;
    transition: opacity .25s ease;
}

.service-item.is-open .service-grid {
    opacity: 1;
    transition: opacity .4s ease .12s;
}

/* Misma profundidad que las tarjetas del carrusel: base sólida + sombra */
.services-accordion { gap: 1.9rem; }

.service-item {
    border-radius: 26px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
    border: 1px solid rgba(23, 52, 92, 0.06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 9px 0 0 #dbe4ee,
        0 26px 40px -24px rgba(23, 52, 92, 0.42);
}

.service-item.is-open {
    background: linear-gradient(180deg, #102443 0%, #0a1930 100%);
    border-color: rgba(63, 168, 154, 0.3);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 9px 0 0 #050e1c,
        0 26px 40px -22px rgba(10, 25, 48, 0.65);
}

/* El botón muestra su estado: flecha → para abrir, se gira al quedar abierto */
.service-head { cursor: pointer; }

@media (max-width: 860px) {
    .service-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .service-grid { transition: none; }
}

/* ============================================================
   SOLUCIONES · diagrama de flujo con el isologo al centro
   Las líneas se dibujan en un SVG calculado desde la posición
   real de cada tarjeta; los pulsos recorren del logo hacia fuera.
   ============================================================ */

.solutions-section {
    position: relative;
    padding: clamp(4.5rem, 8vw, 7rem) 0 clamp(5rem, 9vw, 8rem);
    background: var(--bg-root);
    overflow: hidden;
}

.solutions-head {
    text-align: center;
    max-width: 860px;
    margin: 0 auto clamp(2.75rem, 5vw, 4.25rem);
}

.solutions-title {
    margin: 1.25rem 0 0;
    font-family: var(--font-primary);
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--color-primary);
}

/* ─── Rejilla: 3 a la izquierda, logo, 3 a la derecha, 1 abajo ─── */
.solutions-diagram {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: repeat(3, auto) auto;
    column-gap: clamp(96px, 10vw, 168px);
    row-gap: 1.9rem;
    align-items: stretch;
    max-width: 1240px;
    margin: 0 auto;
}

.sol-1 { grid-column: 1; grid-row: 1; }
.sol-2 { grid-column: 1; grid-row: 2; }
.sol-3 { grid-column: 1; grid-row: 3; }
.sol-4 { grid-column: 3; grid-row: 1; }
.sol-5 { grid-column: 3; grid-row: 2; }
.sol-6 { grid-column: 3; grid-row: 3; }
.sol-7 {
    grid-column: 1 / -1;
    grid-row: 4;
    justify-self: center;
    width: min(100%, 440px);
    margin-top: clamp(2.5rem, 4.5vw, 3.75rem);
}

.sol-center {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
    position: relative;
    z-index: 2;
}

/* ─── Tarjetas: misma profundidad que las del carrusel ─── */
.sol-card {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: clamp(1.5rem, 2.2vw, 2rem);
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
    border: 1px solid rgba(23, 52, 92, 0.06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 9px 0 0 #dbe4ee,
        0 26px 40px -24px rgba(23, 52, 92, 0.42);
    transition: transform .35s ease;
}

.sol-card:hover { transform: translateY(-4px); }

.sol-icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 0.6rem;
    border-radius: 16px;
    background: #e4f5f2;
    border: 1px solid rgba(63, 168, 154, 0.22);
    box-shadow:
        0 18px 34px -6px rgba(63, 168, 154, 0.6),
        0 0 42px 6px rgba(63, 168, 154, 0.18);
}

.sol-icon img { width: 38px; height: 38px; object-fit: contain; }

.sol-card-title {
    margin: 0;
    font-family: var(--font-primary);
    font-size: clamp(1.1rem, 1.5vw, 1.32rem);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.25;
    color: var(--color-primary);
}

.sol-card-text {
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

/* ─── Logo central ─── */
.sol-logo {
    display: grid;
    place-items: center;
    width: clamp(180px, 16vw, 224px);
    aspect-ratio: 1.3;
    border-radius: 32px;
    background:
        radial-gradient(70% 70% at 28% -10%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 100%),
        linear-gradient(180deg, #ffffff 0%, #eef6f8 100%);
    border: 1px solid rgba(63, 168, 154, 0.3);
    box-shadow:
        inset 0 -3px 0 rgba(23, 52, 92, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 9px 0 0 #d4e6e6,
        0 30px 60px -18px rgba(63, 168, 154, 0.55),
        0 0 90px 18px rgba(63, 168, 154, 0.18);
}

.sol-logo img { width: 72%; height: auto; }

/* ─── Conectores ─── */
.sol-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: visible;
    pointer-events: none;
}

.sol-lines .base {
    fill: none;
    stroke: #cfdae5;
    stroke-width: 1.5;
}

.sol-lines .pulso {
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 2.25;
    stroke-linecap: round;
    filter: drop-shadow(0 0 4px rgba(63, 168, 154, 0.85));
}

.sol-lines .nodo {
    fill: #cfdae5;
}

/* ─── Entrada: tarjetas y logo aparecen al llegar a la sección ─── */
.solutions-diagram .sol-card,
.solutions-diagram .sol-logo {
    opacity: 0;
    transform: translateY(22px);
}

.solutions-diagram .sol-logo { transform: scale(.88); }
.solutions-diagram .sol-lines { opacity: 0; transition: opacity .9s ease .5s; }

.solutions-diagram.is-visible .sol-card,
.solutions-diagram.is-visible .sol-logo {
    opacity: 1;
    transform: none;
    transition: opacity .7s ease, transform .7s cubic-bezier(.22, .61, .36, 1);
}

.solutions-diagram.is-visible .sol-lines { opacity: 1; }

.solutions-diagram.is-visible .sol-1 { transition-delay: .05s; }
.solutions-diagram.is-visible .sol-4 { transition-delay: .10s; }
.solutions-diagram.is-visible .sol-2 { transition-delay: .15s; }
.solutions-diagram.is-visible .sol-5 { transition-delay: .20s; }
.solutions-diagram.is-visible .sol-3 { transition-delay: .25s; }
.solutions-diagram.is-visible .sol-6 { transition-delay: .30s; }
.solutions-diagram.is-visible .sol-7 { transition-delay: .40s; }

.solutions-diagram.is-visible .sol-card:hover { transform: translateY(-4px); transition-delay: 0s; }

/* ─── Pantallas medianas y móvil: sin conectores, en columna ─── */
@media (max-width: 1024px) {
    .solutions-diagram {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: none;
        column-gap: 1.25rem;
        row-gap: 1.75rem;
    }
    .sol-lines { display: none; }
    .sol-center { grid-column: 1 / -1; grid-row: 1; justify-self: center; margin-bottom: 1rem; }
    .sol-1, .sol-2, .sol-3, .sol-4, .sol-5, .sol-6 { grid-column: auto; grid-row: auto; }
    .sol-7 { grid-column: 1 / -1; grid-row: auto; margin-top: 0; width: min(100%, 520px); }
}

@media (max-width: 640px) {
    .solutions-diagram { grid-template-columns: minmax(0, 1fr); }
    .sol-7 { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .solutions-diagram .sol-card,
    .solutions-diagram .sol-logo,
    .solutions-diagram .sol-lines { opacity: 1; transform: none; transition: none; }
}

/* El logo se ancla a la fila del medio, no al bloque de tres: si una fila
   es más alta que otra, el centro del bloque no coincide con el de la fila
   central y la línea del logo entraba en escalón a esa tarjeta. */
@media (min-width: 1025px) {
    .sol-center { grid-row: 2; }
}

/* ============================================================
   MÉTODO · pasarela de imágenes
   Tarjeta con marco, imagen con CTA que sigue al cursor, puntos
   de posición y el texto de cada etapa debajo.
   ============================================================ */

.gallery-section {
    padding: clamp(4.5rem, 8vw, 7rem) 0 clamp(5rem, 9vw, 8rem);
    background: var(--bg-section-alt);
}

.gallery-head {
    text-align: center;
    max-width: 860px;
    margin: 0 auto clamp(2.5rem, 4.5vw, 3.75rem);
}

.gallery-title {
    margin: 1.25rem 0 0;
    font-family: var(--font-primary);
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--color-primary);
}

/* Marco con la misma profundidad del resto del sitio */
.gallery-card {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px;
    border-radius: 40px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
    border: 1px solid rgba(23, 52, 92, 0.06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 9px 0 0 #dbe4ee,
        0 30px 50px -28px rgba(23, 52, 92, 0.45);
}

/* ─── Escenario y pista de imágenes ─── */
.gallery-stage {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    aspect-ratio: 1.93;
    background: #0a1930;
    outline: none;
    isolation: isolate;
    touch-action: pan-y;          /* el gesto horizontal lo gestiona la pasarela */
    user-select: none;
}

.gallery-stage:focus-visible { box-shadow: 0 0 0 3px var(--color-accent); }

.gallery-track {
    display: flex;
    height: 100%;
    transition: transform .85s cubic-bezier(.65, 0, .35, 1);
    will-change: transform;
}

.gallery-slide {
    flex: 0 0 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

.gallery-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    transition: transform 1.4s cubic-bezier(.22, .61, .36, 1);
    -webkit-user-drag: none;
    pointer-events: none;
}

.gallery-slide.is-active img { transform: scale(1); }

/* ─── CTA móvil: misma translucidez y desenfoque que la referencia ─── */
/* Por defecto (táctil) la píldora queda fija abajo como pista */
.gallery-cursor {
    position: absolute;
    left: 1.1rem;
    bottom: 1.1rem;
    z-index: 3;
    pointer-events: none;
}

/* Con ratón detectado pasa a seguir al puntero */
.gallery-stage.has-mouse { cursor: none; }
.gallery-stage.has-mouse .gallery-cursor {
    left: 0;
    top: 0;
    bottom: auto;
    will-change: transform;
}

.gc-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    height: 64px;
    padding: 0 1.9rem;
    border-radius: 99px;
    background: rgba(10, 25, 48, 0.2);
    -webkit-backdrop-filter: blur(44px);
            backdrop-filter: blur(44px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-family: var(--font-primary);
    font-size: 1.08rem;
    font-weight: 500;
    white-space: nowrap;
    transition: opacity .3s ease, transform .35s cubic-bezier(.22, .61, .36, 1);
}

.gallery-stage:not(.has-mouse) .gc-pill { height: 46px; padding: 0 1.15rem; font-size: .95rem; }

.gallery-stage.has-mouse .gc-pill {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.8);
}

.gallery-stage.has-mouse.is-hover .gc-pill {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.gc-icon { font-size: 1.25rem; color: #93d5cb; }
.gc-prev { display: none; }
.gallery-cursor.is-prev .gc-prev { display: inline-block; }
.gallery-cursor.is-prev .gc-next { display: none; }

/* ─── Puntos de posición ─── */
.gallery-info {
    padding: clamp(1.5rem, 2.6vw, 2.2rem) clamp(1.5rem, 3vw, 2.6rem) clamp(1.4rem, 2.4vw, 2rem);
}

.gallery-dots { display: flex; gap: 10px; }

.gallery-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #cfdae5;
    cursor: pointer;
    transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
}

.gallery-dot:hover { background: #9fb3c6; }

.gallery-dot.is-active {
    background: var(--color-accent);
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(63, 168, 154, 0.16);
}

.gallery-dot:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* ─── Texto de cada etapa: todas en el HTML, se muestra la activa ─── */
.gallery-steps {
    display: grid;
    margin-top: clamp(1.2rem, 2vw, 1.6rem);
    padding-top: clamp(1.2rem, 2vw, 1.6rem);
    border-top: 1px solid rgba(23, 52, 92, 0.1);
}

.gallery-step {
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: clamp(1.25rem, 3vw, 3rem);
    align-items: start;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s;
}

.gallery-step.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: .15s, .15s, 0s;
}

.gallery-step-title {
    margin: 0;
    font-family: var(--font-primary);
    font-size: clamp(1.8rem, 3.4vw, 2.7rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--color-primary);
}

.gallery-meta {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 3rem);
}

.gm-item { display: flex; flex-direction: column; gap: 0.4rem; }

.gm-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6f8399;
}

.gm-value {
    font-family: var(--font-body);
    font-size: clamp(0.98rem, 1.2vw, 1.1rem);
    font-weight: 600;
    line-height: 1.55;
    color: var(--color-primary);
}

.gm-etapa .gm-value {
    font-family: var(--font-mono);
    font-weight: 500;
    color: var(--color-accent);
    white-space: nowrap;
}

@media (max-width: 860px) {
    .gallery-card { border-radius: 32px; }
    .gallery-stage { aspect-ratio: 1.3; border-radius: 24px; }
    .gallery-step { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .gallery-meta { grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-track, .gallery-slide img, .gallery-step, .gc-pill { transition: none; }
}

/* ============================================================
   EXPERIENCIA · pasarela de logos sobre pastillas con relieve
   ============================================================ */

.clients-section {
    padding: clamp(4rem, 7vw, 6.5rem) 0 clamp(3rem, 5vw, 4.5rem);
    background: var(--bg-root);
    border-top: 1px solid rgba(23, 52, 92, 0.08);
    overflow: hidden;
}

.clients-head {
    text-align: center;
    max-width: 860px;
    margin: 0 auto clamp(2.5rem, 4.5vw, 3.5rem);
}

.clients-heading {
    margin: 1.25rem 0 0;
    font-family: var(--font-primary);
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--color-primary);
}

.clients-sub {
    margin: 1rem 0 0;
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.25vw, 1.12rem);
    line-height: 1.6;
    color: #4a6180;
}

.clients-track {
    gap: clamp(1rem, 1.8vw, 1.75rem);
    padding: 1.25rem 0 1.75rem;   /* deja respirar la sombra inferior */
}

/* Pastilla con el mismo relieve de las tarjetas del sitio */
.client-chip {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 96px;
    padding: 0 2rem;
    border-radius: 99px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
    border: 1px solid rgba(23, 52, 92, 0.06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 6px 0 0 #dbe4ee,
        0 20px 30px -20px rgba(23, 52, 92, 0.42);
    transition: transform .35s ease, box-shadow .35s ease;
}

.client-chip:hover {
    transform: translateY(-3px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 9px 0 0 #dbe4ee,
        0 26px 38px -22px rgba(23, 52, 92, 0.45);
}

.client-logo {
    height: 46px;
    max-width: 136px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.6;
    transition: filter .35s ease, opacity .35s ease;
}

/* El logo de Indra viene con fondo oscuro: su pastilla usa el navy de marca */
.client-chip--dark {
    background: linear-gradient(180deg, #102443 0%, #0a1930 100%);
    border-color: rgba(63, 168, 154, 0.3);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 6px 0 0 #050e1c,
        0 20px 30px -20px rgba(10, 25, 48, 0.65);
}

.client-chip--dark:hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 9px 0 0 #050e1c,
        0 26px 38px -22px rgba(10, 25, 48, 0.7);
}

.client-chip--dark .client-logo {
    filter: none;
    opacity: 0.92;
}

.client-chip--dark:hover .client-logo { opacity: 1; }

.client-chip:hover .client-logo {
    filter: grayscale(0);
    opacity: 1;
    transform: none;
}

@media (max-width: 860px) {
    .client-chip { min-width: 156px; height: 78px; padding: 0 1.5rem; }
    .client-logo { height: 36px; max-width: 108px; }
}

@media (prefers-reduced-motion: reduce) {
    .clients-track { animation: none; }
}

/* ============================================================
   PREGUNTAS FRECUENTES · acordeón, una abierta a la vez
   ============================================================ */

.faq-section {
    padding: clamp(4.5rem, 8vw, 7rem) 0 clamp(5rem, 9vw, 8rem);
    background: var(--bg-section-alt);
}

.faq-head {
    text-align: center;
    max-width: 860px;
    margin: 0 auto clamp(2.5rem, 4.5vw, 3.5rem);
}

.faq-title {
    margin: 1.25rem 0 0;
    font-family: var(--font-primary);
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--color-primary);
}

.faq-list {
    display: grid;
    gap: 1rem;
    max-width: 880px;
    margin: 0 auto;
}

.faq-item {
    padding: 0.35rem clamp(1.35rem, 2.6vw, 2.5rem) 0.5rem;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
    border: 1px solid rgba(23, 52, 92, 0.06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 6px 0 0 #dbe4ee,
        0 20px 32px -22px rgba(23, 52, 92, 0.42);
    transition: box-shadow .35s ease;
}

.faq-item.is-open {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 9px 0 0 #dbe4ee,
        0 26px 40px -24px rgba(23, 52, 92, 0.45);
}

.faq-question { margin: 0; }

.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 0;
    background: none;
    border: 0;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: clamp(1.02rem, 1.35vw, 1.18rem);
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-primary);
    transition: color .3s ease;
}

.faq-trigger:hover { color: var(--color-accent); }
.faq-trigger:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; border-radius: 10px; }

/* Botón circular con el "+" que se vuelve "−" */
.faq-icon {
    position: relative;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(180deg, #102443 0%, #0a1930 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -3px 0 0 #050e1c,
        0 3px 6px -2px rgba(10, 25, 48, 0.5);
    transition: transform .35s ease;
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: #ffffff;
    transition: opacity .3s ease, transform .3s ease;
}

.faq-icon::before { width: 12px; height: 1.5px; transform: translate(-50%, -50%); }
.faq-icon::after  { width: 1.5px; height: 12px; transform: translate(-50%, -50%); }

.faq-item.is-open .faq-icon { background: linear-gradient(180deg, #3fa89a 0%, #1c706a 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -3px 0 0 #155551, 0 3px 6px -2px rgba(28,112,106,.5); }
.faq-item.is-open .faq-icon::after { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }

/* Panel: se anima la altura desde el JS */
.faq-panel {
    overflow: hidden;
    height: 0;
    transition: height .4s cubic-bezier(.4, 0, .2, 1);
}

.faq-panel[hidden] { display: block; height: 0; }

.faq-answer {
    position: relative;
    padding: 1.75rem 0 1.5rem;
    font-family: var(--font-body);
    font-size: clamp(0.98rem, 1.2vw, 1.05rem);
    line-height: 1.65;
    color: #4a6180;
}

.faq-answer::before {
    content: "";
    position: absolute;
    top: 0.5rem;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(23, 52, 92, 0) 0%, rgba(23, 52, 92, 0.18) 50%, rgba(23, 52, 92, 0) 100%);
}

@media (prefers-reduced-motion: reduce) {
    .faq-panel { transition: none; }
}

/* ============================================================
   CONTACTO · campos hundidos con ficha de etiqueta y relieve
   ============================================================ */

.contact-section {
    padding: clamp(4.5rem, 8vw, 7rem) 0 clamp(5rem, 9vw, 8rem);
    background: var(--bg-root);
    border-top: 1px solid rgba(23, 52, 92, 0.08);
}

.contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
}

.contact-tagline {
    margin: 1.25rem 0 1.25rem;
    font-family: var(--font-primary);
    font-size: clamp(1.9rem, 3.4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--color-primary);
}

.contact-tagline em {
    font-style: normal;
    color: var(--color-accent);
}

.contact-description {
    max-width: 44ch;
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.25vw, 1.08rem);
    line-height: 1.7;
    color: #4a6180;
    margin-bottom: clamp(1.75rem, 3vw, 2.25rem);
}

/* ─── Datos de contacto como fichas con relieve ─── */
.contact-methods { gap: 0.85rem; }

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1.25rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
    border: 1px solid rgba(23, 52, 92, 0.06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 5px 0 0 #dbe4ee,
        0 16px 26px -20px rgba(23, 52, 92, 0.42);
    transition: transform .3s ease, box-shadow .3s ease;
}

a.contact-method:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 7px 0 0 #dbe4ee,
        0 22px 32px -22px rgba(23, 52, 92, 0.45);
}

.cm-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #e4f5f2;
    border: 1px solid rgba(63, 168, 154, 0.22);
}

.cm-icon .material-symbols-outlined { font-size: 20px; color: var(--color-accent); }

.cm-body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }

.cm-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6f8399;
}

.cm-value {
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--color-primary);
    overflow-wrap: anywhere;
}

/* ─── Certificados ─── */
.certifications-block {
    margin-top: clamp(1.75rem, 3vw, 2.25rem);
    padding-top: clamp(1.5rem, 2.5vw, 2rem);
    border-top: 1px solid rgba(23, 52, 92, 0.1);
}

.cert-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #6f8399;
    margin-bottom: 1rem;
}

.cert-badges {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
    align-items: stretch;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
    border: 1px solid rgba(23, 52, 92, 0.06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 5px 0 0 #dbe4ee,
        0 16px 26px -20px rgba(23, 52, 92, 0.42);
}

.cert-item .badge-coin { flex-shrink: 0; }
.cert-item .badge-coin img { width: 64px; height: 64px; }

.cert-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }

.cert-name {
    font-family: var(--font-primary);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-primary);
}

.cert-issuer {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: #6f8399;
}

/* ─── Formulario ─── */
.contact-form-wrapper {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 36px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
    border: 1px solid rgba(23, 52, 92, 0.06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 9px 0 0 #dbe4ee,
        0 30px 50px -28px rgba(23, 52, 92, 0.45);
}

.contact-form { gap: 1.35rem; }

.form-row { gap: 1.35rem; }

.form-group {
    position: relative;
    display: block;
    padding-top: 16px;              /* deja sitio a la ficha de etiqueta */
}

/* Ficha de la etiqueta, montada sobre el borde del campo */
.form-group .field-chip {
    position: absolute;
    top: 0;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 32px;
    padding: 0 0.85rem;
    border-radius: 99px;
    background: linear-gradient(180deg, #ffffff 0%, #f3f7fb 100%);
    border: 1px solid rgba(23, 52, 92, 0.07);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 3px 0 0 #dde6ef,
        0 10px 16px -10px rgba(23, 52, 92, 0.4);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    color: var(--color-primary);
    cursor: pointer;
}

.form-group .field-chip .material-symbols-outlined { font-size: 17px; color: var(--color-accent); }

/* Campos hundidos */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-primary);
    background: linear-gradient(180deg, #e9eff6 0%, #f6f9fc 100%);
    border: 1px solid rgba(23, 52, 92, 0.07);
    border-radius: 99px;
    padding: 1.6rem 1.4rem 1.05rem;
    box-shadow:
        inset 0 3px 5px -2px rgba(23, 52, 92, 0.16),
        inset 0 -1px 0 rgba(255, 255, 255, 0.85);
    transition: border-color .25s ease, box-shadow .25s ease;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #8fa3b9; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(63, 168, 154, 0.55);
    box-shadow:
        inset 0 3px 5px -2px rgba(23, 52, 92, 0.16),
        inset 0 -1px 0 rgba(255, 255, 255, 0.85),
        0 0 0 4px rgba(63, 168, 154, 0.16);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2317345c' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.4rem center;
    padding-right: 3rem;
}

.form-group textarea {
    border-radius: 28px;
    min-height: 150px;
    resize: vertical;
}

/* Botón con el mismo relieve: se hunde al pulsarlo */
.contact-form .btn-primary {
    width: 100%;
    margin-top: 0.35rem;
    padding: 1.15rem 1.75rem;
    border-radius: 99px;
    font-family: var(--font-primary);
    font-size: 1.02rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(180deg, #214878 0%, #17345c 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 6px 0 0 #0d2242,
        0 20px 30px -18px rgba(23, 52, 92, 0.6);
    transition: transform .18s ease, box-shadow .18s ease, background .3s ease;
}

.contact-form .btn-primary:hover {
    background: linear-gradient(180deg, #2a5589 0%, #1b3d6c 100%);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 8px 0 0 #0d2242,
        0 26px 36px -20px rgba(23, 52, 92, 0.62);
}

.contact-form .btn-primary:active {
    transform: translateY(4px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 2px 0 0 #0d2242,
        0 10px 18px -14px rgba(23, 52, 92, 0.6);
}

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: minmax(0, 1fr); }
    .form-row { grid-template-columns: minmax(0, 1fr); }
    .contact-form-wrapper { border-radius: 28px; }
}

/* ============================================================
   FOOTER · cierre claro, logo oficial y pastillas de redes
   ============================================================ */

.main-footer {
    position: relative;
    padding: clamp(3rem, 6vw, 4.5rem) 0 0;
    background: linear-gradient(180deg, #e8f0f7 0%, #dde8f3 100%);
    border-top: 1px solid rgba(23, 52, 92, 0.08);
    color: var(--color-primary);
}

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

.footer-content {
    text-align: center;
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

.footer-logo {
    display: inline-flex;
    margin-bottom: 1.75rem;
}

.footer-logo img {
    width: clamp(190px, 24vw, 260px);
    height: auto;
    display: block;
}

.footer-title {
    margin: 0 0 0.6rem;
    font-family: var(--font-primary);
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-primary);
}

.footer-text {
    margin: 0 0 clamp(2rem, 3.5vw, 3rem);
    font-family: var(--font-body);
    font-size: 1rem;
    color: #4a6180;
}

/* Pastillas de redes, con el relieve del sitio */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.9rem 1.1rem 0.9rem 1.9rem;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
    border: 1px solid rgba(23, 52, 92, 0.06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 6px 0 0 #cfdbe8,
        0 20px 30px -20px rgba(23, 52, 92, 0.42);
    font-family: var(--font-primary);
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: transform .3s ease, box-shadow .3s ease, color .3s ease;
}

.footer-social-link:hover {
    color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 9px 0 0 #cfdbe8,
        0 26px 38px -22px rgba(23, 52, 92, 0.45);
}

.footer-social-link:active { transform: translateY(2px); }

.fs-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(180deg, #214878 0%, #0a1930 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -3px 0 0 #050e1c,
        0 4px 8px -3px rgba(10, 25, 48, 0.55);
    color: #ffffff;
}

.fs-icon svg { width: 20px; height: 20px; display: block; }

.footer-social-link:hover .fs-icon {
    background: linear-gradient(180deg, #3fa89a 0%, #1c706a 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -3px 0 0 #155551,
        0 4px 8px -3px rgba(28, 112, 106, 0.55);
}

/* Línea inferior: enlaces, copyright y volver arriba */
.footer-bottom {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(1.5rem, 2.5vw, 2.25rem) 0;
}

.footer-bottom > * { width: 100%; margin: 0; }

.footer-bottom::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(23, 52, 92, 0) 0%, rgba(23, 52, 92, 0.18) 50%, rgba(23, 52, 92, 0) 100%);
}

.footer-links {
    display: flex;
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: center;
    list-style: none;
    padding: 0;
}

.footer-links a {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: color .3s ease;
}

.footer-links a:hover { color: var(--color-accent); }

.footer-copy {
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: #6f8399;
}

.footer-top-link {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: color .3s ease;
}

.footer-top-link:hover { color: var(--color-accent); }
.footer-top-link .material-symbols-outlined { font-size: 20px; }

@media (max-width: 860px) {
    .footer-social-link { flex: 1 1 calc(50% - 0.5rem); justify-content: space-between; padding: 0.75rem 0.75rem 0.75rem 1.25rem; font-size: 0.95rem; gap: 0.6rem; }
    .fs-icon { width: 40px; height: 40px; }
    .footer-bottom { flex-wrap: wrap; }
    .footer-bottom > * { justify-content: center; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* Columna derecha: formulario y, debajo, los certificados */
.contact-right {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2.25rem);
}

.contact-right .certifications-block {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.contact-right .cert-badges {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* El CTA del encabezado toma el relieve del resto de botones */
.nav-link.cta-nav {
    background: linear-gradient(180deg, #214878 0%, #17345c 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 4px 0 0 #0d2242,
        0 14px 22px -12px rgba(23, 52, 92, 0.6);
    transition: transform .18s ease, box-shadow .18s ease, background .3s ease;
}

.nav-link.cta-nav:hover {
    background: linear-gradient(180deg, #2a5589 0%, #1b3d6c 100%);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 6px 0 0 #0d2242,
        0 20px 28px -14px rgba(23, 52, 92, 0.62);
}

.nav-link.cta-nav:active {
    transform: translateY(3px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 1px 0 0 #0d2242,
        0 8px 14px -10px rgba(23, 52, 92, 0.6);
}
