/* =========================================
   PERFUMERÍA YSEL — styles.css
   Mobile-first | Sin frameworks | Cuba
========================================= */

:root {
  --primary:      #0e1b35;
  --primary-dark: #081221;
  --secondary:    #e8c4d0;
  --accent:       #c9a0b4;
  --bg:           #fdfbfc;
  --bg-alt:       #f5eef2;
  --text:         #2c2c2c;
  --text-light:   #666;
  --whatsapp:     #25D366;
  --whatsapp-dark:#1da851;
  --gold:         #c9a84c;
  --white:        #ffffff;
  --shadow:       0 2px 12px rgba(14,27,53,0.15);
  --radius:       12px;
  --transition:   0.3s ease;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* TIPOGRAFÍA */
h1, h2, h3, h4 { font-family: Georgia, serif; line-height: 1.2; }
h1 { font-size: clamp(1.6rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.3rem, 4vw, 2rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.4rem); }
p  { margin-bottom: 0.8em; }

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 8px 16px;
  font-size: 0.85rem;
  letter-spacing: 0.4px;
}
.top-bar a { color: var(--white); font-weight: bold; text-decoration: underline; }

/* ===== HEADER ===== */
header { position: sticky; top: 0; z-index: 100; background: var(--white); box-shadow: var(--shadow); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; max-width: 1200px; margin: 0 auto;
}
.logo-wrap { display: flex; align-items: center; gap: 10px; }
.logo-wrap img { width: 48px; height: 48px; object-fit: contain; }
.logo-text { font-family: Georgia, serif; font-size: 1rem; color: var(--primary); font-weight: bold; line-height: 1.1; }
.logo-text small { display: block; font-size: 0.7rem; font-weight: normal; color: var(--text-light); }

/* HAMBURGUESA */
.menu-btn {
  width: 44px; height: 44px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--primary); transition: var(--transition); }
.menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* NAV */
nav { display: none; }
nav.open { display: block; }
nav ul {
  display: flex; flex-direction: column;
  background: var(--white); padding: 12px 16px 16px;
  border-top: 1px solid var(--secondary);
}
nav ul li a {
  display: block; padding: 10px 0; font-size: 0.9rem;
  color: var(--text); border-bottom: 1px solid var(--bg-alt);
  transition: color var(--transition);
}
nav ul li:last-child a { border: none; }
nav ul li a:hover, nav ul li a.active { color: var(--primary); font-weight: bold; }

/* ===== HERO ===== */
.hero {
  background: #0b1729 url('../images/fondo.jpg') center/cover no-repeat;
  color: var(--white); text-align: center;
  padding: 48px 24px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.18);
}
.hero-content { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.hero-logo { width: 180px; height: 180px; margin: 0 auto 20px; object-fit: cover; border-radius: 50%; mix-blend-mode: screen; }
.hero h1 { margin-bottom: 10px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.hero .tagline { font-size: 1rem; opacity: 0.9; margin-bottom: 28px; font-style: italic; font-family: Georgia, serif; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* BOTONES */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 50px;
  font-size: 0.9rem; font-weight: bold; min-height: 44px;
  transition: all var(--transition);
}
.btn-primary    { background: var(--white); color: var(--primary); }
.btn-primary:hover { background: var(--secondary); }
.btn-secondary  { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }
.btn-whatsapp   { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: var(--whatsapp-dark); transform: translateY(-2px); }
.btn-gold       { background: var(--gold); color: var(--white); }
.btn-outline    { background: transparent; color: var(--primary); border: 2px solid var(--primary); border-radius: 50px; }
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* ===== SECCIONES ===== */
section   { padding: 40px 16px; }
.section-title { font-family: Georgia, serif; color: var(--primary); margin-bottom: 8px; text-align: center; }
.section-title::after {
  content: ''; display: block; width: 48px; height: 3px;
  background: var(--gold); margin: 10px auto 0; border-radius: 2px;
}
.section-sub   { color: var(--text-light); text-align: center; margin-bottom: 28px; font-size: 0.9rem; }
.container     { max-width: 1200px; margin: 0 auto; }

/* ===== CATEGORÍAS ===== */
.category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.cat-card {
  background: linear-gradient(160deg, #0b1729 0%, #162745 100%);
  border-radius: var(--radius); padding: 32px 16px; text-align: center;
  border: 1px solid rgba(201,168,76,0.2); transition: all var(--transition); color: var(--white);
}
.cat-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 8px 28px rgba(201,168,76,0.18); }
.cat-card .cat-icon { font-size: 2.5rem; margin-bottom: 10px; }
.cat-card h3 { color: var(--gold); font-size: 1rem; margin-bottom: 6px; font-family: Georgia, serif; }
.cat-card p  { font-size: 0.8rem; color: rgba(255,255,255,0.65); margin: 0; }

/* ===== PRECIOS ===== */
.price-section { background: var(--bg-alt); }
.price-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.price-card {
  background: var(--white); border-radius: var(--radius);
  padding: 24px 16px; text-align: center; box-shadow: var(--shadow); position: relative;
}
.price-card.featured { border: 2px solid var(--gold); }
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--white);
  padding: 4px 12px; border-radius: 20px; font-size: 0.72rem; font-weight: bold; white-space: nowrap;
}
.price-card .conc      { font-size: 2rem; font-weight: bold; color: var(--gold); font-family: Georgia, serif; }
.price-card .price-val { font-size: 1.4rem; font-weight: bold; color: var(--primary); margin: 6px 0; }
.price-card .price-desc{ font-size: 0.8rem; color: var(--text-light); }

/* ===== PRODUCTO GRID ===== */
.product-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px; margin-top: 24px;
}
.product-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform var(--transition);
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(201,168,76,0.15); outline: 1px solid var(--gold); }
.product-img-wrap { position: relative; }
.product-img-wrap img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-placeholder {
  width: 100%; aspect-ratio: 1;
  background: linear-gradient(160deg, #0b1729 0%, #162745 60%, #0d1f3c 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--gold); font-family: Georgia, serif;
  padding: 20px; text-align: center; font-size: 1rem; font-weight: bold;
  position: relative; overflow: hidden; letter-spacing: 0.3px;
}
.product-placeholder::before {
  content: '✦'; position: absolute; top: 12px; right: 14px;
  font-size: 0.85rem; opacity: 0.45; color: var(--gold);
}
.product-placeholder::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.product-placeholder small {
  display: block; color: rgba(201,168,76,0.6); font-style: italic;
  font-size: 0.72rem; margin-top: 6px; font-weight: normal;
}
.product-badge {
  position: absolute; top: 8px; left: 8px;
  color: var(--white); font-size: 0.68rem; font-weight: bold;
  padding: 3px 8px; border-radius: 20px;
}
.product-badge.dama      { background: var(--accent); }
.product-badge.caballero { background: var(--primary); }
.product-info { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.product-name  { font-family: Georgia, serif; font-size: 0.88rem; color: var(--text); margin-bottom: 2px; }
.product-brand { font-size: 0.74rem; color: var(--text-light); margin-bottom: 10px; }

/* Selector de concentración */
.conc-selector { display: flex; gap: 6px; margin-bottom: 10px; }
.conc-label {
  flex: 1; text-align: center; cursor: pointer;
  border: 1.5px solid var(--secondary); border-radius: 6px;
  padding: 5px 4px; font-size: 0.74rem; transition: all var(--transition);
  display: block; user-select: none;
}
.conc-label input[type=radio] { display: none; }
.conc-label.selected, .conc-label:hover {
  border-color: var(--primary); background: var(--primary); color: var(--white);
}
.product-price  { font-weight: bold; color: var(--primary); font-size: 0.88rem; margin-bottom: 10px; }
.btn-order {
  width: 100%; min-height: 44px; background: var(--whatsapp); color: var(--white);
  border-radius: 8px; font-weight: bold; font-size: 0.82rem;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background var(--transition); margin-top: auto;
}
.btn-order:hover { background: var(--whatsapp-dark); }

/* ===== FILTRO ===== */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; justify-content: center; }
.filter-btn {
  padding: 8px 20px; border-radius: 50px; font-size: 0.85rem; min-height: 44px; font-weight: bold;
  border: 2px solid var(--primary); color: var(--primary); transition: all var(--transition);
}
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: var(--white); }

/* ===== PASOS ===== */
.steps { display: grid; gap: 16px; margin-top: 24px; }
.step {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg-alt); padding: 16px; border-radius: var(--radius);
}
.step-num {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--gold); color: var(--white); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: Georgia, serif; font-weight: bold; font-size: 1.1rem;
}
.step h4 { color: var(--primary); margin-bottom: 3px; font-size: 0.9rem; }
.step p  { font-size: 0.82rem; margin: 0; color: var(--text-light); }

/* ===== CONFIANZA ===== */
.trust-section { background: var(--bg-alt); }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 20px; }
.trust-item {
  text-align: center; padding: 20px 12px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
}
.trust-icon { font-size: 2rem; margin-bottom: 8px; }
.trust-item h4 { font-size: 0.88rem; color: var(--primary); margin-bottom: 4px; }
.trust-item p  { font-size: 0.78rem; color: var(--text-light); margin: 0; }

/* ===== ACCORDION ===== */
.accordion { margin-top: 20px; }
.accordion-item  { border-bottom: 1px solid var(--secondary); }
.accordion-btn {
  width: 100%; text-align: left; padding: 14px 0; min-height: 44px;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: bold; font-size: 0.9rem; color: var(--text);
}
.accordion-btn::after { content: '+'; font-size: 1.3rem; color: var(--primary); }
.accordion-btn.open::after { content: '−'; }
.accordion-body { display: none; padding: 0 0 14px; font-size: 0.88rem; color: var(--text-light); line-height: 1.6; }
.accordion-body.open { display: block; }

/* ===== CONTACTO ===== */
.contact-options { display: grid; gap: 14px; margin-top: 20px; }
.contact-card {
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 20px; text-align: center;
}
.contact-card .icon { font-size: 2rem; margin-bottom: 8px; }
.contact-card h4 { color: var(--primary); margin-bottom: 6px; }
.contact-card p  { font-size: 0.84rem; color: var(--text-light); margin-bottom: 10px; }

/* ===== FORMULARIOS ===== */
.form-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-top: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.84rem; font-weight: bold; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--secondary); border-radius: 8px;
  font-size: 0.9rem; font-family: Arial, sans-serif; color: var(--text); background: var(--white);
  min-height: 44px; transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary);
}
.form-group textarea { min-height: 100px; resize: vertical; }

/* ===== FABRICACIÓN ===== */
.fab-grid { display: grid; gap: 20px; margin-top: 24px; }
.fab-card { background: var(--bg-alt); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.fab-card-header { background: var(--primary); color: var(--white); padding: 14px 16px; font-family: Georgia, serif; font-weight: bold; font-size: 1rem; }
.fab-card-body { padding: 16px; }
.fab-option {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--secondary); font-size: 0.88rem;
}
.fab-option:last-child { border: none; }
.fab-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }

/* ===== PAGE HERO (páginas internas) ===== */
.page-hero {
  background: #0b1729 url('../images/fondo.jpg') center/cover no-repeat;
  color: var(--white); text-align: center; padding: 40px 24px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.18);
}
.page-hero h1, .page-hero p { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: 8px; }
.page-hero p  { opacity: 0.85; font-size: 0.92rem; margin: 0; }

/* ===== BREADCRUMB ===== */
.breadcrumb { padding: 10px 16px; font-size: 0.8rem; color: var(--text-light); background: var(--bg-alt); }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 6px; opacity: 0.5; }

/* ===== KIT DE INICIO ===== */
.kit-grid { display: grid; gap: 16px; margin-top: 24px; }
.kit-card {
  background: var(--white); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: flex-start;
}
.kit-icon { font-size: 2rem; flex-shrink: 0; }
.kit-card h4 { color: var(--primary); margin-bottom: 4px; }
.kit-card p  { font-size: 0.84rem; color: var(--text-light); margin: 0; }

/* ===== FOOTER ===== */
footer { background: var(--primary); color: var(--white); padding: 32px 16px 16px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-logo-wrap { text-align: center; margin-bottom: 24px; }
.footer-logo  { width: 64px; height: 64px; margin: 0 auto 8px; object-fit: contain; filter: brightness(0) invert(1); }
.footer-brand { font-family: Georgia, serif; font-size: 1.1rem; }
.footer-slogan{ font-size: 0.8rem; opacity: 0.8; font-style: italic; }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; margin-bottom: 16px;
}
.footer-links a { font-size: 0.82rem; opacity: 0.85; transition: opacity var(--transition); }
.footer-links a:hover { opacity: 1; }
.footer-bottom {
  text-align: center; font-size: 0.78rem; opacity: 0.7;
  border-top: 1px solid rgba(255,255,255,0.2); padding-top: 16px; margin-top: 8px;
}

/* ===== BOTÓN FLOTANTE WHATSAPP ===== */
.wa-float {
  position: fixed; bottom: 20px; right: 20px;
  width: 56px; height: 56px; background: var(--whatsapp);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.45); z-index: 999; transition: all var(--transition);
}
.wa-float:hover { transform: scale(1.1); background: var(--whatsapp-dark); }
.wa-float svg { width: 28px; height: 28px; fill: var(--white); }
.wa-tooltip {
  position: absolute; right: 64px; top: 50%; transform: translateY(-50%);
  background: var(--text); color: var(--white); padding: 6px 12px;
  border-radius: 8px; font-size: 0.78rem; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.wa-float:hover .wa-tooltip { opacity: 1; }

/* ===== STATS BAR ===== */
.stats-bar { background: linear-gradient(135deg, #0b1729 0%, #162745 100%); padding: 28px 16px; }
.stats-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; text-align: center; }
.stat-item {}
.stat-num { font-family: Georgia, serif; font-size: 2.2rem; color: var(--gold); font-weight: bold; line-height: 1; }
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.7); margin-top: 5px; letter-spacing: 0.3px; }

/* ===== FAMILIAS DE FRAGANCIAS ===== */
.family-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 24px; }
.family-card {
  border-radius: var(--radius); padding: 26px 16px; text-align: center;
  background: linear-gradient(160deg, #0b1729 0%, #162745 100%);
  border: 1px solid rgba(201,168,76,0.2); transition: all var(--transition);
}
.family-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(201,168,76,0.15); }
.family-icon { font-size: 2.2rem; margin-bottom: 10px; }
.family-name { font-family: Georgia, serif; font-size: 1rem; color: var(--gold); margin-bottom: 6px; font-weight: bold; }
.family-desc { font-size: 0.78rem; color: rgba(255,255,255,0.65); margin: 0; line-height: 1.5; }

/* ===== TESTIMONIOS ===== */
.testimonial-grid { display: grid; gap: 16px; margin-top: 24px; }
.testimonial-card {
  background: var(--white); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); border-left: 4px solid var(--gold);
}
.testimonial-stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 8px; letter-spacing: 2px; }
.testimonial-text { font-style: italic; font-size: 0.88rem; color: var(--text); margin-bottom: 10px; line-height: 1.6; }
.testimonial-author { font-weight: bold; font-size: 0.8rem; color: var(--primary); }

/* ===== UTILIDADES ===== */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.bg-alt { background: var(--bg-alt); }
.hidden { display: none !important; }

/* =========================================================
   TABLET  768px
========================================================= */
@media (min-width: 768px) {
  .menu-btn { display: none; }
  nav { display: block !important; }
  nav ul { flex-direction: row; padding: 0; border: none; background: transparent; gap: 2px; }
  nav ul li a { padding: 8px 12px; border: none; font-size: 0.85rem; }
  .header-inner { padding: 12px 24px; }

  .hero { padding: 72px 24px; }
  .hero-logo { width: 220px; height: 220px; }

  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-grid   { grid-template-columns: repeat(4, 1fr); }
  .steps        { grid-template-columns: repeat(2, 1fr); }
  .category-grid{ grid-template-columns: repeat(4, 1fr); }
  .price-cards  { grid-template-columns: repeat(2, 1fr); max-width: 480px; margin: 24px auto 0; }
  .contact-options { grid-template-columns: repeat(2, 1fr); }
  .fab-grid     { grid-template-columns: repeat(2, 1fr); }
  .kit-grid     { grid-template-columns: repeat(2, 1fr); }
  .stats-inner  { grid-template-columns: repeat(4, 1fr); }
  .family-grid  { grid-template-columns: repeat(4, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); }

  section { padding: 60px 24px; }
}

/* =========================================================
   DESKTOP  1200px
========================================================= */
@media (min-width: 1200px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .fab-grid     { grid-template-columns: repeat(3, 1fr); }
  section { padding: 72px 40px; }
  nav ul li a { padding: 8px 14px; }
}
