/* *============ Paleta Láctea Fresca ============ */
:root{
  --bg:#FFFCF6;         /* crema */
  --ink:#0F172A;        /* azul muy oscuro (texto) */
  --muted:#64748B;      /* gris azulado */
  --brand:#1D4ED8;      /* azul cielo intenso */
  --cheese:#F59E0B;     /* dorado queso */
  --card:#FFFFFF;
  --border:#E5E7EB;
  --ring: rgba(29,78,216,.18);
  --radius:18px;
  --shadow: 0 16px 40px rgba(15, 23, 42, .08);
}

*{ box-sizing: border-box }
html, body{ margin:0; padding:0; overflow-x:hidden; }
body{
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1000px 420px at 8% -10%, #FFF7E6 0%, transparent 55%),
    radial-gradient(900px 350px at 100% 0%, #E7F0FF 0%, transparent 50%),
    var(--bg);
}
img{ display:block; width:100%; height:100% }

/** Utils */
.container{ width:min(1050px, 92vw); margin-inline:auto; }
.display{ font-family: "Playfair Display", serif; font-weight:700; font-size:clamp(28px, 5vw, 54px); line-height:1.08; margin:0 0 .4em; width: 700px; }
.lead{ color: gainsboro; font-size: clamp(16px, 2.2vw, 18px); margin:0 0 12px; width: 500px;}

@media (max-width: 800px){
  .display {width: 500px;}
  .lead {width: 300px;}
}

@media (max-width: 600px){
  .display {width: 350px;}
  .lead {font-weight:200; font-size: 14px;}
}
/*! ==== BASE ==== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .85rem 1.1rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .06s ease, 
              box-shadow .2s ease, 
              background .2s ease, 
              color .2s ease, 
              border-color .2s ease;
}
.btn:active { transform: translateY(1px) }

/** ==== 1. Glassmorphism ==== */
.btn-glass {
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(0,0,0,0.1);
  color: #111827;
  backdrop-filter: blur(8px);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}

/** ==== 2. Outline Glow ==== */
.btn-glow {
  background: #fff;
  border: 2px solid #3b82f6;
  color: #3b82f6;
}
.btn-glow-already {
  border: 2px solid #3b82f6;
  background: #3b82f6;
  color: #fff;
}
.btn-glow:hover {
  background: #3b82f6;
  color: #fff;
  box-shadow: 0 0 14px rgba(59,130,246,.5);
}
.btn-glow-already:hover {
  box-shadow: 0 0 14px rgba(59,130,246,.5);
}

/** ==== 4. Solid Dark ==== */
.btn-dark {
  background: #111827;
  color: #fff;
}
.btn-dark-clarito {
  background: #142b4f;
  color: #fff;
}
.btn-dark:hover {
  background: #1f2937;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}

.small{ color:#8A99AA; font-size:12px; margin:0 }

/*! ============ Header ============ */
.header{
  position:sticky; top:0; z-index:50;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:8px 14px;
}
.brand{ display:flex; align-items:center; gap:12px; text-decoration:none }
.brand-logos{
  display:flex; align-items:center; gap:10px; background:#fff; padding:8px 12px;
  border:1px solid var(--border); border-radius:999px; box-shadow: var(--shadow);
}

@media (max-width: 385px){
    .brand-logos, .brand-logos img{max-height: 35px;}
}

.brand-logos img{ height:50px; width:auto }
.brand-text{ font-weight:800; color: var(--muted); font-size:14px }
@media (max-width: 550px){ 
    .brand-text {display: none;}
}

.hamburger{
  display:none; width:44px; height:44px; border-radius:12px; border:1px solid #E2E8F0; background:#fff;
  align-items:center; justify-content:center; cursor:pointer;
}
.hamburger span{ display:block; width:22px; height:2px; background:var(--ink); margin:4px 0; transition:.2s }
.hamburger.is-open span:nth-child(1){ transform: translateY(6px) rotate(45deg) }
.hamburger.is-open span:nth-child(2){ opacity:0 }
.hamburger.is-open span:nth-child(3){ transform: translateY(-6px) rotate(-45deg) }

.nav{ display:flex; align-items:center; gap:10px; }
.nav-link{ text-decoration:none; font-weight:800; padding:.6rem .8rem; border-radius:12px; color: var(--ink) }
.nav-link:hover{ background:#F1F5F9 }

/*! Nav móvil */
@media (max-width: 860px){
  .hamburger{ display:inline-flex }
  .nav{
    position: fixed; top:82px; left:0; right:0; z-index:40;
    background:#fff; border-bottom:1px solid var(--border);
    display:grid; gap:8px; padding:10px 12px;
    transform: translateY(-130%); opacity:0; pointer-events:none;
    transition: transform .25s ease, opacity .2s ease;
  }
  .nav[data-open="true"]{ transform: translateY(0); opacity:1; pointer-events:auto }
  .nav .btn, .nav-link{ width:100%; justify-content:flex-start }
}

/*! ============ Hero Slider (con <img> de fondo) ============ */
.hero{ position:relative; }
.slider{
  display:grid; grid-auto-flow:column; grid-auto-columns:100%;
  overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none;
}
.slider::-webkit-scrollbar{ display:none }
.slide{
  position:relative; min-height: clamp(420px, 72vh, 720px); scroll-snap-align:start;
  display:grid; place-items:center; overflow:hidden;
}
.slide-bg{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; transform: scale(1.03);
  filter: saturate(1.05) contrast(1.05) brightness(.85);
  z-index:0;
}
.slide-overlay{ position:absolute; inset:0; z-index:1;
  background: linear-gradient(to bottom, rgba(0,0,0,.18), rgba(0,0,0,.42));
}
.slide-content{ position:relative; z-index:2; color:#fff; text-align:left;}
.slide .cta{ display:flex; gap:10px; flex-wrap:wrap; margin-top:10px }

.slider-dots{
  display:flex; gap:8px; justify-content:center; margin:10px 0 18px;
}
.slider-dots a{
  width:10px; height:10px; border-radius:999px; display:inline-block;
  background: #CBD5E1;
}
.slider-dots a:hover{ background: var(--brand) }

/** Tira de productos */
.brand-strip{
  display:grid; grid-auto-flow: column; grid-auto-columns: minmax(120px,1fr); gap:10px;
  overflow:auto; scrollbar-width:none; margin: 0 auto 20px;
}
.brand-strip::-webkit-scrollbar{ display:none }
.brand-strip img{
  height:100px; object-fit:cover; border-radius:12px; border:1px solid var(--border);
  box-shadow: var(--shadow);
}

/*! ============ About con fotos ============ */
.about{ padding: clamp(28px, 5vw, 50px) 0 }
.about-grid{ display:grid; gap:18px; grid-template-columns: 1.1fr .9fr; align-items:center }
@media (max-width: 1000px){ .about-grid{ grid-template-columns: 1fr; } }
.about-copy h2{ font-family:"Playfair Display", serif; font-size: clamp(24px, 3.6vw, 40px); margin:0 0 .25em }
.icono { width: 25px; height: 25px; }
li {display: flex; flex-direction: row; gap: 10px; }
.bullets{ margin:10px 0 0; padding-left:18px; color: var(--ink) }
.bullets li{ margin:4px 0 }
.stats{ display:flex; gap:14px; flex-wrap:wrap; margin-top:12px }
.stat{ background:#fff; border:1px solid var(--border); border-radius:14px; padding:10px 14px; box-shadow: var(--shadow); gap:6px; display:flex; align-items:center }
.stat .num{ font-weight:800; font-size:20px; color: var(--brand) }
.stat .label{ color: var(--muted); font-size:13px }

.about-photos{ position:relative; min-height: 360px }
.photo{ position:absolute; border-radius:16px; overflow:hidden; border:1px solid var(--border); box-shadow: var(--shadow) }
.photo.big{ width:340px; height:240px; right:0; top:0 }
.photo.mid{ width:260px; height:180px; left:0; top:120px }
.photo.small{ width:220px; height:160px; right:40px; bottom:0 }

@media (max-width:1000px) {
    .about-photos{width: 500px;}
    .about-grid {display: flex; justify-content: center; flex-direction: column;}
}

@media (max-width:419px) {
    .about-photos {display: none;}
}


/*! ============ Catálogo (cards con <img> de fondo) ============ */
.catalog{ padding: clamp(28px, 5vw, 56px) 0; background:#fff }
.catalog-head{ text-align:center; margin-bottom:18px }
.catalog-head h2{ text-align:center; margin:0 0 14px; font-family:"Playfair Display", serif; font-size: clamp(22px, 3.2vw, 36px) }
.catalog-grid{
  display:grid; gap:14px; grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 1100px){ .catalog-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 740px){ .catalog-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px){ .catalog-grid{ grid-template-columns: 1fr; } }

.cat-card{
  position:relative; display:block; color:#fff; text-decoration:none; overflow:hidden;
  height: 220px; border-radius:18px; border:1px solid var(--border); box-shadow: var(--shadow);
  background: #F8FAFC;
}
.cat-bg{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  transform: scale(1.03); filter: saturate(1.05) contrast(1.05);
  z-index:0;
}


.cat-bg-mod{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position: 0% 25%;
  transform: scale(1.03); filter: saturate(1.05) contrast(1.05);
  z-index:0;
}



.cat-card .overlay{ position:absolute; inset:0; z-index:1; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.5)) }
.cat-card .body{ position:relative; z-index:2; height:100%; padding:14px; display:flex; flex-direction:column; justify-content:flex-end }
.cat-card h3{ margin:0 0 4px; font-size:20px; text-shadow: 0 2px 8px rgba(0,0,0,.45) }
.cat-card .btn-dark{
  align-self:flex-start; font-size:12px; font-weight:800; color:#fff; padding:6px 8px; border-radius:999px;
}
.cat-card:hover .overlay{ background: linear-gradient(180deg, rgba(0,0,0,.0), rgba(0,0,0,.6)) }

/*! ============ Galería Masonry ============ */
.gallery{ padding: clamp(28px, 5vw, 56px) 0; }
.gallery h2{ text-align:center; margin:0 0 14px; font-family:"Playfair Display", serif; font-size: clamp(22px, 3.2vw, 36px) }
.masonry{
  columns: 4 240px; column-gap: 12px;
}
.masonry img{
  width:100%; margin: 0 0 12px; border-radius:14px; border:1px solid var(--border); box-shadow: var(--shadow);
}

@media (max-width: 535px){
  .masonry{ columns: 2; }
}

/*! ============ Sucursales ============ */
.branches{ padding: clamp(28px, 5vw, 20px) 0; }
.branches-head{ text-align:center; margin-bottom:18px }
.branches-head h2{ text-align:center; margin:0 0 14px; font-family:"Playfair Display", serif; font-size: clamp(22px, 3.2vw, 36px) }
.branches-grid{ display:grid; gap:14px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px){ .branches-grid{ grid-template-columns: 1fr; } }

.branch-card{
  background:#fff; border:1px solid var(--border); border-radius:16px; overflow:hidden; box-shadow: var(--shadow);
}
.branch-card .map{ aspect-ratio: 16/9; background:#F1F5F9; border-bottom:1px solid var(--border) }
.branch-card iframe{ width:100%; height:100%; border:0 }
.branch-info{ padding:12px }
.branch-info h3{ margin:0 0 6px }

/*! ============ Contacto ============ */
.contact{ height:100%; padding: 150px 0 150px; background-image: url("imagenes/ohiggins_oscuro.webp"); background-size: cover; /* hace que se ajuste al tamaño */
  background-position: center; /* centra la imagen */}
.contact-inner{ display:flex; align-items:center; justify-content: center;}
@media (max-width: 980px){ .contact-inner{ grid-template-columns: 1fr } }


.form{
  background:#fff; border:1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow);
  padding:16px; display:grid; gap:12px; 
}
.form h2{ margin:0; font-family:"Playfair Display", serif; font-size: clamp(22px, 3.2vw, 36px) }
.form .grid{ display:grid; gap:10px; grid-template-columns: 1fr 1fr }
@media (max-width: 560px){ .form .grid{ grid-template-columns: 1fr } .contact{padding: 50px 0 60px;}}
.form label{ font-weight:800; font-size:14px }
.form input, .form textarea{
  width:100%; padding:12px 14px; border:1px solid #D6DEE7; border-radius:12px; outline:none;
  background:#FAFBFF; color: var(--ink);
  transition: box-shadow .15s ease, border-color .15s ease;
}
.form input::placeholder, .form textarea::placeholder{ color:#9AA7B5 }
.form input:focus, .form textarea:focus{ border-color: var(--brand); box-shadow: 0 0 0 6px var(--ring) }
.form textarea{ min-height: 140px; resize: vertical }
.form-actions{ display:flex; gap:10px; flex-wrap:wrap }

/*! ============ Footer ============ */
.footer{border-top:1px solid var(--border); background:#fff; bottom: 0;}
.footer-inner{
  display:flex; align-items:center; justify-content:space-between; gap:14px; padding:16px 0; flex-wrap:wrap;
}
.footer-brand{ display:flex; align-items:center; gap:10px }
.footer-brand img{ height:22px; width:auto }
.footer .dot{ color:#E2E8F0; font-weight:700 }
.footer p{ margin:0; color:#8A99AA }  

/*! ----------------------------------------------------------------------------------------------------------------------- */

/*! ======= Catálogo por categoría ======= */
.cat-hero{ padding: clamp(18px, 4vw, 36px) 0; background:#fff; }
.cat-hero .back-link{
  display:inline-block; margin-bottom:10px; text-decoration:none; font-weight:700;
  color:#0f172a; border:1px solid var(--border); padding:6px 10px; border-radius:999px;
  transition: background .2s ease, color .2s ease;
}
.cat-hero .back-link:hover{ background:#0f172a; color:#fff; }
.hero-wrap{ display:grid; grid-template-columns: 1.2fr .8fr; gap:18px; align-items:center; }
.hero-text h1{ margin:0 0 6px; font-family:"Playfair Display", serif; font-size: clamp(22px, 3.2vw, 36px)}
.hero-text p{ margin:0; color:#475569; }
.hero-media{ width:100%; aspect-ratio: 4/3; overflow:hidden; border-radius:18px; border:1px solid var(--border); box-shadow: var(--shadow); background:#F8FAFC; }
.hero-media-mod{ object-fit:cover; object-position: 0% 25%;width:100%; aspect-ratio: 4/3; overflow:hidden; border-radius:18px; border:1px solid var(--border); box-shadow: var(--shadow); background:#F8FAFC;}
.hero-media img{ width:100%; height:100%; object-fit:cover; }
.hero-media-mod img{ width:100%; height:100%; object-fit:cover; }

.hero-media-modif img{ object-fit:cover; object-position: 0% 90%;width:100%; aspect-ratio: 4/3; overflow:hidden; border-radius:18px; border:1px solid var(--border); box-shadow: var(--shadow); background:#F8FAFC; inset: 0;}

@media (max-width: 900px){
  .hero-wrap{ grid-template-columns: 1fr; }
}


/*! Grid de productos */
.cat-list{ padding: clamp(18px, 5vw, 42px) 0; }
.product-grid{
  display:grid; gap:14px; grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1100px){ .product-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){ .product-grid{ grid-template-columns: 1fr; } }

.product-card{
  display:grid; grid-template-columns: 140px 1fr; gap:12px;
  background:#fff; border:1px solid var(--border); border-radius:16px; overflow:hidden; box-shadow: var(--shadow);
  padding:12px;
}
.product-card .thumb{
  width:100%; aspect-ratio: 1/1; background:#F1F5F9; border:1px solid var(--border); border-radius:12px; overflow:hidden;
}
.product-card .thumb img{ width:100%; height:100%; object-fit:cover; }
.product-card .info h3{ margin:0 0 6px; font-size: clamp(16px, 2.2vw, 18px); }
.product-card .meta{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:8px; }
.product-card .tag{
  display:inline-block; font-size:12px; font-weight:700; color:#0f172a;
  background:#F8FAFC; border:1px solid var(--border); border-radius:999px; padding:4px 8px;
}
.kv{ display:flex; flex-wrap:wrap; grid-template-columns: 140px 1fr; gap:6px 10px; }
.kv dt{ font-weight:800; color:#334155; }
.kv dd{ margin:0; color:#0f172a; }

@media (max-width: 560px){
  .product-card{ grid-template-columns: 1fr; }
  .kv{ grid-template-columns: 1fr; }
}

/* Botón + */
.info-btn{
  margin-left: auto;
  width: 36px; height: 36px; border-radius: 50%;
  border: 0; cursor: pointer; font-size: 20px; line-height: 36px;
  background: #142b4f; color: #fff;
  transition: transform .15s ease, background .15s ease;
}
.info-btn:hover{ transform: scale(1.06); background: rgba(15,23,42,.95); }

/* Modal */
.modal.hidden { display: none; }
.modal{ position: fixed; inset: 0; z-index: 9999; }
.modal-backdrop{ position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.modal-content{
  position: relative; z-index: 1;
  width: min(520px, 92vw);
  margin: 8vh auto;
  background: #fff; border-radius: 16px; padding: 20px 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  animation: pop .18s ease-out both;
}
.modal-close{
  position: absolute; top: 8px; right: 10px;
  width: 32px; height: 32px; border: 0; border-radius: 8px;
  background: #F2F4F8; cursor: pointer; font-size: 20px;
}
.modal-close:hover{ background: #e7eaf0; }
.modal-content h3{ margin: 0 0 8px 0; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Pequeño ajuste de layout para que el botón + quede alineado */
.product-card .info{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 8px;
}
.product-card .info h3{ grid-column: 1 / 2; }
.product-card .meta{ grid-column: 1 / 2; }
.info-btn{ grid-column: 2 / 3; align-self: start; }

/* Hover para las cards */
.product-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer; /* para que se note que es clickeable */
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}

/* Pequeño zoom en la imagen al hacer hover */
.product-card .thumb img {
  transition: transform 0.3s ease;
}

.product-card:hover .thumb img {
  transform: scale(1.05);
}

.modal-content .bullets{ margin:6px 0 8px 18px; }
.modal-content .bullets li{ margin:3px 0; color:#334155; }
.modal-content p, .modal-content li{ line-height:1.45; }

#modalTitulo {font-family:"Playfair Display", serif; font-size: clamp(22px, 3.2vw, 36px)}


/* Oculta visualmente pero conserva para SEO/lectores de pantalla */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

/* Asegúrate de no mostrar el colapsable .kv */
.product-card .kv { display: block; }       /* si querés mantener la clase */
.product-card .kv.visually-hidden { display: block; }


/* ===== Alertas del formulario ===== */
:root{
  --ok:#16a34a;         /* verde éxito */
  --danger:#ef4444;     /* rojo error  */
  --ink:#0F172A;        /* ya la usás como texto */
  --bg:#FFFCF6;         /* fondo claro */
}

#form-status { 
  display:none;
  width: 700px;
  justify-self: center;
  margin:16px 0 24px; 
  padding:14px 16px;
  border-radius:14px; 
  border:1px solid transparent;
  background: color-mix(in srgb, #ffffff 75%, var(--bg));
  box-shadow: 0 10px 30px rgba(15,23,42,.08);
  color: var(--ink);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center; 
  gap: .75rem;
}

@media (max-width: 777px) {
#form-status{ 
  width: auto;
  margin:16px 10px 24px 10px; 
  padding:14px 16px;
  border-radius:14px; 
  border:1px solid transparent;
  background: color-mix(in srgb, #ffffff 75%, var(--bg));
  box-shadow: 0 10px 30px rgba(15,23,42,.08);
  color: var(--ink);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center; 
  gap: .75rem;
	}
}

#form-status.show { 
  display:flex; 
  animation: alert-pop .35s ease;
}

#form-status .icon {
  width: 22px; height: 22px; flex: 0 0 auto;
  border-radius: 999px;
  display:inline-grid; place-items:center;
  font-weight: 800; font-size: 14px; color:#fff;
}

#form-status .msg { line-height: 1.35; }

#form-status .close {
  margin-left:auto; border:0; background:transparent;
  font-size: 20px; line-height: 1; cursor:pointer;
  padding: 4px 8px; border-radius: 10px; color: inherit;
}
#form-status .close:hover { background: rgba(0,0,0,.06); }

/* variantes */
#form-status.success {
  border-color: color-mix(in srgb, var(--ok) 35%, transparent);
  background: color-mix(in srgb, var(--ok) 12%, #fff);
}
#form-status.success .icon { background: var(--ok); }
#form-status.error {
  border-color: color-mix(in srgb, var(--danger) 35%, transparent);
  background: color-mix(in srgb, var(--danger) 10%, #fff);
}
#form-status.error .icon { background: var(--danger); }

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

/* si está vacío, ocultar */
#form-status:empty { display:none; }


/* .botones_redes{
  width: 500px;
  height: 50px;
  border-radius: 40px;
  background-color: #ffffff;
  display: flex;
  justify-self: center;
  margin: 30px;
} */

/* ==================  Social bar (Instagram + WhatsApp)  ================== */
.social-bar{
  margin: 22px auto 0;
  padding: 6px;                          /* margen interior de la barra */
  background: #fff;                      /* pastilla blanca */
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(15,23,42,.12);
  width: fit-content;                    /* solo lo que ocupa el contenido */
  max-width: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* base de cada píldora */
.pill{
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 400;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  transition: transform .12s ease, filter .15s ease;
}
.pill:hover{ transform: translateY(-1px); filter: brightness(1.05); }
.pill:active{ transform: translateY(0); }

/* --- contenedor de las píldoras (desktop) --- */
.pill-duo{
  display: flex;
  gap: 15px;
  justify-content: center;     /* centra los hijos */
  align-items: center;
  width: fit-content;          /* la caja mide lo que ocupan las pills */
  margin: 30px auto 15px;      /* centra la caja respecto al padre */
}
/* ---------- Instagram (píldora con icono + texto, gradient sutil) ---------- */
.pill.ig{
  color: white;
  background: #142b4f;
}
.pill.wa{width: 300px;}
.pill.ig{width: 300px;}
.pill.ig:hover{ background-position: 100% 0; }

.pill.ig img{ width: 40px !important; height: 40px !important; }
.pill.wa img{ width: 45px !important; height: 45px !important; }
.pill.wa{ background:#1a9246; }

/* Respeta preferencias de accesibilidad */
@media (prefers-reduced-motion: reduce){
  .pill, .pill:hover{ transition: none; transform: none; }
}

/* --- mobile --- */
@media (max-width:620px){
  .pill-duo{
    display: flex;
    flex-direction: column;
    width: 300px;              /* tu ancho fijo */
    margin: 25px auto;         /* ¡clave! centrado horizontal */
    text-align: center;
  }
}
/* ==== Fix mobile real (iOS/Android) para las píldoras ==== */

/* Evita que Safari/iOS agrande fuentes automáticamente */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Las píldoras no deben crecer/encogerse en flex */
.pill{ flex: 0 0 auto; }

/* Iconos con tamaño fijo y sin reglas globales que los estiren */
.pill .icon{
  width: 18px !important;
  height: 18px !important;
  max-width: none !important;
  flex: 0 0 18px;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
  opacity: .95;
}