/* ======================================================
   CARO FLOWER ART – GLOBAL SITE CSS
   One CSS to rule them all 🌸
   ====================================================== */

:root{
  --font-body:'Poppins',sans-serif;
  --font-title:'Cormorant Garamond',serif;

  --primary-color:#e89aa6;
  --primary-dark:#d97a87;
  --secondary-color:#f5d5dc;

  --dark-color:#333;
  --text-color:#555;
  --light-color:#f9f9f9;
  --border-color:#e0e0e0;

  --shadow:0 10px 30px rgba(0,0,0,.10);
  --shadow-light:0 5px 15px rgba(0,0,0,.08);

  --radius-lg:24px;
  --radius-md:16px;
  --radius-sm:10px;

  --container:1400px;
}

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

html{scroll-behavior:smooth}
body{
  font-family:var(--font-body);
  color:var(--text-color);
  line-height:1.6;
  background:linear-gradient(135deg,#fff 0%,#fef5f7 100%);
  overflow-x:hidden;
}

a{color:inherit}
img{max-width:100%;display:block}
section{
  padding:40px 20px;
  max-width:var(--container);
  margin:0 auto;
}

h1,h2,h3{
  font-family:var(--font-title);
  color:var(--dark-color);
  letter-spacing:.03em;
  animation:titleFadeUp 700ms ease-out both;
}

h1{font-size:clamp(2.2rem,5vw,3.2rem);animation-duration:900ms}
h2{font-size:clamp(1.8rem,4vw,2.4rem);animation-duration:800ms;text-align:center;margin-bottom:.6rem}
h3{font-size:1.3rem;animation-duration:650ms}

p{font-size:1rem}
.section-subtitle{
  text-align:center;
  color:var(--primary-color);
  font-weight:600;
  margin:0 auto 3rem auto;
  max-width:900px;
}

/* idioma secundario */
.es{
  display:block;
  font-size:.75em;
  opacity:.72;
  margin-top:.25rem;
  font-style:italic;
}

.muted{opacity:.85}

@keyframes titleFadeUp{
  from{opacity:0;transform:translateY(6px)}
  to{opacity:1;transform:translateY(0)}
}

@media (prefers-reduced-motion: reduce){
  *{animation:none!important;transition:none!important}
}

/* HEADER */
.site-header{
  position:sticky;
  top:0;
  z-index:1200;
  background:rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(0,0,0,.05);
}

.nav{
  max-width:var(--container);
  margin:0 auto;
  padding:14px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  font-weight:700;
  color:var(--dark-color);
}

.brand img{
  width:36px;
  height:36px;
}

.brand span{
  font-family:var(--font-title);
  font-size:1.45rem;
}

.hamburger{
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  display:none;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.hamburger i{font-size:1.2rem;color:var(--dark-color)}

.nav-menu{
  list-style:none;
  display:flex;
  align-items:center;
  gap:20px;
}

.nav-menu a{
  text-decoration:none;
  font-weight:600;
  color:var(--dark-color);
  padding:10px 10px;
  border-radius:12px;
  transition:background .2s ease,color .2s ease;
}

.nav-menu a:hover{
  background:rgba(232,154,166,.14);
  color:var(--primary-dark);
}

/* HERO */
.hero{
  position:relative;
  text-align:center;
  padding:35px 20px 20px;
  background:#fff5f8;
  overflow:hidden;
  max-width:100%;
}

.hero-bg-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:0;
}

.hero-overlay{
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(
    to bottom,
    rgba(255,245,248,.82),
    rgba(255,245,248,.55),
    rgba(255,245,248,.82)
  );
}

.hero-content{
  position:relative;
  z-index:2;
  max-width:860px;
  margin:0 auto;
}

.hero-subtitle{
  font-weight:650;
  color:var(--primary-dark);
  margin-bottom:.5rem;
}

.hero p{margin-top:.6rem}

.hero-bullets{
  display:flex;
  justify-content:center;
  gap:9px;
  flex-wrap:wrap;
  margin:1.6rem 0 1rem 0;
}

.hero-pill{
  display:flex;
  align-items:center;
  gap:7px;
  padding:.55rem .9rem;
  border-radius:999px;
  background:rgba(255,255,255,.75);
  border:1px solid rgba(0,0,0,.06);
  box-shadow:var(--shadow-light);
  font-weight:600;
  color:var(--dark-color);
}

.hero-pill i{color:var(--primary-dark)}

.hero-buttons{
  display:flex;
  justify-content:center;
  gap:1rem;
  margin-top:1.7rem;
  flex-wrap:wrap;
}

.hero-note{
  margin-top:1.3rem;
  font-size:.95rem;
  opacity:.85;
}

/* BOTONES */
.btn-primary,
.btn-secondary,
.card-btn{
  padding:.9rem 2.1rem;
  border-radius:999px;
  font-weight:700;
  text-decoration:none;
  transition:all .22s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:2px solid transparent;
}

.btn-primary{
  background:var(--primary-color);
  color:#fff;
}

.btn-primary:hover{
  background:var(--primary-dark);
  box-shadow:var(--shadow);
  transform:translateY(-2px);
}

.btn-secondary{
  background:#fff;
  color:var(--primary-color);
  border-color:var(--primary-color);
}

.btn-secondary:hover{
  background:var(--primary-color);
  color:#fff;
  transform:translateY(-2px);
}

/* FILTER BUTTONS */
.filter-buttons{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:28px;
}

.filter-btn{
  padding:.65rem 1.1rem;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  color:var(--primary-color);
  border-color:var(--primary-color);
  font-weight:700;
  cursor:pointer;
  transition:all .2s ease;
}

.filter-btn:hover{
  background:#fff;
  color:var(--primary-color);
  border-color:var(--primary-color)
}

.filter-btn.active{
  background:#fff;
  color:var(--primary-color);
  border-color:var(--primary-color)
}

/* GRID / CARDS */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:22px;
}

.card{
  background:#fff;
  border-radius:var(--radius-md);
  overflow:hidden;
  box-shadow:var(--shadow-light);
  display:flex;
  flex-direction:column;
  transition:transform .25s ease, box-shadow .25s ease;
  border:1px solid rgba(0,0,0,.04);
   border-color:var(--primary-color)
}

.card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow);
}

.card-image-wrapper{
  position:relative;
  height:270px;
  overflow:hidden;
}

.card-image-wrapper img{
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1.01);
  transition:transform .35s ease;
}

.card:hover .card-image-wrapper img{
  transform:scale(1.06);
}

.card-badge{
  position:absolute;
  left:14px;
  top:14px;
  padding:.5rem .75rem;
  border-radius:999px;
  background:rgba(255,255,255,.86);
  border:1px solid rgba(0,0,0,.06);
  font-weight:800;
  color:var(--dark-color);
}

.card-content{
  padding:1.4rem 1.4rem 1.2rem 1.4rem;
  display:flex;
  flex-direction:column;
  gap:.7rem;
  flex-grow:1;
  align-items:center;
}

.category{
  color:var(--primary-dark);
  font-weight:800;
  font-size:.95rem;
}

.price{
  margin-top:.3rem;
  padding:.85rem 1rem;
  border-radius:14px;
  background:rgba(232,154,166,.10);
  border:1px solid rgba(232,154,166,.18);
  font-size:1.1rem;
  font-weight:900;
  color:var(--dark-color);
  align-items:center;
}

.card-footer{
  display:flex;
  gap:10px;
  margin-top:auto;
}

.card-btn{
  padding:.75rem 1rem;
  border-radius:16px;
  border:2px solid var(--primary-color);
  color:var(--primary-color);
  background:#fff;
  font-weight:900;
}

.card-btn:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow-light);
   border-color:var(--primary-color)
}

.card-btn.secondary{
  background:#fff;
  color:var(--primary-color);
   border-color:var(--primary-color)
}

.card-btn.secondary:hover{
  background:#fff;
  color:var(--primary-color);
  border-color:var(--primary-dark);
}

/* ABOUT */
.about{
  background:linear-gradient(135deg,#fff 0%,#fef5f7 100%);
  border-radius:28px;
}

.about-content{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:28px;
  align-items:center;
}

.about-text p{margin-top:.6rem}
.about-cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}

.about-image{
  border-radius:18px;
  overflow:hidden;
  box-shadow:var(--shadow);
  height:380px;
}

.about-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* TESTIMONIALS */
.testimonials-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:18px;
}

.testimonial-card{
  background:#fff;
  border-radius:var(--radius-md);
  padding:20px;
  box-shadow:var(--shadow-light);
  border:1px solid rgba(0,0,0,.04);
  transition:transform .25s ease, box-shadow .25s ease;
}

.testimonial-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow);
}

.stars{font-size:1.1rem;margin-bottom:10px}
.testimonial-text{font-style:italic}
.testimonial-author{margin-top:10px;font-weight:800;color:var(--dark-color)}

/* CONTACT */
.contact-wrapper{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:26px;
  align-items:start;
}

.contact-info{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.contact-item{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:16px;
  border-radius:16px;
  background:#fff;
  box-shadow:var(--shadow-light);
  border:1px solid rgba(0,0,0,.04);
   border-color:var(--primary-color)
}

.contact-item i{
  font-size:1.4rem;
  color:var(--primary-dark);
  margin-top:3px;
}

.contact-item a{
  color:var(--primary-dark);
  font-weight:800;
  text-decoration:none;
}

.contact-item a:hover{text-decoration:underline}

.contact-form{
  background:#fff;
  padding:18px;
  border-radius:18px;
  box-shadow:var(--shadow-light);
  border:1px solid rgba(0,0,0,.04);
  display:flex;
  flex-direction:column;
  gap:12px;
}

.form-group{display:flex;flex-direction:column;gap:7px}
label{font-weight:800;color:var(--dark-color)}

input,textarea{
  width:100%;
  padding:.9rem;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.12);
  font-family:var(--font-body);
  outline:none;
}

textarea{min-height:130px;resize:vertical}

input:focus,textarea:focus{
  border-color:rgba(232,154,166,.65);
  box-shadow:0 0 0 4px rgba(232,154,166,.18);
}

button[type="submit"]{
  margin-top:6px;
  background:#fff;
  color:var(--primary-color);
  border:none;
  padding:.95rem 1rem;
  border-radius:999px;
  font-weight:900;
  cursor:pointer;
  transition:all .2s ease;
   border-color:var(--primary-color)
}

button[type="submit"]:hover{
  background:var(--primary-dark);
  transform:translateY(-1px);
  box-shadow:var(--shadow);
  color:var(--primary-color);
   border-color:var(--primary-color)
}

.form-note{
  margin-top:10px;
  font-size:.92rem;
  opacity:.85;
}

/* FOOTER */
footer{
  max-width:100%;
  background:var(--dark-color);
  color:#cfcfcf;
  padding:44px 20px;
  margin-top:60px;
}

.footer-content{
  max-width:var(--container);
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:18px;
  text-align:left;
}

.footer-section h4{
  color:var(--primary-color);
  margin-bottom:10px;
}

.footer-section a{
  display:block;
  color:#cfcfcf;
  text-decoration:none;
  margin-bottom:8px;
}

.footer-section a:hover{color:var(--primary-color)}

.social-links{
  display:flex;
  justify-content:center;
  gap:12px;
  margin:18px 0 10px 0;
}

.social-links a{
  width:42px;height:42px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--primary-color);
  color:#fff;
  text-decoration:none;
  transition:all .2s ease;
}

.social-links a:hover{
  background:var(--primary-dark);
  transform:translateY(-2px);
}

.footer-bottom{
  border-top:1px solid rgba(255,255,255,.18);
  padding-top:18px;
  text-align:center;
  opacity:.95;
}

.heart{color:var(--primary-color)}

/* WHATSAPP FLOAT */
.whatsapp-button{
  position:fixed;
  bottom:1.1rem;
  right:1.1rem;
  width:58px;
  height:58px;
  border-radius:999px;
  background:#25d366;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.7rem;
  text-decoration:none;
  box-shadow:var(--shadow);
  z-index:2000;
  transition:transform .2s ease;
}
.whatsapp-button:hover{transform:scale(1.07)}

/* MOBILE */
@media (max-width: 900px){
  .about-content{grid-template-columns:1fr}
  .about-image{height:280px}
}

@media (max-width: 820px){
  .hamburger{display:flex}
  .nav-menu{
    position:fixed;
    top:66px;
    left:0;
    right:0;
    background:#fff;
    flex-direction:column;
    gap:0;
    padding:10px 0;
    border-top:1px solid rgba(0,0,0,.06);
    box-shadow:var(--shadow-light);
    display:none;
    z-index:1400;
  }
  .nav-menu.active{display:flex}
  .nav-menu a{
    width:100%;
    padding:16px 20px;
    border-radius:0;
    border-bottom:1px solid rgba(0,0,0,.06);
  }

  .contact-wrapper{grid-template-columns:1fr}
  .hero{padding:32px 16px 20px}
}

@media (max-width: 480px){
  section{padding:56px 15px}
  .card-image-wrapper{height:240px}
  .hero-pill{width:100%;justify-content:center}
  .btn-primary,.btn-secondary{width:100%}
}

/* ---------- GALLERY MODAL ---------- */
.gallery-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
}

.gallery-modal.is-open {
  display: block;
}

.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.gallery-panel {
  position: relative;
  width: min(920px, 92vw);
  margin: 6vh auto 0;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
   border-color:var(--primary-color)
}

.gallery-close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.9);
  font-size: 26px;
  cursor: pointer;
}

/* ===== Gallery modal: show FULL image (no crop) ===== */
.gallery-image-wrap{
  width: 100%;
  max-height: 80vh;
  padding: 12px;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-image-wrap img{
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.gallery-meta {
  padding: 16px 18px 20px;
}
.gallery-title{
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: .02em;
  margin-bottom: 6px;
  color: var(--dark-color);
}

.gallery-price{
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--dark-color);
  opacity: .9;
}

.gallery-nav {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.92);
  font-size: 30px;
  cursor: pointer;
}
@media (max-width: 480px){
  .gallery-panel{
    width: 94vw;
    margin: 4vh auto;
  }

  /* fuerza layout vertical (imagen arriba, texto abajo) */
  .gallery-image-wrap{
    max-height: none;
    padding: 10px;
  }

  .gallery-meta{
    padding: 14px 16px 18px;
    text-align: center;
  }
}

.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }


/* --- Header logo safety --- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  width: 50px;
  height: 50px;
  display: block;
}

.brand-name {
  font-weight: 800;
}


/* ===== Header (fix mobile layout) ===== */
:root { --header-h: 64px; }

.site-header{
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.header-inner{
  height: var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 14px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  color: inherit;
  min-width: 0;
}

.brand-logo{
  width: 40px;
  height: 40px;
  display:block;
}

.brand-name{
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav{
  display:flex;
  gap: 14px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-link{
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.nav-link:hover{
  background: rgba(0,0,0,.05);
}

/* Make sure page content doesn't hide behind sticky header */
body{
  scroll-padding-top: calc(var(--header-h) + 12px);
}

/* =========================
   PRODUCT GRID (todos los productos)
   ========================= */

/* El contenedor que llena products.js */
#galleryGrid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

/* Si también hay grids con clase gallery-grid, aplica lo mismo */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

/* Cards: que no queden gigantes */
#galleryGrid .card-image-wrapper{
  height: 170px;
}

/* Mobile: 1 columna */
@media (max-width: 520px){
  #galleryGrid,
  .gallery-grid{
    grid-template-columns: 1fr;
  }

  #galleryGrid .card-image-wrapper{
    height: 220px;
  }
}

.inline-link{
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration: underline;
  margin-left: 6px;
}
.inline-link:hover{
  opacity: .8;
}

/* ===== Contact section (nice buttons) ===== */
.contact-subtitle{
  max-width: 760px;
  margin: 10px auto 20px;
  opacity: .8;
}

.contact-cards{
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
}

.contact-card{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  text-decoration: none;
  border: 1px solid rgba(220,150,170,.25);
  background: rgba(250,240,244,.85);
  color: inherit;
}

.contact-card i{
  font-size: 22px;
  width: 30px;
  text-align: center;
  opacity: .9;
}

.contact-card-title{
  font-weight: 800;
}

.contact-card-sub{
  font-style: italic;
  opacity: .75;
  margin-top: 2px;
}

.contact-card-arrow{
  margin-left: auto;
  font-size: 22px;
  opacity: .6;
}

.contact-card:hover{
  transform: translateY(-1px);
}

/* ---------- ACTION BUTTONS (solo dentro de cards de productos) ---------- */
.gallery-grid .card-actions.actions-row,
#galleryGrid .card-actions.actions-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: stretch;
  margin-top: 14px;
}

.gallery-grid .card-actions .btn-action,
#galleryGrid .card-actions .btn-action {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 12px 14px;
  border-radius: 16px;
  text-decoration: none;
  border: 1px solid rgba(232,154,166,.45);
  background: rgba(248, 232, 236, .65);
  color: #333;
  font-weight: 600;
  line-height: 1.15;
}

.gallery-grid .card-actions .btn-outline,
#galleryGrid .card-actions .btn-outline {
  background: #fff;
}

.gallery-grid .card-actions .btn-action .es,
#galleryGrid .card-actions .btn-action .es {
  display: block;
  margin-top: 4px;
  font-weight: 500;
  opacity: .85;
  font-size: .92em;
}

/* ---------- PRICE BOX (solo productos) ---------- */
.gallery-grid .price-box,
#galleryGrid .price-box {
  margin: 14px auto 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(232,154,166,.35);
  background: rgba(248, 232, 236, .55);
  text-align: center;
}

.gallery-grid .price-line,
#galleryGrid .price-line {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 6px 0;
}

.gallery-grid .price-units,
#galleryGrid .price-units {
  margin-left: 6px;
  font-size: .85rem;      /* 👈 más pequeño */
  font-weight: 500;
  opacity: .7;
  white-space: nowrap;   /* 👈 clave: no se parte en 2 líneas */
}

/* Ajuste fino SOLO en mobile */
@media (max-width: 480px){
  .gallery-grid .price-units,
  #galleryGrid .price-units {
    font-size: .78rem;   /* 👈 entra perfecto en 1 línea */
  }
}
 ======================================================
   GALLERY MODAL – FULL IMAGE (no crop)
  en mobiles ====================================================== */
@media (max-width: 480px){
  .gallery-image-wrap{
    max-height: 85vh;
    padding: 8px;
  }
  .gallery-image-wrap img{
    max-height: 80vh;
  }
}
