/* ============================================================
   Martínez Photography — Landing
   Paleta juvenil: violeta + fucsia + coral sobre tinta/crema
   Mobile-first
   ============================================================ */

:root {
  /* Marca */
  --ink: #16151d;
  --ink-soft: #3a3744;
  --violet: #7c3aed;
  --fuchsia: #ec4899;
  --coral: #fb7185;
  --amber: #fbbf24;
  --cream: #faf7f4;
  --white: #ffffff;
  --wa: #25d366;
  --wa-dark: #1da851;

  --grad: linear-gradient(135deg, #7c3aed 0%, #ec4899 55%, #fb7185 100%);
  --grad-soft: linear-gradient(135deg, rgba(124,58,237,.12), rgba(236,72,153,.12));

  /* UI */
  --bg: #ffffff;
  --muted: #6b6776;
  --line: #ece8f1;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -20px rgba(124, 58, 237, .35);
  --shadow-soft: 0 12px 30px -16px rgba(22, 21, 29, .25);
  --container: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; letter-spacing: -.02em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }

.section { padding: 84px 0; }

/* ----- Utilidades ----- */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--grad);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow--dark {
  color: var(--violet);
  background: var(--grad-soft);
}

.section__head { text-align: center; max-width: 620px; margin: 0 auto 50px; }
.section__head h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.section__lead { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* ----- Botones ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  padding: 12px 22px;
  border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn--lg { padding: 15px 30px; font-size: 1.02rem; }

.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 10px 24px -10px rgba(37, 211, 102, .8); }
.btn--wa:hover { background: var(--wa-dark); transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

.btn--ghost-light { background: rgba(255,255,255,.12); color: #fff; border: 2px solid rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.btn--ghost-light:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--violet); transform: translateY(-2px); }

.ico-wa, .ico { width: 19px; height: 19px; fill: currentColor; flex-shrink: 0; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px -16px rgba(22,21,29,.4); }

.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand__logo { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1;
  letter-spacing: -.02em;
}
.brand__name span { display: block; font-weight: 500; font-size: .72rem; letter-spacing: .22em; color: var(--violet); text-transform: uppercase; }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links > a:not(.btn) {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .96rem;
  color: var(--ink-soft);
  position: relative;
  transition: color .2s;
}
.nav__links > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--grad); border-radius: 2px;
  transition: width .25s var(--ease);
}
.nav__links > a:not(.btn):hover { color: var(--ink); }
.nav__links > a:not(.btn):hover::after { width: 100%; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav__toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 60px 0 70px; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 85% 10%, rgba(236,72,153,.16), transparent 60%),
    radial-gradient(55% 50% at 10% 25%, rgba(124,58,237,.16), transparent 60%),
    linear-gradient(180deg, var(--cream), #fff 70%);
}
.hero__inner { display: grid; gap: 44px; align-items: center; }

.hero__title { font-size: clamp(2.4rem, 9vw, 4rem); font-weight: 800; margin: 6px 0 18px; }
.hero__sub { color: var(--ink-soft); font-size: 1.1rem; max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 4px; }

/* Collage del hero */
.hero__gallery {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
}
.hero__card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero__card img { width: 100%; height: 100%; object-fit: cover; }
.hero__card--1 { grid-row: span 2; aspect-ratio: 3/4.6; }
.hero__card--2 { aspect-ratio: 4/5; margin-top: 0; }
.hero__card--3 { aspect-ratio: 4/5; }
.hero__card { animation: floaty 6s ease-in-out infinite; }
.hero__card--2 { animation-delay: -2s; }
.hero__card--3 { animation-delay: -4s; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ============================================================
   SOBRE ALEX
   ============================================================ */
.sobre { background: var(--cream); }
.sobre__grid { display: grid; gap: 44px; align-items: center; }

.sobre__photo { position: relative; max-width: 440px; margin: 0 auto; }
.sobre__photo img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.sobre__photo::before {
  content: ""; position: absolute; inset: -14px -14px 14px 14px;
  border-radius: var(--radius); background: var(--grad); z-index: -1; opacity: .9;
}
.sobre__badge {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  font-family: var(--font-head); font-weight: 700; font-size: .92rem;
  padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow-soft);
}

.sobre__copy h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: 16px; }
.sobre__copy p { color: var(--ink-soft); margin-bottom: 14px; }
.sobre__list { list-style: none; display: grid; gap: 8px; margin: 20px 0 26px; }
.sobre__list li { font-weight: 500; color: var(--ink); }
.sobre__list li::first-letter { color: var(--fuchsia); }

/* ============================================================
   GALERÍA
   ============================================================ */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.filter {
  font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  padding: 9px 20px; border-radius: 999px;
  background: #f3f0f7; color: var(--ink-soft);
  transition: all .25s var(--ease);
}
.filter:hover { background: #e9e3f3; }
.filter.is-active { background: var(--grad); color: #fff; box-shadow: var(--shadow); }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.gallery__item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-soft);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item figcaption {
  position: absolute; left: 12px; bottom: 12px;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem; color: #fff;
  background: rgba(22,21,29,.55); backdrop-filter: blur(4px);
  padding: 5px 12px; border-radius: 999px;
  opacity: 0; transform: translateY(8px); transition: all .3s var(--ease);
}
.gallery__item:hover figcaption { opacity: 1; transform: translateY(0); }
.gallery__item.is-hidden { display: none; }

/* ============================================================
   SERVICIOS
   ============================================================ */
.servicios { background: linear-gradient(180deg, #fff, var(--cream)); }
.pricing { display: grid; gap: 22px; }

.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-soft);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column;
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.plan--featured {
  border: none;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}
.plan--featured .plan__price { color: #fff; }
.plan__tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: .76rem;
  padding: 6px 16px; border-radius: 999px; letter-spacing: .03em;
  white-space: nowrap;
}

.plan__head { margin-bottom: 22px; }
.plan__head h3 { font-size: 1.4rem; margin-bottom: 6px; }
.plan__price { font-family: var(--font-head); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--ink); }
.plan__price span { font-size: 1.3rem; vertical-align: super; margin-right: 2px; }

.plan__features { list-style: none; display: grid; gap: 13px; margin-bottom: 28px; flex: 1; }
.plan__features li { font-size: .98rem; padding-bottom: 13px; border-bottom: 1px dashed rgba(128,128,128,.25); }
.plan__features li:last-child { border-bottom: none; padding-bottom: 0; }
.plan--featured .plan__features li { border-color: rgba(255,255,255,.18); }

.plan__btn { justify-content: center; width: 100%; }

/* ============================================================
   CTA
   ============================================================ */
.cta { background: var(--ink); position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 80% at 50% 0%, rgba(124,58,237,.4), transparent 70%),
              radial-gradient(50% 80% at 80% 100%, rgba(236,72,153,.35), transparent 70%);
}
.cta__inner { position: relative; text-align: center; color: #fff; max-width: 640px; margin: 0 auto; }
.cta__inner h2 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 14px; }
.cta__inner p { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 30px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #0f0e14; color: rgba(255,255,255,.7); padding: 54px 0 26px; }
.footer__inner { display: grid; gap: 32px; }
.footer__logo { width: 60px; height: 60px; border-radius: 12px; margin-bottom: 14px; }
.footer__brand p { font-size: .95rem; max-width: 260px; }
.footer__nav { display: flex; flex-direction: column; gap: 12px; }
.footer__nav a, .footer__contact a { transition: color .2s; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--fuchsia); }
.footer__contact { display: flex; flex-direction: column; gap: 12px; }
.footer__copy { text-align: center; font-size: .85rem; color: rgba(255,255,255,.4); margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); }

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(37,211,102,.7);
  animation: pulse 2.4s infinite;
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
@keyframes pulse {
  0% { box-shadow: 0 12px 28px -8px rgba(37,211,102,.7), 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 12px 28px -8px rgba(37,211,102,.7), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 12px 28px -8px rgba(37,211,102,.7), 0 0 0 0 rgba(37,211,102,0); }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 9, 14, .92); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox__img { max-width: 90vw; max-height: 86vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox__close { position: absolute; top: 18px; right: 24px; font-size: 2.6rem; color: #fff; line-height: 1; }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 2.6rem; color: #fff; width: 54px; height: 54px;
  background: rgba(255,255,255,.12); border-radius: 50%;
  display: grid; place-items: center; transition: background .2s;
}
.lightbox__nav:hover { background: rgba(255,255,255,.25); }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }

/* ============================================================
   REVEAL (animación al hacer scroll)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: 70px 0 auto 0;
    flex-direction: column; gap: 4px; align-items: stretch;
    background: #fff; padding: 18px 22px 26px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,.3);
    transform: translateY(-130%);
    transition: transform .35s var(--ease);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links > a:not(.btn) { padding: 12px 6px; border-bottom: 1px solid var(--line); }
  .nav__cta { margin-top: 12px; justify-content: center; }
  .nav__toggle { display: flex; }
}

@media (min-width: 720px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

@media (min-width: 880px) {
  .section { padding: 110px 0; }
  .hero { padding: 80px 0 90px; }
  .hero__inner { grid-template-columns: 1.05fr .95fr; gap: 50px; }
  .hero__gallery { max-width: 520px; }
  .hero__card--1 { aspect-ratio: 3/4.2; }
  .sobre__grid { grid-template-columns: .9fr 1.1fr; }
  .pricing { grid-template-columns: repeat(3, 1fr); align-items: center; }
  .plan--featured { transform: scale(1.05); }
  .plan--featured:hover { transform: scale(1.05) translateY(-6px); }
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
