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

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

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

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

.container {
  width: min(1100px, 100% - 2rem);
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 70vh;
  background-image: url("../img/cielo_escaleras.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 16, 54, 0.8), rgba(0, 16, 54, 0.9));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0 3rem;
}

.hero-logo {
  width: 90px;
  margin: 0 auto 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.hero-subtitle {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn.primary {
  background: #ffb43a;
  color: #10182f;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.btn.primary:hover {
  background: #ffc766;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.25);
}

.btn.ghost {
  background: transparent;
  border-color: #ffb43a;
  color: #ffdd8a;
}

.btn.ghost:hover {
  background: rgba(255, 180, 58, 0.1);
}

.btn.full {
  width: 100%;
  text-align: center;
}

.mt-1 {
  margin-top: 1rem;
}

main {
  padding-bottom: 3rem;
}

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, #f4f6fb, #e9edf7);
}

.section-inner {
  display: block;
}

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

.section-header h2 {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
  color: #102039;
}

.section-header p {
  color: #5a6684;
}

.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 2.5rem 0 0;
}

.strip-item {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(9, 24, 63, 0.08);
}

.strip-item h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #13326b;
}

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

.image-card {
  background: #0f2145;
  padding: 0.7rem;
  border-radius: 1.2rem;
  box-shadow: 0 20px 40px rgba(9, 24, 63, 0.35);
}

.image-card img {
  border-radius: 0.9rem;
}

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

.check-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.5rem;
  color: #24345b;
}

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

.highlight {
  margin-top: 1rem;
  font-weight: 600;
  color: #13326b;
}

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

.price {
  font-size: 2rem;
  font-weight: 700;
  color: #ffb43a;
  margin-top: 0.2rem;
  margin-bottom: 0.8rem;
}

/* Galería */

.gallery {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery img {
  border-radius: 0.9rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gallery img:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(0,0,0,0.25);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 999;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 1rem;
}

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

/* Video */

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(9, 24, 63, 0.25);
}

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

/* Contacto */

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

.contact-list li {
  margin-bottom: 0.4rem;
  color: #24345b;
}

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

.social-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
}

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

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

.contact-form {
  background: #ffffff;
  padding: 1.8rem;
  border-radius: 1.2rem;
  box-shadow: 0 16px 35px rgba(9, 24, 63, 0.12);
}

.contact-form h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #102039;
}

.contact-form label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  color: #5a6684;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 0.6rem;
  border: 1px solid #ccd3ea;
  font: inherit;
  margin-bottom: 0.8rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #ffb43a;
  box-shadow: 0 0 0 3px rgba(255, 180, 58, 0.25);
}

.form-note {
  font-size: 0.8rem;
  color: #6d7590;
  margin-top: 0.25rem;
}

/* Ubicación */

.location {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  color: #24345b;
}

/* WhatsApp float */

.whatsapp-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 12px 25px rgba(0,0,0,0.3);
  z-index: 1000;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
}

/* Footer */

.footer {
  background: #081226;
  color: #d7def5;
  text-align: center;
  padding: 1rem 0 1.3rem;
  font-size: 0.85rem;
}

.footer a {
  color: #ffdd8a;
}

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

/* Responsive */

@media (max-width: 900px) {
  .grid-2,
  .cremacion-grid {
    grid-template-columns: 1fr;
  }

  .image-card {
    order: -1;
  }

  .hero {
    min-height: 80vh;
  }
}

@media (max-width: 600px) {
  .hero-content {
    padding-top: 3.5rem;
  }

  .strip {
    padding-top: 2rem;
  }

  .section {
    padding: 3rem 0;
  }

  .contact-form {
    padding: 1.4rem;
  }
}
