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

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

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

/* Layout helpers */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.5rem 0;
}

.section-light {
  background-color: #f5f7fa;
}

.section-colored {
  background: radial-gradient(circle at top left, #66d6ff, #0aa3c8);
  color: #ffffff;
}

.section-dark {
  background: #10212b;
  color: #ffffff;
}

.section-contact {
  background: #e5f6fb;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  margin: 0;
  color: #4b6472;
}

.section-dark .section-header p {
  color: #e3f5ff;
}

/* Header */

.main-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.brand-logo {
  height: 54px;
  width: auto;
}

.main-nav {
  position: relative;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  color: #123040;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-list a:hover {
  color: #0aa3c8;
}

.btn-header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0aa3c8, #22b9df);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(10, 163, 200, 0.4);
}

.btn-header-call:hover {
  opacity: 0.95;
}

/* Nav toggle (mobile) */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0.25rem;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #163444;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  min-height: 75vh;
  background: linear-gradient(135deg, #e8faff, #fdfefe);
}

.hero-media {
  position: relative;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  line-height: 1.1;
  margin-bottom: 0.75rem;
  color: #123040;
}

.hero h1 span {
  display: block;
  font-size: 0.8em;
  color: #0aa3c8;
}

.hero p {
  margin-bottom: 1.5rem;
  color: #415c69;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-data {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 1rem;
  font-size: 0.95rem;
  color: #345260;
}

.hero-data strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.97rem;
}

.btn-primary {
  background: linear-gradient(135deg, #0aa3c8, #22b9df);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(10, 163, 200, 0.45);
}

.btn-primary:hover {
  opacity: 0.96;
}

.btn-outline {
  border: 1px solid #0aa3c8;
  color: #0aa3c8;
  background: rgba(255, 255, 255, 0.85);
}

.btn-outline:hover {
  background: #0aa3c8;
  color: #ffffff;
}

.btn-light {
  background: #ffffff;
  color: #0b7fa0;
}

.btn-light:hover {
  background: #f2fbff;
}

.btn-block {
  width: 100%;
}

/* Services */

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: #ffffff;
  border-radius: 1.1rem;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(15, 52, 71, 0.08);
  display: flex;
  flex-direction: column;
}

.service-card img {
  height: 190px;
  object-fit: cover;
}

.service-body {
  padding: 1.2rem 1.3rem 1.4rem;
}

.service-body h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
  color: #123040;
}

.service-body p {
  margin: 0;
  font-size: 0.92rem;
  color: #4b6472;
}

/* Por qué */

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

.porque-text h2 {
  font-size: 2.1rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.check-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1.3rem;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
  font-size: 0.99rem;
}

.check-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0.05rem;
  font-size: 0.9rem;
  color: #f4ffb5;
}

.porque-note {
  font-size: 0.96rem;
  margin-bottom: 1.3rem;
}

.porque-image img {
  border-radius: 1.3rem;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

/* Galería */

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

.gallery-item {
  border-radius: 0.9rem;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item::after {
  content: "Ver foto";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  text-align: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #ffffff;
}

.gallery-item img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* Modal */

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

.lightbox.visible {
  display: flex;
}

.lightbox-img-wrap {
  max-width: 980px;
  width: 100%;
}

.lightbox-img-wrap img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 1rem;
}

.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
}

/* Redes */

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

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  color: #10212b;
  background: #ffffff;
}

.section-dark .social-link {
  color: #0b4659;
}

.social-link.fb::before,
.social-link.ig::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.social-link.fb::before {
  background: #1877f2;
}

.social-link.ig::before {
  background: radial-gradient(circle at 30% 30%, #fdf497 0, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.embed-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 1rem;
  padding: 0.9rem;
}

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

.embed-wrapper {
  position: relative;
  width: 100%;
  padding-top: 135px;
  background: #0f1920;
  border-radius: 0.7rem;
  overflow: hidden;
}

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

/* Video */

.video-section .video-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
}

.video-wrapper::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

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

/* Contacto */

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

.contact-info h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.contact-list {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 0;
}

.contact-list li {
  margin-bottom: 0.75rem;
  font-size: 0.96rem;
}

.contact-list a {
  color: #0b7fa0;
}

.contact-form-card {
  background: #ffffff;
  border-radius: 1.2rem;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 10px 24px rgba(13, 68, 90, 0.12);
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-row label {
  font-size: 0.9rem;
  font-weight: 500;
}

.form-row input,
.form-row textarea {
  border-radius: 0.7rem;
  border: 1px solid #c7dde6;
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid rgba(10, 163, 200, 0.28);
  border-color: #0aa3c8;
}

/* Footer */

.main-footer {
  padding: 1.8rem 0 2rem;
  background: #0d1d26;
  color: #c6d7e0;
  font-size: 0.9rem;
}

.footer-inner {
  text-align: center;
}

.main-footer a {
  color: #5fd3ff;
  text-decoration: none;
}

.main-footer a:hover {
  text-decoration: underline;
}

/* WhatsApp float */

.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.3rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #25d366;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
  z-index: 60;
}

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

/* Responsive */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr);
  }

  .hero-media {
    order: -1;
    max-height: 320px;
  }

  .hero-media img {
    height: 100%;
  }

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

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

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

  .porque-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .header-inner {
    align-items: center;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: absolute;
    top: 120%;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: #ffffff;
    border-radius: 0.9rem;
    padding: 0.6rem 0.9rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
    min-width: 190px;
    transform-origin: top right;
    transform: scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: 0.18s ease;
  }

  .nav-list.nav-open {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .btn-header-call {
    display: none;
  }

  .hero-content {
    padding-top: 2.2rem;
  }

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

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

  .gallery-item img {
    height: 190px;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: auto;
  }

  .section {
    padding: 2.7rem 0;
  }

  .section-header h2 {
    font-size: 1.7rem;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    right: 1rem;
    bottom: 1rem;
  }
}
