/* ===== ESTILO GENERAL PARA SERVICIOS ===== */

.servicios-hero { position: relative; height: 55vh; background-image: url("medios/image/humo1.jpg");  background-position: center; background-repeat: repeat-x; display: flex; flex-direction: column; justify-content: flex-end; /* imagen abajo */ align-items: center; padding: 20px 10px; max-width: 100%; overflow: hidden;}
.servicios-hero .hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55);}
.hero-content { margin-top: 80px;}
.servicios-hero .hero-content { position: relative; z-index: 2;}
.servicios-hero h1 { font-size: 58px; color: var(--dorado);}
.servicios-hero p { font-size: 26px; margin-top: 5px; opacity: .9;}
/* ===== SECCIÓN DE INTRODUCCIÓN ===== */
.servicios-intro { padding: 60px 30px; text-align: center; max-width: 900px; margin: 0 auto;}
.servicios-intro h2 { font-size: 40px; color: var(--dorado); margin-bottom: 20px;}
.servicios-intro p { font-size: 20px; line-height: 1.7; opacity: .9;}
.hero-img img { width: 100%; max-width: 1000px; height: auto; margin-top: 0px;}
/* ===== BLOQUES DE SERVICIOS ===== */
.servicios-bloques { display: flex; justify-content: space-between; gap: 20px; padding: 80px 40px; background: var(--ebano);}
.servicio { flex: 1; background: #333; padding: 40px; border-radius: 20px; text-align: center; box-shadow: 0 8px 20px rgba(0,0,0,0.25); transition: transform .3s ease;}
.servicio { display: flex; flex-direction: column;}
.servicio a.btn { margin-top: auto; }
.servicios-bloques_a { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto; padding: 20px;}
.servicio:hover { transform: translateY(-6px);}
.servicio-img { position: relative; border-radius: 0 50px 0 50px; overflow: hidden; margin-bottom: 20px; border: 4px solid var(--dorado); aspect-ratio: 3 / 2;}
.servicio-img img { width: 100%; height: auto; object-fit: cover; object-position: center; border-radius: 0 50px 0 50px; position: absolute; top: 0; left: 0; opacity: 0; animation: fadeSwap 10s infinite ease-in-out;}
.servicio-img { height: auto; }
.servicio-img img.img-a { position: relative; opacity: 1; animation: none; }
.servicio-img img.img-b { animation-delay: 4s;}
@keyframes fadeSwap { 
  0% { opacity: 1; } 
  40% { opacity: 1; } 
  50% { opacity: 0; } 
  90% { opacity: 0; } 
  100% { opacity: 1; }
}
.servicio h3 { color: var(--dorado); font-size: 22px; margin-bottom: 12px;}
.servicio p { font-size: 16px; line-height: 1.6; opacity: .9; margin-bottom: 20px;}
.servicio .btn { padding: 10px 20px; background: var(--dorado); color: #1a1a1a; border-radius: 6px; font-weight: bold; text-decoration: none; transition: background .3s ease;}
.servicio .btn:hover {background: #b88f55;}
/* LISTA DENTRO DE LAS TARJETAS DE SERVICIO */
.servicio ul { list-style: none; padding: 0; margin: 20px auto 30px; max-width: 90%; text-align: justify;}
.servicio ul li { position: relative; padding-left: 32px; margin-bottom: 16px; font-size: 16px; line-height: 1.6; color: #f2f2f2; opacity: .95;}
.servicio ul li::before { content: "✔"; position: absolute; left: 0; top: 0; color: var(--dorado); font-size: 20px; line-height: 1;}
/* Contenedor general: imagen izquierda + lista derecha */
.intro-contenedor { display: flex; align-items: center; justify-content: center; gap: 60px; margin-top: 40px;}
/* Imagen */
.intro-img img { width: 260px; height: auto; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,0.35);}
.intro-img_a img { display: block; margin: 0 auto; width: 60%; height: 20px; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,0.35);}
/* Lista */
.servicios-intro ul { list-style: none; padding: 0; margin: 0; text-align: justify; /* ← justifica el texto */}
.servicios-intro ul li { position: relative; padding-left: 32px; margin-bottom: 18px; font-size: 20px; line-height: 1.8; color: #f2f2f2; opacity: .95;}
.servicios-intro ul li::before { content: "✔"; position: absolute; left: 0; top: 0; color: var(--dorado); font-size: 22px; line-height: 1;}
.hero-img { animation: fadeInUp 1s ease forwards; opacity: 0;}
@keyframes fadeInUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .servicios-bloques_a { grid-template-columns: minmax(70%, 1fr); }
  .intro-contenedor { flex-direction: column; text-align: center;}
  .servicios-intro ul { text-align: left; margin-top: 20px;}
  /* HERO */
  .servicios-hero { height: 45vh; background-size: cover; padding: 30px 20px;}
  .servicios-hero h1 { font-size: 38px;}
  .servicios-hero p { font-size: 20px; margin-top: 6px;}
  /* INTRO */
  .servicios-intro { padding: 50px 25px;}
  .servicios-intro h2 { font-size: 30px;}
  .servicios-intro p { font-size: 17px;}
  /* BLOQUES */
  .servicios-bloques { flex-direction: column; padding: 50px 25px; gap: 40px;}
  .servicio { padding: 22px;}
  .servicio-img { height: 220px;}
  .servicio h3 { font-size: 20px;}
  .servicio p { font-size: 15px;}
  .servicio .btn { padding: 10px 18px; font-size: 15px;} 
}
@media (max-width: 480px) {
  /* HERO */
  .servicios-hero { height: 38vh; padding: 20px 15px;}
  .servicios-hero h1 { font-size: 30px;}
  .servicios-hero p { font-size: 16px;}
  /* INTRO */
  .servicios-intro { padding: 35px 15px;}
  .servicios-intro h2 { font-size: 24px;}
  .servicios-intro p { font-size: 15px; line-height: 1.5;}
  /* BLOQUES */
  .servicios-bloques { padding: 35px 15px; gap: 30px;}
  .servicio { padding: 18px;}
  .servicio-img { height: 180px;}
  .servicio h3 { font-size: 18px;}
  .servicio p { font-size: 14px;}
  .servicio .btn { padding: 8px 16px; font-size: 14px;}
 .servicios-bloques_a { grid-template-columns: minmax(90%, 1fr); }
}