/* =========================
   VARIABLES
========================= */
:root{
  --primary: #0077b6;        /* azul logo */
  --primary-soft: #e6f2fa;   /* azul muy claro */
  --dark: #1a1a1a;           /* negro suave */
  --gray: #5f6c7b;           /* gris azulado */
  --bg-main: #f4f7fb;        /* fondo general */
  --white: #ffffff;
}

/* =========================
   RESET
========================= */
html, body{
  background-color: var(--bg-main);
  color: var(--dark);
}

html{
  scroll-behavior: smooth;
}

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

body{
  font-family:Arial, Helvetica, sans-serif;
  color:var(--black);
  background:#fff;
}

body.no-scroll{
  overflow: hidden;
}

/* =========================
   NAV
========================= */
.header{
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container{
  max-width:1200px;
  margin:auto;
  padding:1rem 2rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.logo{height:90px;}

.nav a{
  position: relative;
  margin-left: 1rem;
  color: var(--dark);
}

.nav a::after{
  content: "";
  position: absolute;
  left: 0;

  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(
    to bottom,
    rgba(0,119,182,0.35),
    rgba(0,0,0,0.6)
  );
  transition: width .3s ease;
}

.nav a:hover::after,
.nav a.active::after{
  width: 100%;
  color: var(--primary);
  font-weight: 600;
}

/* =========================
   HERO
========================= */
.hero{
  position:relative;
  height:70vh;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  text-align:center;
}

.hero-bg{
  position:absolute;
  inset:0;
  display:grid;
  grid-template-columns:1fr 1fr;
  z-index:1;
}

.hero-img{
  background-size:cover;
  background-position:center;
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to bottom,rgba(0,0,0,.35),rgba(0,0,0,.55));
  z-index:2;
}

.hero-content{
  position:relative;
  z-index:3;
  max-width:800px;
  padding:2rem;
  animation:fadeUp 1s ease forwards;
}

.hero-content h1,
.hero-content p{
  text-shadow:0 2px 6px rgba(0,0,0,.8);
}

.hero-content .btn{
  animation: fadeUp .8s ease forwards;
  animation-delay: .3s;
  opacity: 0;
}

.page-hero{
  min-height: 20vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 2rem;
  background: var(--primary-soft);
}

.page-hero h1{
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.page-hero p{
  color: var(--gray);
  font-size: 1.05rem;
}


@keyframes fadeUp{
  from{opacity:0;transform:translateY(20px)}
  to{opacity:1;transform:translateY(0)}
}


/* =========================
   BOTONES
========================= */
.btn{
  padding:14px 28px;
  border-radius:30px;
  font-weight:600;
  transition:.3s ease;
}

.btn.primary{
  background:#fff;
  color:#000;
}

.btn.primary:hover{transform:translateY(-2px)}

.btn.secondary{
  border:2px solid #fff;
  color:#fff;
}

/* =========================
   SERVICES
========================= */
.services{
  max-width:1200px;
  margin:4rem auto;
  padding:0 2rem;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:2rem;
}

.service-card{
  padding:2.5rem 2rem;
  background: var(--white);
  border: 1px solid rgba(0,119,182,0.08);
  text-align:center;
  color:var(--black);
  text-decoration:none;
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 10px 25px rgba(0,0,0,.08);
  transition:.35s ease;
}

.service-card::after{
  background: var(--primary);
}

.service-card:hover{
  transform:translateY(-8px);
  box-shadow:0 20px 45px rgba(0,0,0,.18);
  border-color:var(--accent);
}

/* =========================
   GALLERY
========================= */
.gallery{
  max-width:1200px;
  margin:4rem auto;
  padding:0 2rem;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:1.5rem;
}

.gallery img,
.gallery video{
  background: var(--white);
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:14px;
  cursor:pointer;
  transition:.35s ease;
  will-change: transform;
}

.gallery img:hover,
.gallery video:hover{
  transform:scale(1.05);
  box-shadow:0 12px 30px rgba(0,0,0,.25);
}

/* =========================
   LIGHTBOX
========================= */
.lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.9);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

.lightbox.active{display:flex}

.lightbox-content img,
.lightbox-content video{
  max-width:90%;
  max-height:90%;
}

.lightbox-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  font-size:60px;
  background:none;
  border:none;
  color:#fff;
  cursor:pointer;
  opacity:.7;
}

.lightbox-nav:hover{opacity:1}

.lightbox-nav.prev{left:20px}
.lightbox-nav.next{right:20px}

/* =========================
   FOOTER
========================= */
.footer{
  padding:2rem;
  background: linear-gradient(
    to right,
    #0a0a0a,
    #1a1a1a
  );
  color: #ddd;
  text-align:center;
  line-height: 1.6;
}

/* =========================
   RESPONSIVE
========================= */
@media(max-width:768px){
  .nav-container{flex-direction:column;gap:1rem}
  .logo{height:70px}
  .hero-bg{grid-template-columns:1fr}
  .hero{height:auto;padding:4rem 0}
}

.hero h1,
.page-hero h1{
  text-transform: uppercase;
}

*{
  transition: background-color .3s ease,
              color .3s ease,
              border-color .3s ease;
}

  .hero{
    min-height: 60vh;
    padding: 3.5rem 1.5rem;
  }

  .hero-content h1{
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .hero-content p{
    font-size: 1rem;
    opacity: 0.95;
  }

  .btn{
    padding: 16px 32px;
    font-size: 1rem;
  }

  .gallery img,
  .gallery video{
    box-shadow: none;
    transform: none;
  }

  .gallery img:active,
  .gallery video:active{
    transform: scale(0.98);
  }

  .lightbox-content img,
  .lightbox-content video{
    cursor: default;
    max-width: 100%;
    max-height: 85vh;
  }

  .lightbox-nav{
    font-size: 44px;
  }

  .lightbox-nav{
    padding: 10px;
    background: rgba(0,0,0,0.45);
    border-radius: 50%;
  }

/* =====================
   WHATSAPP FLOAT
===================== */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  z-index: 999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(63, 93, 69, 0.6);
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(63, 93, 69, 0.6);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(63, 93, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(63, 93, 69, 0);
  }
}

.instagram-float {
  position: fixed;
  bottom: 90px; /* Justo arriba del WhatsApp, ajusta si quieres más separación */
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: #E1306C; /* Color característico de Instagram */
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  z-index: 999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.instagram-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.instagram-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(225, 48, 108, 0.6); /* rosa Instagram */
  animation: pulse 2.5s infinite;
}

/* Mantener animación pulse */
@keyframes pulse {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(0,0,0,0.0);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(0,0,0,0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(0,0,0,0);
  }
}

  .service-card{
    padding: 2rem 1.5rem;
  }

  .service-card h3{
    font-size: 1.2rem;
  }

  body{
    -webkit-tap-highlight-color: transparent;
  }


@media (prefers-reduced-motion: reduce){
  *{
    transition: none !important;
    animation: none !important;
  }
}
