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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #183447;
  background-color: #f7fafb;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.site-header {
  position: relative;
  color: #ffffff;
  overflow: hidden;
}

.top-bar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: rgba(7, 81, 104, 0.9);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  width: 64px;
  height: auto;
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 0.15rem;
}

.brand-text h1 {
  font-size: 1.25rem;
  line-height: 1.1;
}

.brand-text p {
  font-size: 0.8rem;
  opacity: 0.85;
}

.main-nav {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
}

.main-nav a {
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease;
  font-size: 0.9rem;
}

.btn-primary {
  background: #f7a800;
  color: #183447;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.16);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-call {
  margin-left: 1rem;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: 64vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(5, 52, 70, 0.4), rgba(5, 52, 70, 0.8)), url("../img/portada.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 55%);
}

.hero-content {
  position: relative;
  max-width: 780px;
  text-align: center;
  color: #ffffff;
}

.hero-content h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1rem;
  max-width: 580px;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.hero-hours {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.section {
  padding: 3.5rem 1.5rem;
}

.section:nth-of-type(odd) {
  background: #ffffff;
}

.section:nth-of-type(even) {
  background: #f0f7fa;
}

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

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  color: #073548;
}

.section-intro {
  max-width: 620px;
  margin-bottom: 2rem;
  color: #476577;
}

.two-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.card {
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  padding: 1.25rem;
}

.about-photo img {
  border-radius: 1rem;
}

.highlights {
  list-style: none;
  margin-top: 1rem;
}

.highlights li {
  margin-bottom: 0.35rem;
  color: #234557;
}

.specials {
  text-align: center;
}

.specials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.specials-grid .card {
  padding: 0;
  overflow: hidden;
  text-align: left;
}

.specials-grid img {
  border-radius: 1.25rem 1.25rem 0 0;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.specials-grid h3 {
  font-size: 1.1rem;
  margin: 0.85rem 1rem 0.35rem;
}

.specials-grid p {
  font-size: 0.95rem;
  margin: 0 1rem 1.1rem;
  color: #4a6a7d;
}

.media-section .media-wrap {
  align-items: flex-start;
}

.video-wrapper {
  margin-top: 1rem;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.video-wrapper iframe {
  width: 100%;
  height: 260px;
}

.social-card {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin: 1rem 0;
}

.social-btn {
  flex: 1;
  padding: 0.6rem 0.75rem;
  border-radius: 999px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.social-btn.fb {
  background: #1877f2;
  color: #ffffff;
}

.social-btn.ig {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
  color: #ffffff;
}

.fb-embed iframe {
  width: 100%;
  border-radius: 0.75rem;
}

/* Gallery */
.gallery-section {
  position: relative;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.gallery-item {
  border-radius: 0.9rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  height: 140px;
  object-fit: cover;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
  opacity: 0.95;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 16, 24, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 1rem;
}

.lightbox img {
  max-width: min(90vw, 960px);
  max-height: 86vh;
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
}

/* Family section */
.family-section .card img {
  border-radius: 1rem;
}

/* Branches */
.branches-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.branches-grid .card img {
  border-radius: 1rem;
  height: 100%;
  object-fit: cover;
}

.branch-hours {
  font-size: 0.9rem;
  color: #486576;
  margin-top: 0.4rem;
}

/* Contact */
.contact-info p {
  margin-bottom: 0.45rem;
}

.contact-info a {
  color: #0f6fa0;
}

.map-placeholder {
  margin-top: 1.2rem;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  border: 1px dashed #a4c4d4;
  font-size: 0.9rem;
  color: #456070;
  background: #f4fbff;
}

.contact-form h3 {
  margin-bottom: 0.7rem;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 0.7rem;
  border: 1px solid #c3d3dd;
  padding: 0.55rem 0.7rem;
  margin-top: 0.25rem;
  font-family: inherit;
  font-size: 0.9rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #0f7ba8;
  border-color: transparent;
}

/* Footer */
.site-footer {
  background: #062532;
  color: #c2d7e2;
  padding: 1.75rem 1.5rem;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: center;
}

.site-footer a {
  color: #f7a800;
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  z-index: 50;
}

.wa-icon {
  font-size: 1.6rem;
}

/* Responsive */
@media (max-width: 960px) {
  .two-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .specials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .branches-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-bar {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .btn-call {
    order: 3;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .top-bar {
    justify-content: center;
  }

  .brand-text h1 {
    font-size: 1rem;
  }

  .brand-text p {
    font-size: 0.75rem;
  }

  .main-nav {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .specials-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .branches-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .video-wrapper iframe {
    height: 220px;
  }

  .section {
    padding-inline: 1.1rem;
  }
}
