:root {
  --gold:       #C9A84C;
  --gold-dark:  #9A7A2E;
  --gold-light: #E8D08A;
  --jade:       #3D6B35;
  --jade-light: #5A8F50;
  --black:      #1A1A1A;
  --white:      #FFFFFF;
  --cream:      #FAF8F5;
  --gray:       #6B6B6B;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  color: var(--black);
  background: var(--cream);
}

/* ---- BARRA SUPERIOR ---- */
.topbar {
  background: var(--black);
  color: var(--gold-light);
  text-align: center;
  padding: 12px 16px;
  font-size: 1rem;
  letter-spacing: 2px;
  font-weight: 700;
}

.hero-logo-mobile { display: none; }

@media (max-width: 768px) {
  .topbar {
    font-size: 0.78rem;
    letter-spacing: 1px;
    padding: 8px 12px;
  }
  header {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 188px;
    padding: 0;
  }
  header img {
    height: 215px;
    width: auto;
  }
  .hero {
    padding: 24px 20px 32px;
  }
  .hero-badge {
    display: none;
  }
  .hero h1 {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }
  .gold-line {
    margin: 0 auto 14px;
  }
  .hero p {
    font-size: 0.88rem;
    margin-bottom: 22px;
    line-height: 1.6;
  }
  .btn-primary {
    padding: 13px 32px;
    font-size: 0.85rem;
  }
}

/* ---- HEADER ---- */
header {
  background: linear-gradient(180deg, #ffffff 0%, #faf8f4 100%);
  text-align: center;
  padding: 36px 20px 28px;
  border-bottom: 2px solid var(--gold-light);
}

header img {
  height: 220px;
  width: auto;
  display: block;
  margin: 0 auto;
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(160deg, #1c1408 0%, #2e2010 50%, #1c1408 100%);
  text-align: center;
  padding: 64px 24px 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(201,168,76,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 50%, rgba(61,107,53,0.12) 0%, transparent 55%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
}

.hero-badge {
  display: inline-block;
  border: 1px solid rgba(201,168,76,0.5);
  color: var(--gold-light);
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 6px 22px;
  margin-bottom: 28px;
  border-radius: 2px;
  position: relative;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--white);
  position: relative;
}

.hero h1 span {
  color: var(--gold);
  font-style: italic;
}

.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.85;
  font-weight: 300;
  position: relative;
}

.gold-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 36px;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--white);
  text-decoration: none;
  padding: 16px 44px;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 3px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.4);
}

/* ---- INTRO STRIP ---- */
.intro-strip {
  background: var(--black);
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.intro-item {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 28px 20px;
  border-right: 1px solid #333;
  color: var(--cream);
}

.intro-item:last-child { border-right: none; }

.intro-item .num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--gold);
}

.intro-item p {
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #aaa;
  margin-top: 4px;
}

/* ---- SECCIÓN PROCEDIMIENTOS ---- */
.section-title {
  text-align: center;
  padding: 70px 20px 10px;
}

.section-title .label {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}

.section-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--black);
  margin-bottom: 16px;
}

.section-title p {
  color: var(--gray);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 300;
}

/* ---- GRID DE PROCEDIMIENTOS ---- */
.procedures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 50px auto 70px;
  padding: 0 24px;
}

.card {
  background: var(--white);
  border: 1px solid #ede8de;
  border-radius: 6px;
  padding: 36px 28px;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--jade), var(--gold));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.10);
  border-color: var(--gold-light);
}

.card:hover::before { transform: scaleX(1); }

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 18px;
  display: block;
}

.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--black);
  margin-bottom: 12px;
  line-height: 1.3;
}

.card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
  font-weight: 300;
}

.card-tag {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-dark);
  border-bottom: 1px solid var(--gold-light);
  padding-bottom: 2px;
}

/* ---- BANNER MEDIO ---- */
.mid-banner {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2416 100%);
  padding: 70px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mid-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.mid-banner h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
}

.mid-banner h2 em {
  color: var(--gold);
  font-style: italic;
}

.mid-banner p {
  color: #bbb;
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.7;
  font-weight: 300;
  position: relative;
}

/* ---- POR QUÉ ELEGIRNOS ---- */
.why-section {
  background: var(--cream);
  padding: 70px 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.why-item {
  text-align: center;
}

.why-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.6rem;
}

.why-item h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.why-item p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.7;
  font-weight: 300;
}

/* ---- FORMULARIO / CTA ---- */
.cta-section {
  background: var(--white);
  padding: 80px 24px;
  text-align: center;
  border-top: 1px solid #ede8de;
}

.cta-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 12px;
}

.cta-section > p {
  color: var(--gray);
  margin-bottom: 40px;
  font-weight: 300;
}

form.contact-form {
  max-width: 480px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--black);
  background: var(--cream);
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-note {
  font-size: 0.78rem;
  color: #aaa;
  margin-top: 10px;
}

/* ---- WHATSAPP FLOTANTE ---- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #25D366;
  color: var(--white);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 2.6rem;
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
  z-index: 999;
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 36px rgba(37,211,102,0.7);
}

/* ---- FOOTER ---- */
footer {
  background: var(--black);
  color: #888;
  text-align: center;
  padding: 36px 20px;
  font-size: 0.82rem;
  line-height: 1.8;
}

footer .footer-brand {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .intro-item { min-width: 50%; border-right: none; border-bottom: 1px solid #333; }
  .procedures { grid-template-columns: 1fr; }
}
