/* ==========================================================================
   Informático Online — estilos modernos
   ========================================================================== */
:root {
  --grad-purple-start: #5b4cf9;
  --grad-purple-end: #b93cff;
  --grad-cyan-start: #38d4e8;
  --grad-cyan-end: #4bf0c8;
  --color-text: #3c3c4a;
  --color-text-light: #6f6f85;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f6fd;
  --color-dark: #12121e;
  --radius: 18px;
  --radius-sm: 12px;
  --max-width: 1200px;
  --header-height: 78px;
  --shadow-soft: 0 10px 30px rgba(30, 20, 90, .08);
  --shadow-lift: 0 20px 45px rgba(91, 76, 249, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; }
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  color: var(--color-dark);
  letter-spacing: -.02em;
}
.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  max-width: 620px;
  margin: 0 auto 56px;
  font-size: 1.05rem;
}

.text-gradient {
  background: linear-gradient(90deg,
    #2ecc71, #38d4e8,
    #4bf0c8, #2ecc71);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0.5px #fff;
  paint-order: stroke fill;
  animation: text-gradient-move 6s linear infinite;
}
@keyframes text-gradient-move {
  0% { background-position: 300% 50%; }
  100% { background-position: 0% 50%; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 34px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}
.btn:hover { transform: translateY(-3px); }

.btn-gradient {
  background: linear-gradient(135deg, var(--grad-purple-start) 0%, var(--grad-purple-end) 100%);
  color: #fff;
  box-shadow: var(--shadow-lift);
}
.btn-gradient:hover { box-shadow: 0 24px 50px rgba(91,76,249,.32); }

.hero-actions .btn-gradient { border: 1.5px solid rgba(255,255,255,.5); }

.btn-ghost {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.5);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.18); }

/* Fondo oscuro con un desenfoque muy leve detrás de los textos blancos de las
   tarjetas de Servicios, para que la foto de fondo se siga viendo definida */
.servicio-glass {
  background: rgba(0,0,0,.45);
  border: 1.5px solid rgba(255,255,255,.3);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 14px;
  padding: 16px;
}

/* Enlace "Obtener servicio" de las tarjetas de Servicios: la regla "#nuevo-contenido a {
   color: inherit; }" tiene más especificidad que las utilidades de color de Tailwind,
   así que forzamos aquí el blanco explícitamente. */
#nuevo-contenido .servicio-cta { color: #fff; }
#nuevo-contenido .servicio-cta--pink:hover { color: #f9a8d4; }
#nuevo-contenido .servicio-cta--sky:hover { color: #7dd3fc; }

/* Misma franja oscura con desenfoque leve que el texto de confianza de la cabecera,
   aplicada a la fila inferior de cada tarjeta de Servicios (p.ej. "Hasta 10 ordenadores") */
.servicio-footer {
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 0 0 0.75rem 0.75rem;
  padding-top: 0.4rem !important;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-bottom: 0.4rem;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  margin-bottom: -1.5rem;
}

.btn-outline {
  background: linear-gradient(135deg, var(--grad-cyan-start) 0%, var(--grad-cyan-end) 100%);
  color: #073b3b;
  box-shadow: 0 14px 30px rgba(56,212,232,.28);
}
.btn-outline svg { flex-shrink: 0; }

/* ---------------- HEADER ---------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(20,20,40,.06);
  height: var(--header-height);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { flex-shrink: 1; min-width: 0; }
.logo img {
  width: auto;
  height: auto;
  max-height: 46px;
  max-width: 100%;
  aspect-ratio: 2098 / 496; /* proporción real del logo, evita deformaciones */
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .02em;
  color: var(--color-dark);
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: linear-gradient(to right, var(--grad-purple-start), var(--grad-purple-end));
  transition: width .25s ease;
}
.main-nav a:hover::after { width: 100%; }
.main-nav a:hover { color: var(--grad-purple-start); }

.has-dropdown { position: relative; }
.dropdown {
  list-style: none;
  margin: 0; padding: 8px 0;
  position: absolute;
  top: 100%; left: 0;
  background: #fff;
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-sm);
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s ease;
}
.has-dropdown:hover .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown li a { display: block; padding: 10px 20px; }
.dropdown li a::after { display: none; }
.dropdown li a:hover { background: var(--color-bg-alt); }

.header-phone {
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--grad-purple-start), var(--grad-purple-end));
  padding: 10px 20px;
  border-radius: 999px;
  font-size: .9rem;
  box-shadow: 0 10px 24px rgba(91,76,249,.25);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 3px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: all .25s ease;
}

.mobile-actions {
  display: none;
  align-items: center;
  gap: 10px;
}
.mobile-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: #fff;
  flex-shrink: 0;
}
.mobile-icon-btn img { width: 20px; height: 20px; filter: brightness(0) invert(1); }
.mobile-call { background: #ef16eb; }
.mobile-whatsapp { background: #25d366; }

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  min-height: 660px;
  margin-top: var(--header-height);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #100e24 url('../img/teclado3-scaled.jpg') center/cover no-repeat;
  color: #fff;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(20,14,50,.5) 0%, rgba(91,76,249,.3) 55%, rgba(185,60,255,.25) 100%);
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  z-index: 0;
}
.blob-1 {
  width: 380px; height: 380px;
  background: var(--grad-cyan-start);
  top: -120px; right: -80px;
}
.blob-2 {
  width: 320px; height: 320px;
  background: var(--grad-purple-end);
  bottom: -140px; left: -60px;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.status-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 0 0 rgba(46,204,113,.6);
  animation: status-pulse 2s infinite;
  flex-shrink: 0;
}
.status-dot.offline {
  background: #ff4d4d;
  box-shadow: 0 0 0 0 rgba(255,77,77,.6);
  animation: status-pulse-off 2s infinite;
}
@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(46,204,113,.6); }
  70% { box-shadow: 0 0 0 8px rgba(46,204,113,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}
@keyframes status-pulse-off {
  0% { box-shadow: 0 0 0 0 rgba(255,77,77,.6); }
  70% { box-shadow: 0 0 0 8px rgba(255,77,77,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,77,77,0); }
}
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); font-weight: 800; line-height: 1.15; margin-bottom: 18px; letter-spacing: -.02em; }
.hero p { font-size: 1.15rem; margin-bottom: 34px; opacity: .92; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 6px;
  /* Se sale del contenedor centrado para ocupar el ancho completo de la imagen, de lado a lado */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 18px;
  padding: 10px 24px;
  box-sizing: border-box;
  font-size: .85rem;
  letter-spacing: .01em;
  color: #fff;
  background: rgba(0,0,0,.45);
  border-top: 1.5px solid rgba(255,255,255,.3);
  border-bottom: 1.5px solid rgba(255,255,255,.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ---------------- COMO FUNCIONA ---------------- */
.como-funciona { background: var(--color-bg-alt); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}
.step {
  text-align: left;
  background: #fff;
  padding: 40px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.step-number { width: 52px; margin-bottom: 20px; }
.step h3 { color: var(--color-dark); margin-bottom: 10px; font-size: 1.15rem; }
.step .disclaimer { font-size: .8rem; color: var(--color-text-light); font-style: italic; }

/* ---------------- NOSOTROS ---------------- */
.nosotros-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.bulb-icon { width: 56px; margin-bottom: 20px; }
.nosotros-text h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; color: var(--color-dark); margin-bottom: 16px; letter-spacing: -.02em; }
.check-list { list-style: none; padding: 0; margin: 28px 0 0; }
.check-list li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 16px;
  font-weight: 600;
  color: var(--color-dark);
}
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-purple-start), var(--grad-purple-end));
  color: #fff;
  font-size: .75rem;
  display: flex; align-items: center; justify-content: center;
}
.nosotros-img img { border-radius: var(--radius); box-shadow: var(--shadow-soft); }

/* ---------------- TESTIMONIOS ---------------- */
.testimonios { background: var(--color-bg-alt); }

/* Carrusel: en escritorio una fila, en móvil dos filas, desplazamiento continuo de izquierda a derecha */
.testimonios-marquee {
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.marquee-row {
  display: flex;
  gap: 26px;
  width: max-content;
  animation: marquee-ltr 38s linear infinite;
}
.marquee-row:hover { animation-play-state: paused; }
.marquee-row.row-2 { display: none; animation-duration: 34s; }

@keyframes marquee-ltr {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.testimonio-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease;
  width: 340px;
  flex-shrink: 0;
}
.testimonio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.testimonio-card img.avatar {
  width: 54px; height: 54px; border-radius: 50%; margin-bottom: 14px; object-fit: cover;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(91,76,249,.25);
}
.testimonio-card h3 { margin: 0 0 2px; font-size: 1.05rem; color: var(--color-dark); }
.testimonio-card .role { font-size: .78rem; color: var(--grad-purple-start); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; display: block; }
.testimonio-card p { font-size: .92rem; color: var(--color-text-light); }
.testimonio-card .stars { width: 100px; margin-top: 14px; }

.testimonios-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--grad-purple-start), var(--grad-purple-end));
  border-radius: var(--radius);
  padding: 56px 32px;
  color: #fff;
}
.testimonios-cta h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.testimonios-cta p { opacity: .92; margin-bottom: 28px; }
.testimonios-cta .btn-gradient { background: #fff; color: var(--grad-purple-start); box-shadow: 0 14px 30px rgba(0,0,0,.18); }

/* ---------------- SERVICIOS ---------------- */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.servicio-card {
  position: relative;
  min-height: 270px;
  border-radius: var(--radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-soft);
  transition: transform .35s ease, box-shadow .35s ease;
}
.servicio-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--shadow-lift); }
.servicio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,18,30,0) 20%, rgba(18,18,30,.55) 60%, rgba(91,76,249,.75) 100%);
  transition: opacity .3s ease;
}
.servicio-content {
  position: relative;
  z-index: 1;
  padding: 26px;
  color: #fff;
}
.servicio-content h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.servicio-content p {
  font-size: .88rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(10px);
  transition: all .6s ease .15s;
}
.servicio-card.revealed .servicio-content p {
  max-height: 200px;
  opacity: .95;
  margin-top: 6px;
  transform: translateY(0);
}

/* ---------------- FAQ ---------------- */
.faq { background: var(--color-bg-alt); }
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  padding: 6px 24px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 700;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--grad-purple-start);
  flex-shrink: 0;
  transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 18px; margin: 0; color: var(--color-text-light); font-size: .92rem; }

/* ---------------- CONTACTO ---------------- */
.contacto {
  background: radial-gradient(circle at 20% 20%, #241f4d 0%, #12121e 60%);
  color: #fff;
  text-align: center;
}
.contacto .section-title { color: #fff; }
.contacto p { color: #b9b9d4; }
.contacto-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 36px;
}

/* ---------------- FOOTER ---------------- */
.site-footer {
  background-color: #0c0c16;
  background-size: cover;
  background-position: center;
  color: #9a9ab5;
  padding: 34px 0;
  font-size: .85rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer a { color: #9a9ab5; text-decoration: underline; }
.site-footer a:hover { color: #fff; }
.emergencia a { color: var(--grad-cyan-end); font-weight: 700; text-decoration: none; }

/* ---------------- BACK TO TOP ---------------- */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-purple-start), var(--grad-purple-end));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .3s ease;
  z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

/* ---------------- REVEAL ON SCROLL ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .nosotros-grid { grid-template-columns: 1fr; }
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 72px 0; }
}

@media (min-width: 721px) {
  .hero { background: #100e24 url('../img/webservice.jpg') center/cover no-repeat; }
  /* En escritorio el fondo de la franja no debe llegar hasta el borde derecho de la
     pantalla: solo debe cubrir el ancho real del texto, no todo el ancho completo. */
  .hero-trust {
    width: auto;
    position: static;
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: 0;
    display: inline-flex;
    border-radius: 999px;
    border-top: none;
    border-bottom: none;
    border: 1.5px solid rgba(255,255,255,.3);
  }
}

@media (max-width: 720px) {
  .header-inner { gap: 12px; }
  .logo img { max-height: 52px; }
  .hero-overlay {
    background: linear-gradient(120deg, rgba(20,14,50,.01) 0%, rgba(91,76,249,.01) 55%, rgba(185,60,255,.01) 100%);
  }
  /* Los círculos difuminados de color quedan demasiado grandes/intensos en pantallas
     estrechas y tapan la foto: se ocultan en móvil. */
  .hero-blob { display: none; }
  /* Letra más pequeña para que el texto de confianza del hero ocupe solo 2 líneas */
  .hero-trust { font-size: 1rem !important; }
  .main-nav {
    position: fixed;
    top: var(--header-height); left: 0; right: 0;
    background: #fff;
    max-height: 0;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 480px; }
  .main-nav ul { flex-direction: column; padding: 16px 24px; gap: 0; }
  .main-nav li { border-bottom: 1px solid #eee; }
  .main-nav a { display: block; padding: 14px 0; }
  .dropdown { position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .nav-toggle { display: flex; }
  .header-phone { display: none; }
  .mobile-actions { display: flex; }
  .servicios-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
  .testimonio-card { width: 260px; padding: 24px; }
}

/* ---------------- COOKIE BANNER ---------------- */
.btn-ghost-dark {
  background: transparent;
  color: var(--color-dark);
  border: 1.5px solid rgba(20,20,30,.18);
}
.btn-ghost-dark:hover { background: rgba(20,20,30,.05); }

.cookie-banner {
  position: fixed;
  left: 20px; right: 20px; bottom: -400px;
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(20,20,40,.25);
  padding: 26px 30px;
  z-index: 2000;
  transition: bottom .4s ease;
  border: 1px solid rgba(20,20,40,.06);
}
.cookie-banner.visible { bottom: 20px; }
.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.cookie-banner__text { flex: 1 1 380px; }
.cookie-banner__text h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--color-dark); }
.cookie-banner__text p { margin: 0; font-size: .88rem; color: var(--color-text-light); }
.cookie-banner__text a { color: var(--grad-purple-start); font-weight: 600; text-decoration: underline; }
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.cookie-banner__actions .btn { padding: 11px 22px; font-size: .85rem; }

.cookie-modal {
  position: fixed; inset: 0;
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cookie-modal.visible { display: flex; }
.cookie-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(12,12,20,.55);
  backdrop-filter: blur(3px);
}
.cookie-modal__panel {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lift);
}
.cookie-modal__panel h3 { margin-top: 0; color: var(--color-dark); }
.cookie-modal__panel > p { color: var(--color-text-light); font-size: .92rem; }
.cookie-modal__close {
  position: absolute; top: 18px; right: 18px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--color-bg-alt);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-light);
}
.cookie-modal__close:hover { background: #eaeaf5; }

.cookie-option {
  border-top: 1px solid rgba(20,20,40,.08);
  padding: 18px 0;
}
.cookie-option__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 6px;
}
.cookie-option p { margin: 0; font-size: .85rem; color: var(--color-text-light); }
.cookie-toggle--locked {
  font-size: .74rem;
  font-weight: 700;
  color: var(--grad-purple-start);
  background: rgba(91,76,249,.1);
  padding: 4px 10px;
  border-radius: 999px;
}

.cookie-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-switch__slider {
  position: absolute; inset: 0;
  background: #d8d8e6;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease;
}
.cookie-switch__slider::before {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.cookie-switch input:checked + .cookie-switch__slider { background: linear-gradient(135deg, var(--grad-purple-start), var(--grad-purple-end)); }
.cookie-switch input:checked + .cookie-switch__slider::before { transform: translateX(20px); }

.cookie-modal__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  flex-wrap: wrap;
}
.cookie-modal__actions .btn { padding: 12px 24px; font-size: .88rem; }

@media (max-width: 600px) {
  .cookie-banner { left: 12px; right: 12px; padding: 22px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1 1 auto; justify-content: center; }
}
