/*
Theme Name: DUCKBERT
Theme URI: https://duck-bert.com
Author: DUCKBERT
Author URI: https://duck-bert.com
Description: Tema industrial-técnico para DUCKBERT (marcas MAYMA y DOVAINA). Landing animada, multi-idioma (ES/EN), compatible con Elementor y Gutenberg, con integración de Google Tag Manager. Paleta: azul #12509F, gris #232629, rojo MAYMA #C62828, naranja DOVAINA #E84A2F.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: duckbert
Tags: business, industrial, custom-colors, custom-menu, full-width-template, translation-ready, elementor
*/

/* ═══════════════════════════════════════════════════════════════════
   DUCKBERT — landing estática (HTML plano, sin frameworks)
   Paleta: azul #12509F · gris oscuro #232629 · gris claro #CeCeCe
           rojo MAYMA #C62828 · naranja DOVAINA #E84A2F
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --db-blue: #12509F;
  --db-blue-light: #1a6ac7;
  --db-dark: #232629;
  --db-dark-2: #1a1d20;
  --db-gray: #CeCeCe;
  --mayma: #C62828;
  --dovaina: #E84A2F;
  --font-display: 'Saira', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --wrap: 1280px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--db-dark);
  color: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

.font-display { font-family: var(--font-display); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; width: 100%; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #1a1d20; }
::-webkit-scrollbar-thumb { background: var(--db-blue); border-radius: 3px; }
::selection { background: rgba(18,80,159,0.55); color: #fff; }

/* Fine technical grid backdrop */
.tech-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 46px 46px;
}

/* ── Chevron motif ─────────────────────────────────────────────────── */
.chevrons { display: inline-flex; align-items: center; }
.chevrons svg { display: block; }
@keyframes chevronDrift {
  0%   { transform: translateX(0);    opacity: 0.55; }
  50%  { transform: translateX(14px); opacity: 1; }
  100% { transform: translateX(0);    opacity: 0.55; }
}
.chevrons > * { animation: chevronDrift 3.2s ease-in-out infinite; }
.chevrons > *:nth-child(2) { animation-delay: 0.25s; }
.chevrons > *:nth-child(3) { animation-delay: 0.5s; }

/* ── Scroll progress bar ───────────────────────────────────────────── */
#progress {
  position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 60;
  background: transparent; pointer-events: none;
}
#progress > div {
  height: 100%; width: 0%;
  background: linear-gradient(90deg,#12509F,#6fa3e0);
  transition: width 0.15s ease-out;
}

/* ── Nav ───────────────────────────────────────────────────────────── */
nav.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: all 0.3s ease;
}
nav.top.scrolled {
  background: rgba(35,38,41,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
nav.top .bar {
  display: flex; align-items: center; justify-content: space-between; height: 80px;
}
nav.top .links { display: flex; align-items: center; gap: 32px; }
nav.top .links a.nav-link {
  color: var(--db-gray); font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  transition: color 0.2s;
}
nav.top .links a.nav-link:hover { color: #fff; }
.btn-cta {
  background: var(--db-blue); color: #fff; font-size: 14px; font-weight: 600;
  padding: 10px 20px; border-radius: 8px; transition: background 0.2s;
}
.btn-cta:hover { background: var(--db-blue-light); }
.logo-nav { height: 32px; object-fit: contain; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: #fff; margin-bottom: 6px; transition: all 0.2s; }
.menu-btn span:last-child { margin-bottom: 0; }
.mobile-menu { display: none; background: var(--db-dark); border-top: 1px solid #3a3d42; padding: 16px 24px; flex-direction: column; gap: 16px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--db-gray); font-size: 16px; font-weight: 500; }
.mobile-menu .btn-cta { text-align: center; padding: 12px 20px; }
.mobile-only { display: none; align-items: center; gap: 12px; }

/* Language toggle */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25); padding: 8px 12px;
  font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.15em;
  color: #fff; background: none; cursor: pointer; transition: all 0.2s;
}
.lang-toggle:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.1); }
.lang-toggle .dim { color: rgba(255,255,255,0.4); }
.lang-toggle .sep { color: rgba(255,255,255,0.3); }

/* ── Buttons / shared ──────────────────────────────────────────────── */
.arrow-link { transition: transform 0.3s; }
.group:hover .arrow-link { transform: translateX(4px); }

/* ── Hero ──────────────────────────────────────────────────────────── */
#hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden; background: var(--db-blue);
}
#hero .bg { position: absolute; inset: 0; }
#hero .bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.05); filter: saturate(1.05); }
#hero .bg .grad { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(18,80,159,0.82) 0%, rgba(18,80,159,0.4) 42%, rgba(26,29,32,0.86) 100%); }
#hero .bg .grid { position: absolute; inset: 0; opacity: 0.4; }
#hero .big-chev { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); opacity: 0.13; pointer-events: none; }
#hero .inner {
  position: relative; z-index: 10; width: 100%;
  padding: 128px 24px 160px; display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 56px; align-items: center; max-width: var(--wrap); margin: 0 auto;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px; padding: 8px 16px; margin-bottom: 32px; backdrop-filter: blur(4px);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.badge span { color: rgba(255,255,255,0.9); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.eyebrow .rule { height: 4px; width: 56px; background: rgba(255,255,255,0.8); }
h1.hero-title {
  font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 800; color: #fff; line-height: 0.98; margin: 0 0 24px;
}
.hero-hl { position: relative; display: inline-block; }
.hero-hl > span.txt { position: relative; z-index: 1; }
.hero-hl > span.mark { position: absolute; left: 0; bottom: 4px; height: 12px; width: 100%; background: rgba(255,255,255,0.22); z-index: 0; }
.hero-intro { color: rgba(255,255,255,0.8); font-size: 18px; line-height: 1.7; margin: 0 0 36px; max-width: 36rem; }
.hero-intro strong { color: #fff; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }
.btn-white {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--db-blue);
  font-weight: 700; padding: 16px 32px; border-radius: 12px; transition: all 0.2s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.btn-ghost {
  border: 1px solid rgba(255,255,255,0.4); color: #fff; font-weight: 600;
  padding: 16px 32px; border-radius: 12px; transition: all 0.2s; backdrop-filter: blur(4px);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 24px 40px; }
.stat .num { font-family: var(--font-display); font-size: clamp(2rem,4vw,3rem); font-weight: 900; color: #fff; line-height: 1; }
.stat .num .suf { color: rgba(255,255,255,0.7); }
.stat .lbl { color: rgba(255,255,255,0.6); font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; margin-top: 6px; }
.hero-side { display: flex; flex-direction: column; gap: 24px; }
.hero-side .logo-wrap { display: flex; justify-content: flex-end; }
.hero-side .logo-wrap img { width: 26rem; max-width: 100%; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4)); }

/* Brand card */
.brand-card {
  position: relative; display: flex; flex-direction: column; border-radius: 16px;
  padding: 20px; overflow: hidden; transition: all 0.3s;
  background: rgba(20,23,26,0.55); border: 1px solid rgba(255,255,255,0.14); backdrop-filter: blur(10px);
}
.brand-card:hover { transform: translateY(-4px); }
.brand-card .stripe { position: absolute; top: 0; left: 0; height: 100%; width: 4px; opacity: 0.5; transition: opacity 0.3s; }
.brand-card:hover .stripe { opacity: 1; }
.brand-card .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding-left: 8px; }
.brand-card .tag { font-family: var(--font-display); font-size: 12px; text-transform: uppercase; letter-spacing: 0.25em; margin-bottom: 4px; }
.brand-card .body { padding-left: 8px; }
.brand-card .body p { color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.6; margin: 0; }
.brand-card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: #fff; font-weight: 600; font-size: 14px; }

.partners {
  position: absolute; bottom: 0; left: 0; right: 0; border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.3); backdrop-filter: blur(4px);
}
.partners .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 48px; padding: 24px; max-width: var(--wrap); margin: 0 auto; }
.partners .row span { color: rgba(255,255,255,0.4); font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; }
.partners img { height: 32px; object-fit: contain; opacity: 0.8; transition: opacity 0.2s; }
.partners img:hover { opacity: 1; }
.partners img.invert { filter: brightness(0) invert(1); height: 32px; }

/* ── Sections shared ───────────────────────────────────────────────── */
section.brand-section { position: relative; overflow: hidden; }
.section-inner { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 96px 24px; }
.top-rule { position: absolute; top: 0; left: 0; right: 0; height: 12px; background: var(--db-blue); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 96px; }
.logo-row { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.logo-row img { height: 36px; object-fit: contain; }
.logo-row span { color: #6b6f74; font-family: var(--font-display); font-size: 12px; text-transform: uppercase; letter-spacing: 0.3em; }
h2.sec-title { font-family: var(--font-display); font-size: clamp(2.2rem,5vw,3.75rem); font-weight: 800; color: #fff; line-height: 0.98; margin: 0 0 24px; }
.sec-intro { color: #b7babd; font-size: 18px; line-height: 1.7; max-width: 36rem; margin: 0 0 36px; }
.sec-intro strong { color: #fff; }
.eyebrow2 { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.eyebrow2 .rule { height: 4px; width: 48px; }

/* Benefit item */
.benefits { display: flex; flex-direction: column; gap: 20px; margin-bottom: 36px; }
.benefit { display: flex; align-items: flex-start; gap: 16px; }
.benefit .ic { margin-top: 2px; flex-shrink: 0; width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.benefit .t { color: #fff; font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.benefit .d { color: #9a9da1; font-size: 14px; line-height: 1.6; }

.stat-row { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; }
.stat-big .num { font-family: var(--font-display); font-size: 3rem; font-weight: 900; color: #fff; line-height: 1; }
.stat-big .lbl { color: #6b6f74; font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; margin-top: 4px; }
.divider-v { height: 48px; width: 1px; background: rgba(255,255,255,0.1); }
.btn-accent {
  display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600;
  padding: 14px 24px; border-radius: 12px; transition: transform 0.2s;
}
.btn-accent:hover { transform: translateY(-2px); }

/* Image frame */
.img-frame { position: relative; }
.img-frame .corner { position: absolute; width: 112px; height: 112px; }
.img-frame .pic { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,0.55); }
.img-frame .pic img { width: 100%; height: 520px; object-fit: cover; }
.img-frame .pic .grad { position: absolute; inset: 0; }
.img-frame .cap { position: absolute; bottom: 24px; left: 24px; right: 40px; }
.img-frame .cap .k { color: rgba(255,255,255,0.6); font-family: var(--font-display); font-size: 12px; text-transform: uppercase; letter-spacing: 0.3em; margin-bottom: 4px; }
.img-frame .cap .v { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.clip-notch { clip-path: polygon(0 0, 100% 0, 100% 78%, 88% 100%, 0 100%); }

/* Steps (dovaina) */
.steps { display: flex; flex-wrap: wrap; align-items: center; row-gap: 12px; margin-bottom: 36px; }
.step {
  font-family: var(--font-display); font-size: 14px; font-weight: 600; color: #fff;
  padding: 6px 12px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04);
}
.kicker { color: #8a8d91; font-family: var(--font-display); font-size: 14px; text-transform: uppercase; letter-spacing: 0.3em; margin: 0 0 24px; }

/* Ribbon marquee */
.ribbon { position: relative; overflow: hidden; padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); }
.marquee { display: inline-flex; white-space: nowrap; animation: marquee 26s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee .item { display: inline-flex; align-items: center; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; font-size: 14px; color: var(--db-gray); }
.marquee .item .txt { padding: 0 32px; }
.marquee .item .dot { width: 6px; height: 6px; border-radius: 50%; }

.grid-head { display: flex; align-items: flex-end; justify-content: space-between; margin: 64px 0 32px; }
.grid-head h3 { font-family: var(--font-display); color: #fff; font-weight: 700; font-size: clamp(1.5rem,3vw,1.875rem); margin: 0; }
.grid-head span { color: #6b6f74; font-size: 14px; }
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Machine card */
.machine {
  position: relative; border-radius: 16px; overflow: hidden; cursor: pointer;
  background: linear-gradient(160deg, #26292d 0%, #1a1d20 100%);
  border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 8px 30px rgba(0,0,0,0.35);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.machine .idx { position: absolute; top: 16px; right: 16px; z-index: 10; font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.15em; }
.machine .plate {
  position: relative; height: 192px; margin: 12px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; padding: 24px; overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #ffffff 0%, #eceef1 100%);
}
.machine .plate img { height: 100%; width: 100%; object-fit: contain; transition: transform 0.5s; }
.machine:hover .plate img { transform: scale(1.08); }
.machine .plate::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
  transform: translateX(-120%) skewX(-18deg);
}
.machine:hover .plate::after { animation: sheen 0.85s ease; }
@keyframes sheen { 0% { transform: translateX(-120%) skewX(-18deg); } 100% { transform: translateX(220%) skewX(-18deg); } }
.machine .info { padding: 4px 24px 24px; }
.machine .info .tick { height: 2px; width: 40px; margin-bottom: 16px; transition: width 0.3s; }
.machine:hover .info .tick { width: 72px; }
.machine .info h4 { font-family: var(--font-display); color: #fff; font-weight: 700; font-size: 18px; margin: 0 0 8px; line-height: 1.2; }
.machine .info p { color: #9a9da1; font-size: 14px; line-height: 1.6; margin: 0; }

/* ── Diagonal divider ──────────────────────────────────────────────── */
.diag { position: relative; overflow: hidden; height: 96px; }
.diag .fill { position: absolute; inset: 0; clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%); transition: clip-path 1s cubic-bezier(0.7,0,0.25,1); }
.diag.in .fill { clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%); }
.diag .edge { position: absolute; left: -4%; right: -4%; top: 50%; height: 3px; transform: rotate(-6.15deg) scaleX(0); transform-origin: left center; transition: transform 1s cubic-bezier(0.7,0,0.25,1) 0.1s; }
.diag.in .edge { transform: rotate(-6.15deg) scaleX(1); }
.diag .glint { position: absolute; top: 50%; left: 0; width: 22%; height: 46px; margin-top: -23px; background: radial-gradient(ellipse at center, rgba(255,255,255,0.25), transparent 70%); transform: rotate(-6.15deg); opacity: 0; pointer-events: none; }
.diag.in .glint { animation: diagGlint 1.4s ease 0.9s 1 forwards; }
@keyframes diagGlint { 0% { left: -25%; opacity: 0; } 30% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@media (min-width: 768px) { .diag { height: 128px; } }

/* ── Contact ───────────────────────────────────────────────────────── */
#contacto { background: var(--db-dark); padding: 128px 0; }
#contacto .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.accent-line::before { content: ''; display: block; width: 48px; height: 4px; background: var(--db-blue); margin-bottom: 16px; }
h2.contact-title { font-family: var(--font-display); font-size: clamp(2.2rem,4.5vw,3rem); font-weight: 800; color: #fff; line-height: 1.1; margin: 0 0 24px; }
.contact-intro { color: #8a8d91; font-size: 18px; line-height: 1.7; margin: 0 0 48px; }
.contact-items { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-item .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(18,80,159,0.15); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.contact-item .k { color: #8a8d91; font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 4px; }
.contact-item .v { color: #fff; font-weight: 500; }
.form-card { border-radius: 16px; padding: 40px; background: linear-gradient(135deg, #2d3035 0%, #1a1d20 100%); border: 1px solid rgba(18,80,159,0.2); }
form.db-form { display: flex; flex-direction: column; gap: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; color: #8a8d91; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; background: var(--db-dark); border: 1px solid #3a3d42; color: #fff;
  border-radius: 8px; padding: 12px 16px; font-size: 14px; font-family: var(--font-body);
  transition: all 0.2s; resize: none;
}
.field input::placeholder, .field textarea::placeholder { color: #4a4d52; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--db-blue); box-shadow: 0 0 0 3px rgba(18,80,159,0.25); }
.btn-submit {
  width: 100%; background: var(--db-blue); color: #fff; font-weight: 700; padding: 16px;
  border: 0; border-radius: 12px; cursor: pointer; font-size: 14px; text-transform: uppercase;
  letter-spacing: 0.1em; transition: all 0.2s; font-family: var(--font-body);
}
.btn-submit:hover { background: var(--db-blue-light); box-shadow: 0 10px 30px rgba(18,80,159,0.3); }
.disclaimer { color: #4a4d52; font-size: 12px; text-align: center; line-height: 1.6; margin: 0; }
.form-sent { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px 0; height: 100%; }
.form-sent .emoji { font-size: 48px; margin-bottom: 16px; }
.form-sent h3 { color: #fff; font-size: 24px; font-weight: 700; margin: 0 0 12px; }
.form-sent p { color: #8a8d91; margin: 0; }

/* ── Footer ────────────────────────────────────────────────────────── */
footer { background: #fff; border-top: 1px solid #e5e7eb; padding: 48px 0; }
footer .row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
footer .brand { display: flex; align-items: center; gap: 24px; }
footer .brand img { height: 32px; object-fit: contain; }
footer .brand .divider-v { height: 24px; background: #e5e7eb; }
footer .brand span { color: #9ca3af; font-size: 14px; }
footer .partners-f { display: flex; align-items: center; gap: 32px; }
footer .partners-f img { height: 28px; object-fit: contain; opacity: 0.6; transition: opacity 0.2s; }
footer .partners-f img:hover { opacity: 1; }
footer .legal { display: flex; flex-wrap: wrap; gap: 24px; font-size: 12px; color: #9ca3af; }
footer .legal a { transition: color 0.2s; }
footer .legal a:hover { color: var(--db-blue); }
footer .legal .copy { color: #d1d5db; }

/* ── Intro splash ──────────────────────────────────────────────────── */
#intro {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column;
  align-items: center; justify-content: center; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #232629 0%, #14171a 70%, #0e1013 100%);
}
#intro.exit { animation: introExit 0.8s cubic-bezier(0.7,0,0.3,1) forwards; }
@keyframes introExit { to { opacity: 0; transform: scale(1.08); visibility: hidden; } }
#intro .corner-chev { position: absolute; opacity: 0.3; }
#intro .corner-chev.tl { top: 40px; left: 40px; }
#intro .corner-chev.br { bottom: 40px; right: 40px; transform: rotate(180deg); }
#intro .stage { position: relative; width: 90%; max-width: 56rem; padding: 0 24px; }
#intro .logo-box { position: relative; overflow: hidden; }
.intro-logo {
  width: 100%; object-fit: contain; opacity: 0; transform: translateY(24px) scale(0.96);
  clip-path: inset(0 100% 0 0); animation: introLogo 1.15s cubic-bezier(0.22,1,0.36,1) 0.25s forwards;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.5));
}
@keyframes introLogo { to { opacity: 1; transform: translateY(0) scale(1); clip-path: inset(0 0 0 0); } }
.intro-scan { position: absolute; top: 0; bottom: 0; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,0.14), transparent); transform: skewX(-14deg); animation: introScan 2.6s ease 0.5s infinite; }
@keyframes introScan { from { left: -50%; } to { left: 130%; } }
.intro-rule { height: 3px; background: var(--db-blue); width: 0; margin-top: 32px; animation: introRule 1.6s cubic-bezier(0.5,0,0.2,1) 0.4s forwards; }
@keyframes introRule { to { width: 100%; } }
.intro-foot { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; }
.intro-tagline { color: rgba(255,255,255,0.7); font-family: var(--font-display); font-size: clamp(11px,1.4vw,14px); text-transform: uppercase; letter-spacing: 0.35em; opacity: 0; animation: introFadeUp 0.7s ease 1.05s forwards; }
.intro-chev { opacity: 0; animation: introFadeUp 0.7s ease 1.25s forwards; }
.intro-cta { margin-top: 56px; display: flex; flex-direction: column; align-items: center; gap: 24px; opacity: 0; animation: introFadeUp 0.8s ease 1.5s forwards; }
.intro-cta .choose { color: rgba(255,255,255,0.45); font-size: 11px; text-transform: uppercase; letter-spacing: 0.3em; }
.intro-cta .btns { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }
.intro-btn-primary {
  display: inline-flex; align-items: center; gap: 12px; background: var(--db-blue); color: #fff;
  font-weight: 600; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.15em;
  font-size: 14px; padding: 16px 36px; border-radius: 12px; border: 0; cursor: pointer;
  transition: all 0.2s; box-shadow: 0 16px 40px -12px rgba(18,80,159,0.8);
}
.intro-btn-primary:hover { background: var(--db-blue-light); transform: translateY(-2px); }
.intro-btn-ghost {
  display: inline-flex; align-items: center; gap: 12px; border: 1px solid rgba(255,255,255,0.4);
  color: #fff; font-weight: 600; font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.15em; font-size: 14px; padding: 16px 36px; border-radius: 12px; background: none;
  cursor: pointer; transition: all 0.2s;
}
.intro-btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.1); transform: translateY(-2px); }
@keyframes introFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ── Scroll reveal ─────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-x { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1); }
.reveal-x.in { opacity: 1; transform: none; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  #hero .inner { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse .col-img { order: 2; }
  #contacto .grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-side .logo-wrap { justify-content: center; }
}
@media (max-width: 768px) {
  nav.top .links { display: none; }
  .menu-btn { display: block; }
  .mobile-only { display: flex; }
  #hero .big-chev, .partners { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .img-frame .pic img { height: 380px; }
  footer .row { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-x { opacity: 1 !important; transform: none !important; }
  .chevrons > *, .marquee { animation: none !important; }
  .diag .fill { clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%); transition: none; }
  .diag .edge { transform: rotate(-6.15deg) scaleX(1); transition: none; }
  .diag .glint { display: none; }
  .intro-logo, .intro-tagline, .intro-chev, .intro-cta { opacity: 1; transform: none; clip-path: none; animation: none; }
  .intro-scan, .intro-rule { animation: none; }
  .intro-rule { width: 100%; }
}
