@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600&display=swap');

@font-face {
  font-family: "Couture Bold";
  src: url("/static/fonts/CoutureBold.otf") format("opentype");
  font-display: swap;
}

:root {
  --ink: #111110;
  --paper: #FAFAF8;
  --line: #ECEAE4;
  --accent: #C81E27;
  --accent-soft: #F2A7B5;
  --wa-green: #25D366;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Work Sans", "Century Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

a { color: inherit; text-decoration: none; }

.display {
  font-family: "Couture Bold", "Work Sans", sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 10px 0;
}

/* ---------- header ---------- */

header.site-header {
  position: sticky;
  top: 0;
  background: #FFFFFF;
  z-index: 30;
  border-bottom: 1px solid var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.header-inner img.logo { height: 26px; width: auto; }

nav.main-nav {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.navlink {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.navlink:hover, .navlink.active { border-bottom-color: var(--accent); }

.icon-circle-dark {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- hero ---------- */

.hero {
  padding: 0;
  text-align: center;
}

/* ---------- banner promocional de la portada (ancho completo, sin logo) ---------- */

.oiva-banner {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  background: #FBFAF9;
  border-bottom: 1px solid #E2DEDB;
  font-family: "Jost", "Century Gothic", sans-serif;
}
.oiva-banner * { box-sizing: border-box; }
.oiva-inner {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 1160px;
  height: clamp(210px, 24vw, 280px);
  text-align: left;
}
.oiva-copy {
  position: relative;
  flex: 0 0 auto;
  padding: 0 clamp(28px, 4vw, 56px);
  display: flex; flex-direction: column; justify-content: center;
  gap: 16px;
}
.oiva-copy::before {
  content: "";
  position: absolute; left: 0; top: 22%; bottom: 22%;
  width: 3px;
  background: #C9647C;
}
.oiva-eyebrow {
  font-size: 13px; letter-spacing: 0.26em; text-transform: uppercase;
  color: #C9647C; font-weight: 500;
}
.oiva-title { font-size: clamp(36px, 5vw, 58px); line-height: 0.96; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.oiva-cta {
  background: var(--ink); color: #FBFAF9;
  font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 13px 28px; align-self: flex-start; margin-top: 6px;
  transition: background 0.25s ease;
}
.oiva-banner:hover .oiva-cta { background: #C9647C; }
.oiva-shots {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: flex-end; justify-content: center;
  gap: clamp(6px, 1vw, 10px); padding: 0 clamp(14px, 2.5vw, 30px) 18px 10px;
}
.oiva-shots img { width: auto; max-height: 100%; object-fit: contain; display: block; animation: oivaFloat 6s ease-in-out infinite; }
.oiva-shots img:nth-child(1) { height: 50%; animation-delay: 0s; }
.oiva-shots img:nth-child(2) { height: 66%; animation-delay: -1.5s; }
.oiva-shots img:nth-child(3) { height: 63%; animation-delay: -3s; }
.oiva-shots img:nth-child(4) { height: 49%; animation-delay: -4.5s; }
@keyframes oivaFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .oiva-shots img { animation: none; } }

@media (max-width: 640px) {
  .oiva-inner { flex-direction: column; height: auto; }
  .oiva-copy { padding: 24px 22px 10px; gap: 8px; align-items: center; text-align: center; }
  .oiva-copy::before { display: none; }
  .oiva-eyebrow { font-size: 11px; }
  .oiva-title { font-size: 32px; }
  .oiva-cta { font-size: 12px; padding: 11px 22px; align-self: center; }
  .oiva-shots { padding: 4px 14px 18px; gap: 8px; align-items: flex-end; }
  .oiva-shots img,
  .oiva-shots img:nth-child(1),
  .oiva-shots img:nth-child(2),
  .oiva-shots img:nth-child(3),
  .oiva-shots img:nth-child(4) { height: auto; width: 22%; max-width: 22%; }
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 999px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-dark { background: var(--ink); color: #FFFFFF; }
.btn-dark:hover { opacity: 0.85; }
.btn-outline { border: 1px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: #FFFFFF; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- section titles ---------- */

.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px auto; }
.section-head h2 { font-size: 32px; margin: 0 0 12px 0; }
.section-head p { font-size: 15px; line-height: 1.6; opacity: 0.75; margin: 0; }

section { padding: 64px 0; }
section.tight { padding: 40px 0 72px 0; }

/* ---------- product grid ---------- */

.pill-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.pill {
  padding: 9px 18px; font-size: 12.5px; letter-spacing: 0.04em;
  border: 1px solid var(--ink); border-radius: 999px; color: var(--ink);
}
.pill.active { background: var(--ink); color: #FFFFFF; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.prod-card { display: block; }
.prod-img-wrap { position: relative; border: 1px solid var(--line); }
.prod-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.badge-agotado {
  position: absolute; top: 10px; left: 10px;
  background: #FFFFFF; border: 1px solid var(--ink);
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}
.prod-card h3 { font-size: 15px; margin: 14px 0 2px 0; font-weight: 600; }
.prod-card h3 a:hover { color: var(--accent); }
.prod-img-link { display: block; }
.prod-img-wrap .prod-img { transition: opacity 0.2s ease; }
.prod-img-link:hover .prod-img { opacity: 0.85; }
.prod-card .prod-price { font-size: 13px; opacity: 0.6; margin: 0 0 12px 0; }

/* ---------- product detail ---------- */

.detail-back { font-size: 13px; margin: 0 0 28px 0; }
.detail-back a { opacity: 0.65; }
.detail-back a:hover { opacity: 1; color: var(--accent); }

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.detail-img-wrap { position: relative; border: 1px solid var(--line); }
.detail-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.detail-info h1 { font-size: 30px; margin: 0 0 14px 0; }
.detail-price { font-size: 20px; font-weight: 600; margin: 0 0 24px 0; }
.detail-desc {
  white-space: pre-line;
  font-size: 14.5px;
  line-height: 1.7;
  opacity: 0.85;
  margin: 0 0 28px 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.detail-note { font-size: 13px; opacity: 0.6; margin: 14px 0 0 0; }

.detail-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.detail-thumb {
  width: 68px; height: 68px; padding: 0; border: 1px solid var(--line);
  background: none; cursor: pointer; overflow: hidden;
}
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-thumb.active { border-color: var(--ink); }
.detail-thumb:hover { border-color: var(--accent); }

/* admin: fotos adicionales */
.thumb-row { display: flex; gap: 12px; flex-wrap: wrap; }
.thumb { position: relative; width: 90px; height: 90px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.thumb form { position: absolute; top: -8px; right: -8px; margin: 0; }
.thumb form button {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--ink);
  background: #FFF; cursor: pointer; font-size: 14px; line-height: 1; padding: 0;
  color: #C33;
}
.thumb form button:hover { background: #C33; color: #FFF; border-color: #C33; }

@media (max-width: 860px) {
  .product-detail { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Instagram feed ---------- */

.insta-head { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; }
.insta-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.insta-tile { position: relative; aspect-ratio: 1/1; overflow: hidden; display: block; background: var(--line); }
.insta-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.insta-tile:hover img { transform: scale(1.06); }
.insta-tile video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--ink); }

.insta-video {
  padding: 0; border: none; cursor: pointer;
  background: var(--ink); font: inherit;
}
.insta-sound {
  position: absolute; right: 8px; bottom: 8px;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(17,17,16,0.6);
  transition: background 0.2s ease;
}
.insta-sound::before {
  content: "\1F507";  /* altavoz silenciado */
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; line-height: 1;
}
.insta-video.sound-on .insta-sound { background: var(--accent); }
.insta-video.sound-on .insta-sound::before { content: "\1F508"; }  /* altavoz con sonido */
.insta-note {
  text-align: center; font-size: 13px; opacity: 0.55; margin-top: 18px;
}

@media (max-width: 860px) {
  .insta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- quienes somos ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-grid img { border: 1px solid var(--line); }
.about-grid h2 { font-size: 30px; margin: 0 0 16px 0; }
.about-grid p { font-size: 15.5px; line-height: 1.7; opacity: 0.8; }

.values-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; text-align: center; }
.values-row .value h4 { font-size: 15px; margin: 12px 0 6px 0; }
.values-row .value p { font-size: 13.5px; opacity: 0.7; margin: 0; }

/* ---------- contacto ---------- */

.contact-rows { max-width: 480px; margin: 40px auto 0 auto; text-align: left; }
.contact-row {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.contact-row:hover { opacity: 0.7; }
.icon-circle {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-row .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.55; margin: 0; }
.contact-row .val { font-size: 15.5px; margin: 2px 0 0 0; font-weight: 500; }

/* ---------- footer ---------- */

footer.site-footer { background: var(--ink); color: #FFFFFF; }
.foot-wrap {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 28px; padding: 56px 0 24px 0;
}
.foot-wrap img.logo { height: 24px; width: auto; }
.foot-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-bottom {
  margin-top: 0; padding: 22px 0; border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 12px; opacity: 0.55;
}

/* ---------- WhatsApp floating button ---------- */

.wa-float {
  position: fixed; right: 24px; bottom: 24px;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa-green);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
  z-index: 60;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float:hover { transform: scale(1.07); box-shadow: 0 8px 22px rgba(0,0,0,0.28); }

/* ---------- admin ---------- */

.admin-wrap { max-width: 980px; margin: 0 auto; padding: 40px 24px 80px 24px; }
.admin-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.admin-bar h1 { font-size: 24px; margin: 0; }

.flash { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 10px; }
.flash-error { background: #FBEAEA; color: #A11; border: 1px solid #E7BFBF; }
.flash-success { background: #EAF6EC; color: #1A7A32; border: 1px solid #BFE3C6; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.admin-table img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.tag { font-size: 11px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); text-transform: uppercase; letter-spacing: 0.04em; }
.tag-out { color: #A11; border-color: #E7BFBF; background: #FBEAEA; }
.admin-actions { display: flex; gap: 10px; }
.admin-actions a, .admin-actions button {
  font-size: 12.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ink); background: none; cursor: pointer; font-family: inherit;
}
.admin-actions .danger { border-color: #C33; color: #C33; }

.admin-order form { display: flex; flex-direction: column; gap: 3px; }
.admin-order button {
  width: 30px; height: 20px; line-height: 1; padding: 0;
  border: 1px solid var(--line); border-radius: 5px; background: #FFF;
  cursor: pointer; font-size: 10px; color: var(--ink);
}
.admin-order button:hover:not(:disabled) { background: var(--ink); color: #FFF; }
.admin-order button:disabled { opacity: 0.3; cursor: default; }

button.tag-toggle { font-family: inherit; cursor: pointer; }

.form-card { max-width: 560px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-group input[type=text], .form-group input[type=password], .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; font-size: 14.5px;
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-check { display: flex; align-items: center; gap: 8px; }
.current-image { width: 90px; height: 90px; object-fit: cover; border-radius: 8px; margin-bottom: 10px; border: 1px solid var(--line); }

.login-card {
  max-width: 360px; margin: 90px auto; padding: 40px 32px;
  border: 1px solid var(--line); border-radius: 14px; text-align: center;
}
.login-card h1 { font-size: 22px; margin: 0 0 22px 0; }

@media (max-width: 860px) {
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; }
  nav.main-nav { display: none; }
}
