/* ==========================================================================
   Instalaciones Eléctricas Fernando Peral
   Hoja de estilos principal — negro + dorado (identidad del logo)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --negro: #050505;
  --negro-2: #0c0c0d;
  --negro-3: #141416;
  --linea: #232326;
  --linea-suave: #1b1b1e;

  --oro: #e5a13c;
  --oro-claro: #f4c46b;
  --oro-oscuro: #b87c22;
  --oro-tenue: rgba(229, 161, 60, .12);

  --blanco: #ffffff;
  --texto: #e9e9ea;
  --texto-suave: #a9a9ae;
  --texto-tenue: #77777d;

  --wa: #25d366;

  --radio: 14px;
  --radio-sm: 10px;
  --radio-lg: 22px;

  --sombra: 0 18px 40px rgba(0, 0, 0, .55);
  --sombra-oro: 0 10px 30px rgba(229, 161, 60, .22);

  --ancho: 1180px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --script: "Sacramento", "Segoe Script", cursive;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--negro);
  color: var(--texto);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--oro); text-decoration: none; }
a:hover { color: var(--oro-claro); }
ul { padding-left: 1.1rem; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.18; color: var(--blanco); margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.35rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; border-radius: 4px; }

/* ---------- Utilidades ---------- */
.contenedor { width: min(100% - 2.4rem, var(--ancho)); margin-inline: auto; }
.seccion { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.seccion--alt { background: linear-gradient(180deg, var(--negro-2), var(--negro)); border-block: 1px solid var(--linea-suave); }
.centrado { text-align: center; }
.solo-lectores {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.saltar-al-contenido {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--oro); color: #111; padding: .8rem 1.2rem; font-weight: 700; border-radius: 0 0 var(--radio-sm) 0;
}
.saltar-al-contenido:focus { left: 0; }

.etiqueta {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--oro);
  margin-bottom: 1rem;
}
.etiqueta::before { content: ""; width: 28px; height: 2px; background: var(--oro); display: block; }
.centrado .etiqueta::after { content: ""; width: 28px; height: 2px; background: var(--oro); display: block; }

.entradilla { color: var(--texto-suave); font-size: clamp(1rem, 1.6vw, 1.13rem); max-width: 62ch; }
.centrado .entradilla { margin-inline: auto; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.7rem; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--sans); font-weight: 700; font-size: 1rem; line-height: 1;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  text-align: center;
}
.boton:hover { transform: translateY(-2px); }
.boton:active { transform: translateY(0); }
.boton--oro { background: linear-gradient(135deg, var(--oro-claro), var(--oro)); color: #14100a; box-shadow: var(--sombra-oro); }
.boton--oro:hover { color: #14100a; box-shadow: 0 14px 34px rgba(229, 161, 60, .34); }
.boton--linea { border-color: rgba(229, 161, 60, .5); color: var(--oro); background: rgba(229, 161, 60, .05); }
.boton--linea:hover { background: var(--oro-tenue); border-color: var(--oro); color: var(--oro-claro); }
.boton--wa { background: var(--wa); color: #04220f; }
.boton--wa:hover { background: #35e675; color: #04220f; }
.boton--bloque { width: 100%; }
.boton svg { width: 19px; height: 19px; flex: none; }
.grupo-botones { display: flex; flex-wrap: wrap; gap: .85rem; }
.centrado .grupo-botones { justify-content: center; }

/* ---------- Cabecera ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 5, 5, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--linea-suave);
  transition: background .25s ease, border-color .25s ease;
}
.cabecera.desplazada { background: rgba(5, 5, 5, .97); border-bottom-color: var(--linea); }
.cabecera__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.marca { display: flex; align-items: center; gap: .7rem; color: var(--blanco); }
.marca:hover { color: var(--blanco); }
.marca img, .marca svg { width: 46px; height: 46px; flex: none; }
.marca__texto { display: flex; flex-direction: column; line-height: 1.1; }
.marca__nombre { font-family: var(--script); font-size: 1.5rem; color: var(--blanco); letter-spacing: .01em; }
.marca__sub { font-size: .63rem; letter-spacing: .2em; text-transform: uppercase; color: var(--texto-tenue); }

.nav { display: flex; align-items: center; gap: .3rem; }
.nav a {
  color: var(--texto-suave); font-size: .95rem; font-weight: 600;
  padding: .55rem .85rem; border-radius: 999px; transition: color .2s ease, background .2s ease;
}
.nav a:hover { color: var(--blanco); background: rgba(255, 255, 255, .05); }
.nav a[aria-current="page"] { color: var(--oro); }
.cabecera__acciones { display: flex; align-items: center; gap: .6rem; }
.cabecera__tel {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; color: var(--blanco); font-size: .98rem;
  padding: .55rem .9rem; border-radius: 999px; border: 1px solid var(--linea);
}
.cabecera__tel:hover { color: var(--oro); border-color: rgba(229, 161, 60, .5); }
.cabecera__tel svg { width: 17px; height: 17px; }

.menu-boton {
  display: none; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--linea); background: transparent; cursor: pointer;
  align-items: center; justify-content: center; padding: 0;
}
.menu-boton span { display: block; width: 20px; height: 2px; background: var(--blanco); position: relative; transition: background .2s ease; }
.menu-boton span::before, .menu-boton span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--blanco); transition: transform .25s ease, top .25s ease;
}
.menu-boton span::before { top: -6px; }
.menu-boton span::after { top: 6px; }
.menu-boton[aria-expanded="true"] span { background: transparent; }
.menu-boton[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-boton[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 980px) {
  .menu-boton { display: flex; }
  .cabecera__tel span { display: none; }
  .nav {
    position: fixed; inset: 74px 0 auto 0;
    background: var(--negro-2); border-bottom: 1px solid var(--linea);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .6rem 1.2rem 1.4rem;
    transform: translateY(-140%); transition: transform .3s ease; box-shadow: var(--sombra);
  }
  .nav.abierto { transform: translateY(0); }
  .nav a { padding: .95rem .4rem; border-bottom: 1px solid var(--linea-suave); border-radius: 0; font-size: 1.05rem; }
  .nav .boton { margin-top: 1rem; }
}

/* ---------- Héroe ---------- */
.heroe { position: relative; overflow: hidden; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem); }
.heroe::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(70% 55% at 78% 12%, rgba(229, 161, 60, .18), transparent 62%),
    radial-gradient(50% 45% at 8% 88%, rgba(229, 161, 60, .09), transparent 60%);
}
.heroe::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .35;
  background-image: linear-gradient(var(--linea-suave) 1px, transparent 1px), linear-gradient(90deg, var(--linea-suave) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, #000 30%, transparent 75%);
}
.heroe > * { position: relative; z-index: 1; }
.heroe__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.heroe h1 { margin-bottom: .5em; }
.heroe h1 .oro { color: var(--oro); }
.heroe__texto { font-size: clamp(1.02rem, 1.7vw, 1.16rem); color: var(--texto-suave); max-width: 56ch; }
.heroe__sellos { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.6rem 0 1.9rem; }
.sello {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .84rem; font-weight: 600; color: var(--texto-suave);
  padding: .45rem .9rem; border: 1px solid var(--linea); border-radius: 999px; background: rgba(255, 255, 255, .02);
}
.sello svg { width: 15px; height: 15px; color: var(--oro); }
.heroe__nota { margin-top: 1.3rem; font-size: .9rem; color: var(--texto-tenue); }

.heroe__tarjeta {
  background: linear-gradient(160deg, var(--negro-3), var(--negro-2));
  border: 1px solid var(--linea); border-radius: var(--radio-lg);
  padding: clamp(1.5rem, 3vw, 2.1rem); box-shadow: var(--sombra); position: relative; overflow: hidden;
}
.heroe__tarjeta::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--oro), transparent);
}
.heroe__tarjeta h2 { font-size: 1.3rem; margin-bottom: .35em; }
.heroe__tarjeta p { font-size: .95rem; color: var(--texto-suave); }
.lista-marcada { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: .7rem; }
.lista-marcada li { display: flex; gap: .65rem; align-items: flex-start; font-size: .95rem; color: var(--texto-suave); }
.lista-marcada li svg { width: 18px; height: 18px; flex: none; color: var(--oro); margin-top: .22rem; }

@media (max-width: 900px) {
  .heroe__grid { grid-template-columns: 1fr; }
}

/* ---------- Barra de cifras ---------- */
.cifras { border-block: 1px solid var(--linea-suave); background: var(--negro-2); }
.cifras__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 2.2rem 0; text-align: center; }
.cifra__num { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--oro); line-height: 1; }
.cifra__txt { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--texto-tenue); margin-top: .5rem; }
@media (max-width: 700px) { .cifras__grid { grid-template-columns: repeat(2, 1fr); gap: 1.8rem 1rem; } }

/* ---------- Rejillas y tarjetas ---------- */
.rejilla { display: grid; gap: var(--gap); }
.rejilla--2 { grid-template-columns: repeat(2, 1fr); }
.rejilla--3 { grid-template-columns: repeat(3, 1fr); }
.rejilla--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .rejilla--3, .rejilla--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .rejilla--2, .rejilla--3, .rejilla--4 { grid-template-columns: 1fr; } }

.tarjeta {
  background: linear-gradient(165deg, var(--negro-3), var(--negro-2));
  border: 1px solid var(--linea); border-radius: var(--radio);
  padding: clamp(1.4rem, 2.6vw, 1.85rem);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  position: relative; overflow: hidden; height: 100%;
}
.tarjeta:hover { transform: translateY(-4px); border-color: rgba(229, 161, 60, .42); box-shadow: var(--sombra); }
.tarjeta h3 { margin-bottom: .45em; }
.tarjeta p { color: var(--texto-suave); font-size: .96rem; }
.tarjeta__icono {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--oro-tenue); border: 1px solid rgba(229, 161, 60, .3); color: var(--oro);
}
.tarjeta__icono svg { width: 26px; height: 26px; }
.tarjeta__enlace { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-weight: 700; font-size: .93rem; }
.tarjeta__enlace svg { width: 15px; height: 15px; transition: transform .2s ease; }
.tarjeta:hover .tarjeta__enlace svg { transform: translateX(4px); }
.tarjeta ul { margin: .9rem 0 0; color: var(--texto-suave); font-size: .93rem; }
.tarjeta li { margin-bottom: .3rem; }

/* ---------- Pasos ---------- */
.pasos { counter-reset: paso; display: grid; gap: var(--gap); grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .pasos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pasos { grid-template-columns: 1fr; } }
.paso { position: relative; padding-top: 2.6rem; }
.paso::before {
  counter-increment: paso; content: "0" counter(paso);
  position: absolute; top: 0; left: 0;
  font-family: var(--serif); font-size: 2.1rem; color: var(--oro); opacity: .85;
}
.paso h3 { font-size: 1.12rem; }
.paso p { color: var(--texto-suave); font-size: .95rem; }

/* ---------- Galería ---------- */
.galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .galeria { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .galeria { grid-template-columns: 1fr; } }
.galeria__item {
  position: relative; overflow: hidden; border-radius: var(--radio);
  border: 1px solid var(--linea); background: var(--negro-3); aspect-ratio: 4 / 3;
}
.galeria__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s ease; }
.galeria__item:hover img { transform: scale(1.05); }
.galeria__pie {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem .95rem .8rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .88));
  font-size: .87rem; font-weight: 600; color: var(--blanco);
}
.galeria__pie span { display: block; font-size: .74rem; font-weight: 500; color: var(--oro); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Zonas ---------- */
.zonas { display: flex; flex-wrap: wrap; gap: .6rem; }
.zona {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem 1.05rem; border-radius: 999px;
  border: 1px solid var(--linea); background: var(--negro-3);
  font-size: .93rem; color: var(--texto-suave);
}
.zona svg { width: 14px; height: 14px; color: var(--oro); }
.zona--principal { border-color: rgba(229, 161, 60, .55); background: var(--oro-tenue); color: var(--oro-claro); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; max-width: 860px; margin-inline: auto; }
.faq details {
  background: var(--negro-2); border: 1px solid var(--linea); border-radius: var(--radio);
  padding: 1.1rem 1.4rem; transition: border-color .2s ease;
}
.faq details[open] { border-color: rgba(229, 161, 60, .42); }
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--blanco); list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 1.03rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--oro); font-size: 1.5rem; line-height: 1; flex: none; transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: .9rem; color: var(--texto-suave); font-size: .97rem; }

/* ---------- Franja CTA ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(140deg, #17130b, var(--negro-2) 55%);
  border-block: 1px solid var(--linea);
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 70% at 50% 0%, rgba(229, 161, 60, .22), transparent 70%);
}
.cta > * { position: relative; }
.cta h2 { max-width: 20ch; margin-inline: auto; }
.cta .entradilla { margin-bottom: 2rem; }

/* ---------- Formulario ---------- */
.form-bloque { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.2rem); align-items: start; }
@media (max-width: 900px) { .form-bloque { grid-template-columns: 1fr; } }
.formulario {
  background: linear-gradient(165deg, var(--negro-3), var(--negro-2));
  border: 1px solid var(--linea); border-radius: var(--radio-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
}
.campo { margin-bottom: 1.05rem; }
.campo label { display: block; font-size: .87rem; font-weight: 700; color: var(--texto); margin-bottom: .42rem; }
.campo label .req { color: var(--oro); }
.campo input, .campo select, .campo textarea {
  width: 100%; padding: .85rem 1rem; font: inherit; font-size: .97rem;
  color: var(--texto); background: var(--negro); border: 1px solid var(--linea);
  border-radius: var(--radio-sm); transition: border-color .2s ease, box-shadow .2s ease;
}
.campo textarea { min-height: 130px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus {
  outline: none; border-color: var(--oro); box-shadow: 0 0 0 3px rgba(229, 161, 60, .16);
}
.campo input::placeholder, .campo textarea::placeholder { color: #5d5d63; }
.campo--fila { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .campo--fila { grid-template-columns: 1fr; } }
.campo--check { display: flex; gap: .65rem; align-items: flex-start; font-size: .86rem; color: var(--texto-suave); }
.campo--check input { width: auto; margin-top: .25rem; flex: none; accent-color: var(--oro); }
.campo--miel { position: absolute; left: -9999px; opacity: 0; }
.form-nota { font-size: .82rem; color: var(--texto-tenue); margin-top: 1rem; }
.form-aviso { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: var(--radio-sm); font-size: .92rem; display: none; }
.form-aviso.ok { display: block; background: rgba(37, 211, 102, .12); border: 1px solid rgba(37, 211, 102, .4); color: #8ff0b6; }
.form-aviso.error { display: block; background: rgba(255, 96, 96, .1); border: 1px solid rgba(255, 96, 96, .4); color: #ffb3b3; }

.contacto-datos { display: grid; gap: 1rem; }
.dato {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.1rem 1.3rem; border: 1px solid var(--linea); border-radius: var(--radio); background: var(--negro-2);
  transition: border-color .2s ease;
}
.dato:hover { border-color: rgba(229, 161, 60, .42); }
.dato__icono { width: 42px; height: 42px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--oro-tenue); color: var(--oro); }
.dato__icono svg { width: 21px; height: 21px; }
.dato strong { display: block; color: var(--blanco); font-size: .96rem; }
.dato a, .dato span { color: var(--texto-suave); font-size: .95rem; word-break: break-word; }
.dato a:hover { color: var(--oro); }

/* ---------- Contenido de texto ---------- */
.prosa { max-width: 72ch; }
.prosa h2 { margin-top: 2.2em; }
.prosa h2:first-child { margin-top: 0; }
.prosa h3 { margin-top: 1.6em; }
.prosa ul { color: var(--texto-suave); }
.prosa li { margin-bottom: .5rem; }
.cita {
  border-left: 3px solid var(--oro); padding: .3rem 0 .3rem 1.4rem; margin: 2rem 0;
  font-family: var(--serif); font-size: 1.2rem; color: var(--blanco); font-style: italic;
}

/* ---------- Migas ---------- */
.migas { font-size: .84rem; color: var(--texto-tenue); padding: 1.1rem 0 0; }
.migas ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; }
.migas li::after { content: "›"; margin-left: .45rem; color: var(--linea); }
.migas li:last-child::after { content: ""; }
.migas a { color: var(--texto-tenue); }
.migas a:hover { color: var(--oro); }

/* ---------- Pie ---------- */
.pie { background: var(--negro-2); border-top: 1px solid var(--linea); padding: clamp(3rem, 6vw, 4.5rem) 0 0; }
.pie__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--gap); }
@media (max-width: 900px) { .pie__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pie__grid { grid-template-columns: 1fr; } }
.pie h4 { font-family: var(--sans); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--oro); margin-bottom: 1.1rem; }
.pie ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.pie a, .pie p, .pie li { color: var(--texto-suave); font-size: .93rem; }
.pie a:hover { color: var(--oro); }
.pie__marca { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.pie__marca img { width: 44px; height: 44px; }
.pie__legal {
  margin-top: clamp(2.2rem, 5vw, 3.2rem); border-top: 1px solid var(--linea);
  padding: 1.5rem 0; display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; justify-content: space-between;
  font-size: .84rem; color: var(--texto-tenue);
}
.pie__legal a { font-size: .84rem; color: var(--texto-tenue); }

/* ---------- Barra móvil fija ---------- */
.barra-movil {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; grid-template-columns: 1fr 1fr;
  background: rgba(10, 10, 11, .96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--linea); padding: .6rem; gap: .55rem;
  padding-bottom: calc(.6rem + env(safe-area-inset-bottom));
}
.barra-movil .boton { padding: .8rem 1rem; font-size: .95rem; }
@media (max-width: 780px) {
  .barra-movil { display: grid; }
  body { padding-bottom: 78px; }
}

/* ---------- Botón WhatsApp flotante ---------- */
.wa-flotante {
  position: fixed; right: 18px; bottom: 18px; z-index: 95;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--wa); color: #04220f; box-shadow: 0 10px 26px rgba(37, 211, 102, .34);
  transition: transform .2s ease;
}
.wa-flotante:hover { transform: scale(1.07); color: #04220f; }
.wa-flotante svg { width: 30px; height: 30px; }
@media (max-width: 780px) { .wa-flotante { bottom: 86px; width: 50px; height: 50px; } .wa-flotante svg { width: 27px; height: 27px; } }

/* ---------- Animación de entrada ---------- */
.revelar { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.revelar.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .revelar { opacity: 1; transform: none; } }

@media (max-width: 420px) {
  .marca img, .marca svg { width: 40px; height: 40px; }
  .marca__nombre { font-size: 1.3rem; }
  .marca__sub { font-size: .55rem; letter-spacing: .14em; }
}

/* ==========================================================================
   Portada renovada: logo, mosaico de fotos y galería de trabajos
   ========================================================================== */

/* ---------- Logo grande de portada ---------- */
.heroe__logo { margin: 0 0 1.4rem; }
.heroe__logo img {
  width: auto; max-width: min(300px, 72vw); max-height: 140px; object-fit: contain; object-position: left center;
}
@media (max-width: 900px) { .heroe__logo img { max-height: 110px; } }

/* ---------- Mosaico de fotos del héroe ---------- */
.heroe__grid--portada { grid-template-columns: 1fr 1.05fr; }
@media (max-width: 900px) { .heroe__grid--portada { grid-template-columns: 1fr; } }

.mosaico {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: .75rem;
  height: clamp(360px, 42vw, 520px);
}
.mosaico__foto {
  position: relative; overflow: hidden; margin: 0;
  border-radius: var(--radio); border: 1px solid var(--linea);
  background: var(--negro-3);
}
.mosaico__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mosaico__foto:hover img { transform: scale(1.06); }
.mosaico__foto:nth-child(1) { grid-area: 1 / 1 / 3 / 3; }
.mosaico__foto:nth-child(2) { grid-area: 1 / 3 / 2 / 4; }
.mosaico__foto:nth-child(3) { grid-area: 2 / 3 / 4 / 4; }
.mosaico__foto:nth-child(4) { grid-area: 3 / 1 / 4 / 2; }
.mosaico__foto:nth-child(5) { grid-area: 3 / 2 / 4 / 3; }

@media (max-width: 560px) {
  .mosaico { grid-template-columns: repeat(2, 1fr); grid-template-rows: 150px 110px; height: auto; }
  .mosaico__foto:nth-child(1) { grid-area: 1 / 1 / 2 / 3; }
  .mosaico__foto:nth-child(2) { grid-area: 2 / 1 / 3 / 2; }
  .mosaico__foto:nth-child(3) { grid-area: 2 / 2 / 3 / 3; }
  .mosaico__foto:nth-child(4), .mosaico__foto:nth-child(5) { display: none; }
}

/* ---------- Puntos rápidos (texto simplificado) ---------- */
.puntos { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 760px) { .puntos { grid-template-columns: 1fr; } }
.punto { display: flex; gap: .9rem; align-items: flex-start; }
.punto__icono {
  width: 40px; height: 40px; flex: none; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--oro-tenue); border: 1px solid rgba(229, 161, 60, .3); color: var(--oro);
}
.punto__icono svg { width: 20px; height: 20px; }
.punto h3 { font-size: 1.05rem; margin-bottom: .25em; }
.punto p { color: var(--texto-suave); font-size: .94rem; }

/* ---------- Filtros de la galería ---------- */
.filtros { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; margin: 2.4rem 0 2.6rem; }
.filtro {
  padding: .55rem 1.15rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--linea); background: var(--negro-3);
  color: var(--texto-suave); font: inherit; font-size: .92rem; font-weight: 600;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.filtro:hover { color: var(--blanco); border-color: rgba(229, 161, 60, .45); }
.filtro[aria-pressed="true"] { background: var(--oro); border-color: var(--oro); color: #14100a; }

/* ---------- Galería ampliable ---------- */
.galeria__item--boton {
  padding: 0; border: 1px solid var(--linea); background: var(--negro-3);
  cursor: zoom-in; display: block; width: 100%; text-align: left; font: inherit;
}
.galeria__item[hidden] { display: none; }
.galeria__contador { text-align: center; color: var(--texto-tenue); font-size: .88rem; margin-top: 1.6rem; }

/* ---------- Visor de fotos ---------- */
.visor {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: clamp(1rem, 4vw, 3rem);
  background: rgba(0, 0, 0, .93); backdrop-filter: blur(6px);
}
.visor[open], .visor.abierto { display: flex; }
.visor__figura { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 1rem; }
.visor__figura img {
  max-width: 100%; max-height: 78vh; object-fit: contain;
  border-radius: var(--radio); border: 1px solid var(--linea);
}
.visor__pie { color: var(--texto); font-size: .98rem; text-align: center; }
.visor__pie span { display: block; color: var(--oro); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .25rem; }
.visor__cerrar, .visor__nav {
  position: absolute; border: 1px solid var(--linea); background: rgba(20, 20, 22, .9);
  color: var(--blanco); border-radius: 50%; width: 48px; height: 48px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .2s ease, border-color .2s ease;
}
.visor__cerrar:hover, .visor__nav:hover { background: var(--oro); color: #14100a; border-color: var(--oro); }
.visor__cerrar { top: 18px; right: 18px; font-size: 1.6rem; line-height: 1; }
.visor__nav svg { width: 22px; height: 22px; }
.visor__nav--ant { left: 18px; top: 50%; transform: translateY(-50%); }
.visor__nav--sig { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 620px) {
  .visor__nav { width: 42px; height: 42px; }
  .visor__nav--ant { left: 8px; }
  .visor__nav--sig { right: 8px; }
}
