/* =========================
   CooBook Offers (HTML/CSS)
   Minimalista + futurista + tecnológico
   Responsive: desktop/tablet/móvil
   ========================= */

.coobook-offers-section{
  position: relative;
  width: 100%;
  padding: clamp(56px, 6vw, 96px) 0;
  background: #ffffff;
  overflow: hidden;
}

.coobook-offers-wrap{
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Background system */
.coobook-offers-bg{
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.coobook-grid{
  position: absolute;
  inset: -20%;
  background:
    linear-gradient(to right, rgba(10, 18, 45, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 18, 45, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  transform: rotate(-6deg);
  opacity: 0.35;
  mask-image: radial-gradient(circle at 30% 20%, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 65%);
}

.coobook-glow{
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 999px;
  filter: blur(50px);
  opacity: 0.22;
  transform: translate3d(0,0,0);
  background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.55), rgba(59, 130, 246, 0.15), rgba(255,255,255,0));
}
.coobook-glow--1{ top: -180px; left: -140px; }
.coobook-glow--2{ bottom: -220px; right: -180px; }

.coobook-orbit{
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(10, 18, 45, 0.12);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.4) inset;
  opacity: 0.9;
}
.coobook-orbit--a{
  width: 980px;
  height: 980px;
  top: -520px;
  right: -420px;
  transform: rotate(18deg);
}
.coobook-orbit--b{
  width: 700px;
  height: 700px;
  top: -360px;
  right: -280px;
  transform: rotate(8deg);
  opacity: 0.75;
}
.coobook-orbit--c{
  width: 760px;
  height: 760px;
  bottom: -420px;
  left: -380px;
  transform: rotate(-12deg);
  opacity: 0.65;
}

/* Header */
.coobook-offers-head{
  max-width: 860px;
}

.coobook-kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(10, 18, 45, 0.12);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
}

.coobook-kicker-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(99,102,241,1), rgba(59,130,246,1));
  box-shadow: 0 0 0 4px rgba(99,102,241,0.15);
}

.coobook-kicker-text{
  font: 600 12px/1.1 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(10, 18, 45, 0.72);
}

.coobook-offers-title{
  margin: 18px 0 10px;
  font: 800 clamp(28px, 3.2vw, 44px)/1.05 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: #0b1226;
  letter-spacing: -0.02em;
}

.coobook-offers-title-accent{
  position: relative;
  display: inline-block;
  color: #0b1226;
  background: linear-gradient(90deg, rgba(99,102,241,0.12), rgba(59,130,246,0.12));
  padding: 0 8px;
  border-radius: 10px;
}
.coobook-offers-title-accent::after{
  content:"";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -8px;
  height: 2px;
  background: linear-gradient(90deg, rgba(99,102,241,0.0), rgba(99,102,241,0.9), rgba(59,130,246,0.9), rgba(59,130,246,0.0));
  opacity: 0.9;
  filter: blur(0.2px);
  transform-origin: left center;
  animation: coobook-scan 3.6s ease-in-out infinite;
}

@keyframes coobook-scan{
  0%{ transform: scaleX(0.2); opacity: 0.25; }
  50%{ transform: scaleX(1); opacity: 0.95; }
  100%{ transform: scaleX(0.2); opacity: 0.25; }
}

.coobook-offers-subtitle{
  margin: 0;
  font: 500 16px/1.7 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: rgba(10, 18, 45, 0.72);
  max-width: 720px;
}

/* Grid */
.coobook-offers-grid{
  margin-top: clamp(26px, 3vw, 38px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.coobook-offer-card{
  grid-column: span 4;
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(10, 18, 45, 0.12);
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(10px);
  box-shadow:
    0 18px 40px rgba(10, 18, 45, 0.08),
    0 1px 0 rgba(255,255,255,0.7) inset;
  padding: 18px 18px 16px;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.coobook-offer-card::before{
  content:"";
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  background: radial-gradient(circle at 20% 10%, rgba(99,102,241,0.18), rgba(59,130,246,0.0) 55%),
              radial-gradient(circle at 80% 0%, rgba(59,130,246,0.16), rgba(255,255,255,0.0) 60%);
  opacity: 0.9;
  pointer-events: none;
}

.coobook-offer-card:hover{
  transform: translateY(-4px);
  border-color: rgba(59,130,246,0.26);
  box-shadow:
    0 22px 54px rgba(10, 18, 45, 0.12),
    0 1px 0 rgba(255,255,255,0.75) inset;
}

.coobook-offer-card--featured{
  grid-column: span 4;
  border-color: rgba(99,102,241,0.25);
  box-shadow:
    0 26px 70px rgba(10, 18, 45, 0.14),
    0 1px 0 rgba(255,255,255,0.75) inset;
}

.coobook-offer-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.coobook-offer-badge{
  font: 700 12px/1 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(10, 18, 45, 0.78);
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(10, 18, 45, 0.12);
  background: rgba(255,255,255,0.7);
}

.coobook-offer-badge--featured{
  border-color: rgba(99,102,241,0.22);
  background: linear-gradient(90deg, rgba(99,102,241,0.14), rgba(59,130,246,0.10));
}

.coobook-offer-icon{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(10, 18, 45, 0.12);
  background: rgba(255,255,255,0.65);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.coobook-icon-core{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(99,102,241,0.95);
  box-shadow: 0 0 0 6px rgba(99,102,241,0.18);
  position: relative;
  z-index: 2;
}

.coobook-icon-ring{
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(59,130,246,0.35);
  z-index: 1;
  transform: rotate(15deg);
}

.coobook-offer-icon--pulse .coobook-icon-ring{
  animation: coobook-ring 2.6s ease-in-out infinite;
}
@keyframes coobook-ring{
  0%{ transform: scale(0.86) rotate(10deg); opacity: 0.55; }
  50%{ transform: scale(1.08) rotate(18deg); opacity: 0.95; }
  100%{ transform: scale(0.86) rotate(10deg); opacity: 0.55; }
}

.coobook-offer-title{
  margin: 14px 0 8px;
  font: 800 18px/1.25 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: #0b1226;
  position: relative;
  z-index: 1;
}

.coobook-offer-desc{
  margin: 0 0 12px;
  font: 500 14px/1.65 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: rgba(10, 18, 45, 0.72);
  position: relative;
  z-index: 1;
}

.coobook-offer-list{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.coobook-offer-list li{
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: start;
  font: 600 13px/1.55 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: rgba(10, 18, 45, 0.78);
}

.coobook-offer-list li::before{
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(99,102,241,1), rgba(59,130,246,1));
  box-shadow: 0 0 0 4px rgba(59,130,246,0.12);
}

.coobook-offer-meta{
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.coobook-pill{
  font: 700 12px/1 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: rgba(10, 18, 45, 0.78);
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(10, 18, 45, 0.12);
  background: rgba(255,255,255,0.7);
}

.coobook-pill--price{
  border-color: rgba(99,102,241,0.22);
  background: linear-gradient(90deg, rgba(99,102,241,0.14), rgba(59,130,246,0.10));
}

.coobook-offer-cta{
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(10, 18, 45, 0.12);
  background: rgba(255,255,255,0.72);
  color: #0b1226;
  text-decoration: none;
  font: 800 14px/1 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  position: relative;
  z-index: 1;
}

.coobook-offer-cta:hover{
  transform: translateY(-2px);
  border-color: rgba(59,130,246,0.26);
  background: rgba(255,255,255,0.92);
}

.coobook-offer-cta--featured{
  border-color: rgba(99,102,241,0.26);
  background: linear-gradient(90deg, rgba(99,102,241,0.16), rgba(59,130,246,0.10));
}

.coobook-cta-arrow{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(10, 18, 45, 0.12);
  background: rgba(255,255,255,0.75);
  position: relative;
  flex: 0 0 auto;
}

.coobook-cta-arrow::before{
  content:"";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(10, 18, 45, 0.72);
  border-top: 2px solid rgba(10, 18, 45, 0.72);
  transform: rotate(45deg);
  top: 8px;
  left: 8px;
}

/* Footer note */
.coobook-offers-foot{
  margin-top: 18px;
  max-width: 900px;
}

.coobook-offers-footnote{
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(10, 18, 45, 0.10);
  font: 500 13px/1.7 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: rgba(10, 18, 45, 0.62);
}

/* Responsive */
@media (max-width: 1024px){
  .coobook-offer-card,
  .coobook-offer-card--featured{
    grid-column: span 6;
  }
}

@media (max-width: 700px){
  .coobook-offers-wrap{
    width: min(1180px, calc(100% - 28px));
  }

  .coobook-offers-grid{
    gap: 14px;
  }

  .coobook-offer-card,
  .coobook-offer-card--featured{
    grid-column: span 12;
  }

  .coobook-grid{
    background-size: 64px 64px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .coobook-offers-title-accent::after,
  .coobook-offer-icon--pulse .coobook-icon-ring{
    animation: none;
  }

  .coobook-offer-card,
  .coobook-offer-cta{
    transition: none;
  }
}












.coobook-form-demo{
  width: 100%;
}

/* Botones demo (solo para que lo pruebes rápido) */
.coobook-offer-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 0 26px;
}
.coobook-open-modal{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(10,18,45,0.12);
  background: rgba(255,255,255,0.75);
  text-decoration: none;
  color: #0b1226;
  font: 800 13px/1 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.coobook-open-modal:hover{
  transform: translateY(-2px);
  border-color: rgba(59,130,246,0.28);
  background: rgba(255,255,255,0.92);
}

/* Modal base */
.coobook-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

/* Abrir modal con :target (sin JS) */
.coobook-modal:target{
  display: block;
}

.coobook-modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(10,18,45,0.46);
  backdrop-filter: blur(6px);
}

.coobook-modal__panel{
  position: relative;
  width: min(860px, calc(100% - 26px));
  margin: 7vh auto;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 28px 80px rgba(10,18,45,0.24);
  overflow: hidden;
  padding: 18px 18px 16px;
}

.coobook-modal__panel::before{
  content:"";
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 10%, rgba(99,102,241,0.16), rgba(59,130,246,0.00) 55%),
    radial-gradient(circle at 90% 0%, rgba(59,130,246,0.14), rgba(255,255,255,0.00) 60%);
  pointer-events: none;
}

.coobook-modal__top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.coobook-modal__kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(10,18,45,0.12);
  background: rgba(255,255,255,0.7);
  font: 700 12px/1 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(10,18,45,0.72);
}

.coobook-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(99,102,241,1), rgba(59,130,246,1));
  box-shadow: 0 0 0 4px rgba(99,102,241,0.14);
}

.coobook-modal__close{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(10,18,45,0.12);
  background: rgba(255,255,255,0.72);
  display: grid;
  place-items: center;
  text-decoration: none;
  color: rgba(10,18,45,0.78);
  font: 900 22px/1 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  position: relative;
  z-index: 1;
}
.coobook-modal__close:hover{
  transform: translateY(-2px);
  border-color: rgba(59,130,246,0.28);
  background: rgba(255,255,255,0.92);
}

.coobook-modal__title{
  margin: 14px 0 8px;
  font: 900 clamp(18px, 2.2vw, 24px)/1.15 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: #0b1226;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.coobook-modal__subtitle{
  margin: 0 0 14px;
  font: 600 14px/1.65 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: rgba(10,18,45,0.68);
  position: relative;
  z-index: 1;
}

/* Form */
.coobook-form{
  position: relative;
  z-index: 1;
}

.coobook-form__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.coobook-field{
  display: grid;
  gap: 8px;
}

.coobook-field--full{
  grid-column: 1 / -1;
}

.coobook-field label{
  font: 800 12px/1 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(10,18,45,0.72);
}

.coobook-field input,
.coobook-field select,
.coobook-field textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(10,18,45,0.12);
  background: rgba(255,255,255,0.72);
  outline: none;
  font: 700 14px/1.35 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: #0b1226;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.coobook-field textarea{
  resize: vertical;
  min-height: 110px;
}

.coobook-field input:focus,
.coobook-field select:focus,
.coobook-field textarea:focus{
  border-color: rgba(59,130,246,0.34);
  background: rgba(255,255,255,0.92);
}

.coobook-form__foot{
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(10,18,45,0.10);
}

.coobook-form__hint{
  font: 600 13px/1.55 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: rgba(10,18,45,0.62);
  max-width: 430px;
}

/* Button */
.coobook-btn{
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(99,102,241,0.22);
  background: linear-gradient(90deg, rgba(99,102,241,0.16), rgba(59,130,246,0.10));
  cursor: pointer;
  color: #0b1226;
  font: 900 14px/1 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  white-space: nowrap;
}

.coobook-btn:hover{
  transform: translateY(-2px);
  border-color: rgba(59,130,246,0.32);
  background: linear-gradient(90deg, rgba(99,102,241,0.22), rgba(59,130,246,0.14));
}

.coobook-btn__arrow{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(10,18,45,0.12);
  background: rgba(255,255,255,0.78);
  position: relative;
}

.coobook-btn__arrow::before{
  content:"";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(10,18,45,0.72);
  border-top: 2px solid rgba(10,18,45,0.72);
  transform: rotate(45deg);
  top: 8px;
  left: 8px;
}

/* Responsive */
@media (max-width: 760px){
  .coobook-form__grid{
    grid-template-columns: 1fr;
  }
  .coobook-form__foot{
    flex-direction: column;
    align-items: stretch;
  }
  .coobook-form__hint{
    max-width: 100%;
  }
  .coobook-btn{
    width: 100%;
    justify-content: space-between;
  }
  .coobook-modal__panel{
    margin: 4vh auto;
  }
}


.coobook-form-status{
  display: none;
  margin: 12px 0 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(10,18,45,0.12);
  background: rgba(255,255,255,0.72);
  font: 700 13px/1.55 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: rgba(10,18,45,0.78);
  position: relative;
  z-index: 1;
}

.coobook-form-status--ok{
  display: block;
  border-color: rgba(59,130,246,0.28);
  background: linear-gradient(90deg, rgba(99,102,241,0.14), rgba(59,130,246,0.10));
}

.coobook-form-status--error{
  display: block;
  border-color: rgba(220,38,38,0.28);
  background: rgba(220,38,38,0.06);
}