/* =========================================================
   CIAME DETALLES - ESTILOS GENERALES / ESCRITORIO
   ========================================================= */

/* Colores CIAME (referencia rápida) */
/* Azul:   #0B62AC | Rosado: #D65197 | Naranja: #ED7455
   Celeste:#7CC8CE | Verde:  #DAE291 */

   
html {
  scroll-behavior: smooth;
}


/* Body */

.detalles-body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #23303A;
  background: #fff;
  margin: 0;
}


/* Header azul fijo */

.det-header-bg {
  background: #0B62AC; /* Celeste AZUL */
  position: fixed;       /* la deja fija */
  top: 0;                /* siempre en la parte superior */
  left: 0;
  width: 100%;           /* ocupa todo el ancho */
  z-index: 999;          /* por encima del contenido */
}


/* Barra rosada */

.det-nav {
  display: flex;
  justify-content: center;
  padding: 18px 12px;
}

.det-nav-pill {
  background: #D65197;            /* Rosado CIAME */
  border-radius: 9999px;          /* extremos redondeados */
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(1280px, 95%);
}


/* Logo */

.det-nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}


/* =========================
   MENÚ ESCRITORIO
   ========================= */

.det-nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.det-nav-menu a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 9999px;
  display: block;
}

.det-nav-menu a:hover {
  background: rgba(255,255,255,0.18);
}

.catalogo-toggle { /*********************************************************************/
  background: none;
  border: none;
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 9999px;
  cursor: pointer;
}

.catalogo-toggle:hover {
  background: rgba(255,255,255,0.18);
  /*transform: translateY(-1px);*/
}


/* -----------------------------
   DROPDOWN CATÁLOGO (Escritorio)
   ----------------------------- */

.has-dropdown {
  position: relative;
}

.has-dropdown .dropdown {
  position: absolute;
  top: 110%;
  left: 0;
  background: #D65197;
  list-style: none;
  padding: 8px;
  min-width: 180px;/*170*/
  border-radius: 14px;
  display: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.has-dropdown.active .dropdown {
  display: block;
}

.dropdown a {
  padding: 8px 12px;/*8px 10px*/
  border-radius: 10px;
}

.dropdown a:hover {
  background: rgba(255,255,255,0.18);
}


/* Menú hamburguesa oculto en escritorio/tablet */

.det-burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
}


/* Líneas */
.det-burger span {
  /*display: block;*/
  height: 3px;
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
  /*transition: transform 0.28s cubic-bezier(.2,.9,.2,1), opacity .18s;*/
}

/* X al abrir */
.det-burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.det-burger.active span:nth-child(2) {
  opacity: 0;
}
.det-burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


/* =========================================================
   SECCIONES GENERALES
   ========================================================= */

/* Secciones */

.det-section {
  padding-block: 56px;
  padding-inline: clamp(16px, 4vw, 32px);
}

.container {
  width: min(1100px, 95%);
  margin: 0 auto;
}


/* Títulos y textos */

.det-title {
  font-size: 2rem;
  color: #0B62AC; /* Azul CIAME */
  margin-bottom: 14px;
}

.det-text {
  font-size: 1.05rem;
  color: #3f4a56;
  line-height: 1.7;
  max-width: 850px;
}


/* Botón CTA */

.det-cta {
  display: inline-block;
  margin-top: 18px;
  background: #D65197; /* Rosado CIAME */
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 9999px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.det-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}


/* ===========================================
   CARRUSEL HERO CIAME (1100 × 620)
   =========================================== */

.carrusel-hero {
  padding-top: 40px;
  padding-bottom: 40px;
  background: #ffffff;
}

.carrusel-hero .swiper {
  width: 100%;
  max-width: 1100px;
  height: 620px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.carrusel-hero .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Respeta proporción y llena */
  display: block;
}


/* Dots */
.swiper-pagination-bullet {
  background: #ffffff;
  opacity: 0.6;
}

.swiper-pagination-bullet-active {
  background: #D65197; /* Rosado CIAME */
  opacity: 1;
}

.carrusel-hero .swiper-pagination{
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  background: rgba(0,0,0,0.22);
  padding: 6px 12px;
  border-radius: 999px;
  width: fit-content;
}


/* Flechas escritorio */
.swiper-button-next,
.swiper-button-prev {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(0,0,0,0.45);
}

@media (max-width: 900px) {
  .carrusel-hero .swiper {
    height: 440px;
  }
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}

@media (max-width: 600px) {
  .carrusel-hero .swiper {
    width: 100%;
    /*height: 296px;*/
    height: auto;
    max-width: none;
    border-radius: 0;
  }

  .carrusel-hero {
    padding-top: 0px;
    padding-bottom: 0px;
  }

  #carrusel-hero.det-section {
    padding-left: 0;
    padding-right: 0;
  }

  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }

  #carrusel-hero .container {
    width: 100%;
    margin: 0;
    padding: 0;
  }
}


/* =============
   OCULTAR EL H1
   ============= */
.visually-hidden{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}


/* =========================================================
   CATÁLOGO – GRID Y CARDS
   ========================================================= */

/* === CATÁLOGO === */

.det-catalogo {
  background: #0B62AC0D; /* azul muy sutil */
  position: relative;
}


/* ===== BANDA FULL-BLEED REAL ===== */

.catalogo-band{
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;

  background: linear-gradient(90deg, rgba(124,200,206,0.95), rgba(124,200,206,0.88));
  color: #ffffff;

  overflow: hidden;
  height: 58px;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}

/* Track animado */
.catalogo-band__track{
  display: inline-flex;
  align-items: center;
  gap: 64px;              /* MÁS AIRE ENTRE TEXTOS */
  white-space: nowrap;
  animation: catalogoMarquee 42s linear infinite; /* un poco más lento */
  padding-left: 40px;
  min-width: max-content;    /* 🔴 clave para evitar huecos */
}

/* Texto */
.band-item{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: 0.2px;
}

/* Íconos lineales */
.band-icon{
  width: 20px;
  height: 20px;
  opacity: 0.9;
}

/* Animación */
@keyframes catalogoMarquee{
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce){
  .catalogo-band__track{ animation: none; }
}

/* Móvil */
@media (max-width: 600px){
  .catalogo-band{ height: 52px; }
  .catalogo-band__track{ gap: 32px; }
  .band-item{ font-size: 0.96rem; }
  .band-icon{ width: 18px; height: 18px; }
}
/* BANDA CATÁLOGO (FULL-WIDTH) */


.det-group-title {
  font-size: 1.6rem;
  color: #0B62AC; /* Azul CIAME */
  /*margin: 12px 0 18px;*/
  margin-top: 60px;   /* espacio arriba del título */
  margin-bottom: 20px; /* espacio debajo del título */
  text-align: center;
}


/* Texto introductorio por grupo (premium / editorial) */
.det-group-intro{
  max-width: 760px;     /* más angosto que el container = look premium */
  margin: -6px auto 60px; /* cerca del H3, más aire antes de las cards */
  text-align: center;
  font-size: 1.02rem;
  line-height: 1.65;
  color: #3f4a56;
}

.det-group-intro strong{
  font-weight: 700;
  color: #0B62AC; /* azul CIAME */
}

/* Grid de tarjetas:
   - 4 por fila en escritorio
   - Se centra automáticamente la fila incompleta (5to y 6to) */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  justify-content: center; /* centra la última fila si no está completa */
  margin-bottom: 100px; /* espacio debajo del bloque de tarjetas */
}


/* Tarjeta */

.card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.14);
}


/* Imagen (placeholder) — luego reemplazar por <img> */

.card-media {
  height: 300px; /* mantiene la altura del contenedor */
  overflow: hidden; /* evita que la imagen se salga del card */
}

.card-media img {
  width: 100%;        /* que se adapte al ancho del card */
  height: 100%;       /* que ocupe toda la altura del contenedor */
  object-fit: cover;  /* recorta proporcionalmente sin deformar */
  display: block;     /* elimina espacios fantasmas debajo de la img */
  border-radius: 8px 8px 0 0; /* opcional, si tus cards tienen esquinas redondeadas */
}

/* Hover con zoom de imagen SOLO en desktop */
@media (hover: hover) and (pointer: fine) {
  .card-media img {
    transition: transform 0.3s ease;
    will-change: transform;
  }

  .card:hover .card-media img {
    transform: scale(1.07);
  }
}


/* Contenido */

.card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;/**/
  padding: 2px 14px 18px;/**/
}

.card-title {
  font-size: 1.05rem;
  color: #0B62AC; /* Azul CIAME */
  margin-bottom: 32px;
  /*min-height: 2.6em;   /* reserva espacio para 2 líneas */
  /*line-height: 1.3;*/
}

.card-desc {
  color: #4a5562;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.card-price {
  font-size: 1.05rem;          /* mismo tamaño que el título */
  color: #0B62AC;              /* mismo azul CIAME */
  font-weight: 400;            /* sin negrita */
  margin-top: -18px;           /* recupera espacio del título */
  margin-bottom: 14px;         /* separación justa con el botón */
  text-align: center;
}


/* Botón "Más información" */

.btn-info {
  align-self: center; /* centra dentro del card */
  display: inline-flex; /* asegura que el contenido no se rompa */
  justify-content: center; /* centra el texto */
  background: #D65197; /* Rosado CIAME */
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
  white-space: nowrap; /* evita salto de línea */
  word-break: keep-all; /* previene que Safari parta palabras */
  min-width: max-content; /* evita que se achique más de lo necesario */
  text-align: center;
}

.btn-info:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}


/* ===== BLOQUE DE CONFIANZA CIAME ===== */

.ciame-trust{
  margin: 40px auto 20px;
  padding: 18px 22px;
  max-width: 820px;

  background: rgba(11, 98, 172, 0.04); /* azul CIAME muy sutil */
  border: 1px solid rgba(11, 98, 172, 0.12);
  border-radius: 14px;

  text-align: center;
}

.ciame-trust-text{
  margin: 0;
  color: #0B62AC;
  font-size: 1rem;
  line-height: 1.6;
}

.ciame-trust-text strong{
  font-weight: 700;
}


/* =========================================================
   CONTACTO
   ========================================================= */

.det-contacto {
  background: #0B62AC;
}

.contact-grid {
  display: grid;
  justify-content: center;
}

.contact-item h4 {
  color: #fff;
  margin-bottom: 8px;
}

.contact-item a {
  color: #fff;
  text-decoration: none;
}


/* === TELÉFONO === */

.link-telefono {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #0B62AC;
  font-weight: bold;
  transition: 0.3s;
}

.link-telefono i {
  background-color: white;
  color: #0B62AC;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}

.link-telefono:hover {
  color: #D65197;
}

.link-telefono:hover i{
  background-color: #D65197;
  color: white;
}


/* ==== WHATSAPP ==== */

.link-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #0B62AC;
  font-weight: bold;
  transition: 0.3s;
}

.link-whatsapp i {
  background-color: white;
  color: #0B62AC;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}

.link-whatsapp:hover {
  color: #D65197;
}

.link-whatsapp:hover i{
  background-color: #D65197;
  color: white;
}


/* === REDES === */

.link-facebook {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #0B62AC;
  font-weight: bold;
  transition: 0.3s;
}

.link-facebook i {
  background-color: white;
  color: #0B62AC;
  border-radius: 50%;
  width: 32px;      /* ancho fijo */
  height: 32px;     /* alto fijo */
  display: flex;    /* centra el ícono */
  align-items: center;
  justify-content: center;
  font-size: 16px;  /* tamaño del ícono */
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}

.link-facebook:hover {
  color: #D65197;
}

.link-facebook:hover i {
  background-color: #D65197;
  color: white;
}

.link-instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #0B62AC;
  font-weight: bold;
  transition: 0.3s;
}

.link-instagram i {
  background-color: white;
  color: #0B62AC;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}

.link-instagram:hover {
  color: #D65197;
}

.link-instagram:hover i{
  background-color: #D65197;
  color: white;
}

.link-tiktok {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #0B62AC;
  font-weight: bold;
  transition: 0.3s;
}

.link-tiktok i {
  background-color: white;
  color: #0B62AC;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}

.link-tiktok:hover {
  color: #D65197;
}

.link-tiktok:hover i{
  background-color: #D65197;
  color: white;
}


/* =========================================================
   LIBRO DE RECLAMACIONES
   ========================================================= */

.link-libro {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #0B62AC;               /* Azul CIAME */
  font-weight: bold;
  transition: 0.3s;
  line-height: 1.1;
}

.link-libro i {
  background-color: white;
  color: #0B62AC;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}

.link-libro:hover {
  color: #D65197;
}

.link-libro:hover i {
  background-color: #D65197;
  color: white;
}


/* Línea de correo */
.contact-email{
  text-align:center;
  margin-top:60px;
  margin-bottom:0px;
  color:#ffffff;
  font-size:1.0rem;
  line-height:1.6;
}

.contact-email p{
  margin-bottom:8px;
}

.email-link{
  color:#ffffff;
  font-weight:600;
  text-decoration:none;
  font-size:1.05rem;
  font-weight: bold;
  transition: color 0.25s ease;
}

.email-link:hover{
  color:#D65197;
}


/* Mensaje experiencia con línea arriba y abajo */
.ciame-exp{
  width: 58%;                 /* mismo ancho de tu línea */
  margin: 0 auto;             /* centrado */
  padding: 18px 0;            /* aire entre líneas y texto */
  text-align: center;
  color: rgba(255,255,255,0.92);
  font-size: 0.92rem;
  line-height: 1.6;
  position: relative;
}

/* Línea superior */
.ciame-exp::before{
  content:"";
  display:block;
  height: 1px;
  background:#ffffff;
  margin: 0 auto 14px;
}

/* Línea inferior */
.ciame-exp::after{
  content:"";
  display:block;
  height: 1px;
  background:#ffffff;
  margin: 14px auto 0;
}

@media (max-width: 600px){
  .ciame-exp{
    width: 86%;
    font-size: 0.88rem;
    padding: 14px 0;
  }
}


/* =========================================================
   FOOTER
========================================================= */

.det-footer {
  background: #0B62AC;   /* Azul CIAME */
  padding: 28px 0px 32px;
  text-align: center;
  position: relative;
}

/*.det-footer::before {
  content: "";
  display: block;
  width: 58%;        /* igual al ancho del .container */
  /*height: 1px;        /* grosor de la línea */
  /*background: #ffffff;
  margin: 0 auto 44px auto; /* se centra y deja un espacio debajo */
/*}*/

.footer-copy {
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 12px;
  font-weight: 500;
}

.footer-links {
  color: #ffffff;
  font-size: 0.9rem;
}

.footer-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  padding: 0 6px;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #D65197; /* Rosado CIAME */
}


/* =========================================================
   BOTÓN ARRIBA FLOTANTE
   ========================================================= */

.btn-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #D65197; /* Rosado CIAME */
  color: #fff;
  padding: 12px 18px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, background-color 0.3s ease;
  z-index: 1000;
}


/* Al situar el mouse */
.btn-top:hover {
  background-color: #c44d86; /* Tonalidad más oscura del rosado */
}


/* Cuando el botón está visible */
.btn-top.visible {
  opacity: 1;
  pointer-events: auto;
}

main, section {
  scroll-margin-top: 109px; /* Esto arregla los clics de ancla (#seccion) */
}

body {
  padding-top: 109px; /* Este valor debe ser igual a la altura de tu cabecera */
}

[id] {
  scroll-margin-top: 110px; /* Ajusta según la altura real de tu cabecera */
}


/* =========================================================
   MENÚ RESPONSIVE/MÓVIL (<=768px)
   ========================================================= */

@media (max-width: 768px) {

  body.menu-open {
    overflow: hidden;
    touch-action: none;
  }
  
  /* Alineación dentro del pill: logo a la izquierda, burger a la derecha */
  .det-nav-pill {
    justify-content: space-between;
    align-items: center;
  }

  .det-nav-logo { order: 1; }
  .det-burger   { order: 2; margin-left: auto; }
  .det-nav-menu { order: 3; }

  /* Mostrar hamburguesa */
  .det-burger {
    display: flex;
  }


  /* ---------------------------
     MENÚ PRINCIPAL (MÓVIL)
     --------------------------- */
  .det-nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #D65197;
    padding: 10px 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
  }


  /* JS añadirá .show */
  .det-nav-menu.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }


  /* Más separación entre items */
  .det-nav-menu li { 
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 8px 0;/*10px 0*/
  }

  .det-nav-menu a {
    width: 100%;
    text-align: center;
    padding: 12px 20px;/*10px 20px*/
  }

  .catalogo-toggle {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
  }


  /* ---------------------------
     SUBMENÚ CATÁLOGO (MÓVIL)
     --------------------------- */

  .has-dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    /*position: static;*/
  }

  .has-dropdown > a {
    position: relative;
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    margin: 0;
  }

  /* Submenú tipo acordeón con animación */
  .has-dropdown .dropdown {
    position: static;
    width: 100%;
    background: #c44d86;

    /* Siempre presente */
    display: block;

    /* Estado cerrado */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0;

    /* Transición compartida (abre y cierra igual) */
    transition:
      max-height 0.6s ease,
      opacity 0.4s ease;

    /* Efecto “nivel inferior” */
    box-shadow:
      inset 0 6px 10px rgba(0, 0, 0, 0.18),
      inset 0 -6px 10px rgba(0, 0, 0, 0.12);
    margin: 0;
    border-radius: 0;
  }


  /* Cuando se activa → se muestra */
  .has-dropdown.active .dropdown {
    max-height: 600px; /* suficiente para todos los ítems */
    opacity: 1;
  }

  .has-dropdown .dropdown a {
    padding: 12px 0;
    text-align: center;
    display: block;
  }
}


/* =========================================================
   RESPONSIVE EXTRA
   ========================================================= */

/* Móvil: 2 columnas */
@media (max-width: 600px) {
  .det-nav { padding: 14px 10px; }
  .det-nav-pill { gap: 10px; }
  .det-nav-logo img { width: 34px; height: 34px; }

  .det-title { font-size: 1.6rem; }
  .det-text  { font-size: 1rem; }

  .card-media { 
    height: 220px; 
  }

  .card-body {
    padding: 0px 12px 12px;
  }

  .card-title {
    margin-bottom: 16px;
  }

  .det-group-title {
    font-size: 1.30rem;
  }

  .det-group-intro{
    max-width: 40ch;      /* ancho de lectura ideal en móvil */
    font-size: 0.96rem;
    margin: -4px auto 36px;
  }

  .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .contact-grid { grid-template-columns: 1fr; text-align: center; gap: 20px; }

  .footer-link {
    text-align: center;
    padding: 0;
  }

  body { padding-top: 82px; }  /* Ajusta este valor hasta que desaparezca el espacio */
}

@media (max-width: 350px) {
  .btn-info { font-size: 0.8rem; padding: 7px 12px; letter-spacing: -0.2px; max-width: 90%; }
}


/* =========================================================
   CIAME – RESPONSIVE PROFESIONAL DEFINITIVO (PRODUCCIÓN)
   Pegar al FINAL del CSS
   ========================================================= */

/* 1) Anti overflow global (seguro) */
html, body {
  width: 100%;
  overflow-x: hidden;
}

/* 2) Container profesional (reemplaza el comportamiento de width:95%) */
.container {
  max-width: 1100px;
  width: 100%;
  margin-inline: auto;
  padding-inline: clamp(12px, 3vw, 24px);
  /*padding-inline: clamp(16px, 4vw, 24px);*/
}

/* 3) Grid de cards profesional:
      - Base: fluido (evita desbordes)
      - Control explícito por rangos para tu objetivo (4 / 3 / 2) */
.card-grid {
  display: grid;
  gap: clamp(16px, 3vw, 22px);
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* Desktop base */
  justify-content: center;
  margin-bottom: 100px;
  padding-inline: clamp(12px, 3vw, 24px);
}

/* Tablet horizontal / mini web (4 cards) */
@media (max-width: 1100px) {
  .card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Tablet vertical (3 cards) */
@media (max-width: 820px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Móvil y pantallas pequeñas (2 cards) */
@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 4) Botón dentro de cards: evitar micro-overflow */
.btn-info {
  max-width: 100%;
}

/* 5) CONTACTO: grid fluido y seguro (soluciona el desborde real) */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* Desktop */
  gap: clamp(24px, 5vw, 64px);
  justify-content: center;
  max-width: 1100px;
  margin-inline: auto;
}


/* Tablet vertical: 2 columnas */
@media (max-width: 820px) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Móvil: 1 columna */
@media (max-width: 600px) {
  .contact-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
}


/* =========================================
   AJUSTE VISUAL DE ALINEACIÓN — TABLET VERTICAL
   Rango: 601–820px
   ========================================= */

@media (min-width: 601px) and (max-width: 1080px) {
  .carrusel-hero {
    padding-left: 10px;
    padding-right: 56px;
  }
}

@media (min-width: 601px) and (max-width: 1080px) {
  .det-catalogo .container {
    padding-left: 1px;
    padding-right: 20px;
  }
}

@media (min-width: 601px) and (max-width: 1080px) {
  .det-contacto .container {
    padding-left: 10px;
    padding-right: 2px;
  }
}

@media (min-width: 601px) and (max-width: 1080px) {
  .det-footer .container {
    padding-left: 0px;
    padding-right: 18px;
  }
}


/* =========================================
   AJUSTE VISUAL DE ALINEACIÓN — MÓVIL
   Rango: 0–600px
   ========================================= */

@media (max-width: 600px) {
  .det-catalogo .container {
    padding-inline: 0px;
    /*padding-right: 22px;*/
  }
}

@media (max-width: 600px) {
  .det-contacto .container {
    padding-left: 8px;
    /*padding-right: 22px;*/
  }
}

@media (max-width: 600px) {
  .det-contacto .contact-grid {
    padding-right: 18px;
  }
}

@media (max-width: 600px) {
  .det-footer .container {
    padding-left: 2px;
    /*padding-right: 22px;*/
  }
}


/* =========================================
   HEADER DESKTOP — NORMALIZACIÓN DEFINITIVA
   Altura total exacta: 73px (como Insumos)
   ========================================= */

@media (min-width: 1025px) {

  /* Contenedor azul */
  .det-header-bg {
    height: 109px;
  }

  /* Contenedor intermedio */
  .det-nav {
    height: 100%;
    padding: 0;                 /* elimina crecimiento */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Barra rosada */
  .det-nav-pill {
    height: 73px;               /* altura real interna */
    padding: 10px 16px;         /* 10px arriba + 10px abajo */
    display: flex;
    align-items: center;
    box-sizing: border-box;
  }

}


/* =========================================
   CORRECCIÓN ALTURA HEADER — TABLET
   ========================================= */
@media (min-width: 769px) and (max-width: 1024px) {

  /* Barra azul */
  .det-header-bg {
    height: 100px;
  }

  /* Contenedor interno */
  .det-nav {
    height: 98px;
    padding: 0;                 /* elimina crecimiento */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Barra rosada */
  .det-nav-pill {
    height: 64px;
    padding: 0px 16px;         /* 10px arriba + 10px abajo */
    display: flex;
    align-items: center;
    box-sizing: border-box;
  }

}


/*===============
CARRUSEL EN MÓVIL
================*/

/* Carrusel: por defecto (web/tablet) solo horizontal */
#carrusel-hero .carrusel-v { display: none; }

/* Móvil: solo vertical */
@media (max-width: 600px) {
  #carrusel-hero .carrusel-h { display: none; }
  #carrusel-hero .carrusel-v { display: block; }
}


/* =========================================================
   CONTAINER MÁS ANCHO (SOLO WEB / DESKTOP)
   Pegar al FINAL del CSS
   ========================================================= */

@media (min-width: 1200px) {
  .container{
    max-width: 1240px;                 /* antes 1100 */
    padding-inline: clamp(12px, 2vw, 20px); /* reduce márgenes laterales */
  }
}


/* Tablets: vertical = 3 columnas (mantiene horizontal en 4) */
@media (min-width: 601px) and (max-width: 1100px) and (orientation: portrait) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
