/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: #16223B;
  background: #FBFCFE;
  line-height: 1.6;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 700; }
p { margin: 0 0 1em; color: #55647A; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; }

:root {
  --navy: #123E8C;
  --navy-dark: #0A1F5C;
  --blue: #2E7BD6;
  --blue-dark: #1D5EBF;
  --blue-light: #4FA8E8;
  --bg-soft: #F4F8FD;
  --bg-blue-soft: #EAF3FC;
  --text-dark: #16223B;
  --text-muted: #55647A;
  --white: #FFFFFF;
  --gold: #FFB400;
  --shadow: 0 10px 30px rgba(10, 31, 92, 0.1);
  --shadow-sm: 0 4px 14px rgba(10, 31, 92, 0.08);
  --radius: 16px;
  --wa-green: #25D366;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-whatsapp {
  background: var(--wa-green);
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 211, 102, .35);
}
.btn-whatsapp:hover { box-shadow: 0 10px 22px rgba(37, 211, 102, .45); }
.btn-header { padding: 9px 16px; font-size: 0.88rem; }
.btn-outline {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue-dark);
}
.btn-outline:hover { background: var(--bg-blue-soft); }
.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 6px 16px rgba(18, 62, 140, .35);
}
.btn-primary:hover { background: var(--navy-dark); }
.icon-wa { width: 18px; height: 18px; flex-shrink: 0; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(10,31,92,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 54px; height: 54px; flex-shrink: 0; object-fit: contain; }

.main-nav { display: flex; gap: 24px; }
.main-nav a { font-weight: 600; font-size: .93rem; color: var(--text-dark); position: relative; padding: 4px 0; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--blue); transition: width .2s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  border: none;
  background: var(--bg-soft);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--text-dark); margin: 0 auto; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 150px 0 90px;
  overflow: hidden;
  background: linear-gradient(180deg, #EEF5FD 0%, #FBFCFE 100%);
}
.hero-blob {
  position: absolute;
  top: -120px; right: -140px;
  width: 480px; height: 480px;
  background: radial-gradient(circle at 30% 30%, var(--bg-blue-soft), #DCEBFA);
  border-radius: 50%;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: var(--bg-blue-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  color: var(--text-dark);
}
.hero-sub { font-size: 1.08rem; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #E1EBFA;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
  font-size: .92rem;
  color: var(--text-dark);
  transition: transform .2s ease, box-shadow .2s ease;
}
.rating-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.rating-stars { color: var(--gold); letter-spacing: 2px; font-size: 1rem; }
.rating-text strong { color: var(--navy); }

/* ===== Section shared ===== */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--text-dark); }

/* ===== About ===== */
.about { background: linear-gradient(180deg, #FBFCFE 0%, #F4F8FD 100%); }
.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.about-copy p { font-size: 1rem; }
.about-copy h2 { color: var(--text-dark); font-size: clamp(1.5rem, 3vw, 2.1rem); }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}
.about-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  font-size: .88rem;
  color: var(--text-dark);
}
.about-stat-num { font-size: 1.3rem; }

/* ===== Services ===== */
.services { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-icon { display: inline-flex; width: 48px; height: 48px; margin-bottom: 16px; }
.service-card h3 { font-size: 1.1rem; color: var(--text-dark); }
.service-card p { margin: 0; font-size: .93rem; }

/* ===== Gallery ===== */
.gallery { background: var(--bg-soft); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 30px 0;
  margin: 0;
}
.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-sm);
  background: #E6EEF9;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform .3s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* ===== Reviews ===== */
.reviews { background: var(--white); }
.reviews-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: .95rem;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.review-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}
.review-stars { color: var(--gold); letter-spacing: 2px; display: block; margin-bottom: 12px; }
.review-card p { font-size: .95rem; color: var(--text-dark); font-style: italic; }
.review-author { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; color: var(--navy); }
.review-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem;
  font-weight: 700;
  flex-shrink: 0;
}
.reviews-more { text-align: center; margin-top: 36px; }

/* ===== Hours ===== */
.hours { background: var(--bg-soft); }
.open-status {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  font-size: .85rem;
  padding: 5px 14px;
  border-radius: 999px;
}
.open-status.is-open { background: #E3F7EC; color: #1E8A54; }
.open-status.is-closed { background: #FCE9E7; color: #C0392B; }

.hours-table {
  max-width: 640px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #fff;
}
.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 26px;
  background: #fff;
  border-bottom: 1px solid #EEF3FA;
  font-weight: 600;
  color: var(--text-dark);
}
.hours-row:last-child { border-bottom: none; }
.hours-row.today {
  background: var(--bg-blue-soft);
  position: relative;
}
.hours-row.today .hours-day::after {
  content: "Hoy";
  margin-left: 10px;
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  padding: 3px 9px;
  border-radius: 999px;
  vertical-align: middle;
}
.hours-time { color: var(--text-muted); font-weight: 500; }

/* ===== Location ===== */
.location { background: var(--white); }
.location-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
}
.location-address {
  display: flex;
  gap: 12px;
  font-size: 1.02rem;
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 24px;
}
.icon-pin { width: 26px; height: 26px; flex-shrink: 0; color: var(--blue); }
.location-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  line-height: 0;
}

/* ===== Footer ===== */
.site-footer { background: #0A1533; color: #C4CFE0; padding: 60px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-col p { color: #A9B7CF; font-size: .92rem; }
.footer-col a:hover { color: var(--blue-light); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  color: #fff;
  transition: background .2s ease;
}
.footer-social a:hover { background: var(--blue); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  padding: 20px 0;
  font-size: .82rem;
  color: #7C89A8;
}

/* ===== WhatsApp floating widget ===== */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 60px; height: 60px;
  background: var(--wa-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(37, 211, 102, .5);
  z-index: 600;
  animation: wa-pulse 2.4s ease-in-out infinite;
}
.wa-float svg { width: 30px; height: 30px; color: #fff; }
.wa-float:hover { transform: scale(1.08); }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(37, 211, 102, .5); }
  50% { box-shadow: 0 8px 30px rgba(37, 211, 102, .8), 0 0 0 8px rgba(37, 211, 102, .12); }
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 14, 36, .88);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: 86vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,.22); }

/* ===== Scroll fade-in ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-cta { justify-content: center; }
  .rating-badge { margin-left: auto; margin-right: auto; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-art { max-width: 360px; margin: 0 auto; }
  .about-inner { grid-template-columns: 1fr; }
  .about-art { max-width: 360px; margin: 0 auto; }
  .location-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    padding: 16px 20px;
    box-shadow: 0 12px 20px rgba(10,31,92,.1);
    gap: 4px;
  }
  .main-nav.is-open a { padding: 10px 0; border-bottom: 1px solid #EEF4FA; }
  .btn-header span { display: none; }
  .btn-header { padding: 10px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .hero { padding: 130px 0 60px; }
  .about-stats { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .logo-icon { width: 44px; height: 44px; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .wa-float svg { width: 26px; height: 26px; }
  .hours-row { padding: 14px 18px; font-size: .92rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; transition: none; }
  .wa-float { animation: none; }
}
