/* ─────────────────────────────────────────
   Variables
───────────────────────────────────────── */
:root {
  --color-primary:       #2a5c50;
  --color-primary-dark:  #1e4439;
  --color-accent:        #e05a45;
  --color-accent-hover:  #c94e3a;
  --color-whatsapp:      #25d366;
  --color-whatsapp-hover:#1ebe58;
  --color-text:          #2a5c50;
  --color-text-muted:    #6e5e5a;
  --color-bg:            #fdf0eb;
  --color-bg-alt:        #f5e2da;
  --color-surface:       #ffffff;
  --color-border:        #f0d5cc;

  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-card: 16px;
  --radius-btn:  50px;
  --shadow-card-hover: 0 8px 40px rgba(42, 92, 80, 0.12);

  --spacing-section: 100px;
}

/* ─────────────────────────────────────────
   Reset
───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

/* ─────────────────────────────────────────
   Accessibility
───────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  background: var(--color-accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

/* ─────────────────────────────────────────
   Layout
───────────────────────────────────────── */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─────────────────────────────────────────
   Nav
───────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--color-accent); }

.btn-nav {
  background: var(--color-accent) !important;
  color: #fff !important;
  padding: 8px 22px;
  border-radius: var(--radius-btn);
}

.btn-nav:hover {
  background: var(--color-accent-hover) !important;
  color: #fff !important;
}

/* ─────────────────────────────────────────
   Buttons
───────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn:active { transform: scale(0.97); }

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
}
.btn-whatsapp:hover { background: var(--color-whatsapp-hover); }

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-bg-alt);
}
.btn-outline:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-bg-alt);
}

/* ─────────────────────────────────────────
   Hero
───────────────────────────────────────── */
.hero {
  background: var(--color-surface);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 80px;
  padding: 100px 24px;
}

.hero-text { flex: 1; }

.hero-image {
  flex-shrink: 0;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--color-bg-alt);
  box-shadow: 0 20px 60px rgba(42, 92, 80, 0.15);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.1) brightness(1.03);
  display: block;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 700;
  background: rgba(224, 90, 69, 0.1);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--color-primary);
  margin-bottom: 16px;
  text-wrap: balance;
}

.hero-title {
  font-size: 1rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--color-bg);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  transition: background 0.2s, border-color 0.2s;
}

.hero-badge:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-accent);
}

/* ─────────────────────────────────────────
   Trust
───────────────────────────────────────── */
.trust {
  background: var(--color-primary);
  padding: 56px 0;
}

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

.trust-item {
  text-align: center;
  color: #fff;
}

.trust-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 14px;
}

.trust-item h3 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  color: #fff;
}

.trust-item p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

/* ─────────────────────────────────────────
   Services
───────────────────────────────────────── */
.services {
  padding: var(--spacing-section) 0;
  background: var(--color-bg);
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 700;
  background: rgba(224, 90, 69, 0.1);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.services h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 56px;
}

/* centrar el eyebrow + h2 */
.services .container > .section-eyebrow,
.services .container > h2 {
  display: block;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

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

.card h3 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ─────────────────────────────────────────
   Contact
───────────────────────────────────────── */
.contact {
  padding: var(--spacing-section) 0;
  background: var(--color-primary-dark);
  color: #fff;
  text-align: center;
}

.contact h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  margin-bottom: 36px;
}

.contact-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.contact .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.contact .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.9);
}

.contact-location {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ─────────────────────────────────────────
   Footer
───────────────────────────────────────── */
footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 20px 0;
  font-size: 0.8rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ─────────────────────────────────────────
   Responsive
───────────────────────────────────────── */
@media (max-width: 700px) {
  :root { --spacing-section: 64px; }

  .hero-inner {
    flex-direction: column-reverse;
    gap: 36px;
    padding: 64px 24px;
    text-align: left;
  }

  .hero-image {
    width: 220px;
    height: 220px;
  }

  .trust-grid { grid-template-columns: 1fr; gap: 32px; }

  .hero-badges { justify-content: flex-start; }

  .grid { grid-template-columns: 1fr; }

  .btn { padding: 13px 24px; font-size: 0.9rem; }

  .nav-links { gap: 20px; }
}
