/* ============================
  CHAVARRÍA CONSTRUCCIÓN INTELIGENTE – STYLE FINAL OPTIMIZADO
   ============================ */
:root {
  --verde-piedra: #3A6B35;
  --azul-profundo: #1E3A5F;
  --arena: #F4F1EC;
  --gris-cemento: #B9B7B3;
  --tinta: #0F172A;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--tinta);
  background: var(--arena);
}

h1, h2, h3, .brand-title strong { font-family: "Merriweather", serif; }

/* ============================
  NAVBAR
   ============================ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--gris-cemento);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--tinta);
  text-decoration: none;
  font-weight: 600;
}

.menu { display: flex; gap: 20px; }
.menu a {
  color: var(--tinta);
  text-decoration: none;
  padding: 10px 6px;
  border-radius: 10px;
}
.menu a:hover { background: #eef2f6; }

#navToggle { display: none; font-size: 22px; background: none; border: none; }

@media(max-width:800px){
  #navToggle { display: block; }
  .menu {
    position: absolute;
    right: 16px;
    top: 64px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    border: 1px solid var(--gris-cemento);
    border-radius: 16px;
    padding: 10px;
    flex-direction: column;
    display: none;
  }
  .menu.open { display: flex; }
}

/* ============================================
  OFFSET PARA SECCIONES CON MENÚ FIJO
   ============================================ */
section[id] {
  scroll-margin-top: 20px; /* ajustá este valor al alto de tu menú */
}

@media (max-width: 768px) {
  section[id] {
    scroll-margin-top: 50px;
  }
}

/* ==========================================
  DESTELLO REAL SOBRE LAS LETRAS (EFECTO SHINE)
   ========================================== */
.shimmer-title {
  position: relative;
  display: inline-block;
  font-family: "Merriweather", serif;
  font-weight: 700;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-left: 20px; /* espacio para la línea vertical */
  color: var(--verde-piedra);
  background: linear-gradient(
    90deg,
    var(--verde-piedra) 0%,
    var(--verde-piedra) 35%,
    #ffffff 50%,
    var(--verde-piedra) 65%,
    var(--verde-piedra) 100%
  );
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineText 4s ease-in-out infinite;
}

/* --- Línea horizontal inferior --- */
.shimmer-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--verde-piedra), var(--azul-profundo));
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}

/* --- Línea vertical izquierda --- */
.shimmer-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--verde-piedra), var(--azul-profundo));
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}

/* --- Movimiento del destello dentro del texto --- */
@keyframes shineText {
  0% {
    background-position: -250% center;
  }
  50% {
    background-position: 250% center;
  }
  100% {
    background-position: 250% center;
  }
}
/* ============================
  SECCIÓN HERO
   ============================ */  
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: url('../img/hero-casa-piedra_v3.webp') center/cover no-repeat;
  overflow: hidden;
  isolation: isolate;
  background-attachment: scroll; /* 🔥 necesario para el efecto dinámico */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  will-change: background-position;
}

/* Capa de oscurecimiento sutil */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  /*background: linear-gradient(120deg, rgba(30,58,95,0.35), rgba(0,0,0,0.2));*/
  background: linear-gradient(120deg, rgba(30,58,95,0.45), rgba(0,0,0,0.25));
  z-index: 1;
}

/* Texto encima */
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

@keyframes fadeHero {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: .8rem;
  text-shadow: 2px 2px 10px rgba(0,0,0,.4);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #f1f5f9;
}

/* BOTÓN HERO */
.btn-cta {
  display: inline-block;
  padding: 14px 36px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--verde-piedra), var(--azul-profundo));
  border: none;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
  transition: transform .3s ease, box-shadow .3s ease;
}

.btn-cta:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 12px 26px rgba(0,0,0,.35);
}

/* Destello al pasar */
.btn-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255,255,255,0.4);
  transform: skewX(-25deg);
  transition: left 0.7s ease;
}

/* Botón ghost para CTA secundaria del hero */
.btn-ghost {
  display:inline-block; margin-left:10px;
  background: transparent; color:#fff; border:2px solid #fff; border-radius:999px; padding:12px 24px; font-weight:700;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,.25); }
.btn-cta:hover::after { left: 125%; }

/* ============================
  SERVICIOS
   ============================ */
#servicios {
  padding: 80px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f4f1ec 100%);
}

#servicios h2 {
  text-align: center;
  color: var(--azul-profundo);
  margin-bottom: 40px;
}

.grid-3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 0 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--gris-cemento);
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.6);
  padding: 28px 22px;
  flex: 1 1 280px;
  max-width: 340px;
  transition: all .3s ease;
  text-align: center;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(30,58,95,.18);
}

.card h3 {
  color: var(--azul-profundo);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.card p {
  font-size: .96rem;
  line-height: 1.6;
  color: var(--tinta);
}

/* --- Servicios v2: mejoras visuales --- */
#servicios .grid-3:first-of-type { display: none; }
.card .icon {
  width: 48px;
  height: 48px;
  color: var(--verde-piedra);
  display: block;
  margin: 0 auto 8px;
}
.card .bullets {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 0;
  text-align: left;
}
.card .bullets li {
  position: relative;
  padding-left: 16px;
  margin: 6px 0;
  font-size: .95rem;
}
.card .bullets li::before { content: none; }
.btn-mini {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--verde-piedra), var(--azul-profundo));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn-mini:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

/* Delays por clase (mejor que inline) */
.delay-1 { --delay: .05s; }
.delay-2 { --delay: .10s; }
.delay-3 { --delay: .15s; }
.delay-4 { --delay: .20s; }
.delay-5 { --delay: .25s; }
.delay-6 { --delay: .30s; }
.delay-7 { --delay: .35s; }

/* Intro de servicios */
#servicios .intro {
  text-align: center;
  max-width: 900px;
  margin: 10px auto 24px;
  color: var(--tinta);
}

/* ============================
  SERVICIOS: TARJETAS CON GIRO
   ============================ */
.flip-card { background: transparent; border: none; box-shadow: none; padding: 0; flex: 1 1 320px; max-width: 420px; perspective: 1000px; }
.flip-card:hover { transform: none !important; box-shadow: none !important; }
.flip-card .card-inner {
  position: relative;
  width: 100%;
  height: 420px;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.4,.1,.2,1);
}
.flip-card:hover .card-inner,
.flip-card:focus-within .card-inner { transform: rotateY(180deg); }

.flip-card .card-face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid var(--gris-cemento);
  box-shadow: 0 8px 20px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.6);
}

.flip-card .card-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #0f172a;
  background: linear-gradient(135deg, color-mix(in hsl, var(--azul-profundo) 14%, white), color-mix(in hsl, var(--verde-piedra) 16%, white));
  background-position: center;
  background-size: cover;
  padding: 18px;
}
.flip-card .card-front::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.45));
}
.flip-card .card-front h3 {
  position: relative; z-index: 1;
  padding: 0 16px;
  font-size: 1.15rem;
  background: linear-gradient(90deg, var(--azul-profundo), var(--verde-piedra), var(--azul-profundo));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.flip-card .card-front .front-desc {
  margin: 6px 0 0;
  max-width: 90%;
  color: var(--tinta);
  opacity: .92;
}

.flip-card .card-back {
  background: #fff;
  transform: rotateY(180deg);
  padding: 20px 18px 22px;
  display: flex; flex-direction: column;
  gap: 8px;
}
.flip-card .card-back .back-title { color: var(--azul-profundo); margin: 0 0 6px; font-size: 1.2rem; }
.flip-card .card-back .bullets { margin-top: 6px; line-height: 1.5; }
.flip-card .card-back .btn-mini { align-self: start; margin-top: auto; }
.flip-card .card-back { overflow: auto; }

/* Soporte flip por clase (click/tap) */
.flip-card.flipped .card-inner { transform: rotateY(180deg); }

/* Fondos por servicio (usar assets existentes) */
.svc-construccion .card-front { background-image: radial-gradient(1200px 600px at 10% 10%, rgba(255,255,255,.75), transparent), linear-gradient(135deg, #eaf2ff, #e8f5ef); }
.svc-remodelaciones .card-front { background-image: radial-gradient(1200px 600px at 90% 10%, rgba(255,255,255,.75), transparent), linear-gradient(135deg, #f1f5f9, #e8f5ef); }
.svc-electricidad .card-front { background-image: radial-gradient(1200px 600px at 10% 90%, rgba(255,255,255,.7), transparent), linear-gradient(135deg, #eef2ff, #fce7f3); }
.svc-plomeria .card-front { background-image: radial-gradient(1200px 600px at 90% 90%, rgba(255,255,255,.7), transparent), linear-gradient(135deg, #e0f2fe, #e6fffb); }
.svc-carpinteria .card-front { background-image: radial-gradient(1200px 600px at 10% 50%, rgba(255,255,255,.7), transparent), linear-gradient(135deg, #fef3c7, #ffedd5); }
.svc-solar .card-front { background-image: radial-gradient(1200px 600px at 50% 10%, rgba(255,255,255,.7), transparent), linear-gradient(135deg, #fff7ed, #fef9c3); }
.svc-diseno .card-front { background-image: radial-gradient(1200px 600px at 50% 90%, rgba(255,255,255,.7), transparent), linear-gradient(135deg, #f5f3ff, #e0e7ff); }

@media (max-width: 900px) {
  .flip-card .card-inner { height: 360px; }
}
@media (max-width: 600px) {
  .flip-card .card-inner { height: 300px; }
}

/* Fallback de reflejo para navegadores sin -webkit-box-reflect */
.flip-card{ position: relative; }
.flip-card::after{
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -12px;
  height: 24px;
  background: radial-gradient(60% 100% at 50% 0%, rgba(15,23,42,0.08), rgba(15,23,42,0));
  filter: blur(3px);
  opacity: .22;
  pointer-events: none;
}

/* =====================================================
   SLIDER DE PROYECTOS – CENTRADO REAL, PROYECCIONES IGUALES Y RESPONSIVE
   ===================================================== */

/* --- Variables globales para control de tamaño --- */
:root {
  --ancho-proyecto: 720px;
  --alto-imagen: 480px;
  --alto-texto: 100px;
}

/* --- Contenedor principal --- */
.slider-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 0;
  overflow: hidden;
}

/* --- Botones laterales --- */
.slider-stage .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  font-size: 26px;
  color: var(--azul-profundo);
  background: rgba(30,58,95,0.15);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 6;
}
.slider-stage .nav:hover {
  background: rgba(30,58,95,0.3);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}
.slider-stage .prev { left: 10px; }
.slider-stage .next { right: 10px; }

/* --- Contenedores de proyectos --- */
.slider-stage .slide,
.slider-stage .projection {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
  transition: all 0.8s cubic-bezier(.4,.1,.2,1);
  width: var(--ancho-proyecto);
  height: calc(var(--alto-imagen) + var(--alto-texto));
}

/* --- Imagen del proyecto --- */
.proj-card .media,
.projection .media {
  width: 100%;
  height: var(--alto-imagen);
  overflow: hidden;
  background: #eaeaea;
}
.proj-card .media img,
.projection .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}
.proj-card:hover .media img {
  transform: scale(1.05);
}

/* --- Texto del proyecto --- */
.proj-card .info,
.projection .info {
  width: 100%;
  height: var(--alto-texto);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8px 14px;
  border-top: 1px solid var(--gris-cemento);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.85) 60%, rgba(255,255,255,.75));
  box-sizing: border-box;
}

.proj-card .info h3,
.projection .info h3 {
  margin: 2px 0 4px;
  color: var(--azul-profundo);
  font-size: .95rem;
  font-weight: 600;
}
.proj-card .info p,
.projection .info p {
  margin: 0;
  color: var(--tinta);
  font-size: 0.82rem;
  line-height: 1.3;
  opacity: 0.9;
  max-width: 90%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Proyecciones laterales --- */
.slider-stage .projection {
  flex: 0 0 30%;
  max-width: 300px;
  opacity: 0.65;
  transform: scale(0.85);
  filter: brightness(0.9) blur(1px);
  transition: all 0.8s ease;
}

/* --- Proyecto principal (centro) --- */
.slider-stage .slide.current {
  flex: 0 0 60%;
  max-width: var(--ancho-proyecto);
  z-index: 3;
  transform: scale(1);
  opacity: 1;
}

/* --- Orden visual --- */
.projection-prev { order: 1; }
.slide.current { order: 2; }
.projection-next { order: 3; }
.projection-next {
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}

/* --- Gradientes laterales --- */
.slider-stage::before,
.slider-stage::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}
.slider-stage::before {
  left: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.9), rgba(255,255,255,0));
}
.slider-stage::after {
  right: 0;
  background: linear-gradient(to left, rgba(255,255,255,0.9), rgba(255,255,255,0));
}

/* --- Transición suave --- */
.slider-stage.transitioning .projection {
  opacity: 0.5;
  filter: brightness(0.8) blur(3px);
  transform: scale(0.8);
}
.slider-stage.transitioning .slide.current {
  transform: scale(0.96);
  opacity: 0.95;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  :root {
    --ancho-proyecto: 600px;
    --alto-imagen: 400px;
    --alto-texto: 90px;
  }
  .slider-stage .projection {
    flex: 0 0 40%;
    max-width: 260px;
  }
  .slider-stage .nav { width: 40px; height: 40px; font-size: 22px; }
}

@media (max-width: 600px) {
  :root {
    --ancho-proyecto: 90%;
    --alto-imagen: 300px;
    --alto-texto: 80px;
  }
  .slider-stage { gap: 10px; }
  .slider-stage .projection { display: none; }
  .slider-stage .nav { width: 36px; height: 36px; font-size: 20px; }
}

/* Dots de slider */
.slider-dots { display:flex; justify-content:center; gap:8px; margin-top:10px; }
.slider-dots .dot { width:10px; height:10px; border-radius:50%; border:1px solid var(--azul-profundo); background:#fff; cursor:pointer; padding:0; }
.slider-dots .dot.active { background: var(--azul-profundo); }

/* Altos exactos segun variables */
/* La altura de la imagen del proyecto se controla con --alto-imagen */

/* ============================
  FORMULARIO DE CONTACTO
   ============================ */
.form-section {
  padding: 60px 0;
  background: #fff;
  margin-bottom: 60px;
}

.form-section h2 {
  text-align: center;
  color: var(--azul-profundo);
  margin-bottom: 20px;
}

.form {
  max-width: 600px;
  margin: 0 auto;
  background: #fefefe;
  border-radius: var(--radius);
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  padding: 20px;
}

.form .row {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.form label {
  font-weight: 600;
  color: var(--azul-profundo);
  margin-bottom: 6px;
}

.form input,
.form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--gris-cemento);
  font-family: Poppins, sans-serif;
  font-size: 15px;
  color: var(--tinta);
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--verde-piedra);
  box-shadow: 0 0 0 3px rgba(58,107,53,.15);
}

.form button {
  background: var(--verde-piedra);
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background .25s ease;
}

.form button:hover { background: var(--azul-profundo); }

/* ============================
  FORMULARIO ESTILO TARJETA CORPORATIVA
   ============================ */
.form.moderno {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  padding: 32px 26px;
  max-width: 650px;
  margin: 0 auto;
  transition: transform .3s ease;
}
.form.moderno:hover { transform: translateY(-4px); }

.form.moderno label {
  font-weight: 600;
  color: var(--azul-profundo);
  display: block;
  margin-bottom: 6px;
}

.form.moderno input,
.form.moderno textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--gris-cemento);
  background: #f9fafb;
  transition: all .25s ease;
  font-size: 15px;
}
.form.moderno input:focus,
.form.moderno textarea:focus {
  border-color: var(--verde-piedra);
  box-shadow: 0 0 0 3px rgba(58,107,53,0.15);
  background: #fff;
  outline: none;
}

.form.moderno button {
  margin-top: 18px;
  background: linear-gradient(135deg, var(--verde-piedra), var(--azul-profundo));
  color: #fff;
  border: none;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
  transition: all .3s ease;
}
.form.moderno button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

.form.moderno input::placeholder,
.form.moderno textarea::placeholder {
  color: #9ca3af;
  font-style: italic;
}
/* Errores de campo */
.field-error { display:block; color:#b91c1c; margin-top:6px; font-size:.9rem; }
.form.moderno [aria-invalid="true"]{ border-color:#ef4444 !important; box-shadow: 0 0 0 3px rgba(239,68,68,0.15) !important; }

/* Acciones secundarias */
.form .actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-top:10px; }
/* Outline verde por defecto para extras */
.btn.btn-outline {
  background:#fff;
  color: var(--verde-piedra);
  border:2px solid var(--verde-piedra);
  border-radius: 999px;
  padding:10px 16px;
  font-weight:600;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
  will-change: transform;
}
.btn.btn-outline:hover {
  background: color-mix(in hsl, var(--verde-piedra) 8%, white);
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 8px 18px rgba(58,107,53,.18);
}
.btn.btn-outline:active { transform: translateY(0) scale(0.98); box-shadow: 0 4px 10px rgba(0,0,0,.08); }
.btn.btn-outline:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in hsl, var(--azul-profundo) 35%, white); }

/* Honeypot oculto */
.hp { display:none; }

/* Mapa diferido */
.map-holder { width:100%; height:400px; border-radius: var(--radius); border:1px solid var(--gris-cemento); background:#f1f5f9; box-shadow: 0 6px 16px rgba(0,0,0,.08); margin-top:10px; }

/* Botones externos de contacto */
.contact-extras { display:flex; flex-direction:column; gap:12px; align-items:center; margin-top:14px; }
.contact-extras .contact-row { display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:center; }
.contact-extras .btn-outline { display:flex; align-items:center; gap:8px; }
.btn-outline .icon { width:18px; height:18px; display:inline-block; }
/* Soporte para favicon/gif por imagen cuando estén disponibles */
.btn-outline.btn-icon img.icon-img{ width:18px; height:18px; display:inline-block; object-fit:contain; }

/* Botones de marca */
.btn.btn-wa,
.btn.btn-fb { position: relative; overflow: hidden; }
/* WhatsApp: texto y borde verdes siempre (sube especificidad para ganar a .btn.btn-outline) */
.btn.btn-wa {
  background:#fff;
  color:#25D366;
  border:2px solid #25D366;
}
.btn.btn-wa:hover { background:#f6fff9; transform: translateY(-1px) scale(1.06); box-shadow: 0 10px 22px rgba(37,211,102,.18); }
/* Facebook: texto y borde azules siempre */
.btn.btn-fb {
  background:#fff;
  color:#1877F2;
  border:2px solid #1877F2;
}
.btn.btn-fb:hover { background:#f6f9ff; transform: translateY(-1px) scale(1.06); box-shadow: 0 10px 22px rgba(24,119,242,.18); }
/* Anillos sutiles usando before/after con el mismo color (currentColor) */
.btn.btn-wa::before,
.btn.btn-wa::after,
.btn.btn-fb::before,
.btn.btn-fb::after {
  content:"";
  position:absolute;
  border-radius:999px;
  pointer-events:none;
}
.btn.btn-wa::before,
.btn.btn-fb::before { inset:-2px; border:2px solid currentColor; opacity:.12; }
.btn.btn-wa::after,
.btn.btn-fb::after { inset:4px; border:1px solid currentColor; opacity:.10; }

/* Botón secundario suave para extras (llamar/copiar) */
.btn-soft {
  background: linear-gradient(135deg, var(--azul-profundo), var(--verde-piedra));
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn-soft:hover { transform: translateY(-1px) scale(1.04); box-shadow: 0 12px 26px rgba(0,0,0,.18); filter: saturate(1.05); }
.btn-soft:active { transform: translateY(0) scale(0.98); box-shadow: 0 6px 14px rgba(0,0,0,.12); }
.btn-soft:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in hsl, var(--azul-profundo) 35%, white); }

.form.moderno input:required:invalid,
.form.moderno textarea:required:invalid {
  border-color: #d1d5db;
}

/* Asterisco para campos requeridos */
.form.moderno .required {
  color: var(--azul-profundo);
  margin-left: 3px;
  font-weight: 700;
  font-size: 1rem;
  vertical-align: middle;
  animation: blinkStar 2s ease-in-out infinite;
}

/* Animación sutil del asterisco */
@keyframes blinkStar {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.1); }
}

/* ============================
  MAPA
   ============================ */
.map-wrap {
  width: 100%;
  padding: 0 20px 60px 20px;
  margin-top: 50px;
}

.form-section .map-wrap {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid var(--gris-cemento);
}

.map-wrap iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

/* ============================
  GALERÍA
   ============================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  padding: 20px;
}

.gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--gris-cemento);
  background: #e2e8f0;
  transition: transform .3s ease;
}

.gallery img:hover { transform: scale(1.05); }

/* ============================
FOOTER
   ============================ */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--gris-cemento);
  background: #fff;
  text-align: center;
}

.footer small { color: var(--tinta); }

/* ============================
UTILIDADES Y AJUSTES GLOBALES
   ============================ */
section {
  padding-top: 80px;
  padding-bottom: 80px;
  scroll-margin-top: 100px;
}

.map-wrap {
  padding-top: 80px;
  padding-bottom: 80px;
  scroll-margin-top: 100px;
}

.hero { padding-top: 0; padding-bottom: 0; }
.form-section { padding-top: 60px; padding-bottom: 80px; }

.center { text-align: center; }
.btn { display: inline-block; text-decoration: none; cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in hsl, var(--azul-profundo) 60%, white); }
img { max-width: 100%; height: auto; }

/* ============================
  BOTÓN "VER ÁLBUM COMPLETO"
   ============================ */
.btn-album {
  display: inline-block;
  margin: 40px auto 0;
  background: linear-gradient(135deg, var(--azul-profundo), var(--verde-piedra));
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  padding: 12px 24px;
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
  transition: all .3s ease;
  text-decoration: none;
  text-align: center;
}

.btn-album:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,.25);
  background: linear-gradient(135deg, var(--verde-piedra), var(--azul-profundo));
}


/* Accessibility: honor reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
