/* =========================================================
   Puntowagen — Rediseño 2026
   Hoja de estilos del nuevo diseño. Se carga DESPUÉS de
   style.css / menu.css / animate.css para tomar prioridad.
   ========================================================= */

/* Reseteo puntual de los contenedores compartidos .header / .footer
   (style.css les define fondo gris oscuro, grid, etc. de la web anterior) */
.header, .footer { all: revert; }

* { box-sizing: border-box; }

body {
  font-family: 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
  color: #16193A;
  background: #ffffff;
}

h1, h2, h3 { font-family: 'Sora', ui-sans-serif, system-ui, sans-serif; margin: 0; }
p { margin: 0; }
a { text-decoration: none; }
img { max-width: 100%; }

/* ---------- Utilidades genéricas ---------- */
.pw-container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

.pw-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2F6FEA;
  color: #fff;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14.5px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.pw-btn:hover { background: #255bc7; }
.pw-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.5);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14.5px;
}

/* ---------- Topbar (franja superior oscura) ---------- */
.pw-topbar { background: #0B1B42; color: rgba(255,255,255,.94); }
.pw-topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 32px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px; font-size: 16px;
}
.pw-topbar-left { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.pw-topbar-left span, .pw-topbar-left a { display: flex; align-items: center; gap: 6px; color: inherit; }
.pw-topbar-right { display: flex; gap: 18px; align-items: center; }
.pw-topbar-right a { color: rgba(255,255,255,.96); display: flex; gap: 6px; align-items: center; }
@media (max-width: 700px) { .pw-topbar-left span:first-child { display: none; } }

/* ---------- Nav principal (fija / sticky) ---------- */
.pw-nav {
  background: #fff;
  border-bottom: 1px solid rgba(15,23,64,.08);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 4px 16px rgba(11,27,66,.08);
}
.pw-nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 17px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.pw-logo img { height: 44px; width: auto; display: block; }
.pw-links { display: flex; gap: 30px; align-items: center; flex-wrap: wrap; }
.pw-links a { color: #5B6178; font-weight: 500; font-size: 15.5px; letter-spacing: .02em; }
.pw-links a.active { color: #0B1B42 !important; font-weight: 700; font-size: 17px; }
.pw-burger {
  display: none; background: none; border: none; cursor: pointer; padding: 0;
  width: 34px; height: 34px; align-items: center; justify-content: center; color: #16193A;
  flex-shrink: 0;
}
.pw-mobile-panel { display: none; flex-direction: column; padding: 8px 32px 20px; border-top: 1px solid rgba(15,23,64,.08); }
.pw-mobile-panel a { padding: 12px 0; color: #3A3F58; font-weight: 600; font-size: 14px; border-bottom: 1px solid rgba(15,23,64,.06); }
.pw-mobile-panel a.active { color: #2F6FEA !important; }
.pw-mobile-panel a.pw-btn { margin-top: 14px; justify-content: center; color: #fff; border-bottom: none; padding: 13px 24px; }

@media (max-width: 900px) {
  .pw-links { display: none; }
  .pw-nav-inner > .pw-btn { display: none; }
  .pw-burger { display: flex; }
  .pw-mobile-panel.pw-open { display: flex; }
}

/* ---------- Botón flotante de WhatsApp ---------- */
.pw-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  z-index: 900;
}
.pw-whatsapp:hover { background: #20bd5a; }
@media (max-width: 560px) {
  .pw-whatsapp { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}

/* ---------- Encabezado de sección (páginas internas) ---------- */
.pw-pageheader { background: #0B1B42; padding: 52px 32px 44px; }
.pw-pageheader .pw-container { }
.pw-breadcrumb { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.55); font-size: 13px; }
.pw-breadcrumb .current { color: rgba(255,255,255,.9); }
.pw-pageheader h1 { color: #fff; font-size: 34px; font-weight: 800; margin-top: 14px; }
.pw-pageheader p { color: rgba(255,255,255,.72); font-size: 15px; margin-top: 10px; max-width: 620px; line-height: 1.6; }

/* ---------- Campos de formulario ---------- */
.field label { display:block; font-size:12.5px; font-weight:600; color:#3A3F58; margin-bottom:6px; }
.field .box {
  width:100%; border:1.5px solid rgba(15,23,64,.14); border-radius:8px;
  padding:12px 14px; font-size:14px; color:#16193A; background:#fff;
  font-family:'IBM Plex Sans',sans-serif;
}
.field textarea.box { resize: vertical; }
.field .box::placeholder { color:#8A8FA3; }
.field .box:focus { outline:none; border-color:#2F6FEA; }
.pw-btn-submit {
  background:#2F6FEA; color:#fff; text-align:center; padding:15px 34px;
  border-radius:8px; font-weight:700; font-size:14.5px; border:none; cursor:pointer;
  font-family:'IBM Plex Sans',sans-serif;
}
.pw-btn-submit:hover { background:#255bc7; }

/* ---------- Tarjetas ---------- */
.pw-card {
  background: #fff;
  border: 1px solid rgba(15,23,64,.08);
  border-radius: 14px;
  padding: 26px;
}
.pw-icon-circle {
  width: 48px; height: 48px; border-radius: 12px;
  background: #EEF1F8; display: flex; align-items: center; justify-content: center;
  color: #0B1B42; flex-shrink: 0;
}

/* ---------- Footer ---------- */
.pw-footer { background: #081230; padding: 60px 32px 26px; }
.pw-footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px;
}
.pw-footer-grid h4 { color: #fff; font-weight: 700; font-size: 13.5px; letter-spacing: .04em; margin-bottom: 16px; }
.pw-footer-grid p { color: rgba(255,255,255,.55); font-size: 13.5px; line-height: 1.6; max-width: 260px; }
.pw-footer-grid a { color: rgba(255,255,255,.6); font-size: 13.5px; display: block; }
.pw-footer-links { display: flex; flex-direction: column; gap: 12px; }
.pw-footer-social {
  margin-top: 16px; display: inline-flex; width: 46px; height: 46px; border-radius: 8px;
  background: rgba(255,255,255,.08); align-items: center; justify-content: center; color: rgba(255,255,255,.75);
}
.pw-footer-social-row {
  margin-top: 18px; display: flex; justify-content: flex-start; gap: 12px;
}
.pw-footer-social-circle {
  width: 62px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease;
}
.pw-footer-social-circle:hover { transform: translateY(-2px); }
.pw-footer-social-fb { background: #fff; }
.pw-footer-social-ig { background: linear-gradient(45deg,#f9ce34,#ee2a7b,#6228d7); }
.pw-footer-bottom {
  max-width: 1200px; margin: 24px auto 0; padding-top: 20px; padding-right: 90px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  color: rgba(255,255,255,.4); font-size: 12px;
}
.pw-footer-credit { text-align: center; margin-top: 10px; }
.pw-footer-credit a { color: rgba(255,255,255,.4); font-size: 12px; display: inline; }

@media (max-width: 900px) {
  .pw-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .pw-footer-grid { grid-template-columns: 1fr; }
  .pw-footer-bottom { flex-direction: column; }
}

/* ---------- Responsive: secciones de contenido con estilos inline ----------
   Los artboards de diseño usan estilos inline (fijos para 1440px). Estas
   reglas, dirigidas a esos mismos estilos exactos, hacen que las grillas y
   el hero se acomoden en pantallas chicas sin tocar cada página a mano. */
@media (max-width: 900px) {
  div[style*="grid-template-columns:repeat(3,minmax(0,1fr))"],
  div[style*="grid-template-columns:repeat(3,1fr)"],
  div[style*="grid-template-columns:2fr 1fr"],
  div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  div[style*="grid-template-columns:repeat(4,minmax(0,1fr))"] {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 480px) {
  div[style*="grid-template-columns:repeat(4,minmax(0,1fr))"] {
    grid-template-columns: 1fr !important;
  }
}

/* ---------- Slider del Home (foto completa, sin recortes forzados) ---------- */
.pw-hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 2.35 / 1;
  min-height: 360px;
  overflow: hidden;
  background: #0B1B42;
}
.pw-hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.pw-hero-slide.active { opacity: 1; z-index: 1; }
.pw-hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pw-hero-scrim {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(0deg, rgba(5,12,34,.88) 0%, rgba(5,12,34,.45) 40%, rgba(5,12,34,.08) 68%, rgba(5,12,34,0) 85%);
  pointer-events: none;
}

.pw-hero-content {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 36px 32px 46px;
}
.pw-hero-content-inner { max-width: 1200px; margin: 0 auto; }
.pw-hero-content .pw-badge {
  display: inline-block; background: rgba(255,255,255,.16); color: #fff; padding: 7px 14px;
  border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .1em;
  backdrop-filter: blur(4px);
}
.pw-hero-content h1 {
  font-size: 38px; line-height: 1.12; margin-top: 16px; font-weight: 800;
  color: #fff; max-width: 640px; letter-spacing: -.01em;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.pw-hero-content h1 .accent { color: #86AEFF; }
.pw-hero-content p {
  color: rgba(255,255,255,.88); font-size: 15px; line-height: 1.6; margin-top: 12px;
  max-width: 480px; text-shadow: 0 1px 10px rgba(0,0,0,.35);
}
.pw-hero-buttons { display: flex; gap: 14px; margin-top: 22px; flex-wrap: wrap; }

.pw-hero-arrow {
  position: absolute; top: 44%; transform: translateY(-50%); z-index: 4;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(11,27,66,.42); color: #fff; border: 1px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  backdrop-filter: blur(2px);
}
.pw-hero-arrow:hover { background: rgba(11,27,66,.68); }
.pw-hero-arrow.prev { left: 18px; }
.pw-hero-arrow.next { right: 18px; }

.pw-hero-dots {
  position: absolute; right: 32px; bottom: 22px; z-index: 4;
  display: flex; gap: 8px;
}
.pw-hero-dot {
  width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.45);
  border: none; cursor: pointer; padding: 0; transition: .25s;
}
.pw-hero-dot.active { background: #fff; width: 22px; border-radius: 5px; }

@media (max-width: 900px) {
  .pw-hero-slider { aspect-ratio: 4 / 5; min-height: 480px; }
  .pw-hero-content h1 { font-size: 28px; }
  .pw-hero-arrow { width: 36px; height: 36px; }
}
@media (max-width: 560px) {
  .pw-hero-dots { right: 16px; }
  .pw-hero-arrow.prev { left: 10px; }
  .pw-hero-arrow.next { right: 10px; }
}
