@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --night: #031249;
  --blue: #00336C;
  --magenta: #C70156;
  --pink: #EF88A6;
  --cream: #FDEAE6;
  --paper: #fffaf8;
  --ink: var(--night);
  --muted: #4d5872;
  --line: rgba(3,18,73,.14);
  --header-h: 82px;
  --max: 1240px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Poppins', sans-serif;
  --shadow: 0 20px 60px rgba(3,18,73,.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body { min-height: 100dvh; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, summary, [role="button"] { cursor: pointer; }
button { color: inherit; }
ul { list-style: none; }
::selection { background: var(--pink); color: var(--night); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 200; padding: 12px 18px; background: var(--cream); color: var(--night); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.section { padding: 112px 0; }
.section--cream { background: var(--cream); }
.section--night { background: var(--night); color: var(--paper); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; color: var(--blue); font-size: .76rem; font-weight: 700; letter-spacing: .16em; line-height: 1.4; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 32px; height: 2px; flex: 0 0 auto; background: var(--magenta); }
.section--night .eyebrow, .hero .eyebrow { color: var(--pink); }
.display { max-width: 820px; font-family: var(--serif); font-size: clamp(2.35rem, 5vw, 4.75rem); font-weight: 400; letter-spacing: -.035em; line-height: 1.06; text-wrap: balance; }
.section-title { max-width: 800px; font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3.4rem); font-weight: 400; letter-spacing: -.025em; line-height: 1.12; text-wrap: balance; }
.section-intro { max-width: 68ch; margin-top: 24px; color: var(--muted); }
.section--night .section-intro { color: #e6e8f2; }
.btn { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 12px; padding: 13px 24px; border: 1px solid transparent; border-radius: 3px; font-size: .88rem; font-weight: 600; line-height: 1.3; transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--magenta); color: #fff8fb; }
.btn--primary:hover { background: #a90047; }
.btn--outline { border-color: rgba(255,255,255,.55); background: transparent; color: #fff8fb; }
.btn--outline:hover { border-color: var(--cream); background: var(--cream); color: var(--night); }
.btn--blue { background: var(--blue); color: #fff8fb; }
.btn--blue:hover { background: var(--night); }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; color: var(--magenta); font-size: .85rem; font-weight: 700; }
.text-link::after { content: '↗'; font-size: 1.05rem; transition: transform .2s ease; }
.text-link:hover::after { transform: translate(3px,-3px); }
.icon { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }

/* Encabezado Lonardi Estudio */
.site-header { position: sticky; top: 0; z-index: 80; height: var(--header-h); border-bottom: 1px solid rgba(3,18,73,.08); background: rgba(255,250,248,.97); backdrop-filter: blur(14px); }
.header-inner { display: flex; height: 100%; align-items: center; gap: 28px; }
.header-brands { display: flex; min-width: 0; flex: 0 0 auto; align-items: center; gap: 18px; }
.brand-divider { width: 1px; height: 38px; flex: 0 0 auto; background: rgba(3,18,73,.22); }
.euler-home { display: inline-flex; min-height: 48px; align-items: center; }
.euler-header-logo { width: 148px; height: auto; max-height: 42px; object-fit: contain; }
.lonardi-brand { display: inline-flex; min-height: 48px; flex: 0 0 auto; align-items: center; gap: 11px; color: #F04E23; }
.lonardi-mark { display: grid; width: 38px; height: 38px; place-items: center; border: 2px solid #F04E23; color: #F04E23; font-family: var(--serif); font-size: 1.05rem; font-weight: 700; letter-spacing: -.08em; }
.lonardi-name { font-size: .9rem; font-weight: 700; letter-spacing: .15em; }
.lonardi-logo { width: 39px; height: 43px; flex: 0 0 auto; object-fit: contain; }
.main-nav { display: flex; flex: 1; align-items: center; justify-content: flex-end; gap: 26px; }
.main-nav > a, .nav-services > summary { position: relative; display: inline-flex; min-height: 44px; align-items: center; color: #2A3139; font-size: .76rem; font-weight: 600; letter-spacing: .03em; list-style: none; white-space: nowrap; }
.main-nav > a::after, .nav-services > summary::after { position: absolute; right: 0; bottom: 6px; left: 0; height: 1px; background: var(--magenta); content: ''; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.main-nav > a:hover::after, .nav-services > summary:hover::after, .nav-services[open] > summary::after { transform: scaleX(1); }
.nav-services { position: relative; }
.nav-services > summary::-webkit-details-marker { display: none; }
.nav-services > summary span { margin-left: 7px; color: var(--magenta); font-size: .9rem; }
.service-menu { position: absolute; top: calc(100% + 8px); right: 0; width: 310px; padding: 12px; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.service-menu a { display: flex; min-height: 46px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; color: var(--blue); font-size: .8rem; line-height: 1.4; transition: background-color .2s ease, color .2s ease; }
.service-menu a::after { content: '↗'; color: var(--magenta); }
.service-menu a:hover { background: var(--cream); color: var(--magenta); }
.nav-cta { padding: 10px 16px; background: var(--magenta); color: #fff8fb !important; }
.nav-cta::after { display: none; }
.menu-toggle { display: none; width: 48px; height: 48px; margin-left: auto; place-items: center; border: 1px solid var(--line); background: transparent; }
.menu-toggle svg { width: 24px; height: 24px; }
.mobile-nav { display: none; }

/* Portada */
.hero { position: relative; overflow: hidden; min-height: calc(100dvh - var(--header-h)); background: var(--night); color: #fff8fb; }
.hero::before { position: absolute; inset: 0; background-image: linear-gradient(90deg, transparent calc(100% - 1px), rgba(253,234,230,.08) 1px); background-size: calc(100% / 6) 100%; content: ''; pointer-events: none; }
.hero-inner { position: relative; display: grid; min-height: calc(100dvh - var(--header-h)); grid-template-columns: minmax(0,1.15fr) minmax(340px,.85fr); align-items: center; gap: 64px; padding-top: 70px; padding-bottom: 110px; }
.hero-copy { position: relative; z-index: 2; }
.euler-logo { width: min(320px, 80%); height: auto; margin-bottom: 38px; }
.hero .display { max-width: 720px; font-size: clamp(2.8rem,5.4vw,5.35rem); }
.hero-subtitle { max-width: 61ch; margin-top: 26px; color: #e6e8f2; font-size: 1.02rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-visual { position: relative; align-self: stretch; min-height: 550px; }
.hero-image-wrap { position: absolute; inset: 4% 0 8% 8%; overflow: hidden; border-radius: 160px 3px 3px 3px; }
.hero-image-wrap::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,18,73,.06), rgba(3,18,73,.45)); content: ''; }
.hero-image { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.05); }
.hero-note { position: absolute; right: -18px; bottom: 3%; z-index: 2; max-width: 250px; padding: 24px; background: var(--cream); color: var(--night); box-shadow: var(--shadow); }
.hero-note strong { display: block; font-family: var(--serif); font-size: 1.4rem; font-weight: 400; line-height: 1.25; }
.hero-note span { display: block; margin-top: 8px; color: var(--blue); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.hero-curve { position: absolute; right: 0; bottom: -1px; left: 0; width: 100%; height: 66px; color: var(--paper); }

/* Accesos y cifras */
.quick-section { position: relative; padding: 70px 0 100px; }
.quick-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.quick-heading h2 { max-width: 620px; font-family: var(--serif); font-size: clamp(1.8rem,3vw,2.65rem); font-weight: 400; line-height: 1.2; }
.quick-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.quick-card { display: flex; min-height: 300px; flex-direction: column; padding: 28px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--cream); transition: transform .22s ease, background-color .22s ease, color .22s ease; }
.quick-card:hover { z-index: 2; background: var(--pink); color: var(--night); transform: translateY(-8px); }
.quick-card .icon { width: 38px; height: 38px; margin-bottom: 30px; color: var(--magenta); }
.quick-card h3 { font-family: var(--serif); font-size: 1.38rem; font-weight: 400; line-height: 1.25; }
.quick-card .text-link { margin-top: auto; padding-top: 24px; color: var(--blue); }
.stats-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); }
.stat { padding: 48px 36px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-value { display: block; color: var(--magenta); font-family: var(--serif); font-size: clamp(2.7rem,5vw,4.6rem); letter-spacing: -.04em; line-height: 1; }
.stat-label { display: block; max-width: 250px; margin: 14px auto 0; color: var(--blue); font-size: .83rem; line-height: 1.55; }

/* Nosotros */
.about-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); align-items: start; gap: 80px; }
.about-visual { position: sticky; top: calc(var(--header-h) + 30px); }
.about-visual img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 3px; filter: saturate(.78); }
.about-visual::after { position: absolute; right: -22px; bottom: -22px; width: 44%; height: 40%; border-right: 2px solid var(--magenta); border-bottom: 2px solid var(--magenta); content: ''; pointer-events: none; }
.about-copy > p { max-width: 65ch; margin-top: 26px; color: var(--muted); }
.synergies { margin-top: 48px; border-top: 1px solid var(--line); }
.synergies-title { margin: 36px 0 14px; color: var(--blue); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.synergy { display: grid; grid-template-columns: 36px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.synergy-number { color: var(--magenta); font-family: var(--serif); font-size: 1.25rem; }
.synergy h3 { color: var(--blue); font-family: var(--serif); font-size: 1.3rem; font-weight: 400; }
.synergy p { margin-top: 5px; color: var(--muted); font-size: .9rem; }

/* Servicios */
.services-head { display: grid; grid-template-columns: 1fr .65fr; gap: 60px; align-items: end; margin-bottom: 62px; }
.services-head .text-link { justify-self: end; }
.service-row { display: grid; grid-template-columns: 86px minmax(0,1.1fr) minmax(0,.8fr) auto; align-items: start; gap: 28px; padding: 38px 0; border-top: 1px solid var(--line); }
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row .icon { width: 46px; height: 46px; color: var(--magenta); }
.service-row h3 { color: var(--blue); font-family: var(--serif); font-size: clamp(1.55rem,2.5vw,2.25rem); font-weight: 400; line-height: 1.2; }
.service-row p { color: var(--muted); font-size: .91rem; }
.service-row .text-link { white-space: nowrap; }

/* Diagnóstico */
.diagnostic { position: relative; overflow: hidden; }
.diagnostic::after { position: absolute; top: 0; right: 8%; width: 1px; height: 100%; background: rgba(253,234,230,.13); content: ''; }
.diagnostic-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 80px; }
.diagnostic-quote { margin-top: 32px; padding-left: 22px; border-left: 2px solid var(--pink); color: var(--cream); font-family: var(--serif); font-size: 1.5rem; line-height: 1.4; }
.diagnostic-questions { margin-top: 36px; }
.diagnostic-questions h3, .diag-block h3 { color: var(--pink); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
.question-list { margin-top: 16px; }
.question-list li { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.14); color: #f2eaf0; font-family: var(--serif); font-size: 1.05rem; }
.diag-block { padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.16); }
.diag-block + .diag-block { margin-top: 34px; }
.diag-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 24px; }
.diag-step strong { display: block; color: var(--pink); font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.diag-step h4 { margin-top: 10px; color: #fff8fb; font-size: .9rem; }
.diag-step p { margin-top: 8px; color: #d7dbea; font-size: .82rem; line-height: 1.6; }
.takeaway-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.takeaway-list li { padding: 8px 12px; border: 1px solid rgba(253,234,230,.28); color: var(--cream); font-size: .8rem; }
.audience { max-width: 68ch; margin-top: 18px; color: #e6e8f2; }
.diagnostic .btn { margin-top: 34px; }

/* Proceso y equipo */
.process-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; margin-top: 58px; border-top: 1px solid var(--line); }
.process-step { padding: 34px 34px 0 0; }
.process-step + .process-step { padding-left: 34px; border-left: 1px solid var(--line); }
.process-step span { color: var(--magenta); font-family: var(--serif); font-size: 2.4rem; }
.process-step h3 { margin-top: 14px; color: var(--blue); font-family: var(--serif); font-size: 1.55rem; font-weight: 400; }
.process-step p { margin-top: 12px; color: var(--muted); font-size: .9rem; }
.team-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 32px; margin-top: 56px; }
.team-member { display: grid; grid-template-columns: 170px 1fr; gap: 28px; align-items: center; padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.team-photo, .team-initials { width: 170px; aspect-ratio: 1; object-fit: cover; object-position: center 20%; background: #fff; }
.team-initials { display: grid; place-items: center; background: var(--night); color: var(--cream); font-family: var(--serif); font-size: 3.2rem; letter-spacing: -.08em; }
.team-member:nth-child(2) .team-initials { background: var(--magenta); }
.team-member h3 { color: var(--blue); font-family: var(--serif); font-size: 1.75rem; font-weight: 400; }
.team-role { margin-top: 4px; color: var(--magenta); font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.team-bio { margin-top: 12px; color: var(--muted); font-size: .85rem; }

/* Contacto Lonardi Estudio */
.contact-section { background: #F7F8FA; }
.contact-heading { margin-bottom: 46px; }
.contact-heading .section-title { color: #252B30; font-family: var(--sans); font-size: 2rem; font-weight: 600; letter-spacing: -.035em; }
.contact-heading > p { margin-top: 4px; color: #737B82; font-size: .94rem; }
.contact-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; gap: 64px; }
.contact-info > h3, .social-title { color: #252B30; font-size: 1.18rem; font-weight: 600; }
.contact-details { display: grid; gap: 13px; margin-top: 24px; }
.contact-line { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid #E9ECEF; border-radius: 12px; background: #fff; box-shadow: 0 5px 16px rgba(32,38,43,.035); }
.contact-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 11px; background: #F04E23; color: #fff; }
.contact-line .icon { width: 23px; height: 23px; }
.contact-line strong { display: block; color: #252B30; font-size: .9rem; font-weight: 600; }
.contact-line a, .contact-line div > span { display: block; margin-top: 2px; color: #747C82; font-size: .82rem; overflow-wrap: anywhere; }
.contact-line a:hover { color: #F04E23; }
.social-title { margin-top: 30px; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.social-links a { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #DFE3E6; border-radius: 8px; background: #fff; color: #6F777D; transition: border-color .2s ease, color .2s ease, transform .2s ease; }
.social-links a:hover { border-color: #F04E23; color: #F04E23; transform: translateY(-2px); }
.social-links svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.contact-form { padding: 40px; border: 1px solid #E9ECEF; border-radius: 14px; background: #fff; box-shadow: 0 8px 28px rgba(32,38,43,.055); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form .form-grid { grid-template-columns: 1fr; gap: 17px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1/-1; }
.field label { color: #30373D; font-size: .78rem; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #D9DEE2; border-radius: 8px; background: #fff; color: #252B30; font-size: .84rem; transition: border-color .2s ease, box-shadow .2s ease; }
.field input::placeholder, .field textarea::placeholder { color: #A0A6AB; }
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #F04E23; box-shadow: 0 0 0 3px rgba(240,78,35,.1); outline: none; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-footer { margin-top: 24px; }
.contact-submit { width: 100%; border-radius: 8px; background: #F04E23; color: #fff; }
.contact-submit:hover { background: #D9431C; }
.contact-submit svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.form-status { margin-top: 12px; color: #3F494F; font-size: .82rem; }
.form-status.error { color: #B42318; }
button[disabled] { cursor: wait; opacity: .65; transform: none; }

/* Pie Lonardi Estudio */
.site-footer { padding: 62px 0 0; background: #20262B; color: #F0D9A7; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4,1fr); gap: 42px; }
.footer-brand .lonardi-brand { color: #F0D9A7; }
.footer-brand .lonardi-logo { width: 36px; height: 45px; filter: none; }
.footer-desc { max-width: 350px; margin-top: 20px; color: #C6CCCF; font-size: .84rem; line-height: 1.85; }
.footer-col h3 { margin-bottom: 18px; color: #E8C98F; font-size: .88rem; font-weight: 600; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #B9C0C4; font-size: .8rem; }
.footer-col a:hover { color: #F0D9A7; text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 48px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.1); color: #8F979C; font-size: .76rem; text-align: center; }
.admin-link { min-height: 44px; padding: 10px; border: 0; background: none; color: #747D82; font-size: .7rem; }
.admin-link:hover { color: #F0D9A7; }
.whatsapp-float { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: grid; width: 58px; height: 58px; place-items: center; border: 2px solid var(--paper); border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 8px 26px rgba(37,211,102,.35); transition: transform .2s ease; }
.whatsapp-float:hover { transform: translateY(-4px); }
.whatsapp-float svg { width: 28px; height: 28px; fill: currentColor; }
.toast { position: fixed; right: 24px; bottom: 96px; z-index: 120; max-width: min(380px,calc(100% - 48px)); padding: 14px 18px; background: var(--night); color: #fff8fb; box-shadow: var(--shadow); font-size: .85rem; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

/* Página interna de servicio */
.detail-hero { padding: 88px 0 72px; background: var(--night); color: #fff8fb; }
.detail-hero .eyebrow { color: var(--pink); }
.detail-hero .euler-logo { width: 240px; margin-bottom: 32px; }
.detail-hero .display { max-width: 900px; }
.detail-hero .section-intro { color: #e6e8f2; }
.detail-body { padding: 88px 0; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.62fr); align-items: start; gap: 72px; }
.detail-list { margin-top: 30px; border-top: 1px solid var(--line); }
.detail-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--blue); }
.detail-list li::before { color: var(--magenta); content: '—'; }
.detail-image { width: min(100%,420px); max-height: 340px; aspect-ratio: 4/3; justify-self: end; object-fit: cover; object-position: center; }
.detail-cta { margin-top: 34px; }
.cv-section { padding: 0 0 88px; }
.cv-layout { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 64px; padding: 48px; border-top: 3px solid var(--magenta); background: var(--cream); }
.cv-copy > p:not(.eyebrow) { margin-top: 22px; color: var(--muted); }
.cv-copy .cv-privacy { font-size: .8rem; }
.cv-form { display: grid; gap: 17px; }
.cv-form .field input { background: var(--paper); }
.cv-form input[type="file"] { min-height: 54px; padding: 9px; }
.cv-form input[type="file"]::file-selector-button { min-height: 34px; margin-right: 12px; padding: 6px 12px; border: 0; border-radius: 5px; background: var(--blue); color: #fff8fb; font-family: var(--sans); font-size: .75rem; cursor: pointer; }
.cv-file-hint { color: var(--muted); font-size: .72rem; }
.cv-submit { width: 100%; margin-top: 4px; border-radius: 8px; }
.not-found { min-height: 55vh; padding: 100px 0; }

@media (max-width: 1100px) {
  .header-inner { gap: 18px; }
  .header-brands { gap: 12px; }
  .euler-header-logo { width: 124px; }
  .main-nav { gap: 16px; }
  .main-nav > a, .nav-services > summary { font-size: .7rem; }
  .nav-cta { display: none; }
  .hero-inner { grid-template-columns: minmax(0,1.2fr) minmax(280px,.8fr); gap: 34px; }
  .quick-grid { grid-template-columns: repeat(3,1fr); }
  .quick-card { min-height: 250px; }
  .service-row { grid-template-columns: 62px 1fr 1fr; }
  .service-row .text-link { grid-column: 2; }
  .team-member { grid-template-columns: 120px 1fr; }
  .team-photo, .team-initials { width: 120px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}

@media (max-width: 820px) {
  :root { --header-h: 72px; }
  .container { width: min(calc(100% - 36px),var(--max)); }
  .section { padding: 82px 0; }
  .main-nav { display: none; }
  .menu-toggle { display: grid; }
  .mobile-nav { position: fixed; inset: var(--header-h) 0 0; z-index: 75; display: block; padding: 26px 24px 50px; background: var(--paper); opacity: 0; overflow-y: auto; pointer-events: none; transform: translateY(-12px); transition: opacity .2s ease, transform .2s ease; }
  .mobile-nav.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .mobile-nav a, .mobile-nav summary { display: flex; min-height: 54px; align-items: center; border-bottom: 1px solid var(--line); color: var(--blue); font-family: var(--serif); font-size: 1.35rem; list-style: none; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-services { padding-left: 16px; }
  .mobile-services a { font-family: var(--sans); font-size: .86rem; }
  .mobile-nav .btn { width: 100%; margin-top: 26px; color: #fff8fb; font-family: var(--sans); font-size: .9rem; }
  .hero-inner { min-height: auto; grid-template-columns: 1fr; gap: 40px; padding-top: 56px; padding-bottom: 100px; }
  .euler-logo { width: 260px; margin-bottom: 28px; }
  .hero-visual { min-height: 420px; }
  .hero-image-wrap { inset: 0 0 6% 8%; border-radius: 110px 3px 3px 3px; }
  .hero-note { right: 0; }
  .quick-grid { grid-template-columns: repeat(2,1fr); }
  .about-grid, .diagnostic-grid, .contact-grid, .detail-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { position: relative; top: auto; max-width: 560px; }
  .about-visual img { aspect-ratio: 4/3; }
  .services-head { grid-template-columns: 1fr; gap: 20px; }
  .services-head .text-link { justify-self: start; }
  .service-row { grid-template-columns: 50px 1fr; gap: 18px; }
  .service-row p, .service-row .text-link { grid-column: 2; }
  .diag-steps { grid-template-columns: 1fr; }
  .diag-step { display: grid; grid-template-columns: 42px 1fr; column-gap: 16px; }
  .diag-step strong { grid-row: 1/3; }
  .diag-step h4 { margin-top: 0; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { padding: 28px 0; border-bottom: 1px solid var(--line); }
  .process-step + .process-step { padding-left: 0; border-left: 0; }
  .team-grid { grid-template-columns: 1fr; }
  .detail-image { aspect-ratio: 16/10; }
  .cv-layout { grid-template-columns: 1fr; gap: 36px; padding: 38px; }
}

@media (max-width: 540px) {
  .container { width: min(calc(100% - 28px),var(--max)); }
  .section { padding: 68px 0; }
  .header-inner { gap: 10px; }
  .header-brands { gap: 10px; }
  .brand-divider { height: 32px; }
  .euler-header-logo { width: 108px; }
  .lonardi-name { font-size: .72rem; letter-spacing: .1em; }
  .lonardi-mark { width: 34px; height: 34px; }
  .hero .display { font-size: clamp(2.55rem,12vw,4rem); }
  .hero-subtitle { font-size: .94rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { min-height: 340px; }
  .hero-note { max-width: 220px; padding: 18px; }
  .quick-heading { display: block; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-card { min-height: 210px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat + .stat { border-top: 1px solid var(--line); border-left: 0; }
  .stat { padding: 36px 20px; }
  .about-visual::after { right: -8px; bottom: -10px; }
  .service-row { grid-template-columns: 1fr; }
  .service-row p, .service-row .text-link { grid-column: 1; }
  .service-row .icon { width: 38px; height: 38px; }
  .team-member { grid-template-columns: 92px 1fr; gap: 18px; }
  .team-photo, .team-initials { width: 92px; }
  .team-initials { font-size: 2.25rem; }
  .team-member h3 { font-size: 1.4rem; }
  .team-bio { grid-column: 1/-1; }
  .contact-form { padding: 24px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 24px; }
  .footer-brand { grid-column: 1/-1; }
  .footer-bottom { align-items: center; flex-direction: column; gap: 2px; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .detail-hero { padding: 64px 0; }
  .cv-section { padding-bottom: 68px; }
  .cv-layout { gap: 30px; padding: 28px 20px; }
}

@media (max-width: 420px) {
  .site-header .lonardi-name { display: none; }
  .site-header .lonardi-brand { gap: 0; }
  .euler-header-logo { width: 112px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
