:root {
  --bg: #ffffff;
  --surface: #f9f9f9;
  --surface-alt: #f5f3ef; /* beige claro */
  --text: #1a1a1a;
  --muted: #555555;
  --brand: #1a2e3b; /* azul oscuro del logo */
  --card: #ffffff;
  --ring: rgba(26, 46, 59, 0.25);
  --maxw: 1120px;
  --radius: 12px;
  --shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Secciones */
.section { 
  padding: 64px 0; 
  background: var(--bg); /* por defecto blanco */
}
.section.alt { 
  background: var(--surface); /* gris claro */
}
.section.brand-bg {
  background: var(--brand); /* azul */
  color: #ffffff; /* texto en blanco */
}
.section.beige {
  background: var(--surface-alt); /* beige */
}

/* Ajustes de títulos para contrastes */
.section.brand-bg h2,
.section.brand-bg p,
.section.brand-bg h3 {
  color: #ffffff;
}

.section h2 {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  margin: 0 0 10px;
  color: var(--brand);
}


/* Reset */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

/* Links */
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid #e5e5e5;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand);
  color: white;
  font-size: 20px;
  font-weight: bold;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-title {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 700;
}
.brand-subtitle { font-size: 12px; color: var(--muted); }

.menu { display: flex; gap: 14px; align-items: center; }
.menu a {
  padding: 8px 12px;
  border-radius: 6px;
  transition: 0.2s;
  color: var(--text);
}
.menu a:hover {
  background: var(--brand);
  color: white;
}

/* Botones */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.2s;
}
.btn-primary {
  background: var(--brand);
  color: white;
  border: none;
}
.btn-primary:hover {
  background: #a17822;
}
.btn-ghost {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
}
.btn-ghost:hover {
  background: var(--brand);
  color: white;
}

/* Hero */
.hero {
  padding: 72px 0 40px;
  border-bottom: 1px solid #eee;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: center;
}
.hero-copy h1 {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  line-height: 1.2;
  margin: 0 0 12px;
}
.hero-copy p { color: var(--muted); margin: 0 0 18px; }
.cta-row { display: flex; gap: 12px; margin: 18px 0 12px; }
.badges {
  display: flex; gap: 14px; flex-wrap: wrap;
  padding: 0; margin: 18px 0 0;
  list-style: none; font-size: 14px; color: var(--muted);
}

/* Hero con imagen local */
.hero-card {
  height: 360px;
  border-radius: var(--radius);
  border: 1px solid #ddd;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-card img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.hero-stamp {
  position: absolute;
  top: 16px; right: -40px;
  transform: rotate(20deg);
  background: var(--brand);
  color: white;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .06em;
}

/* Secciones */
.section { padding: 64px 0; }
.section.alt { background: #fafafa; }
.section h2 {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  margin: 0 0 10px;
  color: var(--brand);
}
.section-lead { color: var(--muted); margin: 0 0 24px; }

/* Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid #e5e5e5;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 6px; color: var(--brand); }
.card p { color: var(--muted); margin: 0; }

/* About grid (2 profesionales) */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.about-card {
  background: var(--card);
  border: 1px solid #e5e5e5;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Fotos About */
.about-photo1,
.about-photo2 {
  height: 400px;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo1 img,
.about-photo2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.about-copy {
  padding: 20px;
}
.about-copy h2 {
  font-family: "Playfair Display", serif;
  margin-top: 0;
  color: var(--brand);
}
@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.footer {
  border-top: 1px solid #e5e5e5;
  padding: 18px 0;
  margin-top: 20px;
  background: var(--surface);
  text-align: center;
}
.footer p { color: var(--muted); margin: 0; }

.section.brand-bg .card {
  background: #f5f3ef;
  color: var(--text);
}

.section.brand-bg .card h3 {
  color: var(--brand);
}
.section.brand-bg .card p {
  color: var(--muted);
}

/* Hamburguesa (oculta en desktop) */
.hamburger {
  display: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span,
.hamburger span::before,
.hamburger span::after {
  content: "";
  display: block;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger span::before,
.hamburger span::after {
  position: relative;
}

.hamburger span::before { top: -8px; }
.hamburger span::after { top: 5px; }

/* Mostrar hamburguesa y ocultar menú en móviles */
@media (max-width: 768px) {
  .menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  #menu-toggle:checked ~ .menu {
    max-height: 300px;
    border-top: 1px solid #ddd;
  }
  .menu a {
    display: block;
    padding: 12px;
    border-bottom: 1px solid #eee;
  }
  .hamburger {
    display: flex;
  }
}
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cta-row {
    justify-content: center;
    flex-wrap: wrap;
  }
  .hero-card {
    height: 260px; /* más chico para celular */
    margin-top: 20px;
  }
}
@media (max-width: 480px) {
  .card {
    padding: 14px;
  }
  .section h2 {
    font-size: 24px;
  }
  .hero-copy h1 {
    font-size: 28px;
  }
}
@media (max-width: 600px) {
  .about-photo1,
  .about-photo2 {
    height: 300px;
  }
}
