/* FotoEstudio — skin tipo Instagram, calcado del mockup de Claude Design */

:root {
  --fe-gold: #C9A86E;
  --fe-gold-dark: #a8874c;
  --fe-ink: #1a1a1a;
  --fe-gray: #666;
  --fe-gray-light: #999;
  --fe-bg: #F7F6F4;
  --fe-red: #D93333;
}

* { box-sizing: border-box; }

body.fe-body {
  margin: 0;
  background: #fff;
  font-family: 'Montserrat', system-ui, sans-serif;
  color: var(--fe-ink);
  -webkit-font-smoothing: antialiased;
}

.fe-app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
  position: relative;
  padding-bottom: 82px;
}

/* Header */
.fe-header {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.05);
  position: sticky;
  top: 0;
  z-index: 20;
}
.fe-logo { font: 600 20px 'Montserrat', sans-serif; color: var(--fe-ink); }
.fe-bell {
  font-size: 22px; position: relative; border: none; background: none;
  padding: 4px; cursor: pointer; line-height: 1;
}
.fe-bell-activa::after {
  content: ''; position: absolute; top: 2px; right: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--fe-gold); border: 1.5px solid #fff;
}

/* Historias / categorías */
.fe-stories {
  display: flex; gap: 10px; padding: 12px 16px 14px;
  overflow-x: auto; border-bottom: 1px solid rgba(0,0,0,.05);
  scrollbar-width: none;
}
.fe-stories::-webkit-scrollbar { display: none; }
.fe-story { width: 70px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none; }
.fe-story-circle {
  width: 60px; height: 60px; border-radius: 50%;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--fe-gold);
  background-size: cover; background-position: center;
}
.fe-story span { font: 500 11px 'Montserrat', sans-serif; color: var(--fe-gray); text-align: center; }

/* Feed */
.fe-feed { background: var(--fe-bg); padding: 12px 0 18px; }
.fe-post {
  margin: 0 0 14px; background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.fe-post-img {
  width: 100%; height: 300px; object-fit: cover; display: block;
  background: #eee;
}
.fe-post-carrusel { position: relative; width: 100%; height: 300px; background: #eee; overflow: hidden; }
.fe-carrusel-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .6s ease;
}
.fe-carrusel-slide.fe-carrusel-activa { opacity: 1; }
.fe-carrusel-dots {
  position: absolute; left: 0; right: 0; bottom: 10px;
  display: flex; justify-content: center; gap: 6px;
}
.fe-carrusel-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); }
.fe-carrusel-dot-activo { background: #fff; }
.fe-post-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.fe-post-actions { display: flex; gap: 22px; align-items: center; font: 500 16px 'Montserrat', sans-serif; color: #333; }
.fe-post-actions button {
  background: none; border: none; padding: 0; font: inherit; color: inherit; cursor: pointer;
}
.fe-post-fotografo {
  margin-left: auto; font: 500 12px 'Montserrat', sans-serif; color: var(--fe-gray-light);
}
.fe-post-actions button.liked { color: var(--fe-red); }
.fe-post-text { display: flex; flex-direction: column; gap: 7px; }
.fe-post-title { font: 600 17px/1.3 'Montserrat', sans-serif; color: var(--fe-ink); }
.fe-post-frase { font: 400 14px/1.45 'Montserrat', sans-serif; color: var(--fe-gray); }
.fe-post-rating { font: 500 14px 'Montserrat', sans-serif; color: var(--fe-gold); }
.fe-post-rating .conteo { color: var(--fe-gray-light); font-weight: 400; }
.fe-btn-gold {
  height: 45px; border-radius: 12px; background: var(--fe-gold);
  display: flex; align-items: center; justify-content: center;
  font: 600 15px 'Montserrat', sans-serif; color: #fff; text-decoration: none;
  border: none; width: 100%; cursor: pointer;
}
.fe-btn-gold:hover { background: var(--fe-gold-dark); color: #fff; }

/* Bottom nav */
.fe-bottomnav {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 100%; max-width: 480px; height: 70px;
  background: #fff; box-shadow: 0 -4px 10px rgba(0,0,0,.1);
  display: grid; grid-template-columns: repeat(4,1fr);
  align-items: center; justify-items: center; z-index: 30;
}
.fe-bottomnav a { font-size: 26px; text-decoration: none; opacity: .45; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fe-bottomnav a.active { opacity: 1; }
.fe-bottomnav a.active .fe-nav-dot { width: 18px; height: 2px; border-radius: 2px; background: var(--fe-gold); }

/* Modal de acceso */
.fe-gate-teaser { filter: blur(2px) saturate(.9); }
.fe-gate-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 40;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.fe-gate-modal {
  position: relative;
  width: 100%; max-width: 340px; background: #fff; border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); padding: 30px 25px 26px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.fe-gate-close {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px;
  border-radius: 50%; border: none; background: #F5F5F5; color: #666;
  font-size: 14px; line-height: 1; cursor: pointer;
}
.fe-gate-modal .fe-lock { font-size: 48px; }
.fe-gate-modal h2 { font: 600 20px 'Montserrat', sans-serif; color: var(--fe-ink); margin: 0; text-align: center; }
.fe-gate-modal p { font: 400 14px/1.45 'Montserrat', sans-serif; color: var(--fe-gray); text-align: center; margin: 0; }
.fe-gate-input {
  width: 100%; height: 50px; border-radius: 12px; background: #F5F5F5;
  border: 1px solid #D9D9D9; display: flex; align-items: center; padding: 0 18px;
  gap: 8px; font: 400 15px 'Montserrat', sans-serif; color: var(--fe-ink); margin-top: 6px;
}
.fe-gate-input input {
  border: none; background: none; outline: none; flex: 1;
  font: 400 15px 'Montserrat', sans-serif; color: var(--fe-ink); letter-spacing: .04em;
}
.fe-gate-input input::placeholder { color: #999; }
.fe-gate-nota { font: 400 13px 'Montserrat', sans-serif; color: var(--fe-gray); text-align: center; margin: 0; }
.fe-gate-warn { font: 500 13px 'Montserrat', sans-serif; color: var(--fe-red); text-align: center; margin: 0; }
.fe-gate-error { font: 500 13px 'Montserrat', sans-serif; color: var(--fe-red); text-align: center; margin: 0; min-height: 16px; }

/* Calificación al descargar */
.fe-rate-stars { display: flex; gap: 8px; margin-top: 4px; }
.fe-rate-star {
  background: none; border: none; padding: 0; cursor: pointer;
  font-size: 34px; line-height: 1; color: #E0E0E0; transition: color .15s;
}
.fe-rate-star.fe-rate-star-activa { color: var(--fe-gold); }
.fe-rate-gracias { font: 600 14px 'Montserrat', sans-serif; color: var(--fe-gold-dark); text-align: center; margin: 0; }

/* Galería completa */
.fe-gal-header {
  height: 60px; display: flex; align-items: center; gap: 14px;
  padding: 0 16px; background: #fff; border-bottom: 1px solid rgba(0,0,0,.06);
  position: sticky; top: 0; z-index: 20;
}
.fe-gal-header a.back { font-size: 26px; line-height: 1; color: var(--fe-ink); text-decoration: none; }
.fe-gal-header .info { flex: 1; display: flex; flex-direction: column; }
.fe-gal-header .info strong { font: 600 18px 'Montserrat', sans-serif; color: var(--fe-ink); }
.fe-gal-header .info span { font: 400 11px 'Montserrat', sans-serif; color: var(--fe-gray-light); }
.fe-gal-header .cantidad { font: 500 14px 'Montserrat', sans-serif; color: var(--fe-gray-light); }

.fe-gal-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; padding: 14px 10px 100px;
  background: #F7F7F7; min-height: calc(100vh - 60px);
}
.fe-gal-thumb {
  display: block; padding: 0; border: none; background: none; cursor: pointer; width: 100%;
  position: relative;
}
.fe-gal-thumb img, .fe-gal-thumb video {
  width: 100%; height: 180px; object-fit: cover; border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08); background: #eee; display: block;
}
.fe-gal-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.5);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 14px; pointer-events: none;
}

.fe-gal-actions {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 100%; max-width: 480px; padding: 16px;
  background: linear-gradient(to top,#fff 60%,rgba(255,255,255,0));
  display: flex; gap: 10px; z-index: 30;
}
.fe-gal-actions .fe-btn-gold { flex: 1; }
.fe-gal-share {
  width: 50px; height: 50px; border-radius: 12px; border: 1px solid #D9D9D9;
  background: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px;
}

.fe-placeholder { position: relative; }

/* Visor de foto a pantalla completa — scroll vertical tipo Stories, con fade+zoom de entrada */
.fe-viewer {
  position: fixed; inset: 0; z-index: 100; background: #000;
  display: none; flex-direction: column;
}
.fe-viewer.fe-viewer-abierto { display: flex; }
.fe-viewer-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 0; pointer-events: none;
}
.fe-viewer-count {
  color: rgba(255,255,255,.85); font: 500 13px 'Montserrat', sans-serif;
  background: rgba(0,0,0,.35); padding: 4px 10px; border-radius: 20px; pointer-events: none;
}
.fe-viewer-close {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(0,0,0,.35); color: #fff; font-size: 16px; line-height: 1;
  pointer-events: auto; cursor: pointer;
}
.fe-viewer-track {
  flex: 1; overflow-y: scroll; scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}
.fe-viewer-track::-webkit-scrollbar { display: none; }
.fe-viewer-slide {
  height: 100%; scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; align-items: center; justify-content: center;
}
.fe-viewer-slide img, .fe-viewer-slide video {
  max-width: 100%; max-height: 100%; object-fit: contain;
  opacity: 0; transform: scale(.92); transition: opacity .35s ease, transform .35s ease;
}
.fe-viewer-slide.fe-viewer-activo img, .fe-viewer-slide.fe-viewer-activo video { opacity: 1; transform: scale(1); }

/* Botón de WhatsApp */
.fe-wa-btn {
  height: 45px; width: 45px; border-radius: 12px; background: #25D366;
  display: flex; align-items: center; justify-content: center; flex: none;
  font-size: 20px; text-decoration: none; color: #fff;
}
.fe-wa-btn-full {
  width: 100%; height: 45px; gap: 8px; font: 600 15px 'Montserrat', sans-serif;
}

/* Modal de promociones */
.fe-promo-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 60;
  display: none; align-items: flex-end; justify-content: center;
}
.fe-promo-overlay.fe-promo-abierto { display: flex; }
.fe-promo-modal {
  width: 100%; max-width: 480px; max-height: 80vh; background: #fff;
  border-radius: 20px 20px 0 0; display: flex; flex-direction: column; overflow: hidden;
}
.fe-promo-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid rgba(0,0,0,.06); position: relative;
}
.fe-promo-header h2 { font: 600 18px 'Montserrat', sans-serif; color: var(--fe-ink); margin: 0; }
.fe-promo-header .fe-gate-close { position: static; }
.fe-promo-list { overflow-y: auto; padding: 16px 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.fe-promo-card { background: #F7F6F4; border-radius: 14px; overflow: hidden; }
.fe-promo-card img { width: 100%; height: 140px; object-fit: cover; display: block; }
.fe-promo-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.fe-promo-card-body strong { font: 600 16px 'Montserrat', sans-serif; color: var(--fe-ink); }
.fe-promo-card-body p { font: 400 13px/1.45 'Montserrat', sans-serif; color: var(--fe-gray); margin: 0; }
.fe-promo-vence { font: 500 12px 'Montserrat', sans-serif; color: var(--fe-gold); }
