
  :root{
  --verde:#28A745;
  --azul:#1F3C88;
  --blanco:#ffffff;
}




*,
*::before,
*::after{
  box-sizing: border-box;
}

body{
  margin:0;
  font-family:'Poppins', sans-serif;
  background:linear-gradient(180deg,#f4fff7,#ffffff);
}


/*****barra superio****/
.top-bar{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:34px;
  background:linear-gradient(90deg,var(--azul),var(--verde));
  color:#fff;
  font-size:0.75rem;
  font-weight:600;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:1000;
}


/****si queremos colocar una imagen al fondo***/
/*.card-body.theme-image{
  background:
    linear-gradient(
      rgba(255,255,255,0.85),
      rgba(255,255,255,0.85)
    ),
    url('../img/bg-lab.jpg') center/cover no-repeat;
}
*/


.digital-card{
  max-width:420px;
  margin:auto;
 /* padding:2rem 1.5rem 6rem;*/
  padding-bottom:8rem; /* WhatsApp + footer */
  
  padding-top:3rem; /****se agrego por la barra superior ****/
}





.card-header{
  text-align:center;
  margin-bottom:2rem;
  padding-top:0.6rem;
}


.card-logo{
  max-width:200px;
  width:100%;
  height:auto;
  margin-bottom: 10px;
  margin:0 auto 0.3rem; /* 👈 antes seguro era 0.8rem o más */
  display:block;
  animation: logoBreath 6s ease-in-out infinite;
  
}

@keyframes logoBreath{
  0%{ transform:scale(1); }
  50%{ transform:scale(1.035); }
  100%{ transform:scale(1); }
}


/* MÓVIL */
@media (max-width: 480px){
  .card-logo{
    max-width: 190px;
  }
}

/* TABLET / PC */
@media (min-width: 768px){
  .card-logo{
    max-width: 180px;
  }
}


.card-header {
  text-align: center;
  padding-bottom: 10px;
}


.card-header h1{
  font-size:1.4rem;
  color:var(--azul);
  margin-top:6px;
  margin-bottom:0.2rem;
  line-height:1.2;
}


/*******diseño de cada boton***/

/* =========================
   CARD BASE
========================= */

.card-item{
  margin-bottom: 1rem;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
}

/* SUMMARY */
summary{
  font-size:1.3rem;
}

.card-content,
.card-content p,
.horario-row span,
.horario-row strong{
  font-size:0.95rem;
}

.card-header h1{
  font-size:1.rem;
}




.card-item summary{
  padding: 1rem 1.2rem;
 /* font-weight: 600;*/
  cursor: pointer;
  list-style: none;
}

/*
.card-item summary{
  padding: 1.1rem 1.3rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--azul);
  background: transparent;
}

details[open] summary{
  background: rgba(40,167,69,0.08);
  color: var(--azul);
}*/


details[open] summary {
  background: rgba(40,167,69,0.08);
}

details summary {
  transition: background .25s ease;
}


/* CONTENIDO */
.card-content{
  padding: 1rem 1.2rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.card-content a{
  color:var(--verde);
  font-weight:600;
  text-decoration:none;
}
.card-content a {
  transition: transform .2s ease, opacity .2s ease;
}

.card-content a:active {
  transform: scale(0.97);
  opacity: 0.85;
}



/* WHATSAPP */
.card-whatsapp{
  position:fixed;
  bottom: 34px; /* 👈 deja espacio para el footer */
  /*bottom:0;*/
  left:0;
  width:100%;
  padding:1rem;
  z-index: 1000;/**/
  text-align:center;
  background:linear-gradient(135deg,var(--verde),#1e7e34);
  color:#fff;
  font-weight:700;
  text-decoration:none;
}




/* PC */
@media(min-width:1024px){
  body{
    display:flex;
    justify-content:center;
    align-items:center;
    height:100vh;
  }

  .digital-card{
    border-radius:28px;
    box-shadow:0 30px 80px rgba(0,0,0,0.15);
  }
}


/******redes**** */
/* CONTENEDOR GENERAL DE ITEMS */

/*quienes somos*/

.card-item-quienessomos{
  margin-bottom: 1rem;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  /*padding: 14px 16px 18px;*/
}

.quienessomos-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px dashed #dce3ea;
}

.quienessomos-row:last-child {
  border-bottom: none;
}

.quienessomos-row span {
  color: #4a5a6a;
}

.quienessomos-row strong {
  color: #1b2b3a;
  font-weight: 600;
}

.quienessomos-note {
  margin-top: 10px;
  font-size: 13px;
  color: #2f7fd6;
  background: #eaf3ff;
  padding: 8px;
  border-radius: 8px;
  text-align: center;
}

.card-item-quienessomos[open] .quienessomos-content {
  background: #f7f9fb;
  border-radius: 12px;
  padding: 12px;
}



/*web*/

.card-item-web{
  margin-bottom: 1rem;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  /*padding: 14px 16px 18px;*/
}

.web-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px dashed #dce3ea;
}

.web-row:last-child {
  border-bottom: none;
}

.web-row span {
  color: #4a5a6a;
}

.web-row strong {
  color: #1b2b3a;
  font-weight: 600;
}

.web-note {
  margin-top: 10px;
  font-size: 13px;
  color: #2f7fd6;
  background: #eaf3ff;
  padding: 8px;
  border-radius: 8px;
  text-align: center;
}

.card-item-web[open] .web-content {
  background: #f7f9fb;
  border-radius: 12px;
  padding: 12px;
}

/***enunciado que muestra abajo del logo*/
.web-hint{
  margin-top:7px;
  font-size:.95rem;
  color:#666;
  opacity:.85;

  text-align:center;
}





/*redes sociales*/


.card-item-social{
  margin-bottom: 1rem;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  /*padding: 14px 16px 18px;*/
}

.card-item-social{
  margin-bottom: 1rem;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  /*padding: 14px 16px 18px;*/
}

.social-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px dashed #dce3ea;
}

.social-row:last-child {
  border-bottom: none;
}

.social-row span {
  color: #4a5a6a;
}

.social-row strong {
  color: #1b2b3a;
  font-weight: 600;
}

.social-note {
  margin-top: 10px;
  font-size: 13px;
  color: #2f7fd6;
  background: #eaf3ff;
  padding: 8px;
  border-radius: 8px;
  text-align: center;
}

.card-item-social[open] .social-content {
  background: #f7f9fb;
  border-radius: 12px;
  padding: 12px;
}


/*promociones*/

.card-item-promociones{
  margin-bottom: 1rem;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  /*padding: 14px 16px 18px;*/
}

.promociones-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px dashed #dce3ea;
}

.promociones-row:last-child {
  border-bottom: none;
}

.promociones-row span {
  color: #4a5a6a;
}

.promociones-row strong {
  color: #1b2b3a;
  font-weight: 600;
}

.promociones-note {
  margin-top: 10px;
  font-size: 13px;
  color: #2f7fd6;
  background: #eaf3ff;
  padding: 8px;
  border-radius: 8px;
  text-align: center;
}

.card-item-promociones[open] .promociones-content {
  background: #f7f9fb;
  border-radius: 12px;
  padding: 12px;
}






/* PROMOCIONES */
.card-item-promociones {
  position: relative;
}

.promo-content {
  position: relative;
  text-align: center;
}

/* BADGE */
.promo-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff5252, #ff1744);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  animation: pulse 1.8s infinite;
}

/* TEXTO */
.promo-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--azul);
  margin: 0.5rem 0;
}

/* FECHA */
.promo-date {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1rem;
}

/* CTA */
.promo-cta {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--verde), #1e7e34);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.promo-cta{
  color:#ffffff !important;
}


.promo-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(40,167,69,0.35);
}


/* MICRO-ANIMACIÓN BADGE */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}


/* ANIMACIÓN AL ABRIR */
.card-item[open] .card-content{
  animation: fadeSlide 0.35s ease;
}

@keyframes fadeSlide{
  from{
    opacity:0;
    transform: translateY(-6px);
  }
  to{
    opacity:1;
    transform: translateY(0);
  }
}

/********sliderpromocino */
/* SLIDER */
.promo-slider{
  position: relative;
  overflow: hidden;
}

.promo-slide{
  display: none;
  animation: fadeSlide 0.4s ease;
}

.promo-slide.active{
  display: block;
}

/* DIVISIÓN PROMOCIONES */
.promo-divider{
  margin: 1.6rem 0 1rem;
  text-align: center;
  position: relative;
}

.promo-divider span{
  font-size: 0.75rem;
  font-weight: 600;
  color: #888;
  background: #fff;
  padding: 0 10px;
  position: relative;
  z-index: 1;
}

.promo-divider::before{
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0,0,0,0.08);
  z-index: 0;
}



/*conctatanos*/

.card-item-conctato{
  margin-bottom: 1rem;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  /*padding: 14px 16px 18px;*/
}

.conctato-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px dashed #dce3ea;
}

.conctato-row:last-child {
  border-bottom: none;
}

.conctato-row span {
  color: #4a5a6a;
}

.conctato-row strong {
  color: #1b2b3a;
  font-weight: 600;
}

.conctato-note {
  margin-top: 10px;
  font-size: 13px;
  color: #2f7fd6;
  background: #eaf3ff;
  padding: 8px;
  border-radius: 8px;
  text-align: center;
}

.card-item-conctato[open] .contacto-content {
  background: #f7f9fb;
  border-radius: 12px;
  padding: 12px;
}



/*.card-item-conctatanos{
  margin-bottom: 1rem;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  padding: 14px 16px 18px;
}*/

.contact-link{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 0;
}


/****** HORARIOS ****/

.card-item-horario  {
  margin-bottom: 1rem;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
}



.horario-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px dashed #dce3ea;
}

.horario-row:last-child {
  border-bottom: none;
}

.horario-row span {
  color: #4a5a6a;
}

.horario-row strong {
  color: #1b2b3a;
  font-weight: 600;
}

.horario-note {
  margin-top: 10px;
  font-size: 13px;
  color: #2f7fd6;
  background: #eaf3ff;
  padding: 8px;
  border-radius: 8px;
  text-align: center;
}


/***donde indica si esta cerrado***/
.estado-lab {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eef2f6;
  color: #4a5a6a;
}

.estado-lab.abierto {
  background: #e9f7ef;
  color: #1e7e34;
}

.estado-lab.cerrado {
  background: #fdecea;
  color: #b02a37;
}

.estado-lab .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}



.card-item-horario[open] .horario-content {
  background: #f7f9fb;
  border-radius: 12px;
  padding: 12px;
}


.card-item[open] .card-content{
  animation: cardFadeUp .35s cubic-bezier(.22,.61,.36,1) both;
}


/* REDES */

.social-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* BOTÓN ICONO */
.icon-btn {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,0.1);
  background: transparent;
  transition: all 0.25s ease;
}

.icon-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.icon-btn:hover {
  transform: translateY(-3px) scale(1.03);
}


/* HOVER */
.icon-btn:hover {
  transform: translateY(-3px);
  background: rgba(0,0,0,0.04);
}

/* COLORES */
.icon-btn.facebook { color: #1877f2; }
.icon-btn.instagram { color: #c13584; }
.icon-btn.whatsapp { color: #25d366; }

/* PC */
@media (min-width: 768px) {
  .social-icons {
    justify-content: flex-start;
  }
}



/* CONTENIDO INTERNO TARJETA */
.logo-link{
  display:flex;
  justify-content:center;
  max-width:200px;   /* controla el área */
  margin:0 auto;
 
}

.web-logo{
  max-width:180px;
  width:100%;
  height:auto;
  transition:transform .35s ease;
}

.logo-link:hover .web-logo{
  transform:scale(1.05);
}




/* =====================
   QR VISIBLE TARJETA
===================== */
/*************** qr*************/


/*************** qr*************/
.qr-card{
  margin:24px 16px;
  padding:22px 20px 26px;
  background:#fff;
  border-radius:20px;
  box-shadow:
    0 18px 40px rgba(0,0,0,.18);
  text-align:center;
  position:relative;
  overflow:hidden;
}

.qr-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at top,
      rgba(177,18,38,.08),
      transparent 60%);
  pointer-events:none;
}


.qr-title{
  font-size:.85rem;
  color:#555;
  font-weight:500;
  margin-bottom:14px;
}


.qr-card img{
  width:140px;
  max-width:100%;
}

#qrCode{
  display:flex;
  justify-content:center;
  margin:0 auto 10px;
  position:relative;
  padding:16px;
  border-radius:22px;
  background:#fff;

 /* box-shadow:
    inset 0 0 0 2px rgba(0,0,0,.06),
    0 10px 24px rgba(0,0,0,.18);*/
    box-shadow:
    inset 0 0 0 3px #1fb600, /* verde LP */
    0 14px 28px rgba(0,0,0,.25);

    transition:transform .25s ease, box-shadow .25s ease;
}


/*
#qrCode:hover{
  transform:scale(1.03);
  box-shadow:
    inset 0 0 0 3px #1fb600,
    0 20px 40px rgba(0,0,0,.35);
}
*/


#qrCode::after{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:26px;
  background:
    linear-gradient(135deg,
      rgba(31,182,0,.35),
      rgba(0,0,0,.15),
      rgba(31,182,0,.35));
  z-index:-1;
}



.qr-url{
  display:block;
  font-size:.7rem;
  color:#777;
  margin-top:6px;
}



/*******footer diseño***/


.card-footer-fixed{
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 34px;
  background: linear-gradient(90deg, var(--azul), #16306a);
  color: #fff;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 998; /* menor que WhatsApp */
}

.card-footer-fixed a{
  color:#fff;
  font-weight:600;
  text-decoration:none;
}



.hide-footer .card-footer-fixed{
  transform: translateY(100%);
}


/* ================================
   OCULTAR FLECHA <details><summary>
   SOLUCIÓN DEFINITIVA
================================ */

/* Chrome, Edge, Safari */
details > summary::-webkit-details-marker {
  display: none;
}

/* Firefox + general */
details > summary {
  list-style: none;
}

/* Blindaje total (por si algún reset agrega algo) */
details > summary::before,
details > summary::after {
  content: none !important;
}



/* 🎬 Micro-animación acordeón */
.card-item[open] .card-content{
  animation: cardFadeUp .45s ease both;
}

@keyframes cardFadeUp{
  from{
    opacity:0;
    transform:translateY(8px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}




/****boton de compartir***/
.card-share{
  display:block;
  width:auto;
  padding:0.9rem;
  text-align:center;
  background:#eef2f6;
  color:#1F3C88;
  font-weight:700;
  border-radius:14px;
  text-decoration:none;
  margin:1rem 0;
  transition:transform .2s ease, background .2s ease;
}




.card-share:active{
  transform:scale(0.97);
}
