/* Cortes Loop — estilos (basados en el diseño original de Lovable) */
:root {
  --background: oklch(18.5% .005 240);
  --foreground: oklch(94.6% .003 95);
  --primary: oklch(77% .027 90);
  --primary-foreground: oklch(20% .005 240);
  --secondary: oklch(22% .005 240);
  --muted-foreground: oklch(68% .006 240);
  --accent: oklch(29% .006 240);
  --border: oklch(36% .006 240 / .65);
  --destructive: oklch(78% .08 35);
  --hero-overlay: oklch(13% .006 240 / .79);
  --hero-subtle: oklch(82% .004 95);
  --rule: oklch(86% .01 90 / .25);
  --font-sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; line-height: 1.5; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
h1, h2, h3, p { overflow-wrap: break-word; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 10;
  background: var(--primary); color: var(--primary-foreground);
  padding: 10px 14px; font-size: 13px; border-radius: 2px;
}
.skip-link:focus { left: 8px; }

.page-width { width: min(1240px, 100% - 112px); margin-inline: auto; }

/* Header */
.site-header {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  height: 106px; border-bottom: 1px solid var(--rule);
}
.wordmark { display: inline-flex; align-items: center; gap: 13px; font-size: 24px; font-weight: 550; white-space: nowrap; }
.wordmark-stop { color: var(--primary); }
.loop-mark { position: relative; display: flex; width: 31px; height: 29px; }
.loop-mark span {
  position: absolute; top: 2px; left: 0;
  width: 21px; height: 27px;
  border: 1.6px solid var(--primary); border-radius: 11px;
  transform: rotate(-25deg);
}
.loop-mark span + span { top: 0; left: 10px; }
.site-header nav { display: flex; align-items: center; gap: 42px; font-size: 13px; }
.site-header nav > a { transition: color .2s; }
.site-header nav > a:hover { color: var(--primary); }
.nav-contact { display: flex; align-items: center; gap: 14px; }

.lang-switch { display: flex; gap: 2px; border: 1px solid var(--rule); border-radius: 2px; }
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; min-height: 32px; padding: 6px 8px;
  color: var(--muted-foreground); font-size: 11px; letter-spacing: .08em;
  transition: color .2s;
}
.lang-switch a:hover { color: var(--foreground); }
.lang-switch a[aria-current="page"] { color: var(--primary); }

/* Hero */
.hero {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  height: min(870px, 94svh); min-height: 780px;
}
.hero-image, .hero-shade, .hero-fallback { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-image { object-fit: cover; object-position: center 53%; }
.hero-fallback {
  background:
    repeating-linear-gradient(90deg, oklch(30% .005 240 / .55) 0 2px, transparent 2px 46px),
    repeating-linear-gradient(90deg, oklch(24% .005 240 / .7) 0 18px, transparent 18px 92px),
    linear-gradient(160deg, oklch(30% .006 240), oklch(16% .005 240) 70%);
}
.hero-shade { background: var(--hero-overlay); z-index: -1; }
.hero-content {
  flex: 1 1 0%;
  display: grid; grid-template-columns: minmax(0, 720px) 1fr; align-content: center;
  padding-block: 64px 48px;
}
.hero-copy { max-width: 720px; }
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 28px; color: var(--primary);
  font-size: 10px; font-weight: 500; line-height: 1.5;
}
.eyebrow-dash { width: 24px; height: 1px; background: var(--primary); }
.hero-eyebrow { gap: 18px; margin: 0 0 36px; font-size: 11px; font-weight: 600; letter-spacing: .3em; }
.hero-eyebrow .eyebrow-dash { width: 44px; }
.hero-headline { margin: 0; font-size: 40px; font-weight: 450; line-height: 1.16; letter-spacing: -.006em; white-space: pre-line; }
.hero-support { max-width: 46ch; margin: 40px 0 0; color: var(--hero-subtle); font-size: 16px; line-height: 1.75; }
.hero-cta { margin-top: 46px; }
.enterprise-button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 32px;
  height: 47px; padding: 0 21px;
  background: var(--primary); color: var(--primary-foreground);
  border: 1px solid var(--primary); border-radius: 2px;
  font-size: 12px; font-weight: 550; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.enterprise-button:hover { background: var(--foreground); border-color: var(--foreground); }
.enterprise-button[disabled] { opacity: .6; cursor: progress; }
.hero-bottom {
  display: flex; justify-content: space-between; align-items: center;
  height: 74px; border-top: 1px solid var(--rule);
  color: var(--hero-subtle); font-size: 11px;
}
.hero-bottom a { display: flex; align-items: center; gap: 27px; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.hero-bottom a span { font-size: 20px; }

/* Sections */
.approach-section { padding-block: 82px 75px; }
.intro-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.intro-grid h2, .contact-grid h2 { margin: 0; font-size: 38px; font-weight: 450; line-height: 1.2; white-space: pre-line; }
.intro-lead { max-width: 470px; margin: 0 0 18px; font-size: 20px; line-height: 1.5; }
.body-copy { max-width: 470px; margin: 0; color: var(--muted-foreground); font-size: 13px; line-height: 1.85; }
.body-copy + .body-copy { margin-top: 14px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 39px; margin-top: 63px; }
.step { border-top: 1px solid var(--border); padding-top: 20px; }
.step-number { display: flex; justify-content: space-between; color: var(--primary); font-size: 10px; }
.step h3 { margin: 25px 0 12px; font-size: 21px; font-weight: 450; }
.step p { max-width: 290px; margin: 0; color: var(--muted-foreground); font-size: 12px; line-height: 1.8; }

.example-section, .about-section { border-top: 1px solid var(--border); padding-block: 70px 80px; }
.example-section h2 { white-space: normal; }
.example-note {
  margin-top: 18px; padding-left: 12px; border-left: 2px solid var(--primary);
  color: var(--muted-foreground); font-size: 11px; letter-spacing: .08em;
}
.example-body { display: grid; gap: 28px; }
.example-body h3, .founder-name {
  margin: 0 0 10px; color: var(--primary);
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}

/* About */
.founder { display: flex; align-items: center; gap: 20px; margin-top: 32px; }
.founder-photo, .founder-monogram {
  width: 72px; height: 72px; flex: none; border-radius: 50%;
  border: 1px solid var(--rule); object-fit: cover;
}
.founder-monogram {
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--primary); font-size: 20px; letter-spacing: .06em;
}
.founder-name { margin: 0 0 4px; }
.founder-role { margin: 0; color: var(--muted-foreground); font-size: 12px; }
.founder-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 10px; font-size: 12px; }
.founder-links a { color: var(--primary); border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
.founder-links a:hover { border-bottom-color: var(--primary); }
.about-points { display: grid; gap: 26px; }
.about-points .step { padding-top: 16px; }
.about-points .step h3 { margin: 12px 0 8px; font-size: 18px; }
.about-points .step p { max-width: none; font-size: 13px; }

/* Contact */
.contact-section { background: var(--secondary); border-block: 1px solid var(--border); padding-block: 70px 76px; }
.contact-grid h2 { margin-bottom: 22px; font-size: 33px; }
.contact-grid .body-copy { max-width: 360px; }
.contact-mail { display: grid; gap: 11px; margin-top: 34px; }
.contact-mail span { color: var(--muted-foreground); font-size: 9px; letter-spacing: .22em; text-transform: uppercase; }
.contact-mail a {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content;
  padding-bottom: 5px; border-bottom: 1px solid var(--rule);
  color: var(--primary); font-size: 15px;
}
.contact-mail a:hover { border-bottom-color: var(--primary); }
.discretion { display: flex; align-items: center; gap: 9px; margin: 40px 0 0; color: var(--primary); font-size: 10px; }

.contact-form { position: relative; }
.contact-form label { display: block; margin-bottom: 10px; color: var(--foreground); font-size: 11px; }
.contact-form .optional { color: var(--muted-foreground); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 25px; }
.form-field { margin-bottom: 25px; }
.form-row .form-field { margin-bottom: 0; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  width: 100%; padding: 14px;
  background: transparent; color: var(--foreground);
  border: 1px solid var(--border); border-radius: 2px; outline: none;
  font-size: 13px;
}
.contact-form input[type="text"], .contact-form input[type="email"] { height: 45px; }
.contact-form textarea { min-height: 117px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); }
.contact-form [aria-invalid="true"] { border-color: var(--destructive); }
input::placeholder, textarea::placeholder { color: var(--muted-foreground); opacity: .8; }
.field-error { margin: 6px 0 0; color: var(--destructive); font-size: 11px; }
.field-error:empty { display: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; }
.consent input { margin: 2px 0 0; width: 16px; height: 16px; accent-color: var(--primary); flex: none; }
.consent label { margin: 0; color: var(--muted-foreground); font-size: 11px; line-height: 1.6; }
.consent a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.form-bottom { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 20px; }
.form-bottom p { margin: 0; color: var(--muted-foreground); font-size: 10px; }
.form-feedback { margin-top: 16px; color: var(--primary); font-size: 12px; line-height: 1.6; }
.form-feedback:empty { display: none; }
.form-feedback.is-error { color: var(--destructive); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.landing-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 42px; }
.landing-footer .wordmark { font-size: 20px; }
.landing-footer p { margin: 13px 0 0; color: var(--muted-foreground); font-size: 10px; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; color: var(--muted-foreground); font-size: 10px; text-align: right; }
.footer-right a:hover { color: var(--primary); }

/* Legal / 404 */
.legal-main { padding-block: 70px 90px; }
.legal-main h1 { margin: 0 0 12px; font-size: 38px; font-weight: 450; line-height: 1.2; }
.legal-main .updated { margin: 0 0 48px; color: var(--muted-foreground); font-size: 12px; }
.legal-main h2 { margin: 48px 0 14px; font-size: 22px; font-weight: 450; }
.legal-main h3 { margin: 26px 0 8px; color: var(--primary); font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.legal-main p, .legal-main li { max-width: 760px; color: var(--hero-subtle); font-size: 14px; line-height: 1.8; }
.legal-main ul { padding-left: 20px; }
.legal-main a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.legal-main dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; max-width: 760px; font-size: 14px; }
.legal-main dt { color: var(--muted-foreground); }
.legal-main dd { margin: 0; color: var(--foreground); }
.todo { color: var(--destructive); }
.back-link { display: inline-flex; margin-top: 40px; color: var(--primary); font-size: 13px; }

/* Responsive */
@media (min-width: 1500px) {
  .hero-headline { font-size: 44px; }
  .hero-support { font-size: 17px; }
}
@media (max-width: 900px) {
  .page-width { width: calc(100% - 64px); }
  .hero { min-height: 730px; }
  .hero-headline { font-size: 35px; }
  .hero-support { margin-top: 32px; font-size: 15px; }
  .hero-cta { margin-top: 36px; }
  .intro-grid, .contact-grid { gap: 40px; }
  .intro-grid h2 { font-size: 32px; }
  .contact-grid h2 { font-size: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .form-bottom { flex-direction: column-reverse; align-items: flex-start; }
}
@media (max-width: 600px) {
  .page-width { width: calc(100% - 40px); }
  .site-header { flex-wrap: wrap; gap: 12px; height: auto; padding-block: 16px; }
  .wordmark { gap: 9px; font-size: 20px; }
  .site-header nav { flex-wrap: wrap; gap: 14px; font-size: 11px; }
  .site-header nav > a:first-child { display: none; }
  .nav-contact { gap: 8px; }
  .lang-switch a { min-width: 30px; padding: 6px 4px; font-size: 10px; }
  .hero { height: auto; min-height: 740px; }
  .hero-content { grid-template-columns: 1fr; padding-block: 46px 38px; }
  .hero-headline { font-size: 29px; line-height: 1.2; }
  .hero-support { margin-top: 26px; font-size: 14px; }
  .hero-cta { margin-top: 30px; }
  .hero-bottom { gap: 25px; height: 79px; font-size: 9px; }
  .hero-bottom a { gap: 10px; max-width: 140px; font-size: 8px; }
  .eyebrow { margin-bottom: 24px; font-size: 9px; }
  .hero-eyebrow { gap: 12px; margin-bottom: 26px; font-size: 9px; letter-spacing: .22em; }
  .approach-section { padding-block: 55px; }
  .example-section, .about-section, .contact-section { padding-block: 51px; }
  .intro-grid, .contact-grid { grid-template-columns: 1fr; gap: 27px; }
  .intro-grid h2, .contact-grid h2 { font-size: 32px; }
  .intro-lead { font-size: 18px; }
  .steps-grid { grid-template-columns: 1fr; gap: 29px; margin-top: 36px; }
  .step h3 { margin-top: 16px; }
  .step p { max-width: none; font-size: 13px; }
  .discretion { margin-top: 24px; }
  .contact-grid { gap: 36px; }
  .form-row { gap: 22px; }
  .landing-footer { align-items: flex-start; gap: 20px; padding-block: 30px; }
  .landing-footer .wordmark { font-size: 18px; }
  .landing-footer p { max-width: 160px; line-height: 1.7; }
  .legal-main h1 { font-size: 30px; }
  .legal-main dl { grid-template-columns: 1fr; gap: 2px; }
  .legal-main dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Iconos de flecha, igual que en Lovable */
.enterprise-button svg, .step-number svg { width: 16px; height: 16px; flex: none; }
.site-header nav a { display: inline-flex; align-items: center; gap: 8px; }
.site-header nav a.nav-contact { display: flex; gap: 14px; }
.site-header nav a svg { width: 15px; height: 15px; }
.form-bottom-end { justify-content: flex-end; }

/* Mismo espacio que Lovable entre el mensaje y el botón */
.contact-form > .form-field { margin-bottom: 0; }

/* Como en Lovable: sin margen inferior en la nota del ejemplo */
.example-note { margin-bottom: 0; }

/* Móvil: encuadre de la foto sin la esquina clara del edificio en el borde derecho */
@media (max-width: 600px) { .hero-image { object-position: 15% 53%; } }
