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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #222;
  background-color: #fafafa;
}

/* Hero & navbar */

.hero {
  position: relative;
  background: linear-gradient(120deg, #5a2c82, #f2643c);
  color: #fff;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35), transparent 50%, rgba(0,0,0,0.45));
  pointer-events: none;
}

.navbar {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.85);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.15);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.brand-subtitle {
  font-size: 0.8rem;
  opacity: 0.9;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.75rem 1.25rem 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 0 0 0.75rem;
}

.hero-text p {
  font-size: 1rem;
  max-width: 32rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.hero-image img {
  width: 100%;
  border-radius: 1.25rem;
  box-shadow: 0 18px 45px rgba(0,0,0,0.4);
  border: 3px solid rgba(255,255,255,0.9);
  object-fit: cover;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.btn.primary {
  background: #ffd86a;
  color: #5a2c82;
  box-shadow: 0 9px 25px rgba(0,0,0,0.3);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

.btn.outline {
  margin-left: 0.5rem;
  border-color: rgba(255,255,255,0.7);
  color: #fff;
  background: transparent;
}

.btn.outline:hover {
  background: rgba(255,255,255,0.16);
}

.btn.full {
  width: 100%;
}

/* Sections */
.section {
  padding: 3rem 1.25rem;
}

.section.alt {
  background: #f3f3fa;
}

.section-header {
  max-width: 900px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-header h2 {
  margin: 0 0 0.5rem;
  font-size: 1.7rem;
  color: #4b245f;
}

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

/* Feature grid */
.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: #fff;
  border-radius: 1.1rem;
  padding: 1.3rem 1.25rem;
  box-shadow: 0 8px 20px rgba(15, 11, 37, 0.08);
  border: 1px solid rgba(90,44,130,0.06);
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  color: #e55a2a;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: #555;
  font-size: 0.93rem;
}

/* Two column block */
.two-column {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr);
  gap: 2.5rem;
  align-items: center;
}

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

.check-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.check-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #e55a2a;
  font-size: 0.85rem;
  line-height: 1.3;
}

.photo-stack {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}

.photo-stack img {
  width: 100%;
  border-radius: 1.2rem;
  box-shadow: 0 18px 45px rgba(0,0,0,0.25);
  border: 3px solid #fff;
}

.photo-stack img.secondary {
  position: absolute;
  right: -10%;
  bottom: -14%;
  width: 70%;
}

/* Gallery */
.gallery-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0.9rem;
  background: #ddd;
  cursor: zoom-in;
}

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

.gallery-item::after {
  content: "Ver más";
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.4rem 0.7rem;
  text-align: right;
  font-size: 0.75rem;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.7));
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.gallery-item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

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

.lightbox.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 960px;
  width: 100%;
}

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

.lightbox-close {
  position: absolute;
  top: -2.2rem;
  right: 0;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* Video */
.video-wrapper {
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

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

/* Social embed */
.social-embed {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.fb-embed iframe {
  width: 100%;
  max-width: 500px;
}

/* Contact */
.contact-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,1fr);
  gap: 2.5rem;
}

.contact-info p {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.contact-info a {
  color: #e55a2a;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.map-wrapper {
  margin-top: 1rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

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

.contact-form-card {
  background: #fff;
  border-radius: 1.1rem;
  padding: 1.5rem 1.4rem;
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.form-group {
  margin-bottom: 0.9rem;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 0.6rem;
  border: 1px solid #d0cfe7;
  font-size: 0.9rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #e55a2a;
  box-shadow: 0 0 0 2px rgba(229, 90, 42, 0.2);
}

/* Footer */
.footer {
  padding: 1.5rem 1.25rem 2rem;
  background: #1b1226;
  color: rgba(255,255,255,0.8);
  text-align: center;
  font-size: 0.85rem;
}

.footer a {
  color: #ffd86a;
  text-decoration: none;
}

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

/* Floating buttons */
.call-button {
  position: fixed;
  right: 1rem;
  bottom: 5rem;
  background: #e55a2a;
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  z-index: 40;
}

.call-button:hover {
  background: #ff7a46;
}

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

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

/* Responsive */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: minmax(0,1fr);
    padding-top: 1.75rem;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    max-height: 260px;
    object-fit: cover;
  }

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

  .photo-stack img.secondary {
    position: static;
    width: 100%;
    margin-top: 1rem;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 1.25rem;
    margin-top: 0.4rem;
    background: rgba(13, 4, 37, 0.96);
    border-radius: 0.85rem;
    padding: 0.35rem;
    flex-direction: column;
    min-width: 180px;
    transform-origin: top right;
    transform: scale(0.95);
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 14px 40px rgba(0,0,0,0.35);
  }

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

  .nav-links li {
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 0.55rem 0.75rem;
  }

  .hero-text p {
    font-size: 0.95rem;
  }

  .call-button {
    right: 0.8rem;
    bottom: 4.8rem;
    padding: 0.6rem 1rem;
  }

  .whatsapp-float {
    right: 0.8rem;
    bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .brand-title {
    font-size: 0.85rem;
  }

  .brand-subtitle {
    display: none;
  }

  .hero-content {
    padding-bottom: 3rem;
  }

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