/* ==========================================================
   IMSATEL — TEMA CLARO (LIGHT MODE) — CSS COMPLETO ACTUALIZADO
   (Solución 2: Reveal + Hover con variables, sin conflictos)
   ========================================================== */

/* ==========================================================
   VARIABLES (PALETA LIGHT MÁS DINÁMICA)
   ========================================================== */
:root{
  /* Fondo base */
  --bg: #fbfcfe;
  --bg2: #f4f7fb;

  /* Texto */
  --text: #111827;
  --muted: #5b6472;

  /* Marca */
  --primary: #d4ad44;
  --primaryHi: #f1cf6a;
  --accent: #1f4f99;
  --secondary: #2f8f9d;

  /* Superficies */
  --surface: rgba(255,255,255,.78);
  --surface2: rgba(255,255,255,.92);

  /* Bordes y sombras */
  --border: rgba(17, 24, 39, 0.08);
  --borderHi: rgba(212, 173, 68, 0.25);
  --shadow: 0 18px 55px rgba(17,24,39,.10);
  --radius: 18px;
  --max: 1120px;

  --wa: #25D366;
}

/* ==========================================================
   ANIMACIONES
   ========================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* ==========================================================
   BASE + FONDO FIJO GLOBAL
   ========================================================== */
*{box-sizing:border-box}
html{scroll-behavior:smooth; background:var(--bg);}

body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  min-height: 100vh;

  background-image:
    radial-gradient(900px 600px at 12% 12%, rgba(212,173,68,.14), transparent 62%),
    radial-gradient(900px 600px at 88% 18%, rgba(31,79,153,.12), transparent 60%),
    radial-gradient(700px 500px at 70% 90%, rgba(47,143,157,.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%),
    repeating-linear-gradient(
      90deg,
      rgba(17,24,39,.028) 0px,
      rgba(17,24,39,.028) 1px,
      transparent 1px,
      transparent 80px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(17,24,39,.022) 0px,
      rgba(17,24,39,.022) 1px,
      transparent 1px,
      transparent 80px
    );

  background-attachment: fixed;
  background-size: auto, auto, auto, cover, auto, auto;
  background-repeat: no-repeat;
  background-color: var(--bg);
}

/* Ruido sutil */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

a{color:inherit; text-decoration:none}
.container{max-width:var(--max); margin:0 auto; padding:0 20px}
.muted{color:var(--muted)}
.small{font-size:.9rem}
.mt{margin-top:18px}

/* ==========================================================
   HEADER
   ========================================================== */
.header{
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(17,24,39,0.06);
  box-shadow: 0 4px 22px rgba(17,24,39,0.06);
}

.header__inner{display:flex; align-items:center; justify-content:space-between; padding:14px 0}

.brand{display:flex; align-items:center; gap:12px}
.brand__img{height:38px; width:auto; display:block; border-radius: 8px;}
.brand__name{display:block; font-weight:800; letter-spacing:.3px; color: #0f172a;}
.brand__tag{display:block; font-size:.85rem; color:var(--muted)}

.nav{display:flex; gap:18px; align-items:center}
.nav a{opacity:.85; transition: opacity .2s, color .2s; font-weight: 600;}
.nav a:hover{opacity:1; color: var(--accent);}

.nav__cta{
  padding:10px 14px; border-radius:999px;
  background: linear-gradient(135deg, var(--primary), var(--primaryHi));
  color: #1a1406 !important;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(212,173,68,0.25);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
.nav__cta:hover{
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(212,173,68,0.32);
}

.burger{display:none; background:transparent; border:0; padding:10px; cursor:pointer}
.burger span{display:block; width:22px; height:2px; background:var(--text); margin:5px 0; border-radius:2px}

/* ==========================================================
   HERO
   ========================================================== */
.hero{padding:64px 0 20px; position:relative; overflow:hidden;}
.hero__grid{
  display:grid; gap:26px;
  grid-template-columns: 1.4fr .9fr;
  align-items:center;
}
.hero__right{ display:flex; flex-direction:column; gap:14px; }

.hero__media{
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid rgba(17,24,39,0.08);
  box-shadow: 0 22px 55px rgba(17,24,39,0.14);
  background: rgba(255,255,255,.35);
}
.hero__media img{
  width:100%;
  height:auto;
  display:block;
  object-fit:cover;
}

.hero__copy > *, .hero__media, .hero__card {
  animation: fadeInUp 0.8s ease backwards;
}
.hero__copy h1 { animation-delay: 0.1s; }
.hero__copy p { animation-delay: 0.2s; }
.hero__actions { animation-delay: 0.3s; }
.hero__media { animation-delay: 0.4s; }
.hero__card { animation-delay: 0.5s; }

.pill{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(17,24,39,0.10);
  background: rgba(255,255,255,.82);
  color: var(--accent);
  font-weight: 700;
  font-size:.9rem;
  box-shadow: 0 2px 10px rgba(17,24,39,0.04);
}

h1{
  font-size:clamp(2rem, 3.4vw, 3.2rem);
  line-height:1.1;
  margin:14px 0;
  color: #0f172a;
  letter-spacing:-.4px;
}

.hero__actions {
  display: flex;
  gap: 20px;
  margin: 24px 0 14px;
  flex-wrap: wrap;
}

.hero__stats{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:12px;
  margin-top:18px;
}
.stat{
  padding:14px;
  border-radius:var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.76));
  border:1px solid var(--border);
  box-shadow: 0 10px 25px rgba(17,24,39,0.06);
}
.stat__big{display:block; font-weight:900; font-size:1.25rem; color: var(--primary);}
.stat__small{display:block; color:var(--muted); font-size:.9rem}

/* ==========================================================
   GLASS / TARJETAS
   ========================================================== */
.glass{
  padding:18px;
  border-radius:var(--radius);
  background: linear-gradient(180deg, var(--surface2), var(--surface));
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.glass--soft{
  box-shadow:none;
  background: rgba(255,255,255,.85);
  border:1px solid var(--border);
}

.list{display:flex; flex-direction:column; gap:12px; margin:14px 0}
.list__item{display:flex; gap:10px; align-items:flex-start}
.dot{
  width:10px; height:10px; border-radius:999px;
  background: var(--primary);
  margin-top:6px;
}
.miniLink{display:inline-block; margin-top:6px; color: var(--accent); font-weight: 700;}
.miniLink:hover{text-decoration:underline}

/* ==========================================================
   BOTONES
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 12px;
  transition: all .2s ease;
  font-weight: 800;
  cursor: pointer;
  min-width: 170px;
  text-align: center;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(17,24,39,0.10);
}
.btn--primary{
  border:0;
  background: linear-gradient(135deg, var(--primary), var(--primaryHi));
  color:#1a1406;
  box-shadow: 0 10px 24px rgba(212,173,68,0.28);
}
.btn--ghost{
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(17,24,39,0.14);
  color: var(--text);
}
.btn--ghost:hover{
  background: rgba(255,255,255,.92);
  border-color: rgba(17,24,39,0.18);
}
.btn--full{width:100%}

/* ==========================================================
   SECCIONES
   ========================================================== */
.section{padding:56px 0}
.section--alt{
  background:
    radial-gradient(800px 500px at 20% 20%, rgba(212,173,68,.10), transparent 60%),
    radial-gradient(800px 500px at 80% 30%, rgba(31,79,153,.08), transparent 60%),
    #f6f8fc;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.section--compact{padding:40px 0;}
.section__head{margin-bottom:18px}
.section__head h2{
  margin:0 0 6px;
  font-size:1.9rem;
  color: #0f172a;
  letter-spacing:-.2px;
}

/* ==========================================================
   SERVICIOS (CARDS) — TRANSFORM UNIFICADO POR VARIABLES
   ========================================================== */
.cards{
  display:grid; gap:14px;
  grid-template-columns: repeat(3, 1fr);
}
.card{
  position: relative;
  overflow: hidden;
  padding:24px 18px;
  border-radius:var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.82));
  border:1px solid var(--border);
  box-shadow: 0 10px 25px rgba(17,24,39,0.06);

  /* Variables base */
  --revealY: 0px;
  --lift: 0px;
  --scale: 1;

  /* Transform ÚNICO: reveal + hover */
  transform: translateY(calc(var(--revealY) + var(--lift))) scale(var(--scale));

  /* Transiciones: igual de suave que miniCard */
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    opacity 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.card::before{
  content:"";
  position:absolute;
  left:0; top:0; right:0;
  height:3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity:.85;
}
.card:hover{
  --lift: -8px;
  border-color: var(--borderHi);
  box-shadow: 0 22px 45px rgba(17,24,39,0.12);
}

.card h3{margin:0 0 8px; color: var(--accent);}
.bullets{margin:10px 0 0; padding-left:18px; color:var(--muted)}
.bullets li{margin:6px 0}

/* ==========================================================
   NOSOTROS & VALORES — miniCard con variables (reveal + hover)
   ========================================================== */
.miniGrid{display:grid; gap:12px; grid-template-columns:1fr 1fr; margin-top:14px}

.miniCard{
  padding:18px; border-radius:var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.82));
  border:1px solid var(--border);
  box-shadow: 0 10px 25px rgba(17,24,39,0.06);

  --revealY: 0px;
  --lift: 0px;
  --scale: 1;

  transform: translateY(calc(var(--revealY) + var(--lift))) scale(var(--scale));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color .25s ease, box-shadow .25s ease, opacity .8s cubic-bezier(0.5, 0, 0, 1);
}
.miniCard:hover{
  --lift: -8px;
  --scale: 1.02;
  border-color: rgba(31,79,153,0.22);
  box-shadow: 0 22px 45px rgba(17,24,39,0.12);
}
.miniCard h3 { color: #0f172a; }

.values{
  display:grid; gap:12px;
  grid-template-columns: repeat(5, 1fr);
}
.value{
  padding:14px;
  border-radius:var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.82));
  border:1px solid var(--border);
  box-shadow: 0 10px 22px rgba(17,24,39,0.06);
}
.chip{
  display:inline-block;
  padding:7px 10px;
  border-radius:999px;
  background: rgba(212,173,68,0.15);
  color: #7a5c11;
  font-weight:900;
  margin-bottom:8px;
}

/* ==========================================================
   COBERTURA
   ========================================================== */
.coverage{
  display:grid;
  gap:14px;
  grid-template-columns: 1.2fr .8fr;
  align-items:start;
  max-width: 980px;
  margin: 0 auto;
}
.coverage__list{
  display:flex;
  flex-direction:column;
}

.note{
  margin-top:14px; padding:14px;
  border-radius:var(--radius);
  background: rgba(212,173,68,0.12);
  border:1px dashed rgba(212,173,68,0.35);
  color: #5c4b18;
}

.coverage__mapWrap{
  flex:1;
  display:grid;
  place-items:center;
  margin:12px 0;
}
.coverage__mapImg{
  width:100%;
  max-height:260px;
  object-fit:contain;
  display:block;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.8);
  padding:10px;
  box-shadow: var(--shadow);
}

.provList{
  list-style:none; padding:0; margin:12px 0 0;
  display:grid; grid-template-columns: 1fr 1fr; gap:10px 14px;
}
.provList li{
  position:relative;
  padding:10px 12px 10px 38px;
  border-radius:14px;
  background: rgba(255,255,255,.85);
  border:1px solid var(--border);
  color:var(--text);
  font-weight:700;
  box-shadow: 0 8px 18px rgba(17,24,39,0.05);
}
.provList li::before{
  content:""; position:absolute; left:12px; top:50%; transform:translateY(-50%);
  width:18px; height:18px; border-radius:999px;
  background: var(--primary);
  border:2px solid rgba(255,255,255,.9);
  box-shadow: 0 8px 14px rgba(17,24,39,0.12);
}
.provList li::after{
  content:"✓"; position:absolute; left:16px; top:50%; transform:translateY(-53%);
  font-size:11px; font-weight:900; color: #fff;
}

/* ==========================================================
   CONTACTO
   ========================================================== */
.contact{
  display:grid; gap:14px;
  grid-template-columns: 1fr 1fr;
}
.form{
  padding:24px;
  border-radius:var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.82));
  border:1px solid var(--border);
  box-shadow: 0 18px 45px rgba(17,24,39,0.08);
}
label{display:block; margin-bottom:12px; font-weight:800; color: #0f172a;}
input, textarea{
  width:100%;
  margin-top:8px;
  border-radius:12px;
  padding:12px 12px;
  border:1px solid rgba(17,24,39,0.12);
  background: rgba(255,255,255,.92);
  color: #0f172a;
  outline:none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input:focus, textarea:focus{
  border-color: rgba(212,173,68,0.6);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(212,173,68,0.12);
}
.contact__info{display:flex; flex-direction:column; gap:12px}
.infoCard{
  padding:18px;
  border-radius:var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.82));
  border:1px solid var(--border);
  box-shadow: 0 14px 35px rgba(17,24,39,0.08);
}
.infoRow{display:flex; gap:10px; align-items:flex-start; margin:12px 0}
.infoRow span{ font-size: 1.2rem; }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer{
  padding:26px 0;
  border-top:1px solid rgba(17,24,39,0.08);
  background: rgba(255,255,255,.6);
  color: var(--muted);
}
.footer__inner{display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap}
.footer__brand{font-weight:900; color: #0f172a;}

/* ==========================================================
   WHATSAPP
   ========================================================== */
.wa {
  position: fixed; right: 20px; bottom: 20px; width: 60px; height: 60px; z-index: 60;
  background: transparent; border: none; padding: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.wa:hover {
  transform: scale(1.1) translateY(-3px);
  filter: brightness(1.05);
}
.wa img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  filter: drop-shadow(0 6px 14px rgba(17,24,39,0.18));
}

.floating { animation: float 6s ease-in-out infinite; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 980px){
  .hero__grid{grid-template-columns:1fr}
  .cards{grid-template-columns:1fr 1fr}
  .values{grid-template-columns:1fr 1fr}
  .coverage{grid-template-columns:1fr}
  .contact{grid-template-columns:1fr}
  .hero__media{ order:-1; }
}

@media (max-width: 720px){
  .nav{
    display:none; position:absolute; top:64px; right:20px; left:20px;
    flex-direction:column; gap:10px; padding:14px;
    border-radius:16px;
    background: rgba(255,255,255,.92);
    border:1px solid rgba(17,24,39,0.10);
    box-shadow: 0 18px 45px rgba(17,24,39,0.12);
    backdrop-filter: blur(12px);
  }
  .nav.isOpen{display:flex}
  .nav a { color: #0f172a; padding: 8px; width: 100%; text-align: center; }
  .burger{display:block}
  .provList{ grid-template-columns: 1fr; }
  .hero{padding-top:40px}
  .cards{grid-template-columns:1fr}
  .hero__stats{grid-template-columns:1fr}
}

/* Centrado tarjeta final */
@media (min-width: 981px) {
  .cards > article:last-child { grid-column: 2; }
}
@media (max-width: 980px) and (min-width: 721px) {
  .cards > article:last-child { grid-column: 1 / -1; max-width: 50%; margin: 0 auto; width: 100%; }
}

/* ==========================================================
   REVEAL SCROLL — VERSIÓN 2 (NO TOCA TRANSFORM DIRECTO)
   ========================================================== */
.reveal{
  opacity: 0;
  --revealY: 40px; /* estado inicial */
  transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active{
  opacity: 1;
  --revealY: 0px; /* cuando aparece */
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ==========================================================
   PRODUCT VIEW (Productos tipo "página de producto")
   ========================================================== */
.productView{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:14px;
  align-items:start;
  padding:18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.70));
  border: 1px solid var(--border);
  box-shadow: 0 18px 45px rgba(17,24,39,.08);

  /* Para que el reveal + hover no choquen (como tus cards) */
  --revealY: 0px;
  transform: translateY(var(--revealY));
  transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.productView__media{
  padding:14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.85);
  border: 1px solid var(--border);
  box-shadow: 0 16px 35px rgba(17,24,39,.08);
}

.productView__imgWrap{
  border-radius: calc(var(--radius) - 6px);
  overflow:hidden;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(17,24,39,.08);
}

.productView__img{
  width:100%;
  height: 360px;
  object-fit: contain;
  display:block;
  padding: 12px;
}

.productView__thumbs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

.pvThumb{
  width:70px;
  height:70px;
  border-radius:14px;
  padding:6px;
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.75);
  cursor:pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.pvThumb img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

.pvThumb:hover{
  transform: translateY(-3px);
  border-color: rgba(31,79,153,.25);
  background: rgba(255,255,255,.95);
  box-shadow: 0 12px 22px rgba(17,24,39,.10);
}

.pvThumb.isActive{
  border-color: rgba(212,173,68,.55);
  box-shadow: 0 14px 26px rgba(17,24,39,.12);
}

.productView__thumbLabel{
  margin-top:10px;
}

.productView__info{
  padding:18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.82));
  border: 1px solid var(--border);
  box-shadow: 0 16px 35px rgba(17,24,39,.08);
}

.productView__title{
  margin:0 0 10px;
  font-size: 1.6rem;
  letter-spacing: .2px;
  color: #0f172a;
}

.productView__desc{
  margin:0 0 14px;
  line-height: 1.55;
}

.productView__specs{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 0 0 14px;
}

.specPill{
  padding:10px 12px;
  border-radius: 999px;
  background: rgba(212,173,68,0.12);
  border: 1px solid rgba(212,173,68,0.20);
  color: #5c4b18;
  font-weight: 900;
  font-size: .92rem;
}

.productView__bullets{
  margin:0;
  padding-left:18px;
  color: var(--muted);
}

.productView__bullets li{
  margin: 8px 0;
}

.productView__actions{
  display:flex;
  gap:12px;
  margin-top:18px;
  flex-wrap:wrap;
}

.productView__note{
  margin-top:12px;
  opacity: .9;
}

/* Responsive */
@media (max-width: 980px){
  .productView{ grid-template-columns: 1fr; }
  .productView__img{ height: 320px; }
}
@media (max-width: 520px){
  .pvThumb{ width:64px; height:64px; }
}

/* ==========================================================
   GALERÍA DE SERVICIOS (Master–Detail) — ACTUALIZADO
   (Imagen grande arriba + info debajo, más simetría)
   ========================================================== */
.svcGallery{
  display:grid;
  grid-template-columns: 1fr 380px;
  gap:14px;
  align-items:start;
}

/* DETAIL (banner arriba + contenido debajo) */
.svcDetail{
  display:flex;                 /* ✅ ya no grid 2 columnas */
  flex-direction: column;       /* ✅ imagen arriba, texto abajo */
  gap:14px;
  padding:18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.82));
  border: 1px solid var(--border);
  box-shadow: 0 18px 45px rgba(17,24,39,.08);
}

/* Banner (imagen grande arriba) */
.svcDetail__media{
  width:100%;
  height: 280px;                /* ✅ altura del banner (ajústala si quieres) */
  border-radius: calc(var(--radius) - 6px);
  overflow:hidden;
  border: 1px solid rgba(17,24,39,.08);
  background: rgba(255,255,255,.85);
  box-shadow: 0 16px 35px rgba(17,24,39,.08);
  display:grid;
  place-items:center;
}

/* ✅ Imagen COMPLETA (sin recorte) */
.svcDetail__media img{
  width:100%;
  height:100%;
  object-fit: contain;          /* ✅ clave para ver la imagen completa */
  display:block;
  padding: 10px;                /* ✅ aire alrededor */
  background: rgba(255,255,255,.85);
}

.svcDetail__media{ height: 320px; }


/* Contenido debajo */
.svcDetail__content{
  width:100%;
}

.svcDetail__content h3{
  margin:0 0 8px;
  font-size: 1.7rem;
  color:#0f172a;
}

.svcBadges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 12px 0 12px;
}
.svcBadge{
  padding:9px 12px;
  border-radius: 999px;
  background: rgba(31,79,153,0.10);
  border: 1px solid rgba(31,79,153,0.16);
  font-weight: 900;
  color:#0f172a;
  font-size:.92rem;
}

.svcList{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.svcList li{ margin: 8px 0; }

.svcActions{
  display:flex;
  gap:12px;
  margin-top:16px;
  flex-wrap:wrap;
}

/* MASTER (thumbs) */
.svcThumbs{
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* ✅ Simetría: en escritorio, si hay muchas tarjetas, scroll */
@media (min-width: 981px){
  .svcThumbs{
    max-height: 620px;          /* ajusta a tu gusto */
    overflow:auto;
    padding-right: 6px;
  }
  .svcThumbs::-webkit-scrollbar{ width: 10px; }
  .svcThumbs::-webkit-scrollbar-thumb{
    background: rgba(17,24,39,.12);
    border-radius: 999px;
  }
  .svcThumbs::-webkit-scrollbar-track{ background: transparent; }
}

.svcThumb{
  display:flex;
  gap:12px;
  align-items:center;
  padding:12px;
  border-radius: 16px;
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.75);
  box-shadow: 0 10px 25px rgba(17,24,39,0.06);
  cursor:pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
  text-align:left;
}

.svcThumb:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.92);
  border-color: rgba(31,79,153,.20);
  box-shadow: 0 18px 40px rgba(17,24,39,0.10);
}

.svcThumb.isActive{
  border-color: rgba(212,173,68,.55);
  box-shadow: 0 22px 45px rgba(17,24,39,0.12);
  position: relative;
}
.svcThumb.isActive::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width:4px;
  border-radius: 16px 0 0 16px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

.svcThumb__img{
  width:64px;
  height:64px;
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.85);
  flex: 0 0 auto;
}
.svcThumb__img img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.svcThumb__text strong{
  display:block;
  font-size: 1rem;
  color:#0f172a;
}
.svcThumb__text .small{ display:block; margin-top:2px; }

/* Responsive */
@media (max-width: 980px){
  .svcGallery{ grid-template-columns: 1fr; }
  .svcDetail__media{ height: 240px; } /* banner un poco más bajo en móvil */
  .svcThumbs{ flex-direction: row; flex-wrap: wrap; }
  .svcThumb{ width: 100%; }
}

/* Transición suave en el panel principal al cambiar servicio */
.svcDetail__media img,
#svcTitle,
#svcDesc,
.svcBadges,
#svcList{
  transition: opacity .18s ease, transform .18s ease;
}
.svcSwapOut{
  opacity: 0;
  transform: translateY(4px);
}

.svcThumb.isActive{
  background: rgba(255,255,255,.92);
  box-shadow: 0 22px 45px rgba(17,24,39,0.12), 0 0 0 4px rgba(31,79,153,0.06);
}



