:root {
  --bg: #0b1220ec;
  --surface: #121a2be5;
  --primary: #284bebd0;
  --primary-soft: #1e40af;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: #1f2a44;

  --radius: 14px;
  --shadow: 0 20px 50px rgba(0,0,0,.45);
  --font: "Inter", system-ui, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,18,32,.9);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
}

/* Hover del logo */
.logo:hover {
  color: #121a2b;
  transform: translateY(-3px);
  box-shadow:
    0 15px 45px rgba(17, 87, 239, 0.804),
    0 0 30px rgba(37, 99, 235, 0.25);
}

/* El span también se vuelve blanco */
.logo:hover span {
  color: #121a2b;
}

/* =========================
   LOGO
========================= */
.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 20px;
  font-weight: 500;
  padding: 12px 24px;
  background: #121a2b;
  color: var(--text);
  text-decoration: none;
  border-radius: 20px;

  box-shadow:
    0 8px 24px rgba(41, 105, 244, 0.836),
    0 0 0 1px var(--border);

  transition:
    color 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.logo span {
  color: var(--primary);
  font-weight: 500;
  transition: color 0.35s ease;
}

/* Hover → texto blanco + glow azul */
.logo:hover {
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow:
    0 14px 40px rgba(37, 99, 235, 0.45),
    0 0 28px rgba(37, 99, 235, 0.35);
}

.logo:hover span {
  color: #ffffff;
}

/* Difuminado elegante */
.logo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    transparent,
    rgba(37, 99, 235, 0.18),
    transparent
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.logo:hover::after {
  opacity: 1;
}

/* =========================
  NAV LINKS
========================= */
.nav-links {
  display: flex;
  list-style: none;
  gap: 1.6rem;
}

/* Estado base */
.nav-links a {
  position: relative;
  padding: 10px 20px;
  font-size: 15px;
  background: var(--border);
  color: var(--text);
  text-decoration: none;
  border-radius: 14px;

  box-shadow:
    0 6px 18px rgba(37, 99, 235, 0.12),
    0 0 0 1px var(--border);

  transition:
    color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Hover → texto blanco */
.nav-links a:hover {
  color: #ffffff;
  transform: translateY(-4px);
  box-shadow:
    0 10px 32px rgba(37, 99, 235, 0.45),
    0 0 22px rgba(37, 99, 235, 0.35);
}

/* Difuminado azul suave */
.nav-links a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    transparent,
    rgba(37, 99, 235, 0.15),
    transparent
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.nav-links a:hover::after {
  opacity: 1;
}


/* HERO */
.hero-bg {
  height: 70vh;
  background: linear-gradient(
    to bottom,
    rgba(11,18,32,.6),
    rgba(11,18,32,1)
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}

.hero-overlay h1 {
  font-size: clamp(2.3rem, 6vw, 3.5rem);
  font-weight: 800;
}

h1:hover {
  color: var(--primary);
}

.hero-overlay p {
  margin-top: 1rem;
  color: var(--muted);
}

/* SECCIONES */
.section {
  max-width: 1100px;
  margin: auto;
  padding: 4rem 2rem;
}

.h2-design {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
  color: linear-gradient(80deg, #2563eb, #38bdf8);
  position: relative;
  color: var(--muted);
  /* animación de entrada */
  opacity: 0;
  transform: translateY(50px) scale(0.96);
  animation: titleReveal 1s ease-out forwards;
}

h2 {
  text-align: center;
}

/* línea animada inferior */
.h2-design::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -15px;
  width: 0;
  height: 6px;
  background: linear-gradient(80deg, #2563eb, #38bdf8);
  border-radius: 999px;
  transform: translateX(-50%);
  animation: lineGrow 0.12s ease-out forwards;
  animation-delay: 0.12s;
}

/* animación al pasar el cursor */
.h2-design:hover {
  letter-spacing: 0.04em;
  transition: letter-spacing 0.4s ease;
  color: var(--text);
}

/* keyframes */
@keyframes titleReveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes lineGrow {
  to {
    width: 75px;
  }
}


.section p {
  text-align: center;
  max-width: 720px;
  margin: auto;
  color: var(--muted);
}

/* HERO CTA */
.hero {
  text-align: center;
}

.btn-primary {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.9rem 2.4rem;
  background: var(--primary);
  color: white;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--primary-soft);

}

/* SERVICIOS */

.cards {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);

  /* Animación suave */
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

/* Halo suave */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at top left,
    rgba(37, 99, 235, 0.25),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow:
    0 25px 55px rgba(37, 99, 235, 0.45),
    0 0 30px rgba(37, 99, 235, 0.25);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  margin-bottom: .8rem;
  transition: color 0.3s ease;
}

.card:hover h3 {
  color: var(--primary);
}


/* === GALERÍA / ÁLBUM === */
.section.gallery {
  padding: 70px 20px;
  background: #0b1220;
  color: #fff;
  text-align: center;
}

.section.gallery h2 {
  font-size: 2.3rem;
  margin-bottom: 40px;
}

/* Grid responsive automático */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: auto;
}

/* Tarjeta tipo álbum */
.gallery-item {
  position: relative;
  height: 300px;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: #121a2b;
  box-shadow: 0 12px 35px rgba(0,0,0,.45);
  transition: transform .4s ease, box-shadow .4s ease;
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 25px 60px rgba(0,0,0,.7);
}

/* Imagen */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.gallery-item:hover img {
  transform: scale(1.12);
}

/* Overlay tipo portada de álbum */
.gallery-item::after {
  content: attr(data-title);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  font-weight: 600;
  font-size: 1rem;
  background: linear-gradient(transparent 45%, rgba(0,0,0,.85));
  opacity: 0;
  transition: opacity .4s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* === VISOR TIPO ÁLBUM (LIGHTBOX) === */
.album-viewer {
  position: fixed;
  inset: 0;
  background: var(--primary);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.album-viewer img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,.8);
}

/* Ajustes móviles */
@media (max-width: 480px) {
  .gallery-item {
    height: 240px;
  }

  .section.gallery h2 {
    font-size: 2rem;
  }
}



/* FORMULARIO */
.contact form {
  max-width: 480px;
  margin: 3rem auto 0;
  display: grid;
  gap: 1rem;
}

.contact input,
.contact select,
.contact textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: .9rem 1rem;
  border-radius: 10px;
}

.contact input:focus,
.contact select:focus,
.contact textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.contact button {
  margin-top: 1rem;
  background: var(--primary);
  border: none;
  color: white;
  padding: 1rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.floating-socials {
  position: fixed;
  right: 28px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 1000;
}

/* BASE COMÚN */
.social-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #111;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.social-btn img {
  width: 28px;
  height: 28px;
}

/* HOVER GENERAL */
.social-btn:hover {
  transform: scale(1.12);
}

/* =====================
  WHATSAPP – VERDE
===================== */
.whatsapp {
  background: #25d366;
  animation: pulse-green 2.5s infinite;
}

.whatsapp:hover {
  box-shadow:
    0 0 0 6px rgba(255,255,255,0.25),
    0 15px 40px rgba(25, 233, 101, 0.822);
  animation-play-state: paused;
}

@keyframes pulse-green {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.6); }
  70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* =====================
  FACEBOOK – AZUL
===================== */
.facebook {
  background: #96bef3dc;
  animation: pulse-blue 3s infinite;
}

.facebook:hover {
  box-shadow:
    0 0 0 6px rgba(255,255,255,0.25),
    0 15px 40px rgba(24,119,242,0.6);
  animation-play-state: paused;
}

@keyframes pulse-blue {
  0%   { box-shadow: 0 0 0 0 rgba(24,119,242,0.6); }
  70%  { box-shadow: 0 0 0 14px rgba(24,119,242,0); }
  100% { box-shadow: 0 0 0 0 rgba(24,119,242,0); }
}

/* =====================
  TIKTOK – NEGRO
===================== */
.tiktok {
  background: #242323d8;
  animation: float-dark 2.8s ease-in-out infinite;
}

.tiktok:hover {
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.911),
    0 18px 45px rgba(92, 92, 92, 0.8);
  animation-play-state: paused;
}

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


/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem;
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
}

/* BOTÓN HAMBURGUESA */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
}

/* MOBILE NAV */
@media (max-width: 768px) {

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);

    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.open {
    max-height: 300px;
  }
}

.whatsapp:hover{
  background-color: green;
}

.facebook:hover{
  background-color: blue;
}

.tiktok:hover{
  background-color: white;
}

.inicio-button:hover, 
.mision-button:hover, 
.servicios-button:hover, 
.contacto-button:hover {
  background-color: var(--primary);
  color: white;
}

.btn-whatsapp {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #ffffff;
  border: none;
  padding: 1rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;

  box-shadow:
    0 12px 30px rgba(37, 99, 235, 0.45),
    0 0 0 1px rgba(255,255,255,0.15);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Brillo animado */
.btn-whatsapp::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.6),
    transparent
  );
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}

/* Hover */
.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow:
    0 18px 45px rgba(37, 99, 235, 0.65),
    0 0 25px rgba(255,255,255,0.35);
}

.btn-whatsapp:hover::after {
  transform: translateX(120%);
}

/* Click (feedback táctil) */
.btn-whatsapp:active {
  transform: translateY(0);
  box-shadow:
    0 10px 25px rgba(37, 99, 235, 0.45);
}

/* Accesibilidad */
.btn-whatsapp:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.hero-services { 
  font-size: 14px;
}

/* NAV BASE */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #0f172a;
}

.logo {
  color: white;
  font-weight: 800;
}

.logo span {
  color: #22d3ee;
}

/* LINKS DESKTOP */
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

/* BOTÓN MOBILE */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text);
  cursor: pointer;
}

/* 📱 MOBILE */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: var(--primary);
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

.footer {
  margin-top: 4rem;
  padding: 2.5rem 1.5rem;
  text-align: center;

  background: linear-gradient(
    to top,
    rgb(0, 84, 252),
    rgba(18,26,43,0.95)
  );

  border-top: 2px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.3px;

  box-shadow: 0 -10px 30px rgba(0,0,0,0.35);
}

.footer p {
  margin: 0;
}

.footer strong {
  color: var(--text);
  font-weight: 600;
}

/* Sutil animación al pasar el cursor */
.footer:hover {
  color: var(--text);
  transition: color 0.4s ease;
}

.parrafo {
  text-align: center;
}