/* ==========================================================================
   PARQUES Y CEMENTERIOS S.A — Custom CSS
   Arquitectura: MOBILE FIRST — los estilos base son para móvil.
   Los @media (min-width) escalan progresivamente hacia desktop.

   Breakpoints (Bootstrap 5):
     sm  → min-width: 576px
     md  → min-width: 768px
     lg  → min-width: 992px
     xl  → min-width: 1200px

   Orden: Reset → Variables → Tipografía → Skip link →
          Topbar → Navbar → Hero → Servicios → Banda →
          Galería → Parques → Noticias → Contacto →
          Footer → WhatsApp → Media queries
   ========================================================================== */

/* ================================================= */
/* RESET PUNTUAL                                     */
/* ================================================= */

/* Elimina itálica del navegador en <address> */
address {
  font-style: normal;
}

/* Todas las imágenes: fluidas por defecto */
img {
  max-width: 100%;
  height:    auto;
}

/* ================================================= */
/* CLASES UTILITARIAS PROPIAS                        */
/* ================================================= */

/* Botón con bordes redondeados tipo píldora (reemplaza inline style="border-radius:30px") */
.btn-pill {
  border-radius: 30px;
}

/* Fondo gris institucional (reemplaza inline style="background-color: var(...)") */
.bg-gris {
  background-color: var(--color-gris-institucional);
}

/* Ícono WhatsApp flotante */
.whatsapp-icon {
  display:          inline-block;
  background-color: #25D366;
  color:            #ffffff;
  font-size:        22px;
  border-radius:    50%;
  padding:          10px;
  line-height:      22px;
  text-decoration:  none;
  transition:       transform 0.2s ease;
}

.whatsapp-icon:hover {
  transform: scale(1.1);
  color:     #ffffff;
}

/* ================================================= */
/* VARIABLES GLOBALES                                */
/* ================================================= */
:root {
  --color-negro:              #000000;
  --color-gris-institucional: #8C8C8C;
  --color-gris-oscuro:        #333333;
  --color-verde-primario:     #A6D63F;
  --color-verde-secundario:   #6FB24D;
  --color-verde-claro:        #D6E04A;
  --color-verde-main:         #0b7d5c;
  --color-verde-dark:         #0b3b2e;
  --color-blanco:             #FFFFFF;
  --color-texto-gris:         #555;

  --shadow-sm: 0 14px 26px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 18px 35px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 28px 45px rgba(0, 0, 0, 0.18);

  /* Espaciado de secciones — mobile base */
  --section-padding: 48px;
}

/* ================================================= */
/* TIPOGRAFÍA — The Seasons                          */
/* ================================================= */
@font-face {
  font-family: 'The Seasons';
  src: url('../fonts/TheSeasons-Regular.woff2') format('woff2'),
       url('../fonts/TheSeasons-Regular.woff')  format('woff');
  font-weight: 400;
  font-style:  normal;
  font-display: swap;
}

@font-face {
  font-family: 'The Seasons';
  src: url('../fonts/TheSeasons-Bold.woff2') format('woff2'),
       url('../fonts/TheSeasons-Bold.woff')  format('woff');
  font-weight: 700;
  font-style:  normal;
  font-display: swap;
}

.titulo-seasons {
  font-family: 'The Seasons', serif;
}

/* ================================================= */
/* TIPOGRAFÍA — Myriad Semi Extended                 */
/* ================================================= */
@font-face {
  font-family: 'Myriad Semi Extended';
  src: url('../fonts/MyriadSemiExtended-Regular.woff2') format('woff2'),
       url('../fonts/MyriadSemiExtended-Regular.woff')  format('woff');
  font-weight: 400;
  font-style:  normal;
  font-display: swap;
}

@font-face {
  font-family: 'Myriad Semi Extended';
  src: url('../fonts/MyriadSemiExtended-Bold.woff2') format('woff2'),
       url('../fonts/MyriadSemiExtended-Bold.woff')  format('woff');
  font-weight: 700;
  font-style:  normal;
  font-display: swap;
}

.cuerpo-myriad {
  font-family: 'Myriad Semi Extended', sans-serif;
}

/* ================================================= */
/* SKIP LINK — Accesibilidad teclado                 */
/* ================================================= */
.skip-link {
  position:        absolute;
  top:             -100%;
  left:            0;
  z-index:         9999;
  background:      var(--color-negro);
  color:           var(--color-blanco);
  padding:         10px 20px;
  font-size:       14px;
  font-weight:     600;
  border-radius:   0 0 8px 0;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* ================================================= */
/* TOPBAR — base: mobile (oculta, horario va en el   */
/* menú lateral offcanvas)                           */
/* ================================================= */
.topbar {
  display:          none;
  background-color: var(--color-gris-institucional);
  color:            var(--color-blanco);
  font-size:        13px;
  padding:          6px 0;
}

.topbar-inner {
  display:         flex;
  justify-content: center;   /* mobile: centrado */
  align-items:     center;
  min-height:      38px;
  padding:         4px 0;
}

.topbar-left {
  font-size:   13px;
  font-weight: 600;
  text-align:  center;
  white-space: normal;
}

/* mobile: ocultar el lado derecho */
.topbar-right {
  display: none;
}

.topbar-btn {
  padding:         6px 14px;
  border-radius:   999px;
  font-size:       12px;
  font-weight:     600;
  text-decoration: none;
  line-height:     1;
  transition:      background-color 0.3s ease, color 0.3s ease;
}

.topbar-btn.outline {
  border:     1px solid var(--color-blanco);
  color:      var(--color-blanco);
  background: transparent;
}

.topbar-btn.outline:hover {
  background: var(--color-blanco);
  color:      var(--color-negro);
}

/* ================================================= */
/* NAVBAR — base: mobile                             */
/* ================================================= */
.main-navbar {
  background-color: var(--color-negro);
  padding-top:      12px;
  padding-bottom:   12px;
}

/* Logo centrado en mobile mediante position absolute */
.navbar {
  position: relative;
}

.navbar-brand {
  position:  absolute;
  left:      50%;
  transform: translateX(-50%);
  margin:    0;
}

.navbar-logo .logo-img {
  height:  62px;          /* mobile: un poco más grande */
  width:   auto;
  display: block;
}

/* Logo dentro del menú lateral (offcanvas) — más pequeño */
.offcanvas-logo {
  height: 34px;
  width:  auto;
}

/* Horarios dentro del menú lateral (offcanvas) */
.offcanvas-horarios {
  margin-top:  16px;
  padding-top: 16px;
  border-top:  1px solid rgba(255, 255, 255, 0.2);
  font-size:   13px;
  color:       rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.offcanvas-horarios .horarios-titulo {
  display:        block;
  font-size:      12px;
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color:          #fff;
  margin-bottom:  6px;
}

.offcanvas-horarios i {
  margin-right: 6px;
}

.navbar-dark .navbar-nav .nav-link {
  color: white !important;
}

.navbar-nav .nav-link {
  color:       white;
  font-size:   15px;
  font-weight: 500;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--color-verde-claro);
}

.dropdown-menu {
  border-radius: 8px;
  box-shadow:    0 12px 30px rgba(0, 0, 0, 0.18);
}

.dropdown-item {
  font-size: 14px;
}

.dropdown-item:hover {
  background-color: #F2F2F2;
  color:            #000000;
}

.main-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, .4);
}

/* Ícono hamburguesa — SVG blanco explícito */
.main-navbar .navbar-toggler-icon {
  filter: none !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ================================================= */
/* HERO / SLIDER — base: mobile                      */
/* ================================================= */
.hero {
  position:   relative;
  height:     auto;       /* mobile: altura automática */
  overflow:   hidden;
}

.hero .carousel,
.hero .carousel-inner,
.hero .carousel-item {
  height: 100%;
}

/* Mobile: altura fija de la slide */
.hero .carousel-item {
  height: 480px;
}

.hero .carousel-item img {
  height:          100%;
  object-fit:      cover;
  object-position: center 45%;
}

.hero::after {
  content:  "";
  position: absolute;
  inset:    0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.40) 55%,
    rgba(0, 0, 0, 0.65) 100%
  );
  z-index: 1;
}

/* Mobile: overlay centrado */
.hero-overlay {
  position:       absolute;
  inset:          0;
  z-index:        2;
  display:        flex;
  align-items:    flex-end;
  padding:        0 0 40px;
}

.hero-title {
  font-family:   'Lora', Georgia, serif;
  font-style:    italic;
  font-size:     21px;
  font-weight:   500;
  line-height:   1.55;
  color:         #fff;
  margin-bottom: 0;
}

/* Número "35" — acento visual, no dominante */
.hero-num {
  font-size:   1.6em;
  font-weight: 600;
  letter-spacing: -1px;
}

/* Mobile: texto centrado */
.hero-title {
  text-align: center;
}

/* ================================================= */
/* TÍTULOS DE SECCIÓN — base: mobile                 */
/* ================================================= */
.services-title,
.gallery-title,
.parks-title,
.planifica-title,
.accompaniment-title,
.news-header h2,
.contacto-title {
  font-size: 22px;        /* mobile */
}

/* ================================================= */
/* SERVICIOS — base: mobile (1 columna)              */
/* ================================================= */
.services {
  padding:    var(--section-padding) 0;
  background: #ffffff;
}

.services-title {
  text-align:    center;
  font-weight:   500;
  margin-bottom: 32px;
  color:         #1f2d3d;
}

.services-grid {
  display:               grid;
  grid-template-columns: 1fr;   /* mobile: 1 col */
  gap:                   20px;
}

.service-card {
  background:    #fff;
  border-radius: 18px;
  overflow:      hidden;
  box-shadow:    0 10px 30px rgba(0, 0, 0, 0.1);
  transition:    transform 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) {
  .service-card:hover {
    transform:  translateY(-6px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
  }
}

.service-card img {
  width:      100%;
  height:     200px;
  object-fit: cover;
}

.service-content {
  padding: 18px;
}

.service-content h3 {
  font-size:     18px;
  font-weight:   700;
  margin-bottom: 8px;
  color:         var(--color-verde-main);
}

.service-content p {
  font-size:   14px;
  line-height: 1.5;
  color:       var(--color-texto-gris);
  margin:      0;
}

/* ================================================= */
/* BANDA RESPETO Y COMPROMISO                        */
/* ================================================= */
.planifica-tiempo {
  padding:    var(--section-padding) 0;
  text-align: center;
}

.planifica-inner {
  max-width: 720px;
}

.planifica-title {
  font-weight:   700;
  color:         #fff;
  margin-bottom: 12px;
}

.planifica-text {
  font-size:     14px;
  line-height:   1.6;
  color:         #fff;
  margin-bottom: 0;
}

/* ================================================= */
/* GALERÍA — base: mobile (1 col, imágenes pequeñas) */
/* ================================================= */
.gallery-section {
  padding:    var(--section-padding) 0;
  background: #fff;
}

.gallery-inner {
  max-width: 1100px;
}

.gallery-title {
  font-weight:   700;
  color:         var(--color-verde-dark);
  margin-bottom: 28px;
}

.gallery-item {
  border-radius: 16px;
  overflow:      hidden;
  background:    #fff;
  box-shadow:    var(--shadow-sm);
  transition:    transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
  width:      100%;
  height:     200px;          /* mobile */
  display:    block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* Caption sobre la imagen (título + ícono zoom) */
.gallery-caption {
  position:        absolute;
  bottom:          0;
  left:            0;
  right:           0;
  padding:         10px 14px;
  background:      linear-gradient(transparent, rgba(0,0,0,0.65));
  color:           #fff;
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  opacity:         0;
  transition:      opacity 0.3s ease;
}

.gallery-caption-text {
  font-size:   13px;
  font-weight: 600;
}

.gallery-caption i {
  font-size: 16px;
}

/* El item necesita position relative para el caption */
.gallery-item {
  position: relative;
  cursor:   pointer;
  margin:   0;
}

@media (hover: hover) {
  .gallery-item:hover {
    transform:  translateY(-6px);
    box-shadow: var(--shadow-lg);
  }

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

  .gallery-item:hover .gallery-caption {
    opacity: 1;
  }
}

/* En touch: caption siempre visible */
@media (hover: none) {
  .gallery-caption {
    opacity: 1;
  }
}

/* ---- Modal galería ---- */
.galeria-modal-content {
  background:    #000;
  border:        none;
  border-radius: 12px;
  overflow:      hidden;
}

.galeria-modal-close {
  position: absolute;
  top:      12px;
  right:    12px;
  z-index:  10;
  opacity:  0.8;
  filter:   invert(1) grayscale(100%) brightness(200%);
}

.galeria-modal-img-wrap {
  width:    100%;
  overflow: hidden;
}

.galeria-modal-img-wrap img {
  width:      100%;
  height:     auto;
  max-height: 70vh;
  object-fit: contain;
  display:    block;
  background: #000;
}

.galeria-modal-body {
  padding:    20px 24px;
  background: #fff;
}

.galeria-modal-titulo {
  font-size:     17px;
  font-weight:   700;
  color:         var(--color-verde-dark);
  margin-bottom: 6px;
}

.galeria-modal-desc {
  font-size:   14px;
  line-height: 1.6;
  color:       var(--color-texto-gris);
  margin:      0;
}

/* ================================================= */
/* PARQUES — base: mobile (cards apiladas)           */
/* ================================================= */
.parks {
  padding: var(--section-padding) 0;
}

.parks-title {
  text-align:    center;
  margin-bottom: 32px;
  color:         #1f2d3d;
}

.park-card {
  background:    #fff;
  border-radius: 18px;
  overflow:      hidden;
  box-shadow:    0 16px 32px rgba(0, 0, 0, 0.1);
  transition:    transform 0.25s ease, box-shadow 0.25s ease;
  height:        100%;
}

@media (hover: hover) {
  .park-card:hover {
    transform:  translateY(-6px);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.15);
  }
}

.park-card-img img {
  width:      100%;
  height:     180px;          /* mobile */
  object-fit: cover;
}

.park-card-body {
  padding: 20px;
}

.park-card-body h3 {
  font-size:     17px;
  margin-bottom: 12px;
  color:         var(--color-verde-dark);
}

.park-card-body ul {
  list-style: none;
  padding:    0;
  margin:     0 0 16px 0;
}

.park-card-body li {
  font-size:     14px;
  color:         var(--color-texto-gris);
  margin-bottom: 8px;
  display:       flex;
  gap:           8px;
}

.park-card-body i {
  color:      #198754;
  font-size:  15px;
  margin-top: 2px;
}

.park-card-body a {
  color: inherit;
  text-decoration: none;
}

.park-card-body a:hover {
  color: var(--color-verde-main);
}

.btn-park {
  display:         block;
  width:           100%;
  text-align:      center;
  background:      var(--color-verde-main);
  color:           #fff;
  border-radius:   999px;
  padding:         10px 0;
  font-size:       14px;
  font-weight:     600;
  text-decoration: none;
  transition:      background 0.2s ease;
}

.btn-park:hover {
  background: #09694d;
}

/* ================================================= */
/* NOTICIAS — base: mobile (1 col)                   */
/* ================================================= */
.news {
  padding:    var(--section-padding) 0;
  background: #ffffff;
}

.news-inner {
  max-width: 1140px;
}

.news-header {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  margin-bottom:   24px;
  gap:             12px;
}

.news-header h2 {
  font-weight: 400;
  color:       #1f2d3d;
  margin:      0;
}

.news-header h2 strong {
  font-weight: 700;
}

.news-link {
  font-size:       14px;
  color:           var(--color-verde-main);
  text-decoration: none;
  font-weight:     600;
  white-space:     nowrap;
}

.news-grid {
  display:               grid;
  grid-template-columns: 1fr;   /* mobile: 1 col */
  gap:                   20px;
}

.news-card {
  background:     #fff;
  border-radius:  18px;
  overflow:       hidden;
  box-shadow:     0 16px 32px rgba(0, 0, 0, 0.12);
  display:        flex;
  flex-direction: column;
  height:         100%;
}

.news-image img {
  width:      100%;
  height:     200px;
  object-fit: cover;
}

.news-body {
  padding:    18px;
  flex:       1;
  display:    flex;
  flex-direction: column;
}

.news-body h3 {
  font-size:     16px;
  font-weight:   700;
  margin-bottom: 8px;
  color:         #1f2d3d;
  align-self:    flex-start;   /* evita que el título sea un bloque clickeable ancho */
}

.news-body p {
  font-size:   14px;
  color:       var(--color-texto-gris);
  line-height: 1.5;
  flex:        1;
}

.news-tag {
  display:        inline-block;
  align-self:     flex-start;   /* evita que se estire al 100% en flex column */
  padding:        4px 10px;
  border-radius:  999px;
  font-size:      11px;
  font-weight:    600;
  margin-bottom:  8px;
}

.tag-purple { background: #7a1fa2; color: #fff; }
.tag-orange { background: #198754; color: #fff; }
.tag-green  { background: var(--color-verde-main); color: #fff; }

/* Links dentro de cards de noticias */
.news-card-link {
  text-decoration: none;
  color: inherit;
}

.news-body h3 a {
  text-decoration: none;
  color:           inherit;
}

.news-body h3 a:hover {
  color: var(--color-verde-main);
}

.news-date {
  display:   block;
  font-size: 12px;
  color:     #999;
  margin-top: auto;
}

/* ================================================= */
/* NOTICIA DETALLE (noticias/noticia.html)           */
/* ================================================= */
/* Navbar y footer compactos para la página de detalle */
.noticia-navbar {
  padding: 14px 0;
}

.noticia-logo img {
  height: 44px;
  width:  auto;
}

.noticia-footer {
  padding: 24px 0;
}

.noticia-volver {
  display:         inline-flex;
  align-items:     center;
  gap:             6px;
  font-size:       14px;
  font-weight:     600;
  color:           var(--color-verde-main);
  text-decoration: none;
  margin-bottom:   24px;
}

.noticia-volver:hover {
  color: var(--color-verde-dark);
}

.noticia-header {
  margin-bottom: 24px;
}

.noticia-header .news-tag {
  margin-bottom: 8px;
}

.noticia-fecha {
  display:    block;
  font-size:  13px;
  color:      #999;
  margin-bottom: 10px;
}

.noticia-titulo {
  font-size:   clamp(22px, 4vw, 32px);
  font-weight: 700;
  color:       #1f2d3d;
  line-height: 1.25;
  margin:      0;
}

.noticia-imagen-principal {
  border-radius: 16px;
  overflow:      hidden;
  margin-bottom: 28px;
}

.noticia-imagen-principal img {
  width:      100%;
  height:     auto;
  max-height: 480px;
  object-fit: cover;
  display:    block;
}

/* Cuerpo del artículo */
.noticia-cuerpo {
  max-width:   760px;
  font-size:   15px;
  line-height: 1.7;
  color:       #333;
}

.noticia-cuerpo p {
  margin-bottom: 18px;
}

.noticia-cuerpo h2 {
  font-size:     20px;
  font-weight:   700;
  color:         var(--color-verde-dark);
  margin-top:    28px;
  margin-bottom: 12px;
}

.noticia-figura {
  margin:        24px 0;
  border-radius: 12px;
  overflow:      hidden;
}

.noticia-figura img {
  width:   100%;
  height:  auto;
  display: block;
}

.noticia-figura figcaption {
  padding:    10px 14px;
  font-size:  13px;
  color:      #777;
  background: #f8f9fa;
}

.noticia-video {
  margin: 24px 0;
}

.noticia-video-titulo {
  font-size:     14px;
  font-weight:   600;
  margin-bottom: 8px;
  color:         #555;
}

.noticia-audio {
  margin: 24px 0;
}

.noticia-audio-titulo {
  font-size:     14px;
  font-weight:   600;
  margin-bottom: 8px;
  color:         #555;
}

.noticia-audio audio {
  width: 100%;
}

.noticia-enlace a {
  color:           var(--color-verde-main);
  font-weight:     600;
  text-decoration: none;
}

.noticia-enlace a:hover {
  text-decoration: underline;
}

/* ================================================= */
/* MODALES CONFIGURACIÓN (contenido dinámico JS)     */
/* ================================================= */
.modal-config-text {
  font-size:   15px;
  line-height: 1.7;
  color:       #333;
}

.modal-config-address {
  font-size: 12px;
}

.modal-config-table td {
  font-size: 14px;
}

.modal-config-datos {
  font-size:   14px;
  line-height: 1.8;
}

/* ================================================= */
/* JARDÍN CINERARIO — Landing page                   */
/* ================================================= */

/* Hero */
.jc-hero {
  position:  relative;
  height:    50vh;
  min-height: 280px;
  max-height: 420px;
  overflow:  hidden;
}

.jc-hero-img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
}

.jc-hero::after {
  content:    "";
  position:   absolute;
  inset:      0;
  background: linear-gradient(transparent 30%, rgba(0,0,0,0.6));
}

.jc-hero-overlay {
  position:    absolute;
  bottom:      0;
  left:        0;
  right:       0;
  z-index:     2;
  padding:     32px 0;
  text-align:  center;
}

.jc-hero-title {
  font-size:   clamp(28px, 5vw, 44px);
  font-weight: 700;
  color:       #fff;
  margin-bottom: 4px;
}

.jc-hero-sub {
  font-size: clamp(14px, 2vw, 18px);
  color:     rgba(255,255,255,0.9);
  margin:    0;
}

/* Intro */
.jc-intro {
  padding: var(--section-padding) 0;
}

.jc-intro-text {
  font-size:   15px;
  line-height: 1.7;
  color:       #333;
}

.jc-carousel-inner img {
  height:     240px;
  object-fit: cover;
  border-radius: 12px;
}

/* Unidades */
.jc-unidades {
  padding: var(--section-padding) 0;
}

.jc-unit-card {
  background:    #fff;
  border-radius: 16px;
  overflow:      hidden;
  box-shadow:    0 12px 28px rgba(0,0,0,0.1);
  height:        100%;
  transition:    transform 0.25s ease;
}

@media (hover: hover) {
  .jc-unit-card:hover {
    transform: translateY(-4px);
  }
}

.jc-unit-card img {
  width:      100%;
  height:     180px;
  object-fit: cover;
}

.jc-unit-body {
  padding: 18px;
}

.jc-unit-body h3 {
  font-size:     16px;
  font-weight:   700;
  color:         var(--color-verde-dark);
  margin-bottom: 8px;
}

.jc-unit-body p {
  font-size:   14px;
  line-height: 1.5;
  color:       var(--color-texto-gris);
}

/* Info cards (horario + ubicación) */
.jc-info {
  padding: var(--section-padding) 0;
}

.jc-info-card {
  background:    #fff;
  border-radius: 16px;
  padding:       28px 24px;
  box-shadow:    0 8px 24px rgba(0,0,0,0.08);
  height:        100%;
}

.jc-info-icon {
  font-size:     36px;
  color:         var(--color-verde-main);
  margin-bottom: 12px;
  display:       block;
}

.jc-info-card h3 {
  font-size:     17px;
  font-weight:   700;
  color:         var(--color-verde-dark);
  margin-bottom: 12px;
}

.jc-info-hora {
  font-size:   20px;
  font-weight: 700;
  color:       var(--color-verde-main);
}

.jc-info-card a {
  color: inherit;
}

/* CTA */
.jc-cta {
  padding: var(--section-padding) 0;
}

/* Responsive — md+ */
@media (min-width: 768px) {
  .jc-hero {
    height:     60vh;
    max-height: 500px;
  }

  .jc-carousel-inner img {
    height: 320px;
  }

  .jc-unit-card img {
    height: 200px;
  }
}

/* ================================================= */
/* CONTACTO                                          */
/* ================================================= */
.contacto-title {
  font-weight: 600;
  color:       #1f2d3d;
}

.contacto .form-control,
.contacto .form-select {
  border-radius: 10px;
  padding:       10px 14px;
  font-size:     14px;
}

.contacto textarea {
  resize: none;
}

.contacto .btn-success {
  border-radius: 30px;
  font-weight:   500;
  width:         100%;            /* mobile: botón ancho completo */
}

.btn-info-contacto {
  background:    #0d6efd;
  border:        none;
  color:         white;
  border-radius: 10px;
  padding:       0 14px;
  cursor:        pointer;
}

.btn-info-contacto:hover {
  background: #0b5ed7;
  color:      white;
}

.border-danger {
  border: 2px solid #dc3545 !important;
}

/* ================================================= */
/* FOOTER — base: mobile (1 col, apilado)            */
/* ================================================= */
.site-footer {
  background: var(--color-negro);
  padding:    40px 0 24px;
  font-size:  14px;
  color:      white;
}

.footer-grid {
  display:               grid;
  grid-template-columns: 1fr;    /* mobile: 1 col */
  gap:                   28px;
  margin-bottom:         32px;
}

.footer-col h6 {
  font-size:     15px;
  font-weight:   700;
  margin-bottom: 12px;
  color:         white;
}

.footer-col ul {
  list-style: none;
  padding:    0;
  margin:     0;
}

.footer-col li {
  margin-bottom: 10px;
  display:       flex;
  gap:           8px;
  align-items:   flex-start;
  line-height:   1.4;
}

.footer-col i {
  color:      var(--color-verde-main);
  font-size:  14px;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-col a {
  color:           white;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--color-verde-claro);
}

.footer-bottom {
  border-top:     1px solid rgba(255, 255, 255, 0.15);
  padding-top:    20px;
  display:        flex;
  flex-direction: column;    /* mobile: apilado */
  gap:            10px;
  text-align:     center;
}

.footer-copy {
  font-size: 13px;
  color:     rgba(255, 255, 255, 0.8);
}

.footer-social a {
  color:           white;
  font-size:       18px;
  margin-left:     14px;
  text-decoration: none;
}

/* ================================================= */
/* BOTÓN WHATSAPP FLOTANTE                           */
/* ================================================= */
#redirection {
  position:    fixed;
  width:       50px;
  height:      50px;
  line-height: 50px;
  bottom:      -60px;         /* oculto por defecto */
  right:       16px;
  z-index:     100;
  text-align:  center;
  transition:  bottom 0.4s ease;
}

/* ================================================= */
/* ================================================= */
/*  MEDIA QUERIES — ESCALA PROGRESIVA (min-width)    */
/* ================================================= */
/* ================================================= */

/* -------- sm: ≥ 576px -------- */
@media (min-width: 576px) {
  /* Servicios: 2 columnas en pantalla pequeña */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Galería: imágenes más altas */
  .gallery-item img {
    height: 220px;
  }

  /* Noticias: 2 columnas */
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Botón enviar contacto: ancho automático */
  .contacto .btn-success {
    width: auto;
  }
}

/* -------- md: ≥ 768px -------- */
@media (min-width: 768px) {
  /* ---- Variables de sección ---- */
  :root {
    --section-padding: 64px;
  }

  /* ---- Topbar: diseño desktop ---- */
  .topbar {
    display:   block;
    font-size: 14px;
    padding:   0;
  }

  .topbar-inner {
    justify-content: space-between;
    min-height:      42px;
    padding:         8px 0;
  }

  .topbar-left {
    font-size:   14px;
    font-weight: 400;
    text-align:  left;
    white-space: nowrap;
  }

  .topbar-right {
    display:     flex;
    align-items: center;
    gap:         16px;
  }

  .topbar-right span,
  .topbar-right strong {
    color: var(--color-blanco);
  }

  /* ---- Títulos de sección: tamaño desktop ---- */
  .services-title,
  .gallery-title,
  .parks-title,
  .planifica-title,
  .accompaniment-title,
  .news-header h2,
  .contacto-title {
    font-size: 28px;
  }

  /* ---- Hero: tamaño desktop ---- */
  .hero {
    height:     85vh;
    min-height: 580px;
    max-height: 720px;
  }

  .hero .carousel-item {
    height: 100%;           /* hereda la altura del hero */
  }

  /* Desktop: texto al fondo del hero */
  .hero-overlay {
    align-items:    flex-end;
    padding-top:    0;
    padding-bottom: 56px;
  }

  .hero-title {
    font-size:   30px;
    font-weight: 400;
    line-height: 1.5;
    text-align:  left;
  }

  .hero-num {
    font-size: 2em;
  }

  /* ---- Servicios: padding ---- */
  .services-title {
    margin-bottom: 44px;
  }

  .service-card img {
    height: 220px;
  }

  /* ---- Galería ---- */
  .gallery-title {
    margin-bottom: 36px;
  }

  .gallery-item {
    border-radius: 20px;
    box-shadow:    var(--shadow-md);
  }

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

  /* ---- Parques ---- */
  .parks-title {
    margin-bottom: 40px;
  }

  .park-card-img img {
    height: 200px;
  }

  .park-card-body {
    padding: 22px;
  }

  /* ---- Footer: 3 columnas ---- */
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items:    center;
    text-align:     left;
    gap:            0;
  }

  .site-footer {
    padding: 60px 0 30px;
  }
}

/* -------- lg: ≥ 992px -------- */
@media (min-width: 992px) {
  /* ---- Variables de sección: máximo ---- */
  :root {
    --section-padding: 80px;
  }

  /* ---- Navbar: logo a la izquierda, reset del absolute ---- */
  .navbar-brand {
    position:  static;
    left:      auto;
    transform: none;
  }

  .navbar-logo .logo-img {
    height: 100px;          /* desktop */
  }

  .main-navbar {
    padding-top:    0;
    padding-bottom: 0;
  }

  /* ---- Servicios: 3 columnas ---- */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap:                   24px;
  }

  .services-title {
    margin-bottom: 48px;
  }

  .service-card img {
    height: 180px;
  }

  /* ---- Galería ---- */
  .gallery-title {
    margin-bottom: 40px;
  }

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

  /* ---- Parques ---- */
  .parks-title {
    margin-bottom: 48px;
  }

  /* ---- Noticias: 3 columnas ---- */
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
    gap:                   24px;
  }

  .news-header {
    margin-bottom: 32px;
  }

  /* ---- Planifica ---- */
  .planifica-text {
    font-size: 15px;
  }
}

/* -------- xl: ≥ 1200px -------- */
@media (min-width: 1200px) {
  .news-image img {
    height: 200px;
  }
}
