/* Facundo — Bautizo | Blanco + celeste */
:root {
  --celeste: #5eb8e8;
  --celeste-oscuro: #3a9fd4;
  --celeste-suave: #e8f6fc;
  --celeste-brillo: #a8dcfa;
  --blanco: #ffffff;
  --texto: #1a3a4a;
  --texto-suave: #4a6b7a;
  --sombra: rgba(30, 100, 140, 0.12);
  --sombra-fuerte: rgba(30, 100, 140, 0.2);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--texto);
  background: var(--blanco);
  overflow-x: hidden;
}

/* Fondo animado */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(165deg, #ffffff 0%, #f0f9fd 45%, #e3f4fb 100%);
  overflow: hidden;
}

.bg-orbs::before,
.bg-orbs::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: float-orb 18s var(--ease-out) infinite alternate;
}

.bg-orbs::before {
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  background: radial-gradient(circle, var(--celeste-brillo), transparent 70%);
  top: -10%;
  right: -15%;
}

.bg-orbs::after {
  width: min(60vw, 420px);
  height: min(60vw, 420px);
  background: radial-gradient(circle, var(--celeste-suave), transparent 65%);
  bottom: -5%;
  left: -10%;
  animation-delay: -6s;
  animation-duration: 22s;
}

@keyframes float-orb {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-4%, 6%) scale(1.08);
  }
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(
      rgba(94, 184, 232, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(94, 184, 232, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 85%);
  pointer-events: none;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px var(--sombra);
}

.logo-mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--celeste-oscuro);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--texto-suave);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  transition: color 0.25s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--celeste);
  transition: width 0.35s var(--ease-out);
}

.nav-links a:hover {
  color: var(--celeste-oscuro);
}

.nav-links a:hover::after {
  width: 100%;
}

@media (max-width: 640px) {
  .nav-links {
    gap: 0.75rem;
  }

  .nav-links a {
    font-size: 0.8rem;
  }
}

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--blanco);
  border: 1px solid rgba(94, 184, 232, 0.35);
  box-shadow: 0 8px 32px var(--sombra);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--celeste-oscuro);
  margin-bottom: 1.5rem;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--celeste);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 10vw, 5rem);
  font-weight: 500;
  line-height: 1.05;
  margin: 0 0 0.5rem;
  color: var(--texto);
  letter-spacing: -0.02em;
}

.hero .name-accent {
  display: block;
  background: linear-gradient(
    120deg,
    var(--celeste-oscuro),
    var(--celeste),
    var(--celeste-brillo)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--texto-suave);
  max-width: 28em;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--celeste), var(--celeste-oscuro));
  color: var(--blanco);
  box-shadow: 0 12px 36px rgba(58, 159, 212, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(58, 159, 212, 0.45);
}

.btn-ghost {
  background: var(--blanco);
  color: var(--celeste-oscuro);
  border: 2px solid rgba(94, 184, 232, 0.5);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--celeste);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--texto-suave);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-scroll .mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(94, 184, 232, 0.5);
  border-radius: 12px;
  position: relative;
}

.hero-scroll .mouse::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--celeste);
  border-radius: 2px;
  animation: scroll-wheel 2s ease infinite;
}

@keyframes scroll-wheel {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* Sección genérica */
section {
  padding: clamp(3rem, 8vw, 6rem) 1.5rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--celeste);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  margin: 0 0 1rem;
  color: var(--texto);
}

.section-text {
  color: var(--texto-suave);
  line-height: 1.75;
  max-width: 42rem;
  margin: 0;
}

/* Detalles / tarjetas */
.details {
  background: linear-gradient(180deg, transparent, var(--celeste-suave) 15%, var(--celeste-suave) 85%, transparent);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--blanco);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 16px 48px var(--sombra);
  border: 1px solid rgba(94, 184, 232, 0.15);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px var(--sombra-fuerte);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--celeste-suave), var(--blanco));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--celeste-oscuro);
  font-size: 1.35rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  color: var(--texto);
}

.card p {
  margin: 0;
  color: var(--texto-suave);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Galería */
.gallery-section {
  position: relative;
}

.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.gallery-count {
  font-size: 0.9rem;
  color: var(--texto-suave);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--sombra);
  border: 1px solid rgba(94, 184, 232, 0.2);
  background: var(--celeste-suave);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.06);
}

.gallery-item .play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 58, 74, 0.25);
  color: var(--blanco);
  font-size: 2.5rem;
  pointer-events: none;
}

.gallery-item .item-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  opacity: 0;
  transition: opacity 0.25s;
}

.gallery-item:hover .item-actions {
  opacity: 1;
}

.item-actions a,
.item-actions button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--celeste-oscuro);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}

.item-actions a:hover,
.item-actions button:hover {
  transform: scale(1.08);
  background: var(--blanco);
}

.gallery-empty,
.gallery-error {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: 20px;
  background: var(--celeste-suave);
  color: var(--texto-suave);
}

.gallery-error {
  border: 1px solid rgba(220, 100, 100, 0.3);
  background: #fff5f5;
  color: #8a3333;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 40, 55, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-inner {
  max-width: min(96vw, 1200px);
  max-height: 92vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-media {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.lightbox-media img,
.lightbox-media video {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

.lightbox-nav {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
}

.lightbox-bar {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.lightbox-bar .filename {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  max-width: 100%;
  text-align: center;
  word-break: break-all;
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

@media (max-width: 640px) {
  .lightbox-close {
    top: -2.5rem;
  }
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--texto-suave);
  font-size: 0.85rem;
  border-top: 1px solid rgba(94, 184, 232, 0.2);
}

.site-footer span {
  color: var(--celeste-oscuro);
  font-weight: 600;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
