:root {
  --azul: #0B1E3C;
  --azul-claro: #122a52;
  --azul-oscuro: #08172f;
  --amarillo: #FFC300;
  --blanco: #fff;
  --gris: #98A2B3;
  --texto-principal: #EAEFFB;
  --texto-secundario: #B0B9D1;
  --borde-color: rgba(255, 255, 255, .12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--azul);
  color: var(--texto-principal);
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}


/* ==================== Header ==================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.top-bar {
  background: var(--azul-oscuro);
  color: var(--blanco);
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--borde-color);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.urgencias {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--amarillo);
  font-size: 1.2rem;
}

.urgencias-icon {
  width: 15px;
  height: 15px;
  background-color: #ff4d4d;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 77, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); }
}

.contact-methods {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-methods a {
  color: var(--blanco);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.contact-methods a:hover {
  color: var(--amarillo);
}
.contact-methods a span {
  display: none;
}

.main-nav {
  background: rgba(11, 30, 60, .85);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--borde-color);
  padding: 12px 0;
}

.main-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@keyframes pulse-urgencias {
  0% { box-shadow: 0 0 0 0px rgba(220, 20, 60, 0.8); }
  70% { box-shadow: 0 0 0 15px rgba(220, 20, 60, 0); }
  100% { box-shadow: 0 0 0 0px rgba(220, 20, 60, 0); }
}

.btn-urgencias-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: crimson;
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  animation: pulse-urgencias 1.75s infinite cubic-bezier(0.66, 0, 0, 1);
  transition: transform .3s ease, background-color .3s ease;
}

.btn-urgencias-header:hover {
  transform: scale(1.05);
  animation-play-state: paused;
  background: #e02f51;
}

.btn-urgencias-header .urgencias-icon {
  width: 12px;
  height: 12px;
  animation: none;
  background: #ff4d4d;
  border: 1px solid white;
}

.nav-links {
  display: none;
  gap: 12px;
}

.nav-links a {
  color: var(--blanco);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--amarillo);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-primary {
  background: var(--amarillo);
  color: #1a1a1a;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(255, 195, 0, .25);
  transition: all 0.3s ease;
  display: none; /* Hide on mobile by default */
}
.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--blanco);
  border-radius: 10px;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.1);
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
  display: flex;
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  background: var(--azul-claro);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 1.5rem;
  /* Animation */
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), visibility 0.4s;
  will-change: transform;
}
.mobile-menu.active {
  transform: translateX(0);
  visibility: visible;
}

.mobile-menu a {
  color: var(--blanco);
  text-decoration: none;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  /* Refined transition for a smoother, more fluid animation */
  transition: opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1), transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.mobile-menu.active a {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced staggered delay for a more deliberate entrance effect */
.mobile-menu.active a:nth-child(1) { transition-delay: 0.20s; }
.mobile-menu.active a:nth-child(2) { transition-delay: 0.27s; }
.mobile-menu.active a:nth-child(3) { transition-delay: 0.34s; }
.mobile-menu.active a:nth-child(4) { transition-delay: 0.41s; }
.mobile-menu.active a:nth-child(5) { transition-delay: 0.48s; }
.mobile-menu.active a:nth-child(6) { transition-delay: 0.55s; }


/* ==================== HERO ==================== */
.hero {
  position: relative;
  padding: 60px 0;
  background: url('/img/grupo-escobar-imagenes/grupo-escobar-imagenes/img/banners/hero-cortina-metalica.webp.jpg') center/cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 30, 60, .95) 0%, rgba(11, 30, 60, .8) 50%, rgba(11, 30, 60, .5) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 40px;
}

.hero-content {
  text-align: center;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 6vw, 3.2rem);
  margin: 0 0 16px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--blanco);
}

.hero .slogan {
  margin: 0 0 24px;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: var(--texto-secundario);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0 auto 24px;
  max-width: 300px;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--texto-principal);
}

.hero-features svg {
  color: var(--amarillo);
  flex-shrink: 0;
}

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.cta-row .btn-primary {
  display: inline-block; /* Show it in the hero */
  animation: pulse-cta 2s infinite ease-in-out;
}

@keyframes pulse-cta {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 6px 18px rgba(255, 195, 0, .25);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 9px 26px rgba(255, 195, 0, .35);
  }
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--amarillo);
  color: var(--amarillo);
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background: var(--amarillo);
  color: #1a1a1a;
}

.hero-image {
  display: none;
}
.hero-image img {
  width: 100%;
  border-radius: 16px;
  border: 3px solid var(--borde-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ==================== Parallax and Gesture Enhancements ==================== */
main#inicio {
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), 
              filter 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform, filter;
}

body.menu-open main#inicio {
  transform: translateX(-100px) scale(0.95);
  filter: blur(4px) brightness(0.7);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}


/* ==================== Responsive ==================== */

@media (min-width: 768px) {
  .contact-methods a span {
    display: inline;
  }
  .contact-methods a svg {
    display: none;
  }
  .hamburger {
    display: none;
  }
  .nav-links {
    display: flex;
  }
  .nav-cta .btn-primary {
    display: block;
  }
  .hero-inner {
    grid-template-columns: 1.2fr 1fr;
    text-align: left;
  }
  .hero-content, .hero-features {
    align-items: flex-start;
  }
  .hero .slogan, .hero-features {
    margin-left: 0;
    margin-right: 0;
  }
  .hero-image {
    display: block;
  }
  .cta-row {
    flex-direction: row;
  }
}

@media (max-width: 1024px) {
  .top-bar {
    display: none;
  }
}


/* ==================== Secciones base ==================== */
.section{max-width:1200px;margin:40px auto;padding:0 16px}
.section h2{
  display:flex; align-items:center; gap:8px; margin:0 0 14px;
  font-size:clamp(20px,3vw,28px)
}
.section h2::before{content:""; width:3px; height:20px; background:var(--amarillo); border-radius:2px}

/* ==================== Servicios ==================== */
.services-grid{
  display:grid; gap:16px;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
}
.service{
  background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.12);
  border-radius:14px; overflow:hidden
}
.service img{width:100%; height:210px; object-fit:cover; display:block}
.service .b{padding:12px}
.service h3{margin:8px 0 6px}
.service p{margin:0 0 10px; color:#d8deea}
.service a{color:#9be59b; text-decoration:none; font-weight:600}
.service a:hover{text-decoration:underline}

/* ==================== Trabajos ==================== */
.works-grid{display:grid; gap:14px; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));}
.work{position:relative; border-radius:12px; overflow:hidden; border:1px solid rgba(255,255,255,.12)}
.work img{width:100%; height:240px; object-fit:cover; display:block}
.work .overlay{
  position:absolute; inset:auto 0 0 0; padding:10px 12px;
  background:linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 70%);
}
.work h3{margin:0 0 6px}
.tag{display:inline-block; padding:6px 10px; border-radius:999px; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.22); color:#fff; text-decoration:none; font-weight:600}
.tag:hover{background:rgba(255,255,255,.18)}

/* ==================== CTA luminoso (después de trabajos) ==================== */
.big-cta{
  text-align:center; margin:36px 0 8px;
}
.big-cta .line1{
  color:var(--amarillo); font-family:Montserrat; font-size:clamp(22px,4.5vw,36px); font-weight:800; margin:0 0 6px;
  text-shadow:0 0 22px rgba(255,195,0,.25);
}
.big-cta .line2 a{
  display:inline-block; color:#111; background:var(--amarillo);
  padding:10px 16px; border-radius:10px; font-weight:800; text-decoration:none;
  box-shadow:0 8px 26px rgba(255,195,0,.3)
}
.big-cta .line2 a:hover{filter:brightness(1.05)}
.shimmer{
  position:relative;
  background:linear-gradient(90deg, rgba(255,195,0,.12), rgba(255,255,255,0), rgba(255,195,0,.12));
}
.shimmer::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(120deg, transparent 0%, rgba(255,255,255,.25) 50%, transparent 100%);
  transform:skewX(-20deg) translateX(-120%);
  animation:shine 3.4s ease-in-out infinite;
}
@keyframes shine{
  0%   {transform:skewX(-20deg) translateX(-120%); opacity:.6}
  50%  {opacity:.9}
  100% {transform:skewX(-20deg) translateX(120%); opacity:.0}
}
.big-cta .shimmer{display:inline-block; padding:6px 10px; border-radius:10px}

/* ==================== Mini Galerías de Trabajos ==================== */
.gallery-section {
  margin: 60px auto;
}
.gallery-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--borde-color);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-item .overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.65) 80%);
  transition: background 0.3s ease;
}
.gallery-item:hover .overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.8) 100%);
}
.gallery-item h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}


/* ==================== Tips (Modernized) ==================== */
.tips-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.tip {
  background: linear-gradient(145deg, var(--azul-claro), var(--azul));
  border: 1px solid var(--borde-color);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.tip:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}
.tip-number {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 4.5rem;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  color: rgba(255, 255, 255, 0.04);
  z-index: 0;
  line-height: 1;
}
.tip-icon {
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.tip-icon svg {
  width: 48px;
  height: 48px;
  color: var(--amarillo);
}
.tip .b {
  padding: 0;
  position: relative;
  z-index: 1;
}
.tip h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}
.tip p {
  margin: 0;
  color: var(--texto-secundario);
  line-height: 1.6;
}

/* ==================== Reseñas ==================== */
#reseñas {
  text-align: center;
}

/* Fix extra space after reviews widget */
#reseñas + .gallery-section {
  margin-top: 0;
}

/* ==================== Contacto ==================== */
.contact-grid{display:grid; grid-template-columns:1fr; gap:24px}
@media (min-width: 992px){ .contact-grid{grid-template-columns:1.8fr 1.2fr} }

.card{
  background: linear-gradient(145deg, var(--azul-claro), var(--azul-oscuro));
  border:1px solid var(--borde-color);
  border-radius:16px; padding:24px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.contact-form-card {
  padding: 32px;
}

.contact-form .form-row {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .contact-form .form-row { grid-template-columns: 1fr 1fr; }
}

.form-group {
  position: relative;
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.form-group svg {
  position: absolute;
  left: 14px;
  top: 45px;
  width: 20px;
  height: 20px;
  color: var(--gris);
  pointer-events: none;
  transition: color 0.3s ease;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 14px 12px 48px;
  border-radius: 10px;
  background: var(--azul-oscuro);
  border: 1px solid var(--azul-claro);
  color: var(--texto-principal);
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input::placeholder, .form-group textarea::placeholder {
  color: var(--gris);
}

.form-group:focus-within svg {
  color: var(--amarillo);
}
.form-group:focus-within input, .form-group:focus-within textarea {
  outline: none;
  border-color: var(--amarillo);
  box-shadow: 0 0 0 3px rgba(255, 195, 0, 0.2);
}

textarea { min-height: 140px; resize: vertical; }

.form-actions {
  margin-top: 24px;
  text-align: center;
}
.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--amarillo);
  color: var(--azul-oscuro);
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(255, 195, 0, .25);
}
.btn-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-3px);
  box-shadow: 0 9px 26px rgba(255, 195, 0, .35);
}

.or-divider {
  font-size: 0.85rem;
  color: var(--gris);
  margin: 20px 0 16px;
}

.secondary-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.secondary-actions .btn-outline {
  flex-grow: 1;
}

.map{width:100%; height:200px; border:0; border-radius:12px; margin-top: 16px;}

/* Modernized Contact Info List */
.contact-info-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.contact-info-list li a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 10px;
  background: var(--azul-oscuro);
  border: 1px solid var(--borde-color);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.contact-info-list li a:hover {
  transform: translateY(-4px);
  background: var(--azul-claro);
  border-color: rgba(255, 195, 0, 0.5);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.contact-info-list .icon-wrapper {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 195, 0, 0.1);
}
.contact-info-list .icon-wrapper svg {
  width: 22px;
  height: 22px;
  color: var(--amarillo);
}
.contact-info-list .text-wrapper strong {
  display: block;
  font-weight: 600;
  color: var(--texto-principal);
  font-size: 1rem;
}
.contact-info-list .text-wrapper span {
  font-size: 0.9rem;
  color: var(--texto-secundario);
}


/* ==================== Footer + barra móvil ==================== */
.footer{border-top:1px solid rgba(255,255,255,.1); background:#091a33}
.footer .inner{max-width:1200px;margin:0 auto;padding:18px 16px;color:#d1d9e8}
.mobile-bar{
  position:fixed; bottom:0; left:0; right:0; z-index:70;
  display:flex; gap:2px; background:#0a1933; border-top:1px solid rgba(255,255,255,.08)
}
.mobile-bar a{
  flex:1; text-align:center; padding:10px 8px; color:#fff; text-decoration:none; font-weight:700
}
.mobile-bar a:nth-child(1){background:#25d366; color:#0b2a10}
.mobile-bar a:nth-child(2){background:#ffd34d; color:#111}
.mobile-bar a:nth-child(3){background:#0ea5e9}
.mobile-bar a:nth-child(4){background:#d946ef}
@media (min-width: 768px) {
  .mobile-bar {
    display: none;
  }
}

/* util */
.mt-0{margin-top:0}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* ====== CARROUSEL PROMOCIONAL ====== */
@keyframes subtle-glow {
  0%, 100% { box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 8px 28px rgba(37, 211, 102, 0.6); }
}

.promo-carousel {
  max-width: 950px;
  margin: 70px auto;
  background: linear-gradient(145deg, #122a52 0%, #08172f 100%);
  border: 1px solid var(--borde-color);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(0,0,0,0.5);
  position: relative;
}

.promo-carousel .slides {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.promo-carousel .slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 50px 45px;
  flex-direction: column;
}

.promo-carousel img {
  width: 90%;
  max-width: 340px;
  height: auto;
  aspect-ratio: 340 / 220;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid rgba(255, 195, 0, 0.7);
  box-shadow: 0 0 25px rgba(255,195,0,0.25);
  flex-shrink: 0;
}

.promo-carousel .text {
  color: var(--blanco);
  max-width: 420px;
  text-align: center;
}

.promo-carousel .promo-title {
  color: var(--blanco);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.promo-carousel h3 {
  /* This ensures the h3 tag itself doesn't add extra styles */
  margin: 0;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

.promo-carousel .promo-title svg {
  width: 32px;
  height: 32px;
  color: var(--amarillo);
  flex-shrink: 0;
}

.promo-carousel .promo-title .highlight {
  color: var(--amarillo);
  text-shadow: 0 0 12px rgba(255,195,0,0.5);
}


.promo-carousel p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 24px;
  color: var(--texto-secundario);
}

.promo-carousel .btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 6px 18px rgba(37,211,102,0.4);
  transition: all 0.3s ease;
  animation: subtle-glow 2.5s infinite ease-in-out;
}
.promo-carousel .btn-whatsapp svg {
    width: 20px;
    height: 20px;
}

.promo-carousel .btn-whatsapp:hover {
  transform: translateY(-3px) scale(1.05);
  filter: brightness(1.1);
  animation-play-state: paused;
}

.carousel-dots {
  text-align: center;
  margin: 12px 0 24px;
}

.carousel-dots span {
  display: inline-block;
  width: 11px;
  height: 11px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  margin: 0 6px;
  transition: 0.3s;
  cursor: pointer;
}

.carousel-dots span.active {
  background: var(--amarillo);
}


@media (min-width: 768px) {
  .promo-carousel .slide {
    flex-direction: row;
    gap: 40px;
  }
  .promo-carousel .text,
  .promo-carousel .promo-title {
    text-align: left;
    justify-content: flex-start;
  }
}

/* ==================== Floating WhatsApp Button Animations ==================== */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-bob {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}

@keyframes shake {
  10%, 90% { transform: rotate(-3deg); }
  20%, 80% { transform: rotate(3deg); }
  30%, 50%, 70% { transform: rotate(-3deg); }
  40%, 60% { transform: rotate(3deg); }
}

/* ==================== Floating WhatsApp Button ==================== */
.whatsapp-flotante {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.whatsapp-icon-wrapper {
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: float-bob 3s infinite ease-in-out;
}

.whatsapp-icon-wrapper svg {
  width: 32px;
  height: 32px;
  transition: transform 0.4s ease;
}

.whatsapp-tooltip {
  background-color: #fff;
  color: #1a1a1a;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  white-space: nowrap;
  margin-right: 12px;
  opacity: 0;
  transform: translateX(10px);
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.whatsapp-flotante:hover .whatsapp-icon-wrapper {
  animation-play-state: paused;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-flotante:hover .whatsapp-icon-wrapper svg {
  animation: shake 0.5s ease-in-out;
}

.whatsapp-flotante:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
}

/* Show floating button only on desktop where mobile bar is hidden */
@media (min-width: 768px) {
  .whatsapp-flotante {
    display: flex;
    animation: fade-in-up 0.5s 1s ease-out forwards;
  }
}

/* Hide floating button if mobile bar is shown */
@media (max-width: 767px) {
    .whatsapp-flotante {
        display: none;
    }
}

/* ==================== Lightbox ==================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(11, 30, 60, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1), visibility 0.4s;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid var(--borde-color);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transition-delay: 0.1s;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: pan-y;
}

.lightbox.active img {
  transform: scale(1);
  opacity: 1;
}

.lightbox .close,
.lightbox .prev,
.lightbox .next {
  position: absolute;
  color: var(--blanco);
  font-size: 2.5rem;
  font-weight: 300;
  cursor: pointer;
  z-index: 2001;
  transition: color 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
}

.lightbox .close:hover,
.lightbox .prev:hover,
.lightbox .next:hover {
  color: var(--amarillo);
  background: rgba(0,0,0,0.4);
  transform: scale(1.1);
}

.lightbox .close {
  top: 15px;
  right: 15px;
  font-size: 3rem;
  line-height: 1;
}

.lightbox .prev {
  left: 15px;
}

.lightbox .next {
  right: 15px;
}

@media (max-width: 768px) {
  .lightbox .prev { left: 5px; }
  .lightbox .next { right: 5px; }
  .lightbox .close { top: 10px; right: 10px; }
  .lightbox img { max-width: 98vw; }
}

/* Add cursor pointer to trigger elements */
.gallery-item, .work {
  cursor: pointer;
}