/* =========================
   RESET BÁSICO
   ========================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* =========================
   CONTENEDORES Y UTILIDADES
   ========================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, #FF4F81, #FF9068);
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #1ebe5b;
}

/* =========================
   HEADER (compacto con degradado)
   ========================= */

/* Colores por defecto (se sobrescriben con CSS dinámico del personalizador) */
:root{
    --hdr-g1: #FF6B7D; /* rosa coral */
    --hdr-g2: #65D6C2; /* verde menta */
    --hdr-text: rgba(255,255,255,0.95);
    --hdr-text-muted: rgba(255,255,255,0.8);
    --hdr-link-hover: #ffffff;
}

.site-header {
    /* degradado del mockup */
    background: linear-gradient(90deg, var(--hdr-g1) 0%, var(--hdr-g2) 100%);
    /* header compacto */
    padding: 10px 0;
    position: fixed;
    z-index: 50;
    width: 100%;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo img {
    display: block;
    width: auto;           /* controlado por max-height dinámico */
    /* max-height lo inyecta el personalizador */
}

/* Navegación */
.main-navigation .nav-list {
    display: flex;
    gap: 28px;
}

.main-navigation .nav-list li a {
    color: var(--hdr-text);
    font-weight: 600;
    padding: 8px 0;
    line-height: 1.2;      /* evita que el header crezca en altura */
    position: relative;
    letter-spacing: 0.2px;
}

.main-navigation .nav-list li a:hover,
.main-navigation .nav-list li.current-menu-item > a {
    color: var(--hdr-link-hover);
}

/* Subrayado sutil al hover (estilo moderno) */
.main-navigation .nav-list li a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -6px;
    width: 0; height: 2px;
    background: var(--hdr-link-hover);
    transition: width .25s ease;
    opacity: 0.9;
}
.main-navigation .nav-list li a:hover::after,
.main-navigation .nav-list li.current-menu-item > a::after {
    width: 100%;
}

/* Botón WhatsApp */
.header-whatsapp{
    border: 4px solid #111;
    border-radius: 50px;
    padding: 4px 0;
}
.header-whatsapp:hover{
    border: 4px solid #fff;
}
.btn-whatsapp-header {
    background: #25D366;
    color: #333;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.btn-whatsapp-header:hover {
    background: #119E47;
    color: #000;
}

/* Línea separadora inferior muy sutil (opcional) */
.site-header::after{
    content:"";
    position:absolute;
    left:0; right:0; bottom:0;
    height:1px;
    background: rgba(255,255,255,0.25);
    pointer-events:none;
}

/* =========================
   RESPONSIVE HEADER
   ========================= */
@media (max-width: 992px){
    .main-navigation .nav-list { gap: 18px; }
}
@media (max-width: 768px){
    .header-flex {
        flex-wrap: wrap;
        gap: 12px 16px;
    }
    .main-navigation { order: 3; width: 100%; }
    .main-navigation .nav-list {
        justify-content: center;
    }
    .btn-whatsapp-header { order: 2; }
}


/**/
/* =========================
   FOOTER (oscuro – responsive)
   ========================= */
:root{
  --ft-bg: #0F1B2E;           /* azul petróleo oscuro */
  --ft-card: #2A3240;         /* tarjeta newsletter */
  --ft-text: rgba(255,255,255,0.9);
  --ft-muted: rgba(255,255,255,0.75);
  --ft-sep: rgba(255,255,255,0.12);
  --ft-accent: #FF6B7D;       /* acorde al header */
}

.site-footer{
  background: var(--ft-bg);
  color: var(--ft-text);
  padding: 48px 0 28px;
}

.footer-top{
  display: grid;
  gap: 34px;
  grid-template-columns: 1.2fr 1fr 0.8fr; /* brand / contacto / enlaces */    
    align-content: center;
    justify-content: center;
    justify-items: center;
}

.footer-col h4{
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: .3px;
  margin-bottom: 14px;
}

/*.footer-logo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }*/
/*.footer-logo img{ max-height: 46px; width: auto; }*/
.footer-name{ color:#fff; font-weight:800; font-size:1.1rem; }
.footer-tagline{ color: var(--ft-muted); }

.footer-desc{
  color: var(--ft-muted);
  margin: 8px 0 16px;
}

/* Newsletter */
.newsletter{
  background: var(--ft-card);
  border-radius: 14px;
  padding: 14px;
  margin-top: 8px;
}
.nl-form{
  display:flex;
  align-items:center;
  gap:10px;
}
.nl-form .nl-icon{ font-size: 1.1rem; opacity:.9; }
.nl-form input{
  flex:1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  outline: none;
}
.nl-form button{
  background: linear-gradient(45deg, #FF4F81, #FF9068);
  color:#fff; border:0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight:700;
  cursor:pointer;
}
.nl-form button:hover{ opacity:.9; }

/* Contacto */
.contact-list{ display: grid; gap: 10px; }
.contact-list .it{
  display: grid;
  grid-template-columns: 22px auto;
  gap: 10px; align-items: start;
  color: var(--ft-muted);
}
.contact-list .it svg{
  width: 18px; height: 18px; fill: var(--ft-accent);
}
.contact-list .it a{ color: var(--ft-text); }
.contact-list .it a:hover{ color: #fff; }

/* Redes */
.footer-social{ margin-top: 14px; display:flex; align-items:center; gap:10px; }
.footer-social > span{ color: var(--ft-muted); }
.social-links{ display:flex; gap:10px; }
.social-links .s{
  width: 36px; height: 36px;
  display:grid; place-items:center;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color:#fff; font-weight:800;
  text-align:center;
}
.social-links .s:hover{ background: rgba(255,255,255,.2); }

/* Menú footer */
.menu-footer .footer-list{ list-style:none; display:grid; gap:10px; }
.menu-footer .footer-list a{
  color: var(--ft-muted);
}
.menu-footer .footer-list a:hover{
  color: #fff; text-decoration: underline;
}

/* Parte inferior */
.footer-bottom{ margin-top: 28px; }
.footer-bottom hr{
  border: 0; height:1px; background: var(--ft-sep); margin-bottom: 12px;
}
.footer-bottom p{
  color: var(--ft-muted);
  font-size: .95rem;
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 1024px){
  .footer-top{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px){
  .site-footer{ padding: 36px 0 22px; }
  .footer-top{ grid-template-columns: 1fr; }
  .footer-col{ margin-bottom: 10px; }
  .nl-form{ flex-direction: column; align-items: stretch; }
  .nl-form button{ width: 100%; }
}
/* Footer: logo */
.site-footer .footer-logo { display:flex; flex-direction:column; gap:6px; width: 40% !important; margin: auto !important; }
.site-footer .footer-logo img { display:block; width:auto; height:auto; } /* max-height lo pone el CSS dinámico */
.site-footer .footer-name { color:#fff; font-weight:800; font-size:1.1rem; }
.site-footer .footer-tagline { color: var(--ft-muted); }


/**/
/* Para tus cards en Home */
.prod-title,
.prod-title a{
  display: -webkit-box;          /* Soporte WebKit */
  -webkit-line-clamp: 2;         /* Nº de líneas máximas */
  -webkit-box-orient: vertical;  /* Caja vertical */
  overflow: hidden;              /* Oculta lo que excede */
  text-overflow: ellipsis;       /* “...” al cortar */
  line-height: 1.3;              /* Ajusta si quieres */
  max-height: calc(1.3em * 2);   /* 2 líneas * line-height */
  word-break: break-word;        /* Evita desbordes por palabras largas */
}

/* (Opcional) Asegura altura pareja del contenedor del título */
.prod-card .prod-body{
  min-height: 4.2rem;  /* ajusta según tu diseño */
}

/* Para los listados de WooCommerce (tienda/categorías) */
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  max-height: calc(1.3em * 2);
  word-break: break-word;
}

/**/
/**/
/*DETALLE DEL PRODUCTO*/
/* ======= Ficha de producto (single) ======= */
.single-product .product {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;   /* móvil */
}

@media (min-width: 992px) {
  .single-product .product {
    grid-template-columns: 1.15fr 1fr;  /* imagen | resumen */
    align-items: start;
  }
}

.single-product .product .images,
.single-product .product .woocommerce-product-gallery {
  position: sticky;
  top: 92px;                       /* que la galería quede “pegada” al hacer scroll */
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.single-product .product .summary {
  padding: 8px 0;
}

.single-product .product .product_title {
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 800;
  margin: 6px 0 10px;
}

.single-product .product .price {
  font-size: 22px;
  margin: 0 0 10px;
}

.single-product .product .price del {
  opacity: .6;
  margin-right: 10px;
}

.single-product .product .woocommerce-product-details__short-description {
  color: #4b5563;
  line-height: 1.6;
  margin: 12px 0 16px;
}

/* Botón WhatsApp en la ficha */
.single-product .single-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  background: #22c55e;
  color: #0b2c13;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 8px 22px rgba(34,197,94,.35);
}
.single-product .single-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(34,197,94,.45);
}

/* Etiquetas y categorías debajo del botón */
.single-product .product .product_meta {
  margin-top: 14px;
  color: #6b7280;
  font-size: 14px;
}

/* Badge de oferta arriba del todo (opcional) */
.single-product .onsale {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  background: radial-gradient(120% 120% at 30% 20%, #ff8fb3 0%, #ff4977 60%, #ff1e56 100%);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  animation: pulseSale 1.8s ease-in-out infinite;
  box-shadow: 0 10px 26px rgba(255, 73, 119, .35);
}
@keyframes pulseSale {
  0%, 100% { transform: scale(1);    box-shadow: 0 10px 26px rgba(255,73,119,.35); }
  50%      { transform: scale(1.06); box-shadow: 0 14px 36px rgba(255,73,119,.45); }
}

.woocommerce div.product div.summary{
    width: 100%;
}
.woocommerce div.product{
    padding-top: 80px;
}

/**/
/* Badge "Oferta" bajo el título */
.flor-sale-badge-under-title{
  display: inline-block;
  margin: 6px 0 10px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  background: radial-gradient(120% 120% at 30% 20%, #ff8fb3 0%, #ff4977 60%, #ff1e56 100%);
  box-shadow: 0 8px 22px rgba(255,73,119,.35);
  animation: florPulse 1.8s ease-in-out infinite;
}
@keyframes florPulse {
  0%,100% { transform: scale(1);   box-shadow: 0 8px 22px rgba(255,73,119,.35); }
  50%     { transform: scale(1.06); box-shadow: 0 12px 30px rgba(255,73,119,.45); }
}

/**/
/* Contenedor de galería fijo (altura/aspect ratio) */
.single-product .woocommerce-product-gallery{
  --ratio: 4/5;               /* cambia a 1/1, 3/4, etc si quieres otra proporción */
  border-radius: 16px;
  overflow: hidden;
}

/* Imagen principal con recorte uniforme */
.single-product .woocommerce-product-gallery__image{
  aspect-ratio: var(--ratio);
  overflow: hidden;
}
.single-product .woocommerce-product-gallery__image img{
  width: 100%;
  height: 100%;
  object-fit: cover;          /* recorta manteniendo centro */
  display: block;
}

/* Miniaturas coherentes */
.single-product .flex-control-thumbs li{
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 10px;
}
.single-product .flex-control-thumbs img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/**/
/* Grid limpio para relacionados */
.related.products ul.products{
  display: grid !important;
  grid-template-columns: repeat(1, minmax(0,1fr));
  gap: 22px;
}
@media (min-width: 721px){
  .related.products ul.products{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px){
  .related.products ul.products{ grid-template-columns: repeat(2, 1fr); } /* máx 2 */
}

@media (max-width: 720px){
    .related.products ul.products{
      flex-wrap: wrap;
    }
    .woocommerce div.product{
        padding-top: 135px;
    }
}
/* Tarjetas más “card” */
.related.products ul.products li.product {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  padding: 0 0 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#tab-description{
    padding: 15px;
}

.related.products ul.products li.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(0,0,0,.22);
}

.related.products ul.products li.product .woocommerce-LoopProduct-link{
  display: block;
}

/* Imagen de la tarjeta recortada uniforme */
.related.products ul.products li.product a img{
  width: 100%;
  height: 220px;           /* ajusta a gusto */
  object-fit: cover;
  display: block;
}

/* Precio y título */
.related.products ul.products li.product .woocommerce-loop-product__title{
  font-size: 16px;
  font-weight: 700;
  padding: 10px 14px 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;   /* máximo 2 líneas */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related.products ul.products li.product .price{
  padding: 6px 14px 0;
  font-size: 16px;
}

/* Botón del loop (si lo sigues mostrando) */
.related.products ul.products li.product .button{
  margin: 10px 14px 0;
  border-radius: 999px;
}
.single-product .product .images, .single-product .product .woocommerce-product-gallery{
    top: 0;
}

.related.products ul.products li.product{
    display: flex;
    width: 100%;
}
.related.products ul.products{
    display: flex !important;
}
/**/
/* Chip "Oferta" (single y loop) */
.flor-sale-badge,
.flor-sale-badge-under-title{
  display:inline-block;
  padding:6px 12px;
  border-radius:999px;
  font-weight:800;
  font-size:13px;
  color:#fff;
  background: radial-gradient(120% 120% at 30% 20%, #ff8fb3 0%, #ff4977 60%, #ff1e56 100%);
  box-shadow:0 8px 22px rgba(255,73,119,.35);
  animation:florPulse 1.8s ease-in-out infinite;
  line-height:1;
}
@keyframes florPulse{
  0%,100%{transform:scale(1);   box-shadow:0 8px 22px rgba(255,73,119,.35)}
  50%    {transform:scale(1.06);box-shadow:0 12px 30px rgba(255,73,119,.45)}
}

/* El del single se muestra debajo del título */
.flor-sale-badge-under-title{ margin:6px 0 10px; }

/* El del loop/relacionados va flotando sobre la tarjeta */
.related.products ul.products li.product{ position:relative; }
.flor-sale-badge--loop{
  position:absolute;
  top:10px;
  left:10px;
  z-index:2;
}
.single-product .woocommerce-product-gallery__image img{
  cursor: zoom-in;
}

/**/
/* Contenedor general */
#reviews{
  background:#fff;
  border-radius:16px;
  padding:18px;
  box-shadow:0 10px 28px rgba(0,0,0,.06);
}

/* Título de reseñas */
#reviews .woocommerce-Reviews-title,
#reviews #comments h2{
  font-size:20px;
  font-weight:800;
  margin:0 0 14px;
}

/* Tabs (Descripción / Valoraciones) */
.woocommerce-tabs ul.tabs{
  border:0;
  display:flex;
  gap:6px;
  margin:0 0 14px;
}
.woocommerce-tabs ul.tabs li{
  list-style:none;
  margin:0;
  border:0;
}
.woocommerce-tabs ul.tabs li a{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  /*background:#f2f4f7;*/
  color:#111827;
  text-decoration:none;
  font-weight:600;
}
.woocommerce-tabs ul.tabs li.active a{
  color:#fff;
  /*background:linear-gradient(90deg,#FF6B7D 0%,#65D6C2 100%);*/
}

/* Formulario de reseña */
#review_form_wrapper input[type="text"],
#review_form_wrapper input[type="email"],
#review_form_wrapper textarea{
  width:100%;
  border:1px solid #e6e6e6;
  border-radius:12px;
  padding:10px 12px;
  outline:none;
}
#review_form_wrapper textarea{ min-height:120px; resize:vertical; }

/* Botón enviar */
#review_form #submit{
  border:0;
  color:#fff;
  border-radius:999px;
  padding:10px 16px;
  font-weight:800;
  cursor:pointer;
  /*background:linear-gradient(90deg,#FF6B7D 0%,#65D6C2 100%);*/
  box-shadow:0 10px 24px rgba(255,107,125,.25);
  transition:transform .15s ease, box-shadow .15s ease;
}
#review_form #submit:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 26px rgba(255,107,125,.35);
}

/* Estrellas en el formulario */
p.stars a{
  text-decoration:none!important;
}
p.stars a:before{ /* icono estrella usa herencia del color */
  color:#ffbc00;
}
p.stars a:hover:before,
p.stars a.active:before{
  color:#ff8d00;
}

/* Listado de comentarios */
#reviews #comments ol.commentlist{
  margin:0;
  padding:0;
}
#reviews #comments ol.commentlist li{
  list-style:none;
  border-bottom:1px solid #f0f0f0;
  padding:14px 0;
}
#reviews #comments .comment_container{
  display:grid;
  grid-template-columns:46px 1fr;
  gap:10px;
  align-items:flex-start;
}
#reviews #comments img.avatar{
  width:46px; height:46px; border-radius:50%; object-fit:cover;
}
#reviews #comments .meta{
  font-size:12px; color:#6b7280;
}
.related.products ul.products li.product .woocommerce-loop-product__title{
    min-height: 50px;
}

.woocommerce div.product div.images.woocommerce-product-gallery{
    margin: auto;
}


.single-product .single-wa{
color: #fff;    
}
.single-product .single-wa:hover{
    color: #333;
    border: 3px solid #555;
}
.related.products ul.products li.product .price, .single-product .product .price{
    color: #10b981 !important;
}

