/* =========================================================
   Mariela Negrón-Marty — Estudio Legal
   Paleta: Azul petróleo + Dorado
   ========================================================= */

:root {
  --navy: #1c3a42;
  --navy-deep: #142a30;
  --navy-light: #2a525c;
  --gold: #a07d3e;
  --gold-light: #c0a063;
  --gold-soft: #f3ecdf;
  --cream: #faf7f1;
  --ink: #1a2528;
  --gray: #5d6b6f;
  --line: #e4ddd0;
  --white: #ffffff;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 14px;
  --shadow: 0 18px 50px rgba(20, 42, 48, 0.12);
  --shadow-sm: 0 6px 20px rgba(20, 42, 48, 0.08);
  --max: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(160, 125, 62, 0.32);
}
.btn-gold:hover { background: var(--gold-light); }
.btn-outline {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-full { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-size: 1.18rem; color: var(--navy); font-weight: 700; }
.brand-text small { font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-size: 0.92rem; font-weight: 500; color: var(--navy); transition: color 0.15s; }
.main-nav a:not(.btn):hover { color: var(--gold); }
.nav-cta { padding: 10px 22px; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  display: flex;
  gap: 6px;
  white-space: nowrap;
  transition: border-color .2s ease;
}
.lang-toggle:hover { border-color: var(--gold-light); }
.lang-toggle .lang-sep { color: var(--line); }
.lang-toggle.en-active .lang-es { color: var(--gray); }
.lang-toggle.en-active .lang-en { color: var(--navy); }
.lang-toggle:not(.en-active) .lang-es { color: var(--navy); }
.lang-toggle:not(.en-active) .lang-en { color: var(--gray); }

.menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-btn span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: 0.25s; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--cream) 0%, var(--gold-soft) 100%);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 64px;
  padding: 104px 24px 116px;
}
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  line-height: 1.08;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 22px;
}
.hero-lead { font-size: 1.12rem; color: var(--gray); max-width: 520px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 18px 26px; }
.hero-badges li { font-size: 0.9rem; color: var(--navy); font-weight: 500; }

.hero-figure { display: flex; justify-content: center; }
.hero-photo-wrap { position: relative; width: min(420px, 100%); }
.hero-photo-wrap::before {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  z-index: 0;
}
.hero-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 16%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ===== Sections ===== */
.section { padding: 104px 0; }
.section-alt { background: var(--white); }
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 16px;
}
.section-sub { font-size: 1.08rem; color: var(--gray); max-width: 640px; margin-bottom: 48px; }

/* ===== Cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 38px 32px 34px;
  box-shadow: 0 6px 22px rgba(20, 42, 48, 0.05);
  overflow: hidden;
  transition: box-shadow .35s ease, border-color .35s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s ease;
}
.card:hover { box-shadow: 0 26px 55px rgba(20, 42, 48, 0.16); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-num {
  position: absolute;
  top: 26px; right: 30px;
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--gold-soft);
  transition: color .35s ease;
  pointer-events: none;
}
.card:hover .card-num { color: var(--gold-light); }
.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 18px;
  background: linear-gradient(150deg, var(--navy-light), var(--navy-deep));
  color: var(--gold-light);
  margin-bottom: 24px;
  box-shadow: 0 10px 22px rgba(20, 42, 48, 0.18);
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.card:hover .card-icon { transform: translateY(-5px) rotate(-6deg); }
.card-icon svg { width: 32px; height: 32px; display: block; }
.card h3 { font-family: var(--serif); font-size: 1.5rem; color: var(--navy); margin-bottom: 12px; font-weight: 600; letter-spacing: 0.2px; }
.card p { color: var(--gray); font-size: 0.96rem; line-height: 1.62; }

/* ===== Reveal on scroll (dinámico) ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Split layout ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-text p { color: var(--gray); font-size: 1.05rem; margin-bottom: 16px; }
.check-list { list-style: none; margin: 24px 0 30px; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 34px; color: var(--ink); font-weight: 500; }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: -1px;
  width: 22px; height: 22px;
  background: var(--gold); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
}

/* Stats */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat {
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  color: #fff;
  border-radius: var(--radius);
  padding: 34px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat strong { font-family: var(--serif); font-size: 2.4rem; color: var(--gold-light); display: block; }
.stat span { font-size: 0.88rem; color: rgba(255,255,255,0.82); }

.split-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 25%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* About photo placeholder */
.photo-frame {
  position: relative;
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
  box-shadow: var(--shadow);
}
.about-logo { width: 55%; opacity: 0.92; }
.photo-note { color: rgba(255,255,255,0.55); font-size: 0.85rem; letter-spacing: 1px; }
.photo-frame.has-photo { padding: 0; overflow: hidden; background: var(--navy-deep); }
.about-photo-img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
#sobre-mi .split { align-items: start; }
#sobre-mi .split-text p { font-size: 1rem; }
@media (min-width: 901px) { #sobre-mi .about-photo { position: sticky; top: 100px; } }
.credentials { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.credentials span {
  background: var(--gold-soft);
  color: var(--navy);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
}

/* ===== Booking / Agenda tu cita ===== */
.booking-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 56px 48px;
  box-shadow: 0 18px 50px rgba(20, 42, 48, 0.08);
  position: relative;
  overflow: hidden;
}
.booking-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.booking-head { max-width: 640px; }
.booking-head .section-sub { margin-bottom: 0; }
.booking-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 18px;
  align-items: end;
  margin-top: 38px;
}
.booking-field { display: block; }
.booking-field span {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.booking-field select {
  width: 100%;
  padding: 15px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--cream);
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6b6f' stroke-width='2' stroke-linecap='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
}
.booking-field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(160,125,62,.15);
  background-color: #fff;
}
.booking-btn { padding: 16px 32px; white-space: nowrap; }
.booking-note {
  margin-top: 20px;
  font-size: 0.86rem;
  color: var(--gray);
  line-height: 1.55;
}
@media (max-width: 860px) {
  .booking-card { padding: 40px 26px; border-radius: 20px; }
  .booking-form { grid-template-columns: 1fr; gap: 16px; }
  .booking-btn { width: 100%; margin-top: 4px; }
}

/* ===== Quote band (full-width) ===== */
.quote-band {
  position: relative;
  background-image: linear-gradient(rgba(20,42,48,0.84), rgba(20,42,48,0.90)), url("assets/mariela-boda2.jpg");
  background-size: cover;
  background-position: center 28%;
  background-attachment: fixed;
  text-align: center;
  padding: 116px 24px;
  color: #fff;
}
.quote-mark {
  font-family: var(--serif);
  font-size: 5rem;
  color: var(--gold-light);
  line-height: 0.3;
  display: block;
  margin-bottom: 18px;
}
.quote-text {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.3;
  max-width: 840px;
  margin: 0 auto 18px;
  font-weight: 600;
}
.quote-author {
  color: var(--gold-light);
  letter-spacing: 1.5px;
  font-size: 0.95rem;
  text-transform: uppercase;
}

/* ===== Contact ===== */
.section-dark { background: linear-gradient(160deg, var(--navy), var(--navy-deep)); }
.section-eyebrow.light { color: var(--gold-light); }
.section-title.light, .section-sub.light { color: #fff; }
.section-sub.light { color: rgba(255,255,255,0.78); }

.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: block; margin-bottom: 18px; }
.contact-form label span { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--cream);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(160,125,62,0.15);
  background: #fff;
}
.form-note { font-size: 0.78rem; color: var(--gray); margin-top: 14px; line-height: 1.5; }

/* WhatsApp alternativo */
.form-alt {
  text-align: center;
  font-size: 0.82rem;
  color: var(--gray);
  margin: 16px 0 12px;
  position: relative;
}
.form-alt::before, .form-alt::after {
  content: "";
  position: absolute; top: 50%;
  width: 22%; height: 1px;
  background: var(--line);
}
.form-alt::before { left: 0; }
.form-alt::after { right: 0; }
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.28);
}
.btn-whatsapp:hover { background: #1fb455; }

/* Mensaje de éxito */
.form-success {
  background: var(--white);
  border-radius: var(--radius);
  padding: 52px 36px;
  text-align: center;
  box-shadow: var(--shadow);
}
.success-check {
  display: flex; align-items: center; justify-content: center;
  width: 66px; height: 66px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: 2rem;
}
.form-success h3 { font-family: var(--serif); font-size: 1.7rem; color: var(--navy); margin-bottom: 8px; }
.form-success p { color: var(--gray); }

.contact-info { color: #fff; padding-top: 8px; }
.contact-info h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 22px; color: #fff; }
.contact-info ul { list-style: none; display: grid; gap: 18px; margin-bottom: 30px; }
.contact-info li { display: flex; align-items: center; gap: 14px; font-size: 1rem; }
.contact-info li a:hover { color: var(--gold-light); }
.ci-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.map-embed {
  margin-top: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  line-height: 0;
  border: 3px solid rgba(255,255,255,0.12);
}
.map-embed iframe { display: block; filter: grayscale(0.15); }

.hours { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 22px; }
.hours strong { display: block; color: var(--gold-light); margin-bottom: 6px; font-family: var(--serif); font-size: 1.15rem; }
.hours p { color: rgba(255,255,255,0.8); font-size: 0.95rem; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.7); padding: 50px 0 30px; }
.footer-inner { display: grid; gap: 22px; text-align: center; justify-items: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { width: 50px; }
.footer-brand strong { display: block; font-family: var(--serif); font-size: 1.2rem; color: #fff; }
.footer-brand small { font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-light); }
.footer-disclaimer { font-size: 0.82rem; max-width: 640px; line-height: 1.6; }
.footer-copy { font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 56px; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-badges { justify-content: center; }
  .hero-figure { order: -1; margin-bottom: 16px; }
  .hero-photo-wrap { width: min(300px, 78%); margin: 0 auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { max-width: 420px; margin: 0 auto; width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform 0.3s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 12px; text-align: center; }
  .menu-btn { display: flex; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .brand-text small { display: none; }
  .quote-band { background-attachment: scroll; padding: 80px 24px; }
}
