/* ==========================================================
   SHIGRA — estilos (HTML/CSS puro)
   ========================================================== */

:root {
  --gold: #B8960C;
  --copper: #C17A2A;
  --ink: #1A1A1A;
  --line-dark: #333333;
  --light: #FAFAFA;
  --white: #FFFFFF;
  --border: #F3F4F6;
  --nav-h: 80px;
  --radius: 24px;
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Layout ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 896px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

.grid-2 { display: grid; gap: 48px; align-items: center; }
.grid-2--top { align-items: start; }
@media (min-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .order-1 { order: 2; }
  .order-2 { order: 1; }
}

.section { position: relative; padding: 80px 0; overflow: hidden; }
@media (min-width: 1024px) { .section { padding: 128px 0; } }
.section--dark { background: var(--ink); color: var(--white); }
.section--light { background: var(--light); }
.center { text-align: center; }

/* ---------- Tipografía ---------- */
h1 { font-size: clamp(2.25rem, 5vw + 1rem, 3.75rem); font-weight: 700; line-height: 1.15; margin-bottom: 24px; }
h2 { font-size: clamp(1.875rem, 3vw + 1rem, 3rem); font-weight: 700; line-height: 1.2; margin-bottom: 24px; }
h3 { font-size: 1.25rem; font-weight: 700; }
.eyebrow { font-size: .875rem; font-weight: 700; letter-spacing: .1em; color: var(--gold); margin-bottom: 16px; }
.lead { font-size: 1.125rem; opacity: .8; margin-bottom: 32px; }
@media (min-width: 640px) { .hero .lead { font-size: 1.25rem; } }
.muted { font-size: .875rem; opacity: .7; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; padding: 16px 32px; border-radius: 999px; border: 2px solid var(--gold);
  background: var(--gold); color: var(--white); font-weight: 600; font-size: 1rem; text-align: center;
  cursor: pointer; font-family: inherit; transition: transform .2s, box-shadow .2s, opacity .2s, background .2s;
}
.btn:hover { opacity: .92; transform: scale(1.05); box-shadow: 0 20px 25px -5px rgba(0,0,0,.15); }
.btn--outline { background: transparent; color: var(--gold); }
.btn--outline:hover { background: rgba(184,150,12,.08); opacity: 1; }
.btn--sm { padding: 12px 24px; font-size: .875rem; }
.btn--sm:hover { transform: none; }
.btn--lg { padding: 20px 32px; font-size: 1.125rem; font-weight: 700; }
.btn--block { display: block; width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.is-success { background: #22C55E; border-color: #22C55E; opacity: 1; }
.btn-row { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 640px) { .btn-row { flex-direction: row; } }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; background: var(--ink); transition: box-shadow .3s; }
.nav.is-scrolled { box-shadow: 0 4px 6px -1px rgba(0,0,0,.2); }
.nav__bar { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.nav__logo img { height: 40px; width: auto; }
.nav__logo:hover { opacity: .9; }
.nav__links { display: none; gap: 32px; }
.nav__links a, .nav__mobile a:not(.btn) { color: var(--white); font-size: .875rem; font-weight: 500; opacity: .7; transition: opacity .2s; }
.nav__links a:hover, .nav__links a.is-active, .nav__mobile a.is-active { opacity: 1; }
.nav__cta { display: none; }
.nav__toggle { background: none; border: 0; padding: 8px; color: var(--white); cursor: pointer; }
.nav__toggle svg { width: 24px; height: 24px; }
.nav__toggle .i-x, .nav.is-open .nav__toggle .i-menu { display: none; }
.nav.is-open .nav__toggle .i-x { display: block; }
.nav__mobile { display: none; flex-direction: column; gap: 16px; padding: 24px 16px; border-top: 1px solid var(--line-dark); }
.nav__mobile a:not(.btn) { font-size: 1rem; }
.nav.is-open .nav__mobile { display: flex; }
@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-block; }
  .nav__toggle, .nav.is-open .nav__mobile { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden;
  padding: calc(var(--nav-h) + 48px) 0 64px;
  background: linear-gradient(135deg, rgba(184,150,12,.05) 0%, rgba(193,122,42,.05) 100%);
}
.hero > .container { width: 100%; }
.hero__text { position: relative; z-index: 2; }
.hero__shapes { position: absolute; inset: 0; opacity: .1; pointer-events: none; }
.shape { position: absolute; display: block; border-radius: 50%; will-change: transform; }
.shape--1 { top: 80px; left: 80px; width: 128px; height: 128px; background: var(--gold); }
.shape--2 { bottom: 160px; right: 160px; width: 192px; height: 192px; background: var(--copper); }
.shape--3 { top: 50%; left: 33%; width: 96px; height: 96px; background: var(--gold); border-radius: 0; rotate: 45deg; }

.hero__media { position: relative; height: 400px; }
@media (min-width: 1024px) { .hero__media { height: 600px; } }
.hero__heart {
  display: none; position: absolute; top: -128px; right: -80px; width: 384px; height: 384px;
  object-fit: contain; opacity: .7; z-index: 0; pointer-events: none; animation: float 4s ease-in-out infinite;
}
@media (min-width: 1024px) { .hero__heart { display: block; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -20px; } }

/* ---------- Tarjetas con imagen ---------- */
.media-card { position: relative; height: 400px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); z-index: 1; }
.media-card img { width: 100%; height: 100%; object-fit: cover; }
.media-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.25), transparent); pointer-events: none; }
.hero__media .media-card { position: absolute; inset: 0; height: auto; }
@media (min-width: 1024px) {
  .media-card--tall { height: 600px; }
  .media-card--xl { height: 700px; }
}

.slider img { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.slider img.is-active { opacity: 1; }

/* ---------- Por qué ---------- */
.features { display: grid; gap: 24px; margin-top: 48px; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
.feature {
  position: relative; background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,.05); overflow: hidden; transition: box-shadow .3s, border-color .3s;
}
.feature::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(to right, var(--gold), var(--copper)); opacity: 0; transition: opacity .3s; }
.feature:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,.1); border-color: rgba(184,150,12,.3); }
.feature:hover::before { opacity: 1; }
.feature svg { width: 48px; height: 48px; stroke-width: 1.5; color: var(--gold); margin-bottom: 16px; transition: transform .3s; }
.feature:hover svg { transform: scale(1.1); }
.feature h3 { margin-bottom: 8px; }
.feature p { font-size: .875rem; opacity: .7; }

/* ---------- Pagos ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.chip { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px; border: 2px solid var(--gold); border-radius: 999px; font-weight: 600; transition: transform .2s; }
.chip:hover { transform: scale(1.05); }
.chip svg { width: 24px; height: 24px; color: var(--gold); }

/* ---------- Casos ---------- */
.cases { display: grid; gap: 32px; margin-top: 64px; }
@media (min-width: 768px) { .cases { grid-template-columns: repeat(3, 1fr); } }
.case {
  position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); transition: box-shadow .3s, border-color .3s;
}
.case::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; z-index: 2; background: linear-gradient(to right, var(--gold), var(--copper)); }
.case:hover { box-shadow: var(--shadow); border-color: rgba(184,150,12,.3); }
.case__img { position: relative; height: 256px; overflow: hidden; }
.case__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.case__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.5), transparent); }
.case:hover .case__img img { transform: scale(1.05); }
.case__body { padding: 24px; }
.case__body h3 { margin-bottom: 4px; }
.case__city { font-size: .875rem; opacity: .6; margin-bottom: 16px; }
.case__quote { font-size: .875rem; font-style: italic; opacity: .8; margin-bottom: 16px; }
.case__link { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-size: .875rem; font-weight: 600; transition: gap .2s, transform .2s; }
.case__link svg { width: 16px; height: 16px; }
.case:hover .case__link { transform: translateX(4px); }
.case__link:hover { gap: 12px; }

/* ---------- Contacto ---------- */
.contact::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(to right, transparent, var(--gold), transparent); opacity: .3; }
.contact .lead { margin-bottom: 48px; }
.form { display: grid; gap: 24px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; margin-bottom: 32px; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); }
.form input {
  width: 100%; padding: 16px 24px; border-radius: 12px; border: 2px solid #E5E7EB; background: #F9FAFB;
  color: #1F2937; font: inherit; font-size: 1rem; transition: border-color .2s, background .2s;
}
.form input::placeholder { color: #9CA3AF; }
.form input:focus { outline: none; border-color: var(--gold); background: var(--white); }
.form input.is-invalid { border-color: #FCA5A5; }
.form__error { padding: 16px; background: #FEF2F2; border: 2px solid #FECACA; border-radius: 12px; color: #DC2626; font-size: .875rem; }
.checks { list-style: none; display: grid; gap: 12px; }
.checks li { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 1.125rem; font-weight: 600; }
.checks span { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); }
.checks svg { width: 16px; height: 16px; color: var(--white); stroke-width: 3; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--white); padding: 48px 0; border-top: 1px solid var(--line-dark); }
.footer__top { display: grid; gap: 32px; margin-bottom: 32px; }
.footer__logo { height: 40px; width: auto; margin-bottom: 12px; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 32px; }
.footer__cols h4 { font-weight: 600; margin-bottom: 12px; }
.footer__cols a { display: block; font-size: .875rem; opacity: .7; margin-bottom: 8px; transition: opacity .2s; }
.footer__cols a:hover { opacity: 1; }
.footer__bottom { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 16px; padding-top: 32px; border-top: 1px solid var(--line-dark); font-size: .875rem; }
.footer__bottom p { opacity: .5; }
.footer__bottom .tiny { font-size: .75rem; opacity: .4; }
@media (min-width: 640px) { .footer__bottom { flex-direction: row; } }
@media (min-width: 768px) {
  .footer__top { grid-template-columns: 1fr 2fr; }
  .footer__cols { justify-content: flex-end; }
}

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; translate: 0 30px; transition: opacity .8s ease, translate .8s ease; }
.reveal.from-left { translate: -50px 0; }
.reveal.from-right { translate: 50px 0; }
.reveal.is-visible { opacity: 1; translate: 0 0; }
.cases .case:nth-child(2) { transition-delay: .1s; }
.cases .case:nth-child(3) { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: none; transition: none; }
  .hero__heart { animation: none; }
  .slider img { transition: none; }
}
