/* ==========================================
   ESTILOS GENERALES Y CONFIGURACIÓN
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.catalog-page {
  font-family: 'PT Sans', sans-serif;
  background-color: #3b1c0c;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ==========================================
   ENCABEZADO DE 100% (INTACTO Y PROTEGIDO)
   ========================================== */
.header-bg-layer {
  width: 100%;
  background-color: #f6911f;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.header-bg-layer::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc((100vw - 1280px) / 2 + 33%);
  background-color: #4f2800;
  z-index: 1;
}

@media (max-width: 1280px) {
  .header-bg-layer::before {
    width: 33%;
  }
}

.header-inner-container {
  width: 100%;
  max-width: 1280px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.header-box-milatino {
  background-color: #4f2800;
  padding: 20px;
  display: flex;
  align-items: center;
}

.brand-title {
  font-family: 'PT Sans', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-transform: uppercase;
}

.header-box-right-group {
  flex: 1;
  background-color: #f6911f;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.header-box-express {
  padding: 20px 0;
  display: flex;
  align-items: center;
}

.express-title {
  font-family: 'PT Sans', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-transform: uppercase;
}

.header-box-nav {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.tabs-nav {
  display: flex;
  background-color: #4f2800;
  padding: 0;
  gap: 0;
  border: 1px solid #f29f05;
}

.tab-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: 'PT Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 13px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  color: #ffcc00;
}

.tab-btn.active {
  background-color: #ffcc00;
  color: #3b1c0c;
}

@media (max-width: 900px) {
  .header-bg-layer::before {
    display: none;
  }
  .header-inner-container {
    flex-direction: column;
  }
  .header-box-milatino, 
  .header-box-right-group {
    width: 100%;
  }
  .header-box-right-group {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }
  .header-box-milatino {
    background-color: #4f2800;
    justify-content: center;
  }
  .header-box-express, .header-box-nav {
    padding: 0;
    justify-content: center;
  }
}

/* ==========================================
   SECCIÓN HERO / CALL TO ACTION (100% Full Screen)
   ========================================== */
.hero-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 500px;
  background: url('img/ctaimage.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  margin-top: 0;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.hero-section.active {
  display: flex;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: #f29f05;
  line-height: 1.6;
  max-width: 650px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary-hero {
  background-color: #ffcc00;
  color: #3b1c0c;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: 'PT Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-primary-hero:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-outline-hero {
  background-color: transparent;
  color: #ffcc00;
  border: 2px solid #ffcc00;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: 'PT Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-outline-hero:hover {
  background-color: #ffcc00;
  color: #3b1c0c;
  transform: translateY(-2px);
}

/* ==========================================
   SECCIÓN PRODUCTOS - APARICIÓN LENTA Y SUAVE
   ========================================== */
.products-full-section {
  width: 100%;
  background-color: transparent;
}

.products-container-full {
  width: 100%;
  padding: 30px 2%; 
}

.product-slider-container {
  position: relative;
  width: 100%;
}

.product-slide {
  display: none;
  width: 100%;
}

.product-slide.active {
  display: block;
}

.product-slide.active .card-custom {
  animation: cardEntrance 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardEntrance {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(30px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.product-grid-custom {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  justify-content: space-evenly; 
}

.card-custom {
  width: 22%;
  background-color: transparent;
  border-bottom: 2px solid #8a7e78;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-bottom: 30px; 
  margin-right: 0; 
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card-custom:hover {
  border-color: #f6911f;
  box-shadow: 0 4px 12px rgba(246, 145, 31, 0.25);
}

.card-custom .card-img-box {
  width: 100%;
  height: 270px; 
  overflow: hidden;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-custom .card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain; 
  transition: transform 0.5s ease;
}

.card-custom:hover .card-img-box img {
  transform: scale(1.08);
}

.card-custom .card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.card-custom .card-body h3 {
  font-size: 1.5rem;
  color: #f6911f;
}

.card-custom .card-desc {
  font-size: 1.2rem;
  color: #dddddd;
  line-height: 1.3;
}

/* ==========================================
   NAVEGACIÓN DEL SLIDER DE PRODUCTOS (AISLADA Y SEGURA)
   ========================================== */
.slider-nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  margin-top: 35px;
  margin-bottom: 15px;
}

.slider-arrow {
  color: #aaaaaa;
  font-size: 3.8rem;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
  user-select: none;
  line-height: 1;
  display: flex;
  align-items: center;
}

.slider-arrow:hover {
  color: #f6911f;
  transform: scale(1.15);
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 35px;
  padding: 10px;
}

.slider-dots .dot {
  width: 20px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #777777;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.slider-dots .dot:hover {
  background: #bbbbbb;
}

.slider-dots .dot.active {
  background: #f6911f;
  box-shadow: none;
  animation: none;
}

.slider-dots .dot:not(.active) {
  box-shadow: 0 0 0 0 rgba(119, 119, 119, 0.4);
  animation: sliderDotPulse 2s infinite;
}

@keyframes sliderDotPulse {
  100% {
    box-shadow: 0 0 0 30px #0000;
  }
}

@media (max-width: 1024px) {
  .card-custom {
    width: 48%;
  }
}

@media (max-width: 600px) {
  .card-custom {
    width: 100%;
  }
}

/* ==========================================
   ESTILOS PARA LA PÁGINA DE SERVICIO (COPIADOS DE PRODUCTOS)
   Todos los selectores renombrados con prefijo servicio_ y guion bajo
   Actualizado: Servicios tiene 4 tarjetas al 44%, en 2 filas de 2, nombre y descripción centrados, imagen cover con caja de 400px de alto, titulo h3 de 2.3rem, tarjetas sin bordes ni efecto hover (solo zoom de imagen), descripcion de 1.3rem
   ========================================== */
.servicio_full_section {
  width: 100%;
  background-color: transparent;
}

.servicio_contenedor_full {
  width: 100%;
  padding: 30px 2%; 
}

.servicio_slider_contenedor {
  position: relative;
  width: 100%;
}

.servicio_slide {
  display: none;
  width: 100%;
}

.servicio_slide.active {
  display: block;
}

.servicio_slide.active .servicio_card_custom {
  animation: servicio_card_entrance 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes servicio_card_entrance {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(30px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.servicio_grid_custom {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  justify-content: space-evenly; 
}

.servicio_card_custom {
  width: 44%;
  background-color: transparent;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-bottom: 30px; 
  margin-right: 0; 
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.servicio_card_custom .servicio_card_img_box {
  width: 100%;
  height: 400px; 
  overflow: hidden;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.servicio_card_custom .servicio_card_img_box img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  transition: transform 0.5s ease;
}

.servicio_card_custom:hover .servicio_card_img_box img {
  transform: scale(1.08);
}

.servicio_card_custom .servicio_card_body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.servicio_card_custom .servicio_card_body h3 {
  font-size: 2rem;
  color: #f6911f;
}

.servicio_card_custom .servicio_card_desc {
  font-size: 1.3rem;
  color: #dddddd;
  line-height: 1.3;
}

@media (max-width: 1024px) {
  .servicio_card_custom {
    width: 48%;
  }
}

@media (max-width: 600px) {
  .servicio_card_custom {
    width: 100%;
  }
}

/* Teléfono dentro de cada tarjeta de Servicios */
.servicio_card_tel {
  margin-top: 15px;
  padding: 15px 12px;
  background-color: #3b1c0c;
  border-radius: 10px;
  text-align: center;
}
.servicio_card_tel_texto {
  font-size: 1rem;
  color: #dddddd;
  margin-bottom: 8px;
}
.servicio_card_tel_link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.servicio_card_tel_icono {
  font-size: 1.3rem;
  color: #f6911f;
}
.servicio_card_tel_numero {
  font-size: 1.2rem;
  font-weight: bold;
  color: #f6911f;
  letter-spacing: 1px;
}

/* ==========================================
   CONTENEDOR PRINCIPAL Y SECCIONES
   ========================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  width: 100%;
  flex: 1;
}

.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

/* ==========================================
   SECCIÓN DE CONTACTO Y FORMULARIO
   ========================================== */
/* Mapa en vivo de Riverside como fondo full-width y full-height */
#seccionContacto {
  min-height: 100vh;
}
#seccionContacto.active {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  padding: 60px 0;
  box-sizing: border-box;
  /* Sale del contenedor de 1200px a full-width (misma tecnica del hero) */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}
.contacto_mapa_fondo {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.1;
}
.contacto_mapa_fondo iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
/* 9.5% al lado izquierdo: la primera tarjeta va justo despues del fondo del mapa */
.contacto_mapa_fondo + .contacto_tarjeta {
  margin-left: 9.5%;
}
/* 3% entre tarjetas */
.contacto_tarjeta + .contacto_tarjeta {
  margin-left: 3%;
}
/* 9.5% al lado derecho: la ultima tarjeta */
.contacto_tarjeta:last-child {
  margin-right: 9.5%;
}
/* Tres tarjetas al 25% cada una (75% total) directo en la seccion full-width */
.contacto_tarjeta {
  flex: 0 0 25%;
  position: relative;
  z-index: 1;
  background-color: transparent;
  border-radius: 12px;
  padding: 30px 25px;
  box-sizing: border-box;
}
.contacto_tarjeta h3 {
  color: #ffffff;
  font-size: 1.5rem;
  text-align: center;
  margin: 0 0 22px;
  letter-spacing: 0.8px;
}
.contacto_tarjeta_lista {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: fit-content;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contacto_tarjeta_lista li {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  gap: 12px;
  color: #cccccc;
  font-size: 1.05rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.contacto_tarjeta_lista i {
  color: #f6911f;
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.contacto_tarjeta_lista a {
  color: #cccccc;
  text-decoration: none;
}
.contacto_tarjeta_lista a:hover {
  color: #f6911f;
}
/* Tarjeta Sobre nosotros: 35% a la izquierda del formulario */
.contacto_sobre_nosotros {
  flex: 0 0 35%;
  margin: 50px 0 0 10%;
  position: relative;
  z-index: 1;
  background-color: transparent;
  border-radius: 12px;
  padding: 60px 25px 30px;
  box-sizing: border-box;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}
.contacto_sobre_nosotros_img {
  display: block;
  width: calc(100% - 50px);
  max-width: none;
  height: auto;
  margin: 0 auto 20px;
}
.contacto_sobre_nosotros h3 {
  color: #e8963e;
  font-size: 2rem;
  text-align: center;
  margin: 0 0 22px;
  letter-spacing: 0.8px;
}
.contacto_sobre_nosotros p {
  color: #ffffff;
  font-size: 1.3rem;
  line-height: 1.6;
  text-align: center;
  margin: 0;
}
/* Formulario de contacto: fila propia debajo de las tarjetas */
.contacto_formulario {
  flex: 0 0 40%;
  margin: 50px 10% 0 5%;
  background-color: transparent;
  border-radius: 12px;
  padding: 35px 30px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}
/* Honeypot antispam: fuera de pantalla, invisible para personas */
.contacto_honeypot {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contacto_formulario h3 {
  color: #ffffff;
  font-size: 1.7rem;
  text-align: center;
  margin: 0 0 25px;
  letter-spacing: 0.8px;
}
.contacto_form_grupo {
  margin-bottom: 28px;
}
.contacto_form_grupo label {
  display: block;
  color: #f6911f;
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.contacto_form_grupo input,
.contacto_form_grupo select,
.contacto_form_grupo textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #6b4a2f;
  border-radius: 8px;
  background-color: #3b1c0c;
  color: #ffffff;
  font-family: 'PT Sans', sans-serif;
  font-size: 1.15rem;
  box-sizing: border-box;
}
.contacto_form_grupo input:focus,
.contacto_form_grupo select:focus,
.contacto_form_grupo textarea:focus {
  outline: none;
  border-color: #f6911f;
}
.contacto_form_grupo textarea {
  resize: vertical;
}
.contacto_form_fila {
  display: flex;
  gap: 15px;
}
.contacto_form_fila .contacto_form_grupo {
  flex: 1;
}
.contacto_form_boton {
  display: block;
  width: fit-content;
  min-width: 200px;
  margin: 10px auto 0;
  background-color: #ffcc00;
  color: #3b1c0c;
  border: none;
  padding: 14px 30px;
  border-radius: 8px;
  font-family: 'PT Sans', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.contacto_form_boton:hover {
  opacity: 0.9;
}
/* Modal de confirmacion del formulario */
.contacto_modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.7);
}
.contacto_modal.activo {
  display: flex;
}
.contacto_modal_contenido {
  background-color: #271206;
  border-radius: 12px;
  padding: 75px 70px;
  max-width: 700px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  box-sizing: border-box;
}
.contacto_modal_titulo {
  color: #e8963e;
  font-size: 3rem;
  line-height: 1.2;
  margin: 0 0 20px;
}
.contacto_modal_mensaje {
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1.6;
  margin: 0;
}
.contacto_modal_conteo {
  color: #f6911f;
  font-size: 1.2rem;
  margin: 20px 0 0;
}
.contacto_modal_conteo span {
  font-size: 2rem;
  font-weight: 700;
}
@media (max-width: 1200px) {
  /* En tablet (iPad) la pagina de contacto se apila igual que en el iPhone */
  #seccionContacto.active {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px 5%;
  }
  .contacto_mapa_fondo + .contacto_tarjeta,
  .contacto_tarjeta + .contacto_tarjeta,
  .contacto_tarjeta:last-child {
    margin-left: 0;
    margin-right: 0;
  }
  .contacto_tarjeta {
    flex: none;
    width: 100%;
    max-width: 500px;
  }
  .contacto_sobre_nosotros {
    flex: none;
    width: 100%;
    max-width: 500px;
    margin: 20px auto 0;
    padding: 30px 25px;
  }
  .contacto_formulario {
    flex: none;
    width: 100%;
    margin: 20px auto 0;
    padding: 30px 20px;
  }
  .contacto_form_fila {
    flex-direction: column;
    gap: 0;
  }
}
#seccionContacto .contact-layout {
  position: relative;
  z-index: 1;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-info-card, .contact-form-card {
  background-color: #271206;
  border: 1px solid #f29f05;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-desc {
  color: #ddd;
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.contact-details-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
}

.c-icon {
  font-size: 1.1rem;
}

.contact-details-list a, .contact-details-list span {
  color: #fff;
  text-decoration: none;
}

.contact-details-list a:hover {
  color: #ffcc00;
  text-decoration: underline;
}

.btn-contact-action {
  display: inline-block;
  background-color: transparent;
  color: #ffcc00;
  border: 1px solid #ffcc00;
  padding: 10px 16px;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  margin-top: auto;
}

.btn-contact-action:hover {
  background-color: #ffcc00;
  color: #3b1c0c;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.btn-submit {
  background-color: #ffcc00;
  color: #3b1c0c;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-family: 'PT Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
  margin-top: 10px;
}

.btn-submit:hover {
  opacity: 0.9;
}

/* ==========================================
   FOOTER (ANCHO 1280px, TRANSPARENTE, DERECHOS Y REDES)
   ========================================== */
.site-footer {
  width: 100%;
  background-color: #4f2800;
  display: flex;
  justify-content: center;
  padding: 30px 20px;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.footer-inner {
  width: 100%;
  max-width: 1280px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding-top: 20px;
}

.footer-copy {
  font-size: 1.2rem;
  color: #cccccc;
}
.footer-copy-marca {
  color: #3b1c0c;
  background-color: #e78d2e;
  padding: 8px 18px;
  border-radius: 8px;
  margin-right: 12px;
}

.footer-socials {
  display: flex;
  gap: 18px;
  align-items: center;
}

.footer-socials a {
  color: #ffffff;
  font-size: 2.5rem;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
}

.footer-socials a:hover {
  transform: scale(1.15);
}

/* Hover con el color de cada red social */
.footer-socials a[aria-label="Facebook"]:hover {
  color: #1877F2;
}
.footer-socials a[aria-label="YouTube"]:hover {
  color: #FF0000;
}
.footer-socials a[aria-label="Instagram"]:hover {
  color: #E4405F;
}
.footer-socials a[aria-label="TikTok"]:hover {
  color: #25F4EE;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }
  .footer-copy {
    width: 100%;
    text-align: center;
  }
  .footer-copy-marca {
    display: table;
    margin: 0 auto 10px;
  }
  .footer-socials {
    justify-content: center;
  }
}

/* ==========================================
   AJUSTES RESPONSIVE (tabletas y celulares)
   El desktop queda intacto; esto solo evita
   que algo se salga o se colapse en pantallas chicas
   ========================================== */
@media (max-width: 900px) {
  /* El menu se acomoda en 2 filas en vez de salirse de la pantalla */
  .tabs-nav {
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
  }
  /* En dispositivos el menu vuelve a 0.9rem (en desktop queda en 1.2rem) */
  .tab-btn {
    font-size: 0.9rem;
    padding: 13px 12px;
  }
}
@media (max-width: 600px) {
  /* Flechas y dots del slider de productos caben en el celular */
  .slider-nav-container {
    gap: 25px;
  }
  .slider-dots {
    gap: 20px;
  }
  /* Imagenes de servicios mas proporcionadas en el celular */
  .servicio_card_custom .servicio_card_img_box {
    height: 250px;
  }
  /* El modal respira en pantallas chicas */
  .contacto_modal_contenido {
    padding: 40px 25px;
  }
  .contacto_modal_titulo {
    font-size: 2rem;
  }
  .contacto_modal_mensaje {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  /* En telefonos angostos el menu se achica un poco mas para quedar en una sola fila */
  .tab-btn {
    font-size: 0.8rem;
    padding: 10px 10px;
  }
}

/* ==========================================
   iPHONE EN HORIZONTAL: mismo apilado que en vertical
   Solo aplica a telefonos apaisados (hasta 960px);
   el iPad y la computadora quedan intactos
   ========================================== */
@media (orientation: landscape) and (max-width: 960px) {
  /* Encabezado apilado como en vertical */
  .header-bg-layer::before {
    display: none;
  }
  .header-inner-container {
    flex-direction: column;
  }
  .header-box-milatino,
  .header-box-right-group {
    width: 100%;
  }
  .header-box-right-group {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }
  .header-box-milatino {
    background-color: #4f2800;
    justify-content: center;
  }
  .header-box-express, .header-box-nav {
    padding: 0;
    justify-content: center;
  }
  /* Menu acomodado y mas chico */
  .tabs-nav {
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
  }
  .tab-btn {
    font-size: 0.9rem;
    padding: 13px 12px;
  }
  /* Productos: una tarjeta por fila */
  .card-custom {
    width: 100%;
  }
  .slider-nav-container {
    gap: 25px;
  }
  .slider-dots {
    gap: 20px;
  }
  /* Servicios: una tarjeta por fila, imagen mas proporcionada */
  .servicio_card_custom {
    width: 100%;
  }
  .servicio_card_custom .servicio_card_img_box {
    height: 250px;
  }
  /* Footer apilado y centrado */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }
  .footer-copy {
    width: 100%;
    text-align: center;
  }
  .footer-copy-marca {
    display: table;
    margin: 0 auto 10px;
  }
  .footer-socials {
    justify-content: center;
  }
  /* Modal mas compacto */
  .contacto_modal_contenido {
    padding: 40px 25px;
  }
  .contacto_modal_titulo {
    font-size: 2rem;
  }
  .contacto_modal_mensaje {
    font-size: 1.2rem;
  }
}
