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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #15323a;
  background-color: #f4fbfb;
  line-height: 1.6;
}

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

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

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(244, 251, 251, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
  gap: 1.5rem;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.site-header h1 {
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

.subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  color: #4a6c75;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  background: linear-gradient(135deg, #53c6c9, #6cdad1);
  color: #063036;
  box-shadow: 0 12px 30px rgba(63, 189, 190, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(63, 189, 190, 0.42);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(63, 189, 190, 0.32);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(83, 198, 201, 0.6);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(83, 198, 201, 0.1);
  box-shadow: none;
}

.btn-outline {
  background: #ffffff;
  border: 1px solid rgba(83, 198, 201, 0.7);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.btn-outline:hover {
  background: #e9fbfb;
}

/* Hero */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: stretch;
  color: #0a262c;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px) brightness(0.55);
  transform: scale(1.04);
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(122, 220, 211, 0.15), transparent 55%),
              radial-gradient(circle at 90% 80%, rgba(30, 71, 97, 0.7), rgba(7, 28, 38, 0.95));
  z-index: -1;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 2.5rem;
  padding-block: 4.5rem;
  color: #e7fdfd;
}

.hero-text h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.hero-text p {
  font-size: 1.02rem;
  max-width: 32rem;
}

.hero-benefits {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 1.8rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.98rem;
}

.hero-benefits li::before {
  content: "•";
  color: #8ff0e0;
  font-weight: 900;
  margin-right: 0.4rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-side {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  background: rgba(8, 30, 41, 0.85);
  padding: 1rem;
  border-radius: 1.5rem;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.55);
  max-width: 340px;
}

.hero-side-img {
  border-radius: 1.1rem;
}

/* Sections */

.section {
  padding-block: 4rem;
}

.section-alt {
  background: #f0faf9;
}

.section h2 {
  font-size: 1.9rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.section-intro {
  margin-top: 0.2rem;
  max-width: 620px;
  color: #48666e;
}

/* About */

.about-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
}

.about-images {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: auto;
  gap: 0.75rem;
}

.about-photo {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.22);
}

.about-photo.small {
  align-self: flex-end;
}

/* Servicios */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.service-card {
  background: #ffffff;
  padding: 1.2rem 1.1rem 1.3rem;
  border-radius: 1.1rem;
  box-shadow: 0 18px 40px rgba(5, 53, 63, 0.08);
  border: 1px solid rgba(176, 222, 219, 0.7);
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.service-card ul {
  padding-left: 1.1rem;
  margin: 0.6rem 0 0;
  color: #55747c;
  font-size: 0.92rem;
}

.services-banner {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.8rem;
  align-items: center;
}

.services-img img {
  border-radius: 1.3rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.services-text h3 {
  margin-top: 0;
}

/* Space / gallery */

.space-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.space-item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
}

.space-item.tall {
  grid-row: span 2;
}

.space-item.wide {
  grid-column: span 2;
}

.space-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.25s ease;
  cursor: zoom-in;
}

.space-item img:hover {
  transform: scale(1.04);
  opacity: 0.96;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 16, 22, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 50;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-height: 90vh;
  border-radius: 1rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.65);
}

.lightbox-close {
  position: absolute;
  top: 1.3rem;
  right: 1.5rem;
  font-size: 1.8rem;
  color: #e9fefe;
  cursor: pointer;
}

/* Video */

.video-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 1.3rem;
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Contacto */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-form {
  background: #ffffff;
  padding: 1.6rem 1.5rem;
  border-radius: 1.3rem;
  box-shadow: 0 18px 40px rgba(8, 57, 68, 0.08);
  border: 1px solid rgba(184, 224, 226, 0.9);
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(116, 167, 171, 0.7);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  background: #f9fefe;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: #45c1c5;
  box-shadow: 0 0 0 1px rgba(69, 193, 197, 0.35);
}

.contact-info {
  display: grid;
  gap: 1.2rem;
}

.contact-card,
.map-card {
  background: #ffffff;
  padding: 1.2rem 1.3rem;
  border-radius: 1.1rem;
  box-shadow: 0 18px 38px rgba(8, 53, 63, 0.07);
  border: 1px solid rgba(203, 231, 229, 0.9);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.5rem;
}

.social-link {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(83, 198, 201, 0.52);
  font-size: 0.9rem;
}

.social-link:hover {
  background: #f0fbfb;
}

.map-wrapper {
  border-radius: 1rem;
  overflow: hidden;
}

.map-wrapper iframe {
  width: 100%;
  height: 220px;
  border: 0;
}

/* Footer */

.site-footer {
  background: #0c252b;
  color: #d8f4f4;
  padding-block: 1.6rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.85rem;
}

.site-footer a {
  color: #8fedeb;
}

/* WhatsApp floating button */

.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366, #1ebe57);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 32px rgba(3, 40, 20, 0.6);
  z-index: 40;
}

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

/* Responsive */

@media (max-width: 960px) {
  .hero-content,
  .about-grid,
  .services-banner,
  .video-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-block: 3.2rem;
  }

  .hero-side {
    justify-content: flex-start;
  }

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

@media (max-width: 720px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

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

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

  .space-item.tall {
    grid-row: auto;
  }

  .space-item.wide {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 1.8rem, 100%);
  }

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

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}
