/* ============================================================
   PAGINAS-WEB.CSS — Estilos exclusivos de la landing de
   Páginas Web Escolares
============================================================ */

/* ── Hero Páginas Web ── */
.hero-webpages {
  min-height: auto;
  padding: 130px 0 50px;
}
.hero-webpages .hero-sub {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 32px;
}
.hero-webpages h1 {
  font-size: clamp(2rem, 4vw, 3rem) !important;
  margin-bottom: 20px !important;
}

/* Botón outline blanco */
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.7);
}


/* ── Hero visual páginas web ── */
.hero-webpages-visual {
  position: relative;
  width: 360px;
  height: 340px;
}

.web-hero-center {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  background: rgba(45,120,220,.15);
  border: 1px solid rgba(45,120,220,.3);
  border-radius: 16px;
  padding: 20px 28px 14px;
  backdrop-filter: blur(6px);
}

.web-hero-center svg {
  width: 56px;
  height: 56px;
  color: var(--yellow);
}

.web-hero-center span {
  font-size: .85rem;
  color: var(--white);
  font-weight: 800;
  font-family: 'Nunito', sans-serif;
  text-align: center;
  white-space: nowrap;
}

.web-hero-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 14px 18px 10px;
  backdrop-filter: blur(4px);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}

.web-hero-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,208,87,.4);
  background: rgba(255,208,87,.08);
}

.whc-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whc-icon svg {
  width: 100%;
  height: 100%;
  color: var(--white);
}

.web-hero-card span {
  font-size: .7rem;
  color: rgba(255,255,255,.7);
  font-weight: 600;
  letter-spacing: .3px;
  text-align: center;
  white-space: nowrap;
  font-family: 'Nunito', sans-serif;
}

.whc-1 { bottom: 30px; left: 0; }
.whc-2 { bottom: 0; left: 50%; transform: translateX(-50%); }
.whc-3 { bottom: 30px; right: 0; }
.whc-2:hover { transform: translateX(-50%) translateY(-4px); }


/* ============================================================
   FLUJO DE "CÓMO FUNCIONA"
============================================================ */
.flow-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.flow-step {
  flex: 0 1 240px;
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}

.flow-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,.08);
}

.flow-num {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #ff6b6b);
  color: var(--white);
  font-weight: 900;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
}

.flow-icon {
  width: 56px;
  height: 56px;
  margin: 10px auto 16px;
  border-radius: 14px;
  background: rgba(251,82,82,.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--red);
}

.flow-step h3 {
  font-size: .95rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.flow-step p {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.flow-arrow {
  font-size: 1.5rem;
  color: var(--red);
  font-weight: 800;
  display: flex;
  align-items: center;
  padding-top: 40px;
}


/* ============================================================
   MÓDULOS — SECCIONES ONE-PAGE
============================================================ */
.modulo-section {
  padding: 72px 0;
}

.modulo-white {
  background: var(--white);
}

.modulo-light {
  background: var(--gray-light);
}

.modulo-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.modulo-row.modulo-reverse {
  direction: rtl;
}

.modulo-row.modulo-reverse > * {
  direction: ltr;
}

.modulo-img-col,
.modulo-text-col {
  min-width: 0;
}

/* ── Info panel ── */
.acceso-info {
  padding: 8px 0;
}

.acceso-info-badge {
  display: inline-block;
  background: rgba(251,82,82,.08);
  color: var(--red);
  font-size: .75rem;
  font-weight: 800;
  font-family: 'Nunito', sans-serif;
  letter-spacing: .5px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(251,82,82,.15);
  margin-bottom: 16px;
}

.acceso-info h3 {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.25;
}

.acceso-info p {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 24px;
}

/* ── Features list ── */
.acceso-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.acceso-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .88rem;
  color: var(--text);
  font-weight: 500;
  padding: 10px 16px;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: all .25s ease;
}

.acceso-features li:hover {
  background: rgba(251,82,82,.04);
  border-color: rgba(251,82,82,.2);
  transform: translateX(4px);
}

.acceso-features li svg {
  width: 18px;
  height: 18px;
  stroke: var(--red);
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}


/* ============================================================
   BENEFICIOS
============================================================ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.benefit-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: transform .3s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease;
}

.benefit-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,208,87,.35);
  background: rgba(255,255,255,.08);
  box-shadow: 0 16px 48px rgba(0,0,0,.3);
}

.ben-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(255,208,87,.1);
  border: 1px solid rgba(255,208,87,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: background .3s ease;
}

.benefit-card:hover .ben-icon {
  background: rgba(255,208,87,.2);
}

.ben-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--yellow);
}

.benefit-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.benefit-card p {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  line-height: 1.65;
}


/* ============================================================
   SERVICIO VISUAL — Iconos grandes para módulos
============================================================ */
.web-service-visual {
  background: linear-gradient(145deg, #0f2940 0%, #1a3a5c 50%, #0f2940 100%);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 36px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 16px 48px rgba(0,0,0,.2);
  position: relative;
  overflow: hidden;
}

.web-service-visual::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  background: radial-gradient(ellipse at 30% 20%, rgba(45,120,220,.08) 0%, transparent 60%);
  pointer-events: none;
}

.web-svc-icon-big {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  background: rgba(45,120,220,.12);
  border: 1px solid rgba(45,120,220,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background .3s ease, border-color .3s ease;
  position: relative;
  z-index: 1;
}

.web-svc-icon-big svg {
  width: 56px;
  height: 56px;
  color: var(--yellow);
}

.web-svc-icon-big.web-citas {
  background: rgba(76,175,80,.12);
  border-color: rgba(76,175,80,.25);
}

.web-svc-icon-big.web-pagos {
  background: rgba(255,152,0,.12);
  border-color: rgba(255,152,0,.25);
}

.web-svc-icon-big.web-expedientes {
  background: rgba(156,39,176,.12);
  border-color: rgba(156,39,176,.25);
}

.web-svc-label {
  font-size: .75rem;
  font-weight: 800;
  color: rgba(255,255,255,.5);
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}


/* ============================================================
   IMÁGENES DE FUNCIONALIDADES — bordes, hover y scroll reveal
============================================================ */
.web-service-img-wrap {
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.10);
  transition: transform .5s cubic-bezier(.25,.46,.45,.94),
              box-shadow .5s cubic-bezier(.25,.46,.45,.94);
}

.web-service-img-wrap:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}

.web-service-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  transition: transform .6s cubic-bezier(.25,.46,.45,.94),
              filter .5s ease;
}

.web-service-img-wrap:hover .web-service-img {
  transform: scale(1.05);
  filter: brightness(1.04) saturate(1.1);
}

/* Scroll reveal para imágenes */
.img-reveal {
  opacity: 0;
  transform: translateX(-40px) scale(.96);
  transition: opacity .7s cubic-bezier(.25,.46,.45,.94),
              transform .7s cubic-bezier(.25,.46,.45,.94);
}

.img-reveal.from-right {
  transform: translateX(40px) scale(.96);
}

.img-reveal.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}


/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .hero-webpages-visual { display: none; }
  .modulo-row { grid-template-columns: 1fr; gap: 32px; }
  .modulo-row.modulo-reverse { direction: ltr; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

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

@media (max-width: 640px) {
  .flow-steps { flex-direction: column; align-items: center; }
  .flow-arrow { transform: rotate(90deg); padding-top: 0; }
  .acceso-info h3 { font-size: 1.3rem; }
  .modulo-section { padding: 48px 0; }
  .web-service-visual { padding: 36px 24px; }
  .web-svc-icon-big { width: 96px; height: 96px; }
  .web-svc-icon-big svg { width: 44px; height: 44px; }
}
