/* ============================================================
   CEDILAB S.R.L. — HOJA DE ESTILOS
   ============================================================ */

:root{
  --magenta:      #ED018D;
  --navy:         #011087;
  --cyan:         #1D99D5;
  --magenta-dark: #CA308A;
  --white:        #FFFFFF;

  --navy-soft:    #EEF4FF;
  --navy-tint:    #F5F8FF;
  --cyan-soft:    #E8F5FC;
  --magenta-soft: #FDE6F4;
  --ink:          #0A1A6B;
  --muted:        #5A6B8C;
  --line:         #D9E5F0;
  --shadow:       0 18px 50px rgba(1,16,135,.09);

  /* Colores oficiales de redes sociales */
  --fb:           #1877F2;
  --fb-dark:      #0C5DC7;
  --wa:           #25D366;
  --wa-dark:      #128C4A;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:90px; }
body{
  margin:0;
  font-family:"DM Sans",sans-serif;
  color:var(--ink);
  background:var(--white);
  line-height:1.7;
  overflow-x:hidden;
}
h1,h2,h3,h4,h5,.navbar-brand{ font-family:"Manrope",sans-serif; }
a{ text-decoration:none; }

/* ============================================================
   ANIMACIONES GLOBALES
   ============================================================ */
@keyframes fadeInUp{
  from{ opacity:0; transform:translateY(30px); }
  to{ opacity:1; transform:translateY(0); }
}
@keyframes fadeInDown{
  from{ opacity:0; transform:translateY(-20px); }
  to{ opacity:1; transform:translateY(0); }
}
@keyframes logoFloat{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-10px); }
}
@keyframes pulseGlow{
  0%,100%{ box-shadow:0 0 0 4px rgba(255,255,255,.25), 0 18px 40px rgba(0,0,0,.35); }
  50%{ box-shadow:0 0 0 10px rgba(91,208,255,.25), 0 18px 50px rgba(29,153,213,.45); }
}
@keyframes shimmer{
  0%{ background-position:-200% center; }
  100%{ background-position:200% center; }
}
@keyframes floatIcon{
  0%,100%{ transform:translateY(0) rotate(0); }
  50%{ transform:translateY(-5px) rotate(3deg); }
}

/* Reveal on scroll */
.reveal{
  opacity:0;
  transform:translateY(35px);
  transition:opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
}
.reveal.visible{
  opacity:1;
  transform:translateY(0);
}
.reveal-delay-1{ transition-delay:.08s; }
.reveal-delay-2{ transition-delay:.16s; }
.reveal-delay-3{ transition-delay:.24s; }
.reveal-delay-4{ transition-delay:.32s; }
.reveal-delay-5{ transition-delay:.40s; }
.reveal-delay-6{ transition-delay:.48s; }

/* ---------- TOPBAR MEJORADO CON REDES SOCIALES ---------- */
.topbar{
  background:var(--navy);
  color:rgba(255,255,255,.88);
  font-size:.84rem;
  animation:fadeInDown .6s ease both;
  padding: 0.5rem 0;
}

.topbar a{ 
  color:#fff; 
  transition: color 0.3s ease;
}
.topbar a:hover {
  color: var(--cyan);
}

/* Contenedor Flex para separar izquierda (info) y derecha (redes + teléfono) */
.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Lado Izquierdo */
.topbar-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Lado Derecho */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Redes Sociales en Topbar */
.topbar-socials {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 15px;
  border-right: 1px solid rgba(255,255,255,0.2); /* Línea divisoria sutil */
}

.topbar-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

/* Colores oficiales al pasar el mouse */
.topbar-socials a:hover { transform: translateY(-2px); color: #fff; }
.topbar-socials a.fb:hover { background: #1877F2; }
.topbar-socials a.ig:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.topbar-socials a.tk:hover { background: #000000; }
.topbar-socials a.yt:hover { background: #FF0000; }
.topbar-socials a.gm:hover { background: #34A853; }

/* Teléfono */
.topbar-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Responsive para celulares */
@media (max-width: 768px) {
  .topbar-content { justify-content: center; text-align: center; }
  .topbar-left { display: none; } /* Ocultar ubicación en móviles para dar espacio */
  .topbar-socials { border-right: none; padding-right: 0; }
  .topbar-right { flex-direction: column; gap: 10px; }
}
/* ---------- NAVBAR ---------- */
.navbar{
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(12px);
  box-shadow:0 5px 24px rgba(1,16,135,.06);
  animation:fadeInDown .7s ease both;
}
.navbar-brand img{ width:70px; height:70px; object-fit:contain; transition:transform .35s ease; }
.navbar-brand:hover img{ transform:scale(1.06) rotate(-2deg); }
.nav-link{
  color:var(--navy); font-weight:600; font-size:.92rem;
  padding:.7rem .85rem!important; position:relative;
}
.nav-link::after{
  content:""; position:absolute; left:.85rem; right:.85rem; bottom:.45rem;
  height:2px; border-radius:2px;
  background:linear-gradient(90deg,var(--cyan),var(--magenta));
  transform:scaleX(0); transform-origin:left; transition:transform .3s ease;
}
.nav-link:hover::after,.nav-link.active::after{ transform:scaleX(1); }
.nav-link:hover,.nav-link.active{ color:var(--magenta); }

/* ---------- BOTONES GLOBALES ---------- */
.btn-main{
  background:var(--cyan); color:#fff; border:1px solid var(--cyan);
  border-radius:50px; padding:.82rem 1.35rem; font-weight:700;
  box-shadow:0 8px 20px rgba(29,153,213,.28); transition:.3s;
}
.btn-main:hover{
  background:var(--magenta); color:#fff; border-color:var(--magenta);
  transform:translateY(-2px); box-shadow:0 8px 22px rgba(237,1,141,.35);
}

/* ============================================================
   SECCIÓN ACCESOS RÁPIDOS
   ============================================================ */
/* ============================================================
   SECCIÓN ACCESOS RÁPIDOS (FONDO TURQUESA CLARO)
   ============================================================ */
#accesos-rapidos{
  position:relative;
  overflow:hidden;
  padding:90px 0 100px;
  background:
    radial-gradient(circle at 0% 0%, rgba(29,153,213,.15), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(237,1,141,.05), transparent 45%),
    linear-gradient(180deg, #F0F7FF 0%, #E8F5FC 60%, #FFFFFF 100%);
  isolation:isolate;
}

/* Patrón de puntos decorativo */
#accesos-rapidos::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:radial-gradient(rgba(29,153,213,.10) 1.5px, transparent 1.5px);
  background-size:24px 24px;
  -webkit-mask-image:radial-gradient(ellipse at center, #000 30%, transparent 75%);
          mask-image:radial-gradient(ellipse at center, #000 30%, transparent 75%);
  z-index:0;
  pointer-events:none;
}

/* Quitamos la imagen de la clínica y el degradado oscuro */
#accesos-rapidos::after{
  display: none;
}

#accesos-rapidos .container{
  position:relative;
  z-index:2;
}
.accesos-header{
  text-align:center;
  margin-bottom:56px;
  animation:fadeInUp .9s ease both;
}

.accesos-logo-wrap{
  width:110px;
  height:110px;
  margin:0 auto 20px;
  border-radius:50%;
  background:#fff;
  padding:10px;
  display:grid;
  place-items:center;
  animation:logoFloat 6s ease-in-out infinite, pulseGlow 4s ease-in-out infinite;
  position:relative;
  overflow:hidden;
  transition:transform .4s ease;
}
.accesos-logo-wrap:hover{ transform:scale(1.06); }

.accesos-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(1.6);   /* prueba 1.2 → 1.5 */
  transform-origin: center;
  background-color: #3b3b3b;
}
.accesos-title{
  color:#fff;
  font-family:"Manrope",sans-serif;
  font-weight:800;
  font-size:clamp(1.8rem,3.6vw,2.6rem);
  letter-spacing:-1px;
  line-height:1.15;
  margin:0 0 10px;
  text-shadow:0 2px 12px rgba(0,0,0,.35);
}
.accesos-title span{
  background:linear-gradient(90deg,#5BD0FF,#ED018D,#5BD0FF);
  background-size:200% auto;
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  animation:shimmer 4s linear infinite;
}
.accesos-subtitle{
  color:rgba(255,255,255,.85);
  font-size:1rem;
  font-weight:500;
  max-width:560px;
  margin:0 auto;
}

.accesos-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:18px;
  margin-bottom:40px;
}

.acceso-btn{
  --ac-1:#1D99D5;
  --ac-2:#011087;
  display:flex;
  align-items:center;
  gap:14px;
  padding:20px 22px;
  border-radius:18px;
  text-decoration:none;
  color:#fff;
  background:linear-gradient(135deg, var(--ac-1) 0%, var(--ac-2) 100%);
  box-shadow:
    0 14px 30px -10px rgba(0,0,0,.45),
    0 0 0 1px rgba(255,255,255,.10) inset;
  position:relative;
  overflow:hidden;
  transition:transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
  isolation:isolate;
  opacity:0;
  transform:translateY(30px);
}
.acceso-btn.visible{
  opacity:1;
  transform:translateY(0);
}

.acceso-btn::before{
  content:"";
  position:absolute;
  top:-50%; left:-60%;
  width:70%; height:200%;
  background:linear-gradient(120deg, transparent, rgba(255,255,255,.30), transparent);
  transform:skewX(-22deg);
  transition:left .7s cubic-bezier(.2,.8,.2,1);
  z-index:1;
  pointer-events:none;
}
.acceso-btn:hover::before{ left:130%; }

.acceso-btn:hover{
  transform:translateY(-6px) scale(1.02);
  box-shadow:
    0 26px 50px -10px rgba(0,0,0,.60),
    0 0 0 1px rgba(255,255,255,.20) inset;
}

.acceso-emoji{
  font-size:1.75rem;
  line-height:1;
  flex-shrink:0;
  width:54px;
  height:54px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.20);
  border:1.5px solid rgba(255,255,255,.45);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  position:relative;
  z-index:2;
  transition:transform .4s cubic-bezier(.2,.8,.2,1), background .4s;
  color:#fff;
}
.acceso-btn:hover .acceso-emoji{
  transform:scale(1.12) rotate(-6deg);
  background:rgba(255,255,255,.32);
  animation:floatIcon 2s ease-in-out infinite;
}

.acceso-text{
  font-family:"Manrope",sans-serif;
  font-weight:800;
  font-size:.98rem;
  line-height:1.25;
  letter-spacing:.2px;
  position:relative;
  z-index:2;
  text-shadow:0 1px 2px rgba(0,0,0,.20);
}
.acceso-text small{
  display:block;
  font-size:.74rem;
  font-weight:600;
  opacity:.85;
  margin-top:3px;
  text-transform:none;
  letter-spacing:0;
}

.acceso-btn-1{ --ac-1:#EF4444; --ac-2:#B91C1C; }
.acceso-btn-2{ --ac-1:#F59E0B; --ac-2:#B45309; }
.acceso-btn-3{ --ac-1:#FB923C; --ac-2:#C2410C; }
.acceso-btn-4{ --ac-1:#A855F7; --ac-2:#6D28D9; }
.acceso-btn-5{ --ac-1:#10B981; --ac-2:#047857; }
.acceso-btn-6{ --ac-1:#3B82F6; --ac-2:#1D4ED8; }
.acceso-btn-7{ --ac-1:#D946EF; --ac-2:#86198F; }

.accesos-especiales{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:18px;
  padding-top:36px;
  border-top:1px solid rgba(255,255,255,.20);
}

.acceso-btn-especial{
  --ac-1:#011087;
  --ac-2:#ED018D;
  display:flex;
  align-items:center;
  gap:14px;
  padding:22px 24px;
  border-radius:18px;
  text-decoration:none;
  color:#fff;
  background:linear-gradient(135deg, var(--ac-1) 0%, var(--ac-2) 100%);
  box-shadow:
    0 16px 36px -10px rgba(237,1,141,.50),
    0 0 0 1px rgba(255,255,255,.15) inset;
  position:relative;
  overflow:hidden;
  transition:transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
  opacity:0;
  transform:translateY(30px);
}
.acceso-btn-especial.visible{
  opacity:1;
  transform:translateY(0);
}
.acceso-btn-especial:hover{
  transform:translateY(-6px) scale(1.02);
  box-shadow:
    0 26px 50px -10px rgba(237,1,141,.75),
    0 0 0 1px rgba(255,255,255,.25) inset;
  color:#fff;
}
.acceso-btn-especial::before{
  content:"";
  position:absolute;
  top:-50%; left:-60%;
  width:70%; height:200%;
  background:linear-gradient(120deg, transparent, rgba(255,255,255,.30), transparent);
  transform:skewX(-22deg);
  transition:left .7s cubic-bezier(.2,.8,.2,1);
  z-index:1;
  pointer-events:none;
}
.acceso-btn-especial:hover::before{ left:130%; }

.acceso-btn-especial .acceso-emoji{
  background:rgba(255,255,255,.22);
}

.acceso-especial-1{ --ac-1:#0A2BA8; --ac-2:#ED018D; }
.acceso-especial-2{ --ac-1:#1D99D5; --ac-2:#011087; }
.acceso-especial-3{ --ac-1:#ED018D; --ac-2:#7A0F8E; }


/* ============================================================
   FOOTER SIMPLIFICADO
   ============================================================ */
.footer-simple {
  background: var(--navy);
  color:rgba(255,255,255,.88);
  padding: 22px 0;
  font-size: 0.84rem;
  font-family: "DM Sans", sans-serif;
  animation:fadeInUp .8s ease both;
}

.footer-simple-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.88);
}

.footer-copy span {
  color: rgba(255, 255, 255, 0.65);
}

.footer-dev {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.70);
}

.buyercat-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--cyan);
  font-weight: 700;
  text-decoration: none;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.buyercat-link:hover {
  background: rgba(29, 153, 213, 0.25);
  color: #fff;
  transform: translateY(-2px);
}

.cat-icon {
  font-size: 0.95rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.buyercat-link:hover .cat-icon {
  transform: scale(1.2) rotate(-10deg);
}


/* ============================================================
   BOTONES FLOTANTES
   ============================================================ */
.floating-social{ position:fixed; right:22px; bottom:22px; z-index:1050; display:flex; flex-direction:column; gap:12px; }
.float-btn{
  display:inline-flex; align-items:center; gap:0; height:58px; padding:0;
  border-radius:50px; color:#fff; text-decoration:none; font-weight:700; font-size:.92rem;
  overflow:hidden; box-shadow:0 10px 26px rgba(0,0,0,.22);
  transition:transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, gap .35s, padding .35s;
}
.float-btn-icon{ width:58px; height:58px; display:grid; place-items:center; font-size:1.65rem; flex-shrink:0; border-radius:50%; }
.float-btn-text{
  white-space:nowrap; max-width:0; opacity:0; overflow:hidden;
  transition:max-width .4s cubic-bezier(.2,.8,.2,1), opacity .3s, padding-right .4s; padding-right:0;
}
.float-btn:hover{ transform:translateY(-4px); gap:10px; padding-left:18px; color:#fff; }
.float-btn:hover .float-btn-text{ max-width:120px; opacity:1; padding-right:4px; }

.float-wa{ background:linear-gradient(135deg,var(--wa) 0%,var(--wa-dark) 100%); box-shadow:0 10px 26px rgba(37,211,102,.45); }
.float-wa:hover{ box-shadow:0 16px 36px rgba(37,211,102,.65); }
.float-fb{ background:linear-gradient(135deg,var(--fb) 0%,var(--fb-dark) 100%); box-shadow:0 10px 26px rgba(24,119,242,.45); }
.float-fb:hover{ box-shadow:0 16px 36px rgba(24,119,242,.65); }

.back-top{
  position:fixed; right:26px; bottom:152px; z-index:1040;
  width:44px; height:44px; border:0; border-radius:50%; background:var(--navy); color:#fff;
  display:none; place-items:center; font-size:1.05rem; cursor:pointer;
  box-shadow:0 8px 20px rgba(1,16,135,.35);
  transition:transform .3s cubic-bezier(.2,.8,.2,1), background .3s, box-shadow .3s;
}
.back-top.show{ display:grid; }
.back-top:hover{ transform:translateY(-4px) scale(1.08); background:var(--magenta); box-shadow:0 12px 28px rgba(237,1,141,.45); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:991.98px){
  #accesos-rapidos{ padding:70px 0 80px; }
  .accesos-logo-wrap{ width:90px; height:90px; }
  .accesos-grid{ grid-template-columns:repeat(auto-fit, minmax(190px, 1fr)); gap:14px; }
  .acceso-btn{ padding:16px 18px; gap:12px; }
  .acceso-emoji{ width:48px; height:48px; font-size:1.5rem; }
  .acceso-text{ font-size:.9rem; }
}

@media (max-width:575.98px){
  #accesos-rapidos{ padding:56px 0 64px; }
  .accesos-header{ margin-bottom:36px; }
  .accesos-logo-wrap{ width:80px; height:80px; padding:8px; }
  .accesos-title{ font-size:1.6rem; }
  .accesos-subtitle{ font-size:.9rem; }
  .accesos-grid{ grid-template-columns:1fr 1fr; gap:10px; }
  .acceso-btn{ padding:14px 10px; gap:10px; border-radius:14px; flex-direction:column; text-align:center; }
  .acceso-emoji{ width:46px; height:46px; font-size:1.4rem; margin-bottom:4px; }
  .acceso-text{ font-size:.8rem; }
  .acceso-text small{ font-size:.66rem; }
  .accesos-especiales{ grid-template-columns:1fr; gap:12px; padding-top:24px; }
  .acceso-btn-especial{ padding:18px 18px; }

  .footer-simple {
    padding: 18px 0;
    font-size: 0.78rem;
  }
  .footer-simple-content {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .floating-social{ right:16px; bottom:16px; gap:10px; }
  .float-btn,.float-btn-icon{ width:52px; height:52px; }
  .float-btn-icon{ font-size:1.45rem; }
  .back-top{ right:18px; bottom:138px; width:40px; height:40px; }
}

@media (prefers-reduced-motion: reduce){
  *,
  *::before,
  *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .acceso-btn, .acceso-btn-especial{
    opacity:1 !important;
    transform:none !important;
  }
}
/* ============================================================
   FIX: evitar que el observer oculte bloques altos (lista análisis)
   ============================================================ */

/* La tarjeta de solicitud de análisis es demasiado alta:
   el IntersectionObserver nunca dispara en móvil.
   La mostramos siempre visible. */
.solicitud-main-card.reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* En móvil, desactivar reveal en TODO (no aporta y rompe) */
@media (max-width: 991.98px) {
  .reveal,
  .acceso-btn,
  .acceso-btn-especial {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
