/* =========================================================
   HEADER
========================================================= */
.topbar{
  background:#f48fb1;
  color:#fff;
  text-align:center;
  font-weight:700;
  letter-spacing:.10em;
  font-size: var(--topbar-fs);
  padding:10px 12px;
}
.topbar-inner{ max-width:1200px; margin:0 auto; }

.header-main{
  background:#fde6ef;
  border-bottom:1px solid rgba(0,0,0,.06);
}

.header-inner{
  display:grid;
  grid-template-columns: 260px 1fr 260px;
  align-items:center;
  padding: var(--header-pad-y) 0;
  gap:10px;
}

.logo{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  text-decoration:none;
  color:#e91e63;
  font-weight:800;
}

.logo span{
  font-size:1.6rem;
  font-weight:700;
  color:#e91e63;
  white-space:nowrap;
  line-height:1;
}

.logo img{
  order:2;
  height:150px;
  width:auto;
  margin-left:-32px;
  transform: translateY(6px);
}

.menu{
  display:flex;
  justify-content:center;
  gap:28px;
}

.menu-link{
  color:#333;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.10em;
  font-size: var(--fs-menu);
  padding:10px 4px;
  position:relative;
}

.menu-link:hover{ color:#e91e63; }

.menu-link::after{
  content:"";
  position:absolute;
  left:10%;
  right:10%;
  bottom:4px;
  height:2px;
  background:transparent;
  border-radius:2px;
  transition:.2s;
}
.menu-link:hover::after{ background:#e91e63; }

.header-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:12px;
}

.auth-buttons {
  display:flex;
  gap:15px;
  align-items:center;
}

.btn-header {
  background: linear-gradient(135deg, #ff4d79, #ff1f5a);
  color: white;
  padding: 12px 28px;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  min-width: 150px;
  text-align: center;
  transition: 0.3s;
  display: inline-block;
  border:none;
}

.btn-header:hover {
  opacity: 0.9;
}

.icon-link{
  width:38px;
  height:38px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#333;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  transition:.2s;
}
.icon-link:hover{
  color:#e91e63;
  border-color:#e91e63;
}

.cart-pill{
  background:#e91e63;
  color:#fff;
  padding: var(--cart-pad-y) var(--cart-pad-x);
  border-radius:30px;
  font-weight:900;
  font-size: 0.9rem;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  box-shadow:0 6px 18px rgba(233,30,99,.25);
  transition:.2s ease;
}
.cart-pill:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 22px rgba(233,30,99,.35);
  filter:brightness(.95);
}

@media (max-width: 900px){
  .header-inner{
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo actions"
      "menu menu";
    padding:14px 0;
  }
  .logo{ grid-area:logo; }
  .header-actions{ grid-area:actions; }
  .menu{
    grid-area:menu;
    justify-content:flex-start;
    overflow:auto;
    gap:18px;
    padding-top:10px;
  }
  .auth-buttons{
    gap:10px;
    flex-wrap:wrap;
    justify-content:flex-end;
  }
  .btn-header{
    min-width:auto;
    padding:10px 18px;
  }
}

/* =========================================================
   FOOTER
========================================================= */
.footer-shop{
  background:#3f3f3f;
  color:#f3f3f3;
  margin-top:50px;
  padding-top:20px;
}

.footer-grid{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:60px;
  padding:40px 18px 20px;
}

.footer-title{
  color:#ff4f9a;
  font-weight:700;
  margin-bottom:14px;
  font-size: var(--fs-footer-title);
}

.footer-subtitle{
  margin-top:18px;
  font-weight:700;
  color:#f3f3f3;
  font-size: .95rem;
}

.footer-link{
  display:block;
  color:#f3f3f3;
  text-decoration:none;
  font-size:.82rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  margin:12px 0;
  opacity:.92;
}
.footer-link:hover{ opacity:1; color:#ff78b4; }

.footer-text{
  margin-top:10px;
  font-size: var(--fs-footer-text);
  opacity:.95;
}

.footer-social-icons{
  display:flex;
  gap:10px;
  margin-top:10px;
}

.social-ico{
  width:36px;
  height:36px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.25);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  text-decoration:none;
  transition:.2s;
}
.social-ico:hover{
  color:#ff4f9a;
  border-color:#ff4f9a;
}

.social-ico img{
  width:22px;
  height:22px;
  display:block;
}

.whatsapp-float{
  position:fixed;
  right:22px;
  bottom:22px;
  width:68px;
  height:68px;
  border-radius:50%;
  background:transparent;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  box-shadow:0 16px 34px rgba(16,128,35,.34), 0 6px 14px rgba(0,0,0,.18);
  z-index:999;
  transition:transform .18s ease, box-shadow .18s ease;
}

.whatsapp-float img{
  width:100%;
  height:100%;
  display:block;
  filter:drop-shadow(0 1px 1px rgba(0,0,0,.14));
}

.whatsapp-float:hover{
  transform:translateY(-2px) scale(1.04);
  box-shadow:0 20px 40px rgba(16,128,35,.42), 0 8px 18px rgba(0,0,0,.2);
}

.whatsapp-float:focus-visible{
  outline:3px solid rgba(37,211,102,.38);
  outline-offset:4px;
}

.footer-payments{
  padding:22px 18px;
  border-top:1px solid rgba(255,255,255,.10);
  border-bottom:1px solid rgba(255,255,255,.08);
}

.footer-payments-title{
  text-align:center;
  color:#fff;
  font-weight:800;
  margin-bottom:12px;
  letter-spacing:.03em;
}

.pay-badges{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
  opacity:.95;
}

.pay-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:8px 14px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:8px;
  color:#f7f7f7;
  background:rgba(255,255,255,.06);
  font-size:.86rem;
  font-weight:700;
}

.pay-badge-main{
  background:#00b1ea;
  border-color:#00b1ea;
  color:#fff;
}

.cart-feedback{
  display:grid;
  gap:14px;
  padding:16px;
  margin:16px 0 20px;
  border-radius:12px;
  border:1px solid;
  box-shadow:0 10px 24px rgba(0,0,0,.06);
}

.cart-feedback strong{
  display:block;
  margin-bottom:4px;
  font-size:1rem;
}

.cart-feedback p{
  margin:0;
  line-height:1.45;
}

.cart-feedback-success{
  background:#effaf3;
  border-color:#b8e7c8;
  color:#205b33;
}

.cart-feedback-error{
  background:#fff1f4;
  border-color:#f6a9bd;
  color:#8a1535;
}

.cart-feedback-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.pay-badge{
  border:1px solid rgba(255,255,255,.20);
  border-radius:6px;
  padding:6px 10px;
  font-size:.75rem;
  background:rgba(255,255,255,.06);
}

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

.footer-note{
  color:#eaeaea;
  opacity:.85;
  margin-top:6px;
}

@media (max-width: 900px){
  .footer-grid{ grid-template-columns: 1fr; gap:26px; }
  .pay-badges{ justify-content:flex-start; }
  .footer-bottom{ text-align:left; }
}

.card{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card .price{
  margin-top: auto;
  text-align: center;
}
.card .price strong{
  display: block;
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.card .price a{
  display: inline-block;
  margin-top: 4px;
}

/* CONTENEDOR PRINCIPAL DEL HEADER */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* MENÚ DEL CENTRO */
.menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px; /* 🔥 espacio entre INICIO y CUIDADO */
  flex: 1;
}

/* LINKS DEL MENÚ */
.menu-link {
  white-space: nowrap;
  font-weight: 600;
}

/* ACCIONES DERECHA */
.header-actions {
  display: flex;
  align-items: center;
}

/* BOTONES DERECHA */
.auth-buttons {
  display: flex;
  align-items: center;
  gap: 15px; /* 🔥 espacio entre Mis pedidos, carrito, etc */
}

/* BOTONES */
.btn-header {
  white-space: nowrap;
  padding: 10px 18px;
  border-radius: 20px;
}

/* =========================================================
   RESPONSIVE FOUNDATION
========================================================= */
html{
  overflow-x:hidden;
}

body{
  overflow-x:hidden;
}

img, svg, video{
  max-width:100%;
  height:auto;
}

.container{
  width:min(100% - 32px, 1180px);
  max-width:1180px;
  padding-left:0;
  padding-right:0;
}

.section{
  max-width:none;
  width:100%;
  padding:32px 0;
}

.header-inner{
  width:min(100% - 32px, 1180px);
  max-width:1180px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(180px, 240px) minmax(0, 1fr) auto;
  gap:18px;
}

.logo img{
  height:clamp(82px, 9vw, 140px);
}

.logo span{
  font-size:clamp(1.15rem, 2vw, 1.6rem);
}

.menu{
  gap:clamp(12px, 2.5vw, 34px);
  min-width:0;
}

.menu-link{
  font-size:clamp(.78rem, 1.2vw, 1rem);
}

.auth-buttons{
  gap:10px;
  justify-content:flex-end;
  flex-wrap:wrap;
}

.btn-header{
  min-width:auto;
  padding:10px 16px;
  font-size:.86rem;
  line-height:1.15;
}

.grid-3{
  grid-template-columns:repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.card{
  min-width:0;
}

.footer-grid{
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:clamp(24px, 5vw, 60px);
}

@media (max-width: 980px){
  .header-inner{
    grid-template-columns:1fr;
    justify-items:center;
    text-align:center;
    padding:14px 0;
  }

  .logo{
    justify-content:center;
  }

  .logo img{
    margin-left:-18px;
  }

  .menu{
    width:100%;
    justify-content:center;
    flex-wrap:wrap;
    overflow:visible;
    padding-top:0;
  }

  .header-actions{
    width:100%;
    justify-content:center;
  }

  .auth-buttons{
    justify-content:center;
  }
}

@media (max-width: 640px){
  .container{
    width:min(100% - 24px, 1180px);
  }

  .topbar{
    letter-spacing:.05em;
    line-height:1.35;
  }

  .menu{
    gap:8px 14px;
  }

  .menu-link{
    padding:8px 2px;
  }

  .btn-header{
    padding:9px 13px;
    font-size:.8rem;
  }

  .footer-grid{
    grid-template-columns:1fr;
  }

  .pay-badges{
    justify-content:center;
  }

  .footer-bottom{
    text-align:center;
  }
}

/* =========================================================
   RESPONSIVE POLISH - capa final de acomodo
========================================================= */
html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
}

body{
  line-height:1.55;
}

h1,
h2,
h3,
p{
  overflow-wrap:anywhere;
}

.section{
  padding-block:clamp(24px, 5vw, 56px);
}

.section-head{
  max-width:760px;
  margin:0 auto clamp(20px, 4vw, 34px);
  text-align:center;
}

.section-head h1,
.section-head h2{
  margin-top:0;
  font-size:clamp(1.8rem, 4vw, 2.6rem);
  line-height:1.12;
}

.section-head p{
  font-size:clamp(.98rem, 1.8vw, 1.12rem);
  line-height:1.65;
}

.grid-3{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap:clamp(16px, 3vw, 28px);
  align-items:stretch;
  width:100%;
}

.grid-3 > *{
  min-width:0;
}

.card{
  min-width:0;
  height:100%;
}

.btn,
.btn-header,
.ver-badge,
.appointment-btn,
.catalog-tab{
  min-width:0;
  max-width:100%;
  white-space:normal;
  text-align:center;
}

input,
select,
textarea,
button{
  max-width:100%;
  font:inherit;
}

table{
  width:100%;
  border-collapse:collapse;
}

.table,
table{
  display:block;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

.header-inner{
  min-height:auto;
}

.logo{
  min-width:0;
}

.logo img{
  flex:0 0 auto;
}

.menu{
  min-width:0;
}

.auth-buttons{
  min-width:0;
}

@media (min-width: 1200px){
  .container,
  .header-inner{
    width:min(100% - 64px, 1180px);
  }
}

@media (max-width: 1400px){
  .header-inner{
    width:min(100% - 28px, 1180px);
    grid-template-columns:1fr;
    gap:8px;
    justify-items:center;
    padding:10px 0 14px;
  }

  .logo{
    justify-content:center;
  }

  .logo img{
    height:clamp(64px, 7vw, 86px);
    margin-left:-14px;
    transform:translateY(3px);
  }

  .logo span{
    font-size:clamp(1.25rem, 2.4vw, 1.65rem);
  }

  .menu{
    width:100%;
    justify-content:center;
    flex-wrap:wrap;
    gap:6px 22px;
  }

  .menu-link{
    font-size:.82rem;
    letter-spacing:.09em;
    padding:6px 2px;
  }

  .header-actions,
  .auth-buttons{
    width:100%;
    justify-content:center;
  }

  .auth-buttons{
    gap:10px;
  }

  .btn-header{
    padding:8px 14px;
    border-radius:999px;
    font-size:.82rem;
    line-height:1.1;
  }
}

@media (min-width: 1401px){
  .header-inner{
    grid-template-columns:minmax(180px, 240px) minmax(0, 1fr) auto;
  }

  .menu{
    gap:clamp(18px, 2vw, 34px);
  }

  .btn-header{
    padding:9px 16px;
    font-size:.84rem;
  }
}

@media (max-width: 860px){
  .header-inner{
    grid-template-columns:1fr;
    gap:12px;
    justify-items:center;
  }

  .logo{
    justify-content:center;
  }

  .logo img{
    height:clamp(70px, 18vw, 104px);
    margin-left:-14px;
    transform:translateY(3px);
  }

  .menu{
    width:100%;
    justify-content:center;
    flex-wrap:wrap;
    gap:8px 16px;
  }

  .menu-link{
    font-size:.82rem;
    padding:7px 2px;
  }

  .header-actions,
  .auth-buttons{
    width:100%;
    justify-content:center;
  }

  .btn-header{
    padding:9px 14px;
    border-radius:999px;
  }

  .footer-grid{
    grid-template-columns:1fr;
    text-align:center;
  }

  .footer-social-icons,
  .pay-badges{
    justify-content:center;
  }
}

@media (max-width: 560px){
  body{
    font-size:15px;
  }

  .whatsapp-float{
    right:16px;
    bottom:16px;
    width:60px;
    height:60px;
  }

  .whatsapp-float img{
    width:100%;
    height:100%;
  }

  .container,
  .header-inner{
    width:min(100% - 22px, 1180px);
  }

  .topbar{
    padding:8px 10px;
    font-size:.68rem;
    letter-spacing:.05em;
  }

  .logo span{
    font-size:1.18rem;
  }

  .logo img{
    height:72px;
    margin-left:-10px;
  }

  .menu{
    gap:6px 12px;
  }

  .menu-link{
    letter-spacing:.06em;
    font-size:.75rem;
  }

  .auth-buttons{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:8px;
  }

  .btn-header{
    width:100%;
    padding:9px 10px;
    font-size:.78rem;
  }

  .grid-3{
    grid-template-columns:1fr;
  }

  .card{
    padding:clamp(14px, 4vw, 18px);
  }

  .cart-feedback-actions,
  .product-actions,
  .hero-actions{
    display:grid;
    grid-template-columns:1fr;
  }

  .btn,
  .btn-ghost,
  .ver-badge,
  .appointment-btn{
    width:100%;
  }

  .form .grid-3,
  form .grid-3,
  .checkout-grid,
  .two-col{
    grid-template-columns:1fr !important;
  }

  .footer-shop{
    margin-top:32px;
  }

  .footer-grid{
    padding-top:28px;
  }

  .pay-badge{
    font-size:.72rem;
    min-height:32px;
    padding:6px 9px;
  }
}

/* =========================================================
   HEADER OVERRIDE FINAL - evita que menu y botones se encimen
========================================================= */
@media (max-width: 1400px){
  .header-inner{
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;
    width:min(100% - 28px, 1180px) !important;
    padding:10px 0 14px !important;
  }

  .logo{
    width:100% !important;
    justify-content:center !important;
  }

  .logo img{
    height:76px !important;
    margin-left:-12px !important;
    transform:translateY(2px) !important;
  }

  .menu{
    width:100% !important;
    flex:0 1 auto !important;
    display:flex !important;
    justify-content:center !important;
    align-items:center !important;
    flex-wrap:wrap !important;
    gap:8px 24px !important;
    padding:0 !important;
  }

  .menu-link{
    font-size:.82rem !important;
    letter-spacing:.09em !important;
    padding:5px 2px !important;
  }

  .header-actions{
    width:100% !important;
    display:flex !important;
    justify-content:center !important;
  }

  .auth-buttons{
    width:100% !important;
    display:flex !important;
    justify-content:center !important;
    align-items:center !important;
    flex-wrap:wrap !important;
    gap:10px !important;
  }

  .btn-header{
    width:auto !important;
    min-width:0 !important;
    padding:8px 16px !important;
    font-size:.82rem !important;
    line-height:1.1 !important;
    border-radius:999px !important;
  }
}

@media (min-width: 1401px){
  .header-inner{
    display:grid !important;
    grid-template-columns:minmax(220px, 300px) minmax(0, 1fr) minmax(240px, auto) !important;
    width:min(100% - 72px, 1500px) !important;
    max-width:1500px !important;
    gap:22px !important;
    align-items:center !important;
    padding:14px 0 !important;
  }

  .logo{
    min-width:0 !important;
  }

  .logo img{
    height:82px !important;
    margin-left:-16px !important;
    transform:translateY(3px) !important;
  }

  .menu{
    min-width:0 !important;
    width:100% !important;
    flex:0 1 auto !important;
    display:flex !important;
    justify-content:center !important;
    align-items:center !important;
    flex-wrap:nowrap !important;
    gap:clamp(14px, 1.55vw, 26px) !important;
    padding:0 !important;
  }

  .menu-link{
    font-size:clamp(.78rem, .9vw, .92rem) !important;
    letter-spacing:.09em !important;
    padding:6px 0 !important;
    white-space:nowrap !important;
  }

  .header-actions{
    min-width:0 !important;
    display:flex !important;
    justify-content:flex-end !important;
  }

  .auth-buttons{
    min-width:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    flex-wrap:nowrap !important;
    gap:10px !important;
  }

  .btn-header{
    width:auto !important;
    min-width:0 !important;
    padding:8px 15px !important;
    font-size:.82rem !important;
    line-height:1.1 !important;
    white-space:nowrap !important;
  }
}
