/*
Theme Name: Ramirez Luz y Energía
Theme URI: https://ramirezluzenergia.com
Author: Julian
Text Domain: ramirezluz
*/

/* ---------- RESET SENCILLO ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050505;
  color: #f8f8f8;
  line-height: 1.5;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* =========================== 
   PRELOADER (Home)
=========================== */

/* El body queda bloqueado mientras el preloader está activo */
body.preloader-active {
  overflow: hidden;
}

/* Ocultamos visualmente el contenido por detrás mientras el preloader está activo.
   Ajustá estos selectores según tu estructura (#page, .site, main, etc.). */
body.preloader-active .site,
body.preloader-active #page,
body.preloader-active main {
  visibility: hidden;
}

/* Contenedor principal del preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  /* IMPORTANTE: visible por defecto (mientras el body tenga preloader-active) */
  display: flex; /* antes estaba en none */
  align-items: center;
  justify-content: center;
  background: #020202;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  overflow: hidden;
  pointer-events: all;
}

/* Fade out que dispara el JS */
#preloader.preloader-fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ===========================
   LÍNEAS DE NEÓN – LLUVIA DIAGONAL
=========================== */

.preloader-lines {
  position: absolute;
  inset: -30vh -30vw;
  pointer-events: none;
  overflow: visible;
}

/* Cada “trazo” de luz */
.preloader-line {
  position: absolute;
  width: 4px;
  height: 120vh; /* más largas: se ven más en pantalla */
  background: linear-gradient(
    to bottom,
    rgba(255, 210, 140, 0.0) 0%,
    rgba(255, 225, 170, 0.5) 12%,
    rgba(255, 200, 120, 0.98) 35%,
    rgba(255, 185, 80, 1.0) 50%,
    rgba(255, 200, 120, 0.98) 65%,
    rgba(255, 225, 170, 0.5) 88%,
    rgba(255, 210, 140, 0.0) 100%
  );
  border-radius: 999px;
  filter:
    drop-shadow(0 0 18px rgba(255, 220, 160, 1))
    drop-shadow(0 0 34px rgba(255, 170, 70, 1));
  transform-origin: top center;
  transform: translate3d(0, -110vh, 0) rotate(40deg);
  opacity: 0.95;
  animation: preloader-line-rain 7.5s linear infinite; /* un poco más lento */
  will-change: transform, opacity;
}

/* 30 líneas distribuidas con delays y tiempos desprolijos */
.preloader-line:nth-child(1)  { left: 0%;   animation-delay: 0s;     animation-duration: 7.2s; }
.preloader-line:nth-child(2)  { left: 4%;   animation-delay: -0.5s;  animation-duration: 7.8s; }
.preloader-line:nth-child(3)  { left: 8%;   animation-delay: -1.1s;  animation-duration: 8.3s; }
.preloader-line:nth-child(4)  { left: 12%;  animation-delay: -1.8s;  animation-duration: 7.4s; }
.preloader-line:nth-child(5)  { left: 16%;  animation-delay: -2.2s;  animation-duration: 8.0s; }
.preloader-line:nth-child(6)  { left: 20%;  animation-delay: -2.9s;  animation-duration: 7.1s; }
.preloader-line:nth-child(7)  { left: 24%;  animation-delay: -3.3s;  animation-duration: 8.5s; }
.preloader-line:nth-child(8)  { left: 28%;  animation-delay: -3.9s;  animation-duration: 7.6s; }
.preloader-line:nth-child(9)  { left: 32%;  animation-delay: -4.3s;  animation-duration: 8.1s; }
.preloader-line:nth-child(10) { left: 36%;  animation-delay: -4.9s;  animation-duration: 7.3s; }

.preloader-line:nth-child(11) { left: 40%;  animation-delay: -5.4s;  animation-duration: 8.2s; }
.preloader-line:nth-child(12) { left: 44%;  animation-delay: -5.9s;  animation-duration: 7.5s; }
.preloader-line:nth-child(13) { left: 48%;  animation-delay: -6.6s;  animation-duration: 8.3s; }
.preloader-line:nth-child(14) { left: 52%;  animation-delay: -7.2s;  animation-duration: 7.2s; }
.preloader-line:nth-child(15) { left: 56%;  animation-delay: -7.7s;  animation-duration: 8.4s; }
.preloader-line:nth-child(16) { left: 60%;  animation-delay: -8.4s;  animation-duration: 7.1s; }
.preloader-line:nth-child(17) { left: 64%;  animation-delay: -8.9s;  animation-duration: 8.2s; }
.preloader-line:nth-child(18) { left: 68%;  animation-delay: -9.5s;  animation-duration: 7.6s; }
.preloader-line:nth-child(19) { left: 72%;  animation-delay: -10.0s; animation-duration: 8.0s; }
.preloader-line:nth-child(20) { left: 76%;  animation-delay: -10.7s; animation-duration: 7.4s; }

.preloader-line:nth-child(21) { left: 80%;  animation-delay: -11.2s; animation-duration: 8.3s; }
.preloader-line:nth-child(22) { left: 84%;  animation-delay: -11.9s; animation-duration: 7.3s; }
.preloader-line:nth-child(23) { left: 88%;  animation-delay: -12.4s; animation-duration: 8.1s; }
.preloader-line:nth-child(24) { left: 92%;  animation-delay: -13.0s; animation-duration: 7.7s; }
.preloader-line:nth-child(25) { left: 96%;  animation-delay: -13.5s; animation-duration: 8.4s; }
.preloader-line:nth-child(26) { left: 18%;  animation-delay: -14.0s; animation-duration: 7.4s; }
.preloader-line:nth-child(27) { left: 34%;  animation-delay: -14.6s; animation-duration: 8.0s; }
.preloader-line:nth-child(28) { left: 58%;  animation-delay: -15.1s; animation-duration: 7.8s; }
.preloader-line:nth-child(29) { left: 74%;  animation-delay: -15.7s; animation-duration: 8.2s; }
.preloader-line:nth-child(30) { left: 10%;  animation-delay: -16.2s; animation-duration: 7.5s; }

/* Lluvia diagonal: visibles casi todo el recorrido */
@keyframes preloader-line-rain {
  0% {
    transform: translate3d(0, -110vh, 0) rotate(40deg);
    opacity: 0;
  }
  12% { opacity: 0.75; }
  25% { opacity: 1;    }
  85% { opacity: 1;    }
  100% {
    transform: translate3d(0, 110vh, 0) rotate(40deg);
    opacity: 0;
  }
}

/* ===========================
   CENTRO: CÍRCULO NEGRO + HALO
=========================== */

.preloader-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  z-index: 10;
  background: transparent;
  width: auto;
  height: auto;
}

/* Contenedor del logo */
.preloader-logo-wrap {
  width: 130px;
  height: 130px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: visible; /* que el halo pueda salir hacia afuera */
}

/* Halo cálido, un poco más chico y más difuminado */
.preloader-logo-wrap::before {
  content: "";
  position: absolute;
  inset: -26px; /* radio más pequeño */
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 240, 200, 0.6) 0%,
    rgba(255, 220, 165, 0.4) 35%,
    rgba(255, 195, 120, 0.2) 60%,
    rgba(255, 170, 80, 0.0) 90%
  );
  opacity: 0.9;
  filter:
    blur(8px) /* más blur: más difuminado */
    drop-shadow(0 0 20px rgba(255, 215, 160, 0.9));
  animation: preloader-glow 2.4s ease-in-out infinite;
  z-index: 0;
}

/* Círculo negro sólido detrás del logo */
.preloader-logo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #000000;
  box-shadow:
    0 0 18px rgba(0, 0, 0, 0.9),
    0 0 26px rgba(0, 0, 0, 0.9);
  z-index: 1;
}

/* El logo encima de todo */
.preloader-logo-wrap img {
  position: relative;
  z-index: 2;
  width: 78%;
  height: auto;
}

/* Respiración del halo */
@keyframes preloader-glow {
  0%   { opacity: 0.55; transform: scale(0.95); }
  50%  { opacity: 1;    transform: scale(1.05); }
  100% { opacity: 0.55; transform: scale(0.95); }
}

/* Texto: Iluminando tus ideas */
.preloader-text-block {
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #ffffff;
  text-align: center;
  opacity: 0.97;
  font-weight: 600;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
}

/* ===========================
   OPTIMIZACIÓN MOBILE / DESKTOP
=========================== */

/* Mobile: menos carga gráfica pero misma estética */
@media (max-width: 768px) {
  .preloader-lines {
    inset: -20vh -20vw;
  }

  .preloader-line {
    width: 3px;
    height: 110vh;
    filter:
      drop-shadow(0 0 12px rgba(255, 220, 160, 1))
      drop-shadow(0 0 22px rgba(255, 170, 70, 1));
  }

  /* Reducimos a 20 líneas en mobile para alivianar GPU */
  .preloader-line:nth-child(n+21) {
    display: none;
  }

  .preloader-logo-wrap {
    width: 110px;
    height: 110px;
  }

  .preloader-text-block {
    font-size: 0.75rem;
    letter-spacing: 0.26em;
  }
}

/* Desktop grande: un toque más de presencia */
@media (min-width: 1440px) {
  .preloader-lines {
    inset: -35vh -35vw;
  }

  .preloader-line {
    height: 140vh;
  }

  .preloader-logo-wrap {
    width: 150px;
    height: 150px;
  }
}


/* ---------- HEADER ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 219, 148, 0.08);
}

/* ✅ Bloqueo de scroll cuando el menú está abierto (clase la pone el JS) */
body.nav-open {
  overflow: hidden;
  touch-action: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 181, 67, 0.5);
  background: #000;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.1;
}

.brand-name {
  font-weight: 700;
  font-size: 0.96rem;
}

.brand-sub {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
}

/* NAV (desktop) */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  list-style: none;
  flex-wrap: nowrap;
  white-space: nowrap;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  position: relative;
  padding-block: 0.5rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ffb020 0%, #ffdf7c 100%);
  transition: width 0.25s ease;
  border-radius: 999px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* MENU TOGGLE (icono hamburguesa) */
.menu-toggle {
  display: none;              /* desktop: hidden */
  width: 38px;
  height: 30px;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  height: 3px;
  background: #fff1d3;
  border-radius: 12px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- HEADER / NAV RESPONSIVE ---------- */

/* Breakpoint estándar */
@media (max-width: 780px) {
  .header-inner {
    justify-content: flex-start;
    gap: 0.75rem;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .main-nav {
    margin-left: 0;
  }

  .nav-links {
    position: fixed;
    inset: 62px 0 auto 0;
    background: rgba(4, 4, 4, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem 1.4rem;
    gap: 0.7rem;
    transform: translateY(-140%);
    transition: transform 0.2s ease-out;
    white-space: normal;
    z-index: 9998;
  }

  .nav-links.show {
    transform: translateY(0);
  }
}

/* ✅ Forzado móvil real (teléfonos táctiles): hamburguesa SIEMPRE visible,
   aunque el navegador renderice ancho grande (caso iPhone “raro”). */
@media (hover: none) and (pointer: coarse) {
  .header-inner {
    justify-content: flex-start;
    gap: 0.75rem;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  /* En teléfonos, el menú debe comportarse como drawer (no como desktop) */
  .nav-links {
    position: fixed;
    inset: 62px 0 auto 0;
    background: rgba(4, 4, 4, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem 1.4rem;
    gap: 0.7rem;
    transform: translateY(-140%);
    transition: transform 0.2s ease-out;
    white-space: normal;
    z-index: 9998;
  }

  .nav-links.show {
    transform: translateY(0);
  }
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  overflow: hidden;
}

.hero-title {
  font-size: clamp(2.0rem, 4vw, 3rem);
  font-weight: 700;
  text-shadow: 0 0 35px rgba(0,0,0,0.55), 0 0 18px rgba(0,0,0,0.9);
  color: #fff;
  margin-bottom: 0.8rem;
}

.hero-subtitle {
  font-size: 1.10rem;
  font-weight: 550;
  color: #fff;
  max-width: 550px;
  text-shadow: 0 0 25px rgba(0,0,0,0.75);
  margin-bottom: 1.8rem;
}

/* HERO SLIDER (unificado, sin duplicados) */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.4s ease-in-out; /* fade más fluido */
}

.hero-slide.active {
  opacity: 1;
}

/* Capa oscura encima de las fotos */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 35% 30%, rgba(0, 0, 0, 0) 0%, #050505 70%);
  pointer-events: none;
  z-index: 2;
}

/* Contenido por arriba de todo */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  padding-inline: 1rem;
}

/* BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: none;
  cursor: pointer;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(140deg, #ffb020 0%, #ffdf99 100%);
  color: #1a1a1a;
  padding: 0.7rem 1.5rem;
  box-shadow: 0 12px 28px rgba(255, 173, 57, 0.3);
}

.btn-outline {
  background: rgba(15, 15, 15, 0.6);
  border: 1px solid rgba(255, 212, 117, 0.35);
  color: #fff2d6;
  padding: 0.65rem 1.3rem;
}

/* HERO ACTIONS (ajuste prolijo mobile + consistencia) */
.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;

  /* clave para que no se “corra” ni se corte en pantallas angostas */
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.hero-actions .btn {
  white-space: nowrap;
  justify-content: center;
  text-align: center;
}

/* Mobile: mismos anchos y padding controlado (evita el botón “raro”) */
@media (max-width: 520px) {
  .hero-actions {
    gap: 0.75rem;
    max-width: 480px;
  }

  .hero-actions .btn {
    flex: 1 1 0;
    min-width: 0;

    /* compactamos apenas para evitar overflow visual */
    font-size: 0.95rem;
    padding: 0.78rem 1rem;
  }
}

/* Teléfonos táctiles (incluye iPhone “raro” aunque mienta el ancho) */
@media (hover: none) and (pointer: coarse) {
  .hero-actions {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    justify-content: center;
  }

  .hero-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
  }
}

/* ---------- SECCIONES GENERALES ---------- */
.section {
  padding: clamp(3.2rem, 6vw, 4.2rem) 0;
}
.section h2 {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-sub {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.4rem;
  align-items: center;
}
.about-text h2 {
  text-align: left;
  margin-bottom: 1rem;
}
.about-text p {
  margin-bottom: 0.75rem;
}
.about-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.about-list li::before {
  content: "✔";
  margin-right: 0.4rem;
  color: #ffcc66;
}
.about-media img {
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 190, 73, 0.15);
  box-shadow: 0 28px 55px rgba(0, 0, 0, 0.45);
}

/* =============== NUESTROS TRABAJOS – GRID 3 + 2 =============== */

.works .works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.3rem;
}

/* los últimos 2 abajo siguen siendo 1 col c/u */
.works .works-grid > *:nth-child(n+4) {
  grid-column: span 1;
}

/* ======= CARDS ======= */

.work-card {
  position: relative;
  display: block;
  background: radial-gradient(circle at top left, rgba(255, 210, 120, 0.12), transparent 55%),
              rgba(255, 255, 255, 0.03);
  border-radius: 1.3rem;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255, 210, 120, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease;
}

/* halo suave dorado en hover */
.work-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top center,
              rgba(255, 210, 120, 0.16) 0%,
              rgba(255, 210, 120, 0.0) 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.work-card:hover,
.work-card:focus-visible {
  transform: translateY(-7px) scale(1.02);
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.75);
  border-color: rgba(255, 210, 120, 0.45);
  background: radial-gradient(circle at top left, rgba(255, 210, 120, 0.18), transparent 55%),
              rgba(10, 10, 10, 0.96);
}

.work-card:hover::before,
.work-card:focus-visible::before {
  opacity: 1;
}

/* foco accesible para quien navega con teclado */
.work-card:focus-visible {
  outline: 2px solid rgba(245, 200, 107, 0.85);
  outline-offset: 3px;
}

/* ======= Imagen ======= */

.work-img {
  height: 260px;
  overflow: hidden;
  position: relative;
}

.work-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.38),
    rgba(0, 0, 0, 0.0) 60%
  );
  pointer-events: none;
}

.work-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.35s ease;
}

.work-card:hover img,
.work-card:focus-visible img {
  transform: scale(1.08);
}

/* ======= Info / Títulos ======= */

.work-info {
  padding: 1rem 1.15rem 1.5rem;
  text-align: center;
}

.work-info h3 {
  font-size: 1.07rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.work-sub {
  font-size: 0.86rem;
  color: #f5c86b;
  font-weight: 500;
}

/* ================== Responsive ================== */

@media (max-width: 1024px) {
  .works .works-grid {
    gap: 1.7rem;
  }

  .work-img {
    height: 240px;
  }
}

@media (max-width: 900px) {
  .works .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-card {
    border-radius: 1.15rem;
  }
}

@media (max-width: 580px) {
  .works .works-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .work-img {
    height: 230px;
  }

  .work-info {
    padding: 0.9rem 1rem 1.35rem;
  }

  .work-info h3 {
    font-size: 1rem;
  }
}

/* Respeto por usuarios que prefieren menos animación */
@media (prefers-reduced-motion: reduce) {
  .work-card,
  .work-img img {
    transition: none;
  }
}

/* ---------- SERVICES ---------- */
.services .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}
.service-card {
  background: rgba(255, 255, 255, 0.014);
  border: 1px solid rgba(255, 191, 76, 0.1);
  border-radius: 1rem;
  padding: 1.3rem 1.25rem 1.05rem;
  text-align: left;
  transition: transform 0.12s ease, border 0.12s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  border: 1px solid rgba(255, 191, 76, 0.6);
}
.service-card .icon {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}
.service-card h3 {
  margin-bottom: 0.35rem;
}

/* ---------- CONTACTO ---------- */
.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.contact-btn {
  padding: 0.6rem 1.3rem;
  border-radius: 0.85rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.contact-btn.whatsapp {
  background: #25d366;
  color: #071b0f;
  box-shadow: 0 14px 28px rgba(37, 211, 102, 0.2);
}
.contact-btn.mail {
  background: rgba(255, 175, 54, 0.07);
  border-color: rgba(255, 202, 113, 0.25);
}
.contact-btn.instagram {
  background: rgba(255, 122, 67, 0.08);
  border-color: rgba(255, 217, 179, 0.25);
}

.contact-form {
  max-width: 540px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 184, 69, 0.05);
  border-radius: 1.25rem;
  padding: 1.4rem 1.1rem 1.4rem;
  display: grid;
  gap: 1rem;
}
.contact-form label {
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
  display: inline-block;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 173, 63, 0.15);
  border-radius: 0.6rem;
  padding: 0.5rem 0.55rem;
  color: #fff;
}
.contact-form button {
  width: fit-content;
}
.contact-success,
.contact-error {
  max-width: 540px;
  margin: 0 auto 1.5rem;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  font-size: 0.9rem;
}

.contact-success {
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.6);
  color: #b8f5cf;
}

.contact-error {
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid rgba(231, 76, 60, 0.6);
  color: #ffb3a8;
}

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid rgba(255, 223, 140, 0.06);
  padding: 1.15rem 0;
  background: rgba(0, 0, 0, 0.45);
}
.footer-inner {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 920px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 72vh;
    text-align: center;
  }
  .hero-content {
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 780px) {
  .menu-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    inset: 62px 0 auto 0;
    background: rgba(4, 4, 4, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem 1.4rem;
    gap: 0.7rem;
    transform: translateY(-140%);
    transition: transform 0.2s ease-out;
  }
  .nav-links.show {
    transform: translateY(0);
  }
  .nav-cta {
    width: 100%;
  }
  .nav-cta a {
    width: 100%;
    justify-content: center;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
  .works .works-grid {
    grid-template-columns: 1fr 1fr;
  }
  .services .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .works .works-grid,
  .services .services-grid {
    grid-template-columns: 1fr;
  }
  .hero-bg {
    background-position: 55% 20%;
  }
}

/* ================================
   BOTÓN FLOTANTE WHATSAPP — PREMIUM
================================ */

.whatsapp-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 70px;
  height: 70px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  z-index: 1000;
  cursor: pointer;
}

/* Ícono claro pero sin halo exagerado */
.whatsapp-fab img {
  width: 100%;
  height: 100%;
  object-fit: contain;

  /* Ícono visible / halo más suave */
  filter:
    brightness(0.80) /* ícono más claro */
    drop-shadow(0 0 3px rgba(37, 211, 102, 0.45)); /* halo suave */

  animation: waPulse 2.4s ease-in-out infinite;
  transition: transform .22s ease, filter .22s ease;
}

/* Hover elegante, no agresivo */
.whatsapp-fab:hover img {
  transform: scale(1.06);
  filter:
    brightness(0.92)
    drop-shadow(0 0 8px rgba(37, 211, 102, 0.65)); /* halo más intenso pero controlado */
}

/* Pulsación respirando */
@keyframes waPulse {
  0% {
    transform: scale(1);
    filter:
      brightness(0.80)
      drop-shadow(0 0 3px rgba(37, 211, 102, 0.45));
  }
  50% {
    transform: scale(1.05);
    filter:
      brightness(0.92)
      drop-shadow(0 0 9px rgba(37, 211, 102, 0.70));
  }
  100% {
    transform: scale(1);
    filter:
      brightness(0.80)
      drop-shadow(0 0 3px rgba(37, 211, 102, 0.45));
  }
}

/* MOBILE — menor tamaño, luminancia más equilibrada */
@media (max-width: 520px) {
  .whatsapp-fab {
    right: 14px;
    bottom: 14px;
    width: 60px;
    height: 60px;
  }

  .whatsapp-fab img {
    filter:
      brightness(0.88)
      drop-shadow(0 0 4px rgba(37, 211, 102, 0.55));
  }
}
