:root {
  --color-bg: #FAFAFA;
  --color-text: #111111;
  --color-accent: #D4AF37;
  --color-muted: rgba(17, 17, 17, 0.62);
  --color-line: rgba(17, 17, 17, 0.12);
  --space-section: clamp(4rem, 9vw, 7rem);
  --max-content: 1080px;
}

html,
body {
  overflow-x: hidden;
}

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

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* ── Header ── */

header {
  padding: 2rem 1.5rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--color-line);
}

header h1 {
  font-size: clamp(1.45rem, 6vw, 1.9rem);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.header-location {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--color-muted);
  letter-spacing: 1px;
}

.header-nav {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.header-nav a {
  transition: opacity 0.2s;
}

.header-nav a:hover {
  opacity: 0.55;
}

/* ── Sections ── */

section {
  padding: var(--space-section) clamp(1rem, 5vw, 1.5rem);
  max-width: 640px;
  margin: 0 auto;
}

section h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
  letter-spacing: 1px;
}

.section-sub {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-muted);
  max-width: 460px;
  margin: 0 auto 2rem;
}

/* ── Hero ── */

#hero {
  text-align: center;
  padding-top: clamp(5rem, 12vw, 8rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

#hero h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.25;
  margin-bottom: 1rem;
}

#hero p {
  font-size: 0.95rem;
  color: var(--color-muted);
  max-width: 480px;
  margin: 0 auto 1.75rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

/* ── Buttons ── */

.btn-primary {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: var(--color-text);
  color: var(--color-bg);
  font-family: inherit;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-secondary {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid var(--color-text);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-secondary:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

/* ── Servicios ── */

#servicios ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.servicio-card {
  padding: clamp(1.5rem, 4vw, 2rem);
  border: 1px solid var(--color-line);
  background: rgba(255, 255, 255, 0.35);
}

.servicio-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.servicio-card p {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.badge {
  display: inline-block;
  margin-top: 0.6rem;
  background: var(--color-accent);
  color: var(--color-bg);
  font-size: 0.65rem;
  padding: 0.2rem 0.55rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Confianza ── */

#confianza {
  text-align: center;
}

.trust-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.trust-item {
  padding: 1.25rem;
}

.trust-icon {
  display: block;
  font-size: 0.6rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.trust-item h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.trust-item p {
  font-size: 0.85rem;
  color: var(--color-muted);
  max-width: 320px;
  margin: 0 auto;
}

/* ── Experiencia ── */

#experiencia {
  text-align: center;
}

#experiencia p {
  font-size: 0.95rem;
  color: var(--color-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Citas ── */

#citas {
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

#citas form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

#citas label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

#citas input,
#citas select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--color-text);
  background: var(--color-bg);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

#citas input:focus,
#citas select:focus {
  border-color: var(--color-accent);
  outline: none;
}

#citas button {
  padding: 0.9rem;
  border: none;
  background: var(--color-text);
  color: var(--color-bg);
  font-family: inherit;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: opacity 0.2s;
}

#citas button:hover {
  opacity: 0.85;
}

/* ── Footer ── */

footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--color-line);
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--color-muted);
}

.footer-brand {
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.footer-address {
  max-width: 460px;
  margin: 0 auto;
}

.footer-whatsapp {
  margin-top: 0.25rem;
}

footer .social {
  margin-top: 0.75rem;
}

footer .social a {
  margin: 0 0.4rem;
  border-bottom: 1px solid var(--color-text);
  color: var(--color-text);
  transition: opacity 0.2s;
}

footer .social a:hover,
footer .social a:focus-visible {
  opacity: 0.55;
}

/* ── Skip link ── */

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  transform: translateY(-150%);
  background: var(--color-text);
  color: var(--color-bg);
  padding: 0.75rem 1rem;
  z-index: 100;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ── Touch targets ── */

.btn-primary,
.btn-secondary,
#citas button {
  min-height: 44px;
}

/* ── Reduced motion ── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ── Focus visible ── */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ── Responsive Desktop ── */

@media (min-width: 768px) {
  section {
    max-width: var(--max-content);
  }

  #hero p {
    max-width: 560px;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }

  .servicios-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .trust-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  #citas form {
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (min-width: 1024px) {
  .servicios-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 380px) {
  .hero-actions {
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
}
