/* ============================================
   MEDICUBA — Sistema de diseño
   Teal #14B8A6 · Navy #1E3A8A · Coral #F4533D
   ============================================ */

:root {
  --teal: #0FB8A6;
  --teal-dark: #0B8C7D;
  --navy: #1E3A8A;
  --navy-dark: #142a63;
  --coral: #F4533D;
  --coral-dark: #d63f2c;
  --ink: #0F2235;
  --ink-soft: #4A5C70;
  --paper: #FBFEFD;
  --mist: #E8F8F5;
  --mist-deep: #D7F1EC;
  --line: #DCE9E6;
  --white: #FFFFFF;

  --font-display: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -10px rgba(15, 34, 53, 0.15);
  --shadow-lg: 0 20px 50px -15px rgba(15, 34, 53, 0.22);
  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0;
}

h1 { font-weight: 800; }
h2 { font-weight: 800; }
h3 { font-weight: 700; }

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* ---------- Cruz signature marker ---------- */
.cruz {
  display: inline-flex;
  width: 14px;
  height: 14px;
  position: relative;
  flex-shrink: 0;
}
.cruz::before, .cruz::after {
  content: '';
  position: absolute;
  background: var(--teal);
  border-radius: 2px;
}
.cruz::before { width: 14px; height: 4px; top: 5px; left: 0; }
.cruz::after { width: 4px; height: 14px; top: 0; left: 5px; }
.cruz.coral::before, .cruz.coral::after { background: var(--coral); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-dark);
  font-weight: 600;
  margin-bottom: 12px;
}

/* ---------- Header ---------- */
.topbar {
  background: var(--navy);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { opacity: 0.92; }
.topbar a:hover { opacity: 1; text-decoration: underline; }
.topbar-links { display: flex; gap: 18px; align-items: center; }

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.logo img { height: 44px; }
nav.main-nav ul { display: flex; gap: 32px; }
nav.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
}
nav.main-nav a.active { color: var(--teal-dark); }
nav.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 3px;
  background: var(--coral);
  border-radius: 2px;
}
nav.main-nav a:hover { color: var(--teal-dark); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 8px 20px -6px rgba(244,83,61,0.5); }
.btn-coral:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -6px rgba(244,83,61,0.55); }
.btn-outline { border: 2px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 8px 20px -6px rgba(15,184,166,0.5); }
.btn-teal:hover { transform: translateY(-2px); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 80px;
  background: linear-gradient(180deg, var(--mist) 0%, var(--paper) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { font-size: 44px; margin-bottom: 18px; }
.hero h1 span { color: var(--teal-dark); }
.hero p.lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 28px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 28px; color: var(--navy); }
.hero-stats span { font-size: 13px; color: var(--ink-soft); }

.hero-photo {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo .tag {
  position: absolute;
  bottom: 18px; left: 18px;
  background: rgba(255,255,255,0.95);
  padding: 10px 16px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Hero carousel ---------- */
.hero-carousel {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  background: var(--mist-deep);
}
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
}
.carousel-slide.is-active { opacity: 1; visibility: visible; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px;
  background: linear-gradient(160deg, var(--mist-deep), var(--mist));
}
.carousel-placeholder p {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--teal-dark);
  text-align: center;
  line-height: 1.5;
}
.hero-carousel .tag {
  position: absolute;
  bottom: 18px; left: 18px;
  background: rgba(255,255,255,0.95);
  padding: 10px 16px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 5;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  color: var(--navy);
  font-size: 22px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  transition: background 0.15s ease;
}
.carousel-arrow:hover { background: #fff; }
.carousel-arrow.prev { left: 14px; }
.carousel-arrow.next { right: 14px; }
.carousel-dots {
  position: absolute;
  bottom: 18px; right: 18px;
  display: flex; gap: 8px;
  z-index: 5;
}
.carousel-dots .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  transition: background 0.15s ease, transform 0.15s ease;
}
.carousel-dots .dot.is-active { background: var(--coral); transform: scale(1.2); }

/* ---------- Sections generic ---------- */
section { padding: 80px 0; }
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head h2 { font-size: 34px; }
.section-head p { color: var(--ink-soft); margin-top: 14px; font-size: 17px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.bg-mist { background: var(--mist); }
.bg-navy { background: var(--navy); color: #fff; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy .ink-soft-light { color: rgba(255,255,255,0.75); }

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.why-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.why-card .cruz { margin-bottom: 16px; transform: scale(1.3); }
.why-card h3 { font-size: 19px; margin-bottom: 10px; }
.why-card p { color: var(--ink-soft); font-size: 15px; }

/* ---------- Specialties grid ---------- */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.spec-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.spec-card:hover { border-color: var(--teal); transform: translateY(-3px); }
.spec-card .cruz { margin-top: 4px; }
.spec-card h4 { font-size: 16px; color: var(--navy); margin-bottom: 4px; }
.spec-card p { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- Dental teaser / split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

/* ---------- Team / equipo ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.team-card {
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 16px;
}
.team-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--mist-deep);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  color: var(--teal-dark);
}
.team-card h4 { font-size: 14.5px; color: var(--navy); margin-bottom: 6px; }
.team-card span { font-size: 12px; color: var(--ink-soft); font-family: var(--font-mono); line-height: 1.6; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--coral);
  border-radius: 24px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: #fff;
}
.cta-banner h3 { color: #fff; font-size: 26px; }
.cta-banner .btn-outline { border-color: #fff; color: #fff; }
.cta-banner .btn-outline:hover { background: #fff; color: var(--coral); }

/* ---------- Info cards (contact) ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.info-card .eyebrow { margin-bottom: 8px; }
.info-card p { color: var(--ink-soft); font-size: 14.5px; }
.info-card a.link { color: var(--teal-dark); font-weight: 600; }

/* ---------- Form ---------- */
.form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}
.form-note { font-size: 13px; color: var(--ink-soft); margin-top: 10px; }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 0;
  width: 100%;
  height: 100%;
  min-height: 380px;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 24px;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 16px; font-family: var(--font-display); }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--teal); }
.footer-logo img { height: 38px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-grid p { color: rgba(255,255,255,0.65); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px; flex-wrap: wrap; gap: 10px;
  color: rgba(255,255,255,0.55); font-size: 13px;
}
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
.social-row a svg { display: block; }
.social-row a:hover { background: var(--teal); }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  bottom: 22px; right: 22px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -6px rgba(37,211,102,0.6);
  z-index: 60;
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  background: var(--navy);
  padding: 56px 0;
  color: #fff;
}
.page-hero .eyebrow { color: var(--teal); }
.page-hero h1 { color: #fff; font-size: 36px; }
.page-hero p { color: rgba(255,255,255,0.75); margin-top: 12px; max-width: 560px; }
.crumbs { font-family: var(--font-mono); font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 14px; }
.crumbs span { color: var(--teal); }

/* ---------- Utility ---------- */
.mt-64 { margin-top: 64px; }
.two-col-text { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.list-check li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: 15.5px; color: var(--ink-soft); }
.list-check .cruz { margin-top: 4px; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo, .hero-carousel { order: -1; aspect-ratio: 16/10; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .two-col-text { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .topbar { display: none; }
  nav.main-nav { position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--paper); flex-direction: column; justify-content: center;
    transform: translateX(100%); transition: transform 0.25s ease; z-index: 100; }
  nav.main-nav.open { transform: translateX(0); }
  nav.main-nav ul { flex-direction: column; align-items: center; gap: 28px; }
  nav.main-nav a { font-size: 22px; }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; z-index: 101; padding: 8px; }
  .nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; }
  .nav-cta { display: none; }
  .hero h1 { font-size: 32px; }
  .why-grid, .spec-grid, .team-grid, .info-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
  section { padding: 56px 0; }
}
