/* ===== Tokens de color ===== */
:root {
  --gris-claro: #ececea;
  --gris-suave: #f6f5f3;
  --marron: #3a2a24;      /* marrón oscurito */
  --marron-soft: #5a4139;
  --bordo: #7a1f2b;       /* bordó */
  --bordo-dark: #611722;
  --blanco: #ffffff;

  --text: #2c211d;
  --text-soft: #6b5d56;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -20px rgba(58, 42, 36, 0.35);
  --shadow-soft: 0 10px 30px -18px rgba(58, 42, 36, 0.4);
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; background: var(--gris-claro); }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--gris-claro);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; line-height: 1.1; color: var(--marron); }

a { color: inherit; text-decoration: none; }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 24px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; cursor: pointer; border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--bordo); color: var(--blanco); box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--bordo-dark); box-shadow: 0 16px 34px -16px rgba(122, 31, 43, 0.7); }
.btn-outline { background: transparent; color: var(--marron); border-color: var(--marron); }
.btn-outline:hover { background: var(--marron); color: var(--blanco); }
.btn-ghost { background: transparent; color: var(--marron); border-color: rgba(58,42,36,0.2); padding: 9px 18px; }
.btn-ghost:hover { background: var(--marron); color: var(--blanco); }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(236, 236, 234, 0.8);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.3s, background 0.3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px -14px rgba(58,42,36,0.4); background: rgba(246,245,243,0.92); }
.nav { max-width: var(--maxw); margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--marron); color: var(--blanco);
  display: grid; place-items: center;
  font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1.15rem;
  letter-spacing: 0.5px;
}
.brand-name { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; color: var(--marron); }
.nav-links { list-style: none; display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--text-soft); font-weight: 500; font-size: 0.95rem; position: relative; transition: color 0.2s; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--bordo); transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--marron); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { margin-left: 4px; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 64px 24px 80px; text-align: center; }
.hero-inner { max-width: 780px; margin: 0 auto; position: relative; z-index: 2; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 3px; font-size: 0.78rem;
  font-weight: 600; color: var(--bordo); margin-bottom: 20px;
}
.hero-title { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; margin-bottom: 22px; text-wrap: balance; }
.hero-sub { font-size: 1.1rem; color: var(--text-soft); max-width: 620px; margin: 0 auto 28px; text-wrap: pretty; }
.hero-info {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 0 auto 30px;
}
.hero-chip {
  display: inline-flex; align-items: center; gap: 11px; text-align: left;
  padding: 12px 20px; border-radius: 14px;
  background: var(--blanco); border: 1px solid rgba(58,42,36,0.1);
  box-shadow: var(--shadow-soft); color: var(--marron);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
a.hero-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.hero-chip svg { color: var(--bordo); flex-shrink: 0; }
.hero-chip span { display: flex; flex-direction: column; font-weight: 600; font-size: 0.95rem; line-height: 1.35; }
.chip-label {
  text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.68rem;
  font-weight: 700; color: var(--bordo);
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-glow {
  position: absolute; top: -160px; left: 50%; transform: translateX(-50%);
  width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(122,31,43,0.12), transparent 62%);
  z-index: 1; animation: floatGlow 9s ease-in-out infinite alternate;
}
@keyframes floatGlow { to { transform: translateX(-50%) translateY(30px) scale(1.06); } }

/* ===== Secciones ===== */
.section { padding: 84px 0; }
.section-alt { background: var(--gris-suave); }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-kicker { text-transform: uppercase; letter-spacing: 2.5px; font-size: 0.75rem; font-weight: 600; color: var(--bordo); }
.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; margin: 10px 0 14px; }
.section-lead { color: var(--text-soft); font-size: 1.05rem; text-wrap: pretty; }

/* ===== Grid de servicios ===== */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--blanco); border-radius: var(--radius); padding: 30px 26px;
  border: 1px solid rgba(58,42,36,0.07);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.card::before {
  content: ''; display: block; width: 38px; height: 3px; background: var(--bordo);
  border-radius: 3px; margin-bottom: 18px; transition: width 0.35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(122,31,43,0.18); }
.card:hover::before { width: 60px; }
.card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.card p { color: var(--text-soft); font-size: 0.97rem; }

/* ===== Nosotros ===== */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.about-text .section-title { text-align: left; }
.about-text p { color: var(--text-soft); margin-top: 16px; }
.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pill-list li {
  background: var(--blanco); border: 1px solid rgba(58,42,36,0.1);
  padding: 8px 16px; border-radius: 999px; font-size: 0.88rem; font-weight: 500; color: var(--marron);
}
.about-stats { display: grid; gap: 16px; }
.stat {
  background: var(--marron); color: var(--blanco); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease);
}
.stat:hover { transform: translateX(6px); }
.stat-num { display: block; font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 700; color: #e9c9cd; }
.stat-label { font-size: 0.9rem; opacity: 0.85; }

/* ===== Contacto ===== */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: start; }
.form {
  background: var(--blanco); border-radius: var(--radius); padding: 32px;
  border: 1px solid rgba(58,42,36,0.07); box-shadow: var(--shadow-soft);
}
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-size: 0.85rem; font-weight: 600; color: var(--marron); margin-bottom: 7px; }
input, textarea {
  font-family: inherit; font-size: 0.95rem; color: var(--text);
  padding: 12px 14px; border: 1.5px solid rgba(58,42,36,0.15);
  border-radius: var(--radius-sm); background: var(--gris-suave); resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
input:focus, textarea:focus {
  outline: none; border-color: var(--bordo); background: var(--blanco);
  box-shadow: 0 0 0 3px rgba(122,31,43,0.12);
}

.contact-side { display: grid; gap: 24px; }
.info-card {
  background: var(--blanco); border-radius: var(--radius); padding: 28px;
  border: 1px solid rgba(58,42,36,0.07); box-shadow: var(--shadow-soft);
}
.info-card h3 { font-size: 1.5rem; margin-bottom: 18px; }
.info-list { list-style: none; display: grid; gap: 16px; margin-bottom: 22px; }
.info-list li { display: flex; flex-direction: column; }
.info-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--bordo); font-weight: 600; margin-bottom: 3px; }
.info-list a { color: var(--marron); font-weight: 500; transition: color 0.2s; }
  .info-list a:hover { color: var(--bordo); }
  .info-hours { color: var(--marron); font-weight: 500; }

.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid rgba(58,42,36,0.07); }
.map iframe { width: 100%; height: 280px; border: 0; display: block; filter: grayscale(0.2) contrast(1.05); }

/* ===== Footer ===== */
.site-footer { background: var(--marron); color: var(--blanco); padding: 48px 0; text-align: center; }
.footer-inner { display: grid; gap: 12px; justify-items: center; }
.site-footer .brand-name { color: var(--blanco); }
.site-footer .brand-mark { background: var(--bordo); }
.footer-address { opacity: 0.8; font-size: 0.95rem; }
.footer-hours {
  display: inline-block; margin-top: 2px; padding: 6px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.1); font-size: 0.9rem; font-weight: 600; color: #e9c9cd;
}
.footer-copy { opacity: 0.55; font-size: 0.82rem; }

/* ===== WhatsApp flotante ===== */
.wpp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(37,211,102,0.6);
  animation: pulse 2.6s infinite;
  transition: transform 0.25s var(--ease);
}
.wpp-float:hover { transform: scale(1.08); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ===== Animaciones de entrada ===== */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* El hero se anima al cargar */
.hero .reveal { animation: heroIn 0.8s var(--ease) forwards; animation-delay: var(--delay, 0ms); opacity: 0; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero .reveal { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
  .hero-glow, .wpp-float { animation: none !important; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero { padding: 72px 20px 84px; }
  .nav-cta { margin-left: auto; }
}
