:root {
  /* Colors */
  --primary: #17472E; /* Dark Green */
  --primary-light: #256A43;
  --primary-soft: #EAF3ED;
  --secondary: #4F4F4F; /* Elegant Gray */
  --light-gray: #F6F7F4;
  --white: #FFFFFF;
  --text-dark: #252A27;
  --text-light: #646B67;
  --accent: #C9A227; /* Premium gold accent */
  --accent-soft: #FFF6D7;
  
  /* Fonts */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;
  
  /* Shadows & Transitions */
  --shadow-sm: 0 3px 10px rgba(22, 38, 30, 0.08);
  --shadow-md: 0 12px 30px rgba(22, 38, 30, 0.12);
  --shadow-lg: 0 22px 55px rgba(22, 38, 30, 0.18);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: #FBFCFA;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.12;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.bg-light {
  background:
    linear-gradient(180deg, rgba(246, 247, 244, 0.93), rgba(246, 247, 244, 0.9)),
    url('../images/ima/cemeteriojaen/20.jpeg') center/cover;
  background-attachment: fixed;
}

section[style*="background-color: var(--primary)"],
section[style*="background: var(--primary)"] {
  background-image:
    linear-gradient(135deg, rgba(10, 31, 22, 0.9), rgba(23, 71, 46, 0.78)),
    url('../images/ima/cemeteriojaen/19.jpeg') !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

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

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-size: 1rem;
  min-height: 48px;
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 0 rgba(23, 71, 46, 0.08);
  backdrop-filter: blur(12px);
  z-index: 1000;
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: var(--transition);
}

.navbar.is-scrolled {
  box-shadow: var(--shadow-md);
}

.navbar.is-scrolled .container {
  height: 70px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 1.45rem;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-weight: 500;
  color: var(--secondary);
  font-size: 1rem;
  padding: 28px 0;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

/* Dropdowns */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 200px;
  box-shadow: var(--shadow-md);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  padding: 10px 0;
  border: 1px solid rgba(23, 71, 46, 0.08);
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 20px;
  color: var(--secondary);
}

.dropdown-item:hover {
  background-color: var(--light-gray);
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--primary-soft);
}

/* Floating WhatsApp */
.floating-wa {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: var(--transition);
  text-decoration: none;
}

.floating-wa:hover {
  transform: scale(1.1);
  color: white;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   HERO SECTION — definición única
================================ */
.hero {
  min-height: 720px;
  background: linear-gradient(90deg, rgba(10, 31, 22, 0.82) 0%, rgba(23, 71, 46, 0.68) 46%, rgba(23, 71, 46, 0.28) 100%), url('../images/ima/cemeteriojaen/28.jpeg') center/cover;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  color: var(--white);
  padding-top: 80px;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  background: #0d281b;
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 26, 17, 0.9) 0%, rgba(23, 71, 46, 0.72) 46%, rgba(23, 71, 46, 0.28) 100%),
    linear-gradient(180deg, rgba(7, 26, 17, 0.28), rgba(7, 26, 17, 0.34));
  z-index: 1;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s ease, transform 6s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-slider-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.hero-slider-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-50%) scale(1.04);
}

.hero-slider-prev {
  left: 24px;
}

.hero-slider-next {
  right: 24px;
}

.hero-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 3;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-slider-dots button {
  width: 36px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: var(--transition);
}

.hero-slider-dots button.active {
  width: 58px;
  background: var(--accent);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.55rem, 6vw, 4.85rem);
  margin-bottom: 20px;
  max-width: 850px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.28);
}

.hero p {
  font-size: 1.22rem;
  margin-bottom: 40px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero-buttons .btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.hero-buttons .btn-outline:hover {
  background-color: var(--white);
  color: var(--primary);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-soft);
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--accent);
}

.hero-assurance {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 34px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-assurance span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.service-grid,
.location-grid,
.process-grid,
.feature-grid {
  display: grid;
  gap: 24px;
}

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

.location-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

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

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.service-card,
.location-card,
.process-card,
.feature-card {
  background: var(--white);
  border: 1px solid rgba(23, 71, 46, 0.09);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.service-card {
  padding: 30px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.service-card:hover,
.location-card:hover,
.process-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.service-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 22px;
}

.service-card p {
  color: var(--text-light);
}

.service-card .btn {
  width: 100%;
  margin-top: auto;
}

.section-kicker {
  color: var(--primary-light);
  font-weight: 700;
  margin-bottom: 8px;
}

.trust-strip {
  background: var(--white);
  border-bottom: 1px solid rgba(23, 71, 46, 0.08);
  box-shadow: var(--shadow-sm);
}

.trust-strip .container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
}

.trust-item {
  padding: 24px 18px;
  border-left: 1px solid rgba(23, 71, 46, 0.08);
}

.trust-item:first-child {
  border-left: 0;
}

.trust-item strong {
  display: block;
  color: var(--primary);
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.trust-item span {
  color: var(--text-light);
}

.camposanto-showcase {
  background:
    linear-gradient(135deg, rgba(248, 250, 246, 0.94), rgba(234, 243, 237, 0.9)),
    url('../images/ima/cemeteriojaen/19.jpeg') center/cover;
}

.showcase-header {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

.showcase-header p {
  max-width: 680px;
  color: var(--text-light);
}

.showcase-header .btn {
  flex: 0 0 auto;
}

.photo-strip {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-auto-rows: 210px;
  gap: 16px;
}

.photo-tile {
  position: relative;
  display: block;
  width: 100%;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}

.photo-tile.large {
  grid-row: span 2;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.3s ease;
}

.photo-tile::after {
  content: "Ver imagen";
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.88rem;
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition);
}

.photo-tile:hover img {
  transform: scale(1.06);
  filter: saturate(1.06);
}

.photo-tile:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(201, 162, 39, 0.18), transparent 35%),
    rgba(6, 19, 13, 0.92);
  backdrop-filter: blur(8px);
}

.gallery-modal.active {
  display: flex;
}

.gallery-modal img {
  max-width: min(100%, 1180px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}

.gallery-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 8px;
  background: white;
  color: var(--primary);
  font-size: 1.6rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.camposanto-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 190px;
  gap: 15px;
}

.preview-photo,
.interactive-photo {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: var(--primary);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}

.preview-photo.tall {
  grid-row: span 2;
}

.preview-photo img,
.interactive-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease, filter 0.35s ease;
}

.preview-photo::after {
  content: "Ver foto";
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition);
}

.preview-photo:hover img,
.interactive-photo:hover img {
  transform: scale(1.08);
  filter: saturate(1.08) contrast(1.03);
}

.preview-photo:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.interactive-gallery {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: 16px;
}

.interactive-photo.large {
  grid-row: span 2;
}

.interactive-photo span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(8, 27, 18, 0.78);
  color: white;
  font-weight: 800;
  transform: translateY(8px);
  transition: var(--transition);
}

.interactive-photo:hover span {
  background: rgba(23, 71, 46, 0.92);
  transform: translateY(0);
}

.camposanto-experience {
  background:
    linear-gradient(135deg, rgba(248, 250, 246, 0.93), rgba(234, 243, 237, 0.88)),
    url('../images/ima/cemeteriojaen/21.jpeg') center/cover;
}

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

.experience-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(23, 71, 46, 0.1);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.experience-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.experience-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.experience-card strong {
  display: block;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.location-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 28px;
  align-items: stretch;
}

.map-frame {
  min-height: 430px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(23, 71, 46, 0.12);
}

.direction-card {
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(23, 71, 46, 0.12);
  box-shadow: var(--shadow-md);
}

.direction-image {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--primary);
  cursor: zoom-in;
  overflow: hidden;
}

.direction-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.direction-image:hover img {
  transform: scale(1.04);
}

.direction-content {
  padding: 26px;
}

.direction-content h3 {
  margin-bottom: 8px;
}

.direction-content p {
  color: var(--text-light);
  margin-bottom: 22px;
}

.about-value-card {
  position: relative;
  overflow: hidden;
  padding: 40px;
  border-radius: 8px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 247, 244, 0.94)),
    url('../images/ima/cemeteriojaen/20.jpeg') center/cover;
  border: 1px solid rgba(23, 71, 46, 0.1);
  box-shadow: var(--shadow-sm);
  transform: translateY(0);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  animation: cardFloatIn 0.75s ease both;
}

.about-value-card:nth-child(2) {
  animation-delay: 0.12s;
}

.about-value-card:nth-child(3) {
  animation-delay: 0.24s;
}

.about-value-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.about-value-card:hover {
  transform: translateY(-9px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 162, 39, 0.42);
}

.about-value-card.featured {
  background:
    linear-gradient(135deg, rgba(15, 47, 32, 0.94), rgba(23, 71, 46, 0.86)),
    url('../images/ima/cemeteriojaen/19.jpeg') center/cover;
  color: white;
}

.about-value-card.featured::before {
  background: var(--accent);
}

.about-value-card ul {
  color: var(--secondary);
}

.about-value-card li {
  margin-bottom: 8px;
}

@keyframes cardFloatIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.location-card,
.process-card,
.feature-card {
  padding: 26px;
}

.location-card strong,
.process-card strong {
  color: var(--primary);
  display: block;
  font-family: var(--font-heading);
  font-size: 1.18rem;
  margin-bottom: 8px;
}

.process-number {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  font-weight: 800;
  margin-bottom: 18px;
}

.cta-band {
  background:
    linear-gradient(135deg, rgba(15, 47, 32, 0.92), rgba(23, 71, 46, 0.82)),
    url('../images/ima/cemeteriojaen/17.jpeg') center/cover;
  color: white;
  text-align: center;
}

.cta-band h2 {
  color: white;
  margin-bottom: 16px;
}

.cta-band p {
  max-width: 700px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-actions .btn {
  min-width: 210px;
}

.cta-band .btn-outline {
  border-color: rgba(255, 255, 255, 0.72);
  color: white;
}

.cta-band .btn-outline:hover {
  background: white;
  color: var(--primary);
}

/* Footer */
.footer {
  background:
    linear-gradient(135deg, rgba(8, 27, 18, 0.95), rgba(23, 71, 46, 0.86)),
    url('../images/ima/cemeteriojaen/22.jpeg') center/cover;
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.footer p, .footer a {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
  display: block;
}

.footer a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 1024px) {
  .section { padding: 60px 0; }
  .hero h1 { font-size: 3rem; }
  div[style*="grid-template-columns: 1fr 1fr"] {
     gap: 30px !important;
  }
  .container { padding: 0 25px; }
  .service-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .bg-light {
    background-attachment: scroll;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    padding: 10px 0;
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-item {
    width: 100%;
    text-align: left;
    padding: 0 20px;
  }

  .nav-link {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1.1rem;
  }

  .nav-item:hover .dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    display: none;
  }

  .dropdown {
    position: static;
    display: none;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none;
    box-shadow: none;
  }

  .nav-item.open .dropdown {
    display: block;
  }

  .dropdown-item {
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    font-size: 1.05rem;
  }
  
  .mobile-menu-btn {
    display: block;
  }

  .logo img {
    height: 38px !important;
  }
  
  .hero {
    min-height: 500px;
    padding-top: 100px;
    text-align: left;
    background-position: center;
    /* Restablecer estilos que no aplican en móvil */
    justify-content: flex-start;
  }

  .hero-slider-btn {
    display: none;
  }

  .hero-slider-dots {
    bottom: 18px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns: repeat(auto-fit"] {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
  }

  .section {
    padding: 50px 0;
  }

  .trust-strip .container,
  .service-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .showcase-header {
    display: block;
  }

  .showcase-header .btn {
    width: 100%;
    margin-top: 20px;
  }

  .photo-strip {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }

  .photo-tile,
  .photo-tile.large {
    flex: 0 0 82%;
    height: 260px;
    min-height: 260px;
    scroll-snap-align: start;
  }

  .camposanto-preview-grid,
  .interactive-gallery,
  .experience-grid,
  .location-layout {
    grid-template-columns: 1fr;
  }

  .camposanto-preview-grid {
    grid-auto-rows: 240px;
  }

  .preview-photo.tall,
  .interactive-photo.large {
    grid-row: auto;
  }

  .interactive-gallery {
    grid-auto-rows: 240px;
  }

  .map-frame {
    min-height: 320px;
  }

  .trust-item {
    border-left: 0;
    border-top: 1px solid rgba(23, 71, 46, 0.08);
  }

  .trust-item:first-child {
    border-top: 0;
  }

  .btn {
    padding: 15px 20px;
    font-size: 1.1rem;
  }

  .floating-wa {
    width: 55px;
    height: 55px;
    bottom: 20px;
    right: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  .footer h3 {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .logo img { height: 32px !important; }
  .hero-assurance {
    gap: 10px;
  }
}

/* ================================
   FUNERARIA JAEN
================================ */
.hero-funeraria-jaen {
  background: linear-gradient(
    rgba(26, 77, 46, 0.8),
    rgba(26, 77, 46, 0.8)
  ),
  url('../images/ima/funejaen/eleg.jpeg') center/cover;
}

.funeraria-gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}

.funeraria-gallery img {
  flex: 0 0 320px;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  scroll-snap-align: start;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.funeraria-gallery img:hover {
  transform: scale(1.03);
}

.funeraria-gallery::-webkit-scrollbar {
  height: 8px;
}

.funeraria-gallery::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 20px;
}

@media (max-width: 768px) {
  .funeraria-gallery img {
    flex: 0 0 85%;
    height: 200px;
  }
}

/* ================================
   CONTACTO
================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.contact-card {
  background: var(--light-gray);
  padding: 40px;
  border-radius: 16px;
  width: 100%;
  box-sizing: border-box;
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  box-sizing: border-box;
}

.contact-map {
  width: 100%;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.whatsapp-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: white;
  text-decoration: none;
  padding: 16px;
  border-radius: 12px;
  font-weight: 600;
  margin-bottom: 25px;
  box-shadow: 0 6px 18px rgba(37,211,102,0.3);
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .contact-card {
    padding: 25px;
  }
  .contact-card h2 {
    font-size: 1.4rem;
  }
  .contact-card p {
    font-size: 1rem !important;
  }
  .contact-map {
    height: 220px;
  }
}

input, textarea, iframe {
  max-width: 100%;
}

.contact-grid,
.contact-card {
  overflow: hidden;
}

/* ================================
   CUTERVO
================================ */
.cutervo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.cutervo-box {
  background: var(--light-gray);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

@media (max-width: 768px) {
  .cutervo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .cutervo-box {
    padding: 22px;
  }
}

/* ================================
   UTILIDADES GLOBALES
================================ */
html, body {
  overflow-x: hidden;
}

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

.developer-link {
  color: #d4af37;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.developer-link:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}