:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --surface-alt: #f4f6f9;
  --text: #1c2229;
  --muted: #52606d;
  --border: #e4e7eb;
  --accent: #1b365d;
  --accent-hover: #122540;
  --accent-soft: #f0f4f8;
  --gold-muted: #9a7b4f;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

h1, h2, h3, .brand-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 1.25rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  height: 48px;
  width: auto;
  display: block;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

nav a:hover,
nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
  }

  nav.is-open {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }

  nav a {
    display: inline-block;
    padding: 0.25rem 0;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 3px;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
}

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

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Page Header & Hero */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0 3rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  margin-bottom: 1rem;
}

.page-hero p {
  max-width: 64ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.quote-strip {
  margin-top: 1.5rem;
  padding: 1rem 1.35rem;
  background: var(--bg);
  border-left: 3px solid var(--gold-muted);
  border-radius: 0 4px 4px 0;
  color: var(--text);
  font-size: 0.98rem;
  max-width: 68ch;
}

/* Hero Carousel (Inicio) */
.carousel {
  position: relative;
  margin-top: 2rem;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--accent-soft);
}

.carousel-track {
  position: relative;
  height: 260px;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border: 1px solid var(--border);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
}

.carousel-btn:hover {
  background: #ffffff;
}

.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.carousel-dot.is-active {
  background: #ffffff;
  transform: scale(1.15);
}

/* Alternating Sections */
section {
  padding: 3.75rem 0;
}

.band-warm {
  background: var(--bg);
}

.band-soft {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.band-white {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  margin-bottom: 2.25rem;
}

.section-header h2 {
  font-size: 2.15rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--muted);
  max-width: 64ch;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 4px;
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(28, 34, 41, 0.06);
  border-top-color: var(--gold-muted);
}

.card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.65rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.text-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
}

.text-link:hover {
  text-decoration: underline;
}

/* Two-column layout with sidebar contact card */
.layout-sidebar {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 860px) {
  .layout-sidebar {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold-muted);
  border-radius: 4px;
  padding: 2rem;
}

.contact-card h2 {
  font-size: 1.8rem;
  margin: 0.25rem 0 1.25rem;
}

.meta-block {
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.meta-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

/* Services list & grid */
.service-list {
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.service-list li {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.18s ease;
}

.service-list li:hover {
  background: var(--accent-soft);
}

.service-list li:last-child {
  border-bottom: none;
}

.service-list span {
  font-weight: 500;
  color: var(--text);
}

/* Team profiles */
.team-header-art {
  text-align: center;
  margin-bottom: 1.5rem;
}

.team-header-art img {
  max-width: 140px;
  height: auto;
}

.team-member {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  padding: 2.25rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2.5rem;
  align-items: start;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.team-member:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(28, 34, 41, 0.06);
}

@media (max-width: 780px) {
  .team-member {
    grid-template-columns: 1fr;
  }
  .team-photo {
    order: -1;
    max-width: 240px;
  }
}

.team-member h2 {
  font-size: 1.9rem;
  margin-bottom: 0.65rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.pill {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.cv-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--text);
  font-size: 0.95rem;
}

.cv-list > li {
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}

.cv-sublist {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
  color: var(--muted);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.25rem 1rem;
}

.team-photo img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--border);
  display: block;
}

/* Map box */
.map-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.map-frame {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

.map-caption {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--border);
}

/* Contact Form */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 4px;
  padding: 2.25rem;
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #cbd2d9;
  border-radius: 3px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s ease;
}

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

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Footer */
footer {
  background: var(--text);
  color: #cbd5e1;
  padding: 3rem 0;
  font-size: 0.9rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
}

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

footer h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

footer a {
  color: #cbd5e1;
  text-decoration: none;
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #94a3b8;
}