/* Plata Hoy — cyan (#01BCFE) + yellow (#F8E408) brand theme */

:root {
  --ph-primary: #01BCFE;
  --ph-primary-dark: #0199cc;
  --ph-accent: #F8E408;
  --ph-accent-soft: #fffce8;
  --ph-surface: #ffffff;
  --ph-bg: #f0fbff;
  --ph-bg-alt: #fffbeb;
  --ph-text: #0c4a6e;
  --ph-text-muted: #64748b;
  --ph-gradient: linear-gradient(135deg, #01BCFE 0%, #4dd4ff 45%, #F8E408 100%);
  --ph-gradient-soft: linear-gradient(160deg, #e0f7fe 0%, #fffce8 100%);
  --ph-shadow: 0 20px 50px rgba(1, 188, 254, 0.12);
  --ph-radius: 20px;
  --ph-radius-lg: 28px;
}

body.ph-site {
  background: var(--ph-bg);
  color: var(--ph-text);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}

/* Navbar — light sticky bar (not full gradient) */
.ph-navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(1, 188, 254, 0.12);
  box-shadow: 0 4px 24px rgba(12, 74, 110, 0.06);
  line-height: normal;
}

.ph-navbar > .container > .ph-brand {
  flex-shrink: 0;
  min-width: max-content;
  overflow: visible;
}

.ph-navbar .nav-link,
.ph-navbar .dropdown-toggle {
  color: var(--ph-text) !important;
  font-weight: 500;
}

.ph-navbar .nav-link:hover,
.ph-navbar .nav-link.active {
  color: var(--ph-primary) !important;
}

.ph-brand-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--ph-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(1, 188, 254, 0.35);
}

.ph-brand-badge img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.ph-brand-title {
  display: inline-block;
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: visible;
  padding-right: 0.12em;
  padding-bottom: 0.06em;
  background: var(--ph-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .ph-brand-title {
    background: none;
    -webkit-text-fill-color: unset;
    color: var(--ph-primary);
  }
}

.ph-btn-nav {
  background: var(--ph-primary);
  color: #fff !important;
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.ph-btn-nav:hover {
  transform: translateY(-2px);
  background: var(--ph-primary-dark);
  box-shadow: 0 10px 28px rgba(1, 188, 254, 0.4);
  color: #fff !important;
  text-decoration: none;
}

/* Hero — split, light background, decorative blob */
.ph-hero {
  position: relative;
  padding: 7rem 0 5rem;
  overflow: hidden;
  background: var(--ph-gradient-soft);
}

.ph-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 228, 8, 0.22), transparent 70%);
  pointer-events: none;
}

.ph-hero::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(1, 188, 254, 0.18), transparent 70%);
  pointer-events: none;
}

.ph-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.ph-hero-visual {
  order: -1;
}

.ph-hero-phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.ph-hero-phone-wrap img {
  max-height: 520px;
  width: auto;
  border-radius: var(--ph-radius-lg);
  box-shadow: var(--ph-shadow), 0 0 0 8px rgba(255, 255, 255, 0.8);
}

.ph-hero-chip {
  position: absolute;
  background: var(--ph-surface);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  box-shadow: var(--ph-shadow);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ph-primary-dark);
}

.ph-hero-chip--tl { top: 12%; left: 0; }
.ph-hero-chip--br {
  bottom: 14%;
  right: 0;
  background: var(--ph-accent);
  color: var(--ph-text);
}

.ph-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ph-primary);
  margin-bottom: 1rem;
}

.ph-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ph-text);
  margin-bottom: 1.25rem;
}

.ph-hero-lead {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--ph-text-muted);
  margin-bottom: 2rem;
  max-width: 32rem;
}

.ph-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--ph-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.75rem;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 14px 36px rgba(1, 188, 254, 0.32);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
  text-decoration: none;
}

.ph-btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  background: var(--ph-primary-dark);
  box-shadow: 0 18px 44px rgba(1, 188, 254, 0.42);
  color: #fff;
  text-decoration: none;
}

.ph-stats-row {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.ph-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ph-primary);
}

.ph-stat span {
  font-size: 0.85rem;
  color: var(--ph-text-muted);
}

/* Features */
.ph-section {
  padding: 5rem 0;
}

.ph-section--alt {
  background: var(--ph-bg-alt);
}

.ph-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.ph-section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--ph-text);
  margin-bottom: 0.75rem;
}

.ph-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.ph-feature-grid--pair {
  grid-template-columns: repeat(2, 1fr);
}

.ph-requisitos-stack {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.ph-requisitos-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ph-text);
  margin: 0 0 0.5rem;
}

.ph-requisitos-lead {
  font-size: 0.95rem;
  color: var(--ph-text-muted);
  line-height: 1.65;
  margin: 0 0 1.25rem;
  max-width: 36rem;
}

.ph-loan-example__card {
  background: var(--ph-surface);
  border-radius: var(--ph-radius);
  border: 1px solid rgba(1, 188, 254, 0.16);
  box-shadow: 0 10px 36px rgba(12, 74, 110, 0.07);
  padding: 1.5rem 1.75rem;
  position: relative;
  overflow: hidden;
}

.ph-loan-example__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--ph-gradient);
}

.ph-loan-example__label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ph-primary);
  margin: 0 0 1rem;
}

.ph-loan-example__terms,
.ph-loan-example__breakdown {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ph-loan-example__terms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.ph-loan-example__terms li,
.ph-loan-example__breakdown li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: linear-gradient(160deg, #e0f7fe 0%, #fffce8 100%);
  border: 1px solid rgba(1, 188, 254, 0.1);
}

.ph-loan-example__terms span,
.ph-loan-example__breakdown span {
  font-size: 0.78rem;
  color: var(--ph-text-muted);
  line-height: 1.4;
}

.ph-loan-example__terms strong,
.ph-loan-example__breakdown strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ph-primary-dark);
}

.ph-loan-example__calc {
  padding-top: 1.15rem;
  border-top: 1px dashed rgba(1, 188, 254, 0.25);
}

.ph-loan-example__formula {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--ph-text);
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(248, 228, 8, 0.22);
  border-left: 4px solid var(--ph-accent);
}

.ph-loan-example__formula strong {
  color: var(--ph-primary-dark);
  font-weight: 800;
}

.ph-loan-example__breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ph-loan-example__breakdown li {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--ph-bg);
}

.ph-loan-example__total {
  background: linear-gradient(135deg, rgba(1, 188, 254, 0.12), rgba(248, 228, 8, 0.35));
  border-color: rgba(1, 188, 254, 0.22);
}

.ph-loan-example__total strong {
  font-size: 1.1rem;
  color: var(--ph-text);
}

.ph-loan-example__note {
  font-size: 0.78rem;
  color: var(--ph-text-muted);
  line-height: 1.55;
  margin: 1rem 0 0;
}

.ph-split-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ph-feature-card {
  background: var(--ph-surface);
  border-radius: var(--ph-radius);
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(1, 188, 254, 0.12);
  box-shadow: 0 8px 30px rgba(12, 74, 110, 0.06);
  transition: transform 0.3s, border-color 0.3s;
}

.ph-feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--ph-accent);
}

.ph-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e0f7fe, #fffce8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ph-primary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.ph-feature-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--ph-text);
}

.ph-feature-card p {
  font-size: 0.9rem;
  color: var(--ph-text-muted);
  margin: 0;
  line-height: 1.6;
}

.ph-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.ph-split img {
  width: 100%;
  max-height: 580px;
  object-fit: contain;
  border-radius: var(--ph-radius-lg);
  filter: drop-shadow(0 24px 48px rgba(1, 188, 254, 0.15));
}

/* Steps — horizontal timeline on light band */
.ph-steps-wrap {
  background: var(--ph-surface);
  border-radius: var(--ph-radius-lg);
  padding: 2.5rem;
  border: 1px solid rgba(1, 188, 254, 0.1);
  box-shadow: var(--ph-shadow);
}

.ph-steps-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  position: relative;
}

.ph-steps-track::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: linear-gradient(90deg, var(--ph-primary), var(--ph-accent));
  border-radius: 999px;
  z-index: 0;
}

.ph-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 0.5rem;
}

.ph-step-num {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--ph-gradient);
  color: var(--ph-text);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(1, 188, 254, 0.28);
}

.ph-step h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ph-text);
  margin-bottom: 0.5rem;
}

.ph-step p {
  font-size: 0.8rem;
  color: var(--ph-text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Showcase — two equal phone frames */
.ph-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  max-width: 920px;
  margin: 0 auto;
  align-items: end;
}

.ph-showcase-item {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 420px;
  padding: 1.25rem 1rem 0;
  background: var(--ph-gradient-soft);
  border: 1px solid rgba(1, 188, 254, 0.14);
  border-radius: var(--ph-radius);
  box-shadow: var(--ph-shadow);
}

.ph-showcase-item img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  display: block;
  border-radius: calc(var(--ph-radius) - 6px);
  filter: drop-shadow(0 16px 32px rgba(12, 74, 110, 0.18));
}

/* Trust banner — copy + phone side by side */
.ph-trust-banner {
  margin-top: 3rem;
  border-radius: var(--ph-radius-lg);
  background: var(--ph-gradient);
  overflow: hidden;
  position: relative;
  box-shadow: var(--ph-shadow);
}

.ph-trust-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(12, 74, 110, 0.82) 0%,
    rgba(1, 153, 204, 0.62) 45%,
    rgba(12, 74, 110, 0.45) 100%
  );
  pointer-events: none;
}

.ph-trust-banner__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr minmax(200px, 320px);
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 2.75rem;
}

.ph-trust-banner__copy {
  text-align: left;
}

.ph-trust-banner__copy h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #fff;
  line-height: 1.25;
}

.ph-trust-banner__copy p {
  margin: 0;
  max-width: 520px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

.ph-trust-banner__phone {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.ph-trust-banner__phone img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  display: block;
  border-radius: var(--ph-radius);
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
}

/* Footer — high-contrast text on dark gradient (overrides global p color) */
.ph-footer {
  --ph-footer-text: rgba(255, 255, 255, 0.92);
  --ph-footer-text-soft: #e0f7fe;
  background: linear-gradient(180deg, #0199cc 0%, #0c4a6e 100%);
  color: var(--ph-footer-text-soft);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.ph-footer h3,
.ph-footer h4 {
  color: #fff;
}

.ph-footer p,
.ph-footer-desc {
  color: var(--ph-footer-text);
  line-height: 1.65;
}

.ph-footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  color: var(--ph-footer-text);
}

.ph-footer-contact p strong {
  color: var(--ph-footer-text);
  font-weight: 700;
}

.ph-footer-contact p i {
  flex-shrink: 0;
  width: 1.1rem;
  margin-top: 0.2rem;
  color: var(--ph-accent);
  text-align: center;
}

/* Yellow accent links — unchanged */
.ph-footer a {
  color: var(--ph-accent);
}

.ph-footer a:hover {
  color: #fff;
}

.ph-legal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.ph-copyright,
.ph-footer-copy {
  text-align: center;
  padding: 1.25rem;
  font-size: 0.85rem;
  color: #334155;
  background: var(--ph-bg);
}

.ph-copyright p,
.ph-footer-copy p {
  color: inherit;
}

@media (max-width: 991px) {
  .ph-hero-grid,
  .ph-split {
    grid-template-columns: 1fr;
  }
  .ph-hero-visual {
    order: 0;
  }
  .ph-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ph-loan-example__terms {
    grid-template-columns: 1fr;
  }

  .ph-loan-example__breakdown li {
    flex-direction: column;
    align-items: flex-start;
  }
  .ph-steps-track {
    grid-template-columns: 1fr;
  }
  .ph-steps-track::before {
    display: none;
  }
  .ph-showcase-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    gap: 1.5rem;
  }

  .ph-showcase-item {
    min-height: 360px;
  }

  .ph-trust-banner__inner {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem 1.75rem;
    text-align: center;
  }

  .ph-trust-banner__copy {
    text-align: center;
  }

  .ph-trust-banner__copy p {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  .ph-feature-grid,
  .ph-feature-grid--pair {
    grid-template-columns: 1fr;
  }

  .ph-showcase-item {
    min-height: 320px;
    padding: 1rem 0.75rem 0;
  }

  .ph-showcase-item img {
    max-height: 340px;
  }

  .ph-trust-banner__phone img {
    max-height: 300px;
  }
}
