/* ==================================================
   PORTADA (index) — hero, servicios y categorías
   Reemplaza: hero-content.css, hero-slideshow.css,
   hero-button-fix.css, home-sections.css y
   hide-old-home-sections.css (ya no hacen falta).
   Se carga solo en la portada, ver stylesheets.tpl.
   ================================================== */

/* --------- 1. HERO --------- */

.modern-hero-wrapper {
  position: relative;
  min-height: 88vh;
  /* theme.css (de un rediseño anterior) trae su propia regla
     ".modern-hero-wrapper{height:600px}" que le gana a nuestro
     min-height y recorta el contenido (overflow:hidden) cuando la
     insignia + franja de confianza necesitan más alto, sobre todo en
     mobile. Se neutraliza acá en vez de tocar ese archivo de 434KB. */
  height: auto !important;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-bottom: 50px;
  /* min-height (no height fija) para que si el contenido crece
     -como al agregar la insignia de arriba- la caja crezca con él
     en vez de recortarlo. Deja aire para la insignia arriba y los
     puntos abajo. */
  padding: 70px 0 90px;
  /* El hero vive dentro de <div class="container"> (page.tpl), que
     limita el ancho a ~1140px. Esto lo saca de ahí para que el fondo
     ocupe todo el viewport; el texto adentro sigue centrado porque
     .modern-hero-content usa su propio .container. */
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
  /* 5s = tiempo hasta el próximo cambio de slide (ver home.js) */
  animation: heroSlideZoom 5s ease-in-out forwards;
}

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

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(12, 12, 13, 0.78) 0%, rgba(12, 12, 13, 0) 45%),
    linear-gradient(90deg, rgba(12, 12, 13, 0.94) 0%, rgba(12, 12, 13, 0.62) 45%, rgba(12, 12, 13, 0.25) 100%);
}

.modern-hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 0 20px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50px;
  padding: 6px 18px 6px 6px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 22px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-eyebrow-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #F39C12;
  color: #1a252f;
  flex-shrink: 0;
}

.hero-eyebrow-badge i {
  font-size: 15px;
}

.hero-eyebrow strong {
  color: #F39C12;
}

.modern-hero-content h1 {
  font-size: 3.5rem;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: 1px;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-headline-accent {
  background: linear-gradient(90deg, #F39C12 0%, #ffcf6b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 30px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F39C12 !important;
  color: #fff !important;
  padding: 18px 40px;
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: 14px;
  text-decoration: none !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.btn-hero i {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.btn-hero:hover,
.btn-hero:focus {
  background: #3d5570 !important;
  color: #F39C12 !important;
  transform: scale(1.03) translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.btn-hero:hover i {
  transform: translateX(4px);
}

/* Segundo botón: contorno, para no competir con el principal */
.btn-hero-outline {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  box-shadow: none;
  padding: 16px 38px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn-hero-outline:hover,
.btn-hero-outline:focus {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transform: scale(1.03) translateY(-3px);
}

/* --------- Franja de confianza (tarjetas glass) --------- */

.hero-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-trust-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(12, 12, 13, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(243, 156, 18, 0.18);
  border: 1px solid rgba(243, 156, 18, 0.35);
  color: #F39C12;
  flex-shrink: 0;
}

.hero-trust-icon i {
  font-size: 20px;
}

.hero-trust-card h4 {
  margin: 0 0 2px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.hero-trust-card p {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot:hover {
  border-color: #fff;
}

.hero-dot.active {
  background: #F39C12;
  border-color: #F39C12;
  transform: scale(1.2);
}

@media (max-width: 991px) {
  .modern-hero-wrapper { min-height: auto; padding: 130px 0 50px; }
  .modern-hero-content h1 { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .hero-trust-strip { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .modern-hero-wrapper { padding: 110px 0 40px; }
  .modern-hero-content h1 { font-size: 1.8rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-eyebrow { font-size: 0.75rem; padding: 5px 14px 5px 5px; }
  .btn-hero, .btn-hero-outline { padding: 14px 30px; font-size: 1rem; }
  .hero-actions { gap: 12px; }
  .hero-trust-strip { margin-top: 32px; padding-top: 20px; }
}

/* Este build de Bootstrap del tema no trae las utilidades px-5/g-4/mb-5
   (solo llega hasta la escala -3), así que el padding de estas dos
   secciones se define acá en vez de depender de esas clases. */
.home-section-inner {
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 768px) {
  .home-section-inner {
    padding-left: 48px;
    padding-right: 48px;
  }
}

/* --------- Títulos de sección (servicios y categorías) --------- */

.section-header-pro {
  margin-bottom: 60px;
  /* Este tema no da padding a .col-12 ni a .container-fluid en las
     filas (.row cancela el padding del padre), así que el respiro
     lateral se pone directo aquí para que el título no toque el borde
     en mobile. */
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 768px) {
  .section-header-pro {
    padding-left: 48px;
    padding-right: 48px;
  }
}

.section-header-pro .title-pro {
  color: #2c3e50;
  font-weight: 900;
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.section-header-pro .title-pro span {
  color: #F39C12;
}

.section-header-pro .separator-pro {
  width: 80px;
  height: 4px;
  margin: 0 auto 20px auto;
  border-radius: 2px;
  background: linear-gradient(to right, #F39C12, #f8c471);
}

.section-header-pro .subtitle-pro {
  color: #666;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 991px) {
  .section-header-pro .title-pro { font-size: 2rem; }
}

@media (max-width: 767px) {
  .section-header-pro .title-pro { font-size: 1.5rem; }
}

/* --------- 2. SERVICIOS --------- */
/* Tarjetas tipo "galería": la foto ocupa toda la tarjeta, el texto va
   encima con una sombra en degradado atrás para que se lea bien.
   Título y descripción siempre visibles; la lista de detalle aparece
   al pasar el mouse (en mobile, sin hover, se deja siempre visible). */

.services-section {
  background-color: #fff;
  padding: 80px 0;
  /* De borde a borde, igual que el hero: ver el comentario en
     .modern-hero-wrapper más arriba. */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.service-card-pro {
  position: relative;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card-pro:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
}

.service-card-pro .card-img-header {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.service-card-pro:hover .card-img-header {
  transform: scale(1.06);
}

/* Degradado siempre presente (para leer el título) que se oscurece
   más todavía al pasar el mouse (para leer la lista completa). */
.service-card-pro .card-img-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 32, 0.92) 0%, rgba(15, 23, 32, 0.55) 38%, rgba(15, 23, 32, 0.05) 68%);
  transition: background 0.3s ease;
}

.service-card-pro:hover .card-img-header::after {
  background: linear-gradient(to top, rgba(15, 23, 32, 0.96) 0%, rgba(15, 23, 32, 0.85) 55%, rgba(15, 23, 32, 0.25) 100%);
}

.service-card-pro .floating-icon {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(3px);
  z-index: 3;
}

.service-card-pro .floating-icon i {
  color: #fff;
  font-size: 26px;
}

.service-card-pro .card-body-pro {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 22px;
}

.service-card-pro .card-body-pro h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.service-card-pro .card-body-pro .desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 0;
}

.service-card-pro .card-body-pro .pro-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.35s ease;
}

.service-card-pro:hover .card-body-pro .pro-list {
  max-height: 220px;
  opacity: 1;
}

.service-card-pro .card-body-pro .pro-list li {
  position: relative;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.95);
  padding-left: 22px;
  margin-bottom: 7px;
}

.service-card-pro .card-body-pro .pro-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #F39C12;
  font-weight: bold;
}

/* Sin mouse (mobile/tablet táctil) no hay hover real: se deja la
   lista siempre visible en vez de esconder contenido sin forma de
   abrirlo con un tap. */
@media (max-width: 767px) {
  .service-card-pro .card-body-pro .pro-list {
    max-height: 220px;
    opacity: 1;
  }
}

.btn-cotizar-pro {
  display: inline-block;
  margin-top: 30px;
  background: #F39C12;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 18px 60px;
  border-radius: 50px;
  box-shadow: 0 10px 20px rgba(243, 156, 18, 0.3);
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-cotizar-pro:hover {
  background: #2c3e50;
  color: #fff;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(44, 62, 80, 0.4);
}

@media (max-width: 767px) {
  .service-card-pro { height: 340px; }
}

/* --------- 3. CATEGORÍAS (módulo homecategoriez) --------- */

.home-categories {
  background-color: #f4f6f8;
  padding: 100px 0;
  /* De borde a borde, igual que el hero. */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.geo-card-mini {
  display: block;
  position: relative;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 30px;
  background: linear-gradient(135deg, #2c3e50 0%, #000 100%);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-decoration: none !important;
  transition: all 0.3s ease;
}

.geo-card-mini:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  border-bottom: 3px solid #F39C12;
}

.geo-card-mini .geo-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  transition: transform 0.5s ease;
}

.geo-card-mini:hover .geo-bg {
  transform: scale(1.1);
  opacity: 0.3;
}

.geo-card-mini .geo-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.geo-card-mini .geo-content h3 {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.geo-card-mini:hover .geo-content h3 {
  color: #F39C12;
}

@media (max-width: 767px) {
  .geo-card-mini { height: 120px; }
}
