/* CONTENEDOR GENERAL */
.container-servicios {
  max-width: 90%;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==============================================================================
   1. HERO DE SERVICIOS
   ============================================================================== */
.hero-servicios {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 480px;
  color: #ffffff;
  padding: 60px 20px;
}

.hero-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.22) 0%, rgba(15, 23, 42, 0.75) 100%);
  z-index: 2;
}

.hero-servicios .container-servicios {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-servicios-content {
  display: grid;
  grid-template-columns: 2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

/* LADO IZQUIERDO: TEXTO Y BOTONES */
.hero-text-side h1 {
  color: #ffffff;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
}

.texto-naranja {
  color: #f97316;
}

.hero-text-side p {
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 580px;
  margin-bottom: 28px;
}

.hero-action-buttons {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-orange-hero {
  background-color: #f97316;
  color: #ffffff;
  border: none;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.35);
  text-decoration: none;
}

.btn-orange-hero:hover {
  background-color: #ea580c;
  transform: translateY(-2px);
}

.btn-hero-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.btn-hero-link:hover {
  color: #f97316;
}

/* LADO DERECHO: 3 PILARES CON ÍCONOS */
.hero-features-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 15px; 
  padding: 12px 18px;  
}

.feature-icon-box {
  width: 68px;
  height: 68px;
  background-color: black;
  color: #ea580c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.0rem;
  flex-shrink: 0;
}

.hero-feature-item span {
  color: #f1f5f9;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
}

/* ==============================================================================
   2. GRID DE SERVICIOS (4 COLUMNAS x 2 FILAS)
   ============================================================================== */
.seccion-servicios-main {
  padding: 60px 0;
  background-color: #f8fafc;
}

.servicios-header-text {
  text-align: center;
  margin-bottom: 40px;
}

.servicios-header-text h2 {
  color: #0f172a;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.servicios-header-text p {
  color: #64748b;
  font-size: 1rem;
}

.servicios-grid {  
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.servicio-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.servicio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.1);
}

/* SERVICIOS EXTRA (INICIALMENTE OCULTOS) */
.servicio-card.card-extra {
  display: none;
}

.servicio-card.card-extra.show {
  display: flex;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background-color: #cbd5e1;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.servicio-card:hover .card-image-wrapper img {
  transform: scale(1.06);
}

.card-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-icon {
  width: fit-content;
  height: 36px;
  padding: 6px 12px;
  border-radius: 8px;
  background-color: #fff7ed;
  color: #f97316;
  border: 1px solid #ffedd5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.card-content h3 {
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-content p {
  color: #64748b;
  font-size: 0.85rem;
  line-height: 1.45;
  margin-bottom: 14px;
}

.card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.card-features li {
  color: #64748b;
  font-size: 0.8rem;
  margin-bottom: 5px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.3;
}

.card-features li i {
  color: #10b981;
  font-size: 0.85rem;
  margin-top: 2px;
}

.card-footer-action {
  margin-top: auto;
}

.btn-ver-mas {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 15px;
  background-color: #f97316;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-ver-mas:hover {
  background-color: #ea580c;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* 4. BOTÓN "VER TODOS LOS SERVICIOS" */
.ver-todos-container {
  text-align: center;
  margin-top: 40px;
}

.btn-ver-todos {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #ffffff;
  color: #f97316;
  border: 1.5px solid #f97316;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.btn-ver-todos:hover {
  background-color: #f97316;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.25);
}

/* ==============================================================================
   VENTAJAS COMPETITIVAS
   ============================================================================== */
.seccion-ventajas {
  background-color: #ffffff;
  padding: 50px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.ventajas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  text-align: center;
}

.ventaja-item i {
  font-size: 2.5rem;
  color: #f97316;
  margin-bottom: 10px;
}

.ventaja-item h4 {
  color: #0f172a;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.ventaja-item p {
  color: #64748b;
  font-size: 1.1rem;
  line-height: 1.45;
}

/* ==============================================================================
   COTIZACIÓN Y CONTACTO
   ============================================================================== */
.seccion-cotizacion-servicios {
  background-color: #f8fafc;
  padding: 70px 0;
}

.cotizacion-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  align-items: center;
}

.badge-tag-alt {
  color: #f97316;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 1px;
}

.cotizacion-info h2 {
  color: #0f172a;
  font-size: 2rem;
  font-weight: 800;
  margin: 10px 0 15px 0;
}

.cotizacion-info p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

.contact-quick-list div {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #0f172a;
  font-weight: 600;
  margin-bottom: 12px;
}

.contact-quick-list i {
  color: #f97316;
}

.cotizacion-form {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
}

.cotizacion-form h3 {
  color: #0f172a;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.form-group {
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.9rem;
  background-color: #ffffff;
  color: #0f172a;
  outline: none;
  transition: border-color 0.25s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #f97316;
}

.btn-submit-orange {
  width: 100%;
  background-color: #f97316;
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-submit-orange:hover {
  background-color: #ea580c;
}

/* ==============================================================================
   ESTILOS PARA EL MODAL DINÁMICO DE SERVICIOS ("VER MÁS")
   ============================================================================== */
.servicio-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(5px);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

/* ESTA REGLA HACE QUE APAREZCA EL MODAL AL PRESIONAR EL BOTÓN */
.servicio-modal-overlay.active {
  display: flex !important;
  animation: modalFadeIn 0.3s ease forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.servicio-modal-container {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 !important;
  animation: modalSlideUp 0.3s ease forwards;
}

@keyframes modalSlideUp {
  from { transform: translateY(20px); }
  to { transform: translateY(0); }
}

.servicio-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 20 !important;
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(4px);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}

.servicio-modal-close:hover {
  background: #fee2e2;
  color: #ef4444;
}

.servicio-modal-body {
  padding: 0 !important;
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: calc(90vh - 20px);
  overflow-y: auto;
}

.servicio-modal-body::-webkit-scrollbar {
  width: 6px;
}

.servicio-modal-body::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.servicio-modal-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

/* BANNER SUPERIOR EN EL MODAL (LISTO PARA TU VIDEO) */
.modal-video-wrapper {
  position: relative;
  width: 100%;
  height: 160px;
  background-color: #0b1120;
  overflow: hidden;
  flex-shrink: 0;
}

.modal-header-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 17, 32, 0.3) 0%, rgba(255, 255, 255, 1) 100%);
}

/* CONTENIDO PRINCIPAL */
.modal-main-content {
  padding: 24px 30px 90px 30px;
}

.modal-servicio-header h2 {
  color: #0f172a;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.25;
}

.modal-short-desc {
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-benefits-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.modal-benefit-badge {
  background-color: #fff7ed;
  color: #ea580c;
  border: 1px solid #ffedd5;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
}

.modal-section-title {
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 22px 0 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-section-title i {
  color: #f97316;
}

/* LISTA DE BENEFICIOS COMPLETOS */
.modal-benefits-list {
  list-style: none;
  padding: 0;
  margin: 15px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.5;
}

.modal-benefits-list li i {
  color: #10b981;
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* BOTÓN FLOTANTE "CONTACTAR" */
.modal-floating-contact {
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 15px 30px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  box-sizing: border-box;
  z-index: 10;
}

.btn-modal-contactar {
  background-color: #f97316;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 1rem;
  padding: 12px 32px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(234, 88, 12, 0.35);
  transition: all 0.25s ease;
}

.btn-modal-contactar:hover {
  background-color: #c2410c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.45);
}