/**
 * PyMeHubPro - Estilos premium enterprise
 * Diseño azul profundo, botones verdes, mobile-first
 */

:root {
  --blue-deep: #0f172a;
  --blue-mid: #1e293b;
  --blue-light: #334155;
  --accent-green: #059669;
  --accent-green-hover: #047857;
  --accent-green-shadow: rgba(5, 150, 105, 0.35);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --check-green: #22c55e;
  --gradient-bg: linear-gradient(165deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  --radius: 12px;
  --radius-lg: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--gradient-bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* HERO - Estilo publicitario SaaS */
.hero {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 40px var(--spacing-md) 30px;
  background: linear-gradient(135deg, #1f4fd8 0%, #0b2a6b 100%);
  background-attachment: scroll;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 60%;
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
    min-height: 480px;
  }
}

.hero-headline-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  max-width: 100%;
}

.hero-headline-block h1 {
  align-self: flex-start;
}

.badge-peru {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  margin: 0 0 18px;
}

.hero-content {
  flex: 1;
  text-align: left;
  max-width: 520px;
}

.hero-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 var(--spacing-md);
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #ffffff;
}

.hero-subheadline {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 var(--spacing-lg);
  line-height: 1.5;
}

.btn-hero {
  min-height: 58px;
  padding: 1rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: 12px;
  background: #19a663 !important;
  box-shadow: 0 4px 20px rgba(25, 166, 99, 0.4);
}

.btn-hero:hover {
  background: #159457 !important;
  box-shadow: 0 6px 24px rgba(25, 166, 99, 0.45);
}

.hero-content .micro-trust {
  margin-top: var(--spacing-md);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-mockup-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 560px;
}

.btn-secondary-cta {
  display: inline-block;
  margin-top: 22px;
  padding: 16px 38px;
  background: #159457;
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.btn-secondary-cta:hover {
  background: #12834d;
  transform: translateY(-2px);
  color: #ffffff;
}

.card-mockup {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  width: 100%;
}

.card-mockup img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.btn-cta {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--accent-green);
  color: white;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--accent-green-shadow);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-cta:hover {
  background: var(--accent-green-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-green-shadow);
}

.btn-cta:active {
  transform: translateY(0);
}

.btn-cta-large {
  padding: 1.15rem 2.25rem;
  font-size: 1.1rem;
}

.micro-trust {
  margin-top: var(--spacing-sm);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-mockup {
  width: 100%;
  max-width: 800px;
}

.hero-mockup img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
}

/* SECCIONES */
.section {
  padding: 30px 0;
}

.section h2 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 600;
  margin: 0 0 var(--spacing-lg);
  text-align: center;
}

/* PROBLEMA */
.section-problem {
  background: rgba(30, 41, 59, 0.4);
  padding-bottom: 20px;
}

.problem-header {
  text-align: center;
  margin-bottom: 28px;
}

.problem-top {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
}

.problem-main {
  font-size: clamp(1.4rem, 4vw, 28px);
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.pain-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 560px;
  margin: 0 auto;
}

.pain-list li {
  padding: var(--spacing-sm) 0;
  font-size: 1.05rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.check {
  color: var(--check-green);
  font-weight: 700;
  font-size: 1.2rem;
}

/* SEGMENTO FOTO */
.photo-segment {
  padding: 40px 20px 80px 20px;
  text-align: center;
  background: linear-gradient(180deg, #16233b 0%, #0f1b2e 100%);
}

.photo-segment .container {
  max-width: 1200px;
  margin: 0 auto;
}

.photo-title {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 50px;
}

.photo-cards {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.photo-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 30px;
  width: 320px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.photo-card h3 {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 15px;
}

.photo-card p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 20px;
}

.micro-beneficio {
  font-size: 13px;
  font-weight: 600;
  color: #00d084;
}

@media (max-width: 768px) {
  .photo-segment {
    padding: 30px 20px 50px 20px;
  }

  .photo-title {
    font-size: clamp(1.25rem, 4vw, 28px);
    margin-bottom: 30px;
  }

  .photo-card {
    width: 100%;
  }
}

/* IMPACTO - Frase pegada al segmento superior */
.section-impact {
  padding: 0;
}

.section-impact blockquote,
.center-highlight {
  margin: 40px 0 15px 0;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  color: #ffffff;
  padding: 0;
  letter-spacing: -0.01em;
}

/* SOLUCIÓN */
.section-solution {
  padding-top: 15px;
}

.solution-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

@media (min-width: 768px) {
  .solution-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: rgba(30, 41, 59, 0.5);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
  transition: background 0.2s;
}

.card:hover {
  background: rgba(51, 65, 85, 0.5);
}

.card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: var(--spacing-md);
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 var(--spacing-xs);
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* CTA INTERMEDIO */
.section-cta-intermediate {
  text-align: center;
}

.section-cta-intermediate h2 {
  margin-bottom: var(--spacing-md);
}

/* CONFIANZA */
.trust-icons {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

@media (min-width: 640px) {
  .trust-icons {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust-item {
  text-align: center;
}

.trust-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: var(--spacing-sm);
}

.trust-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 var(--spacing-xs);
}

.trust-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* PRE-CTA CARDS */
.pre-cta-cards {
  padding: 40px 0 30px;
}

.fit-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .fit-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.fit-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.fit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.12);
}

.fit-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 20px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.fit-card-content {
  text-align: left;
}

.fit-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.fit-label:not(:first-child) {
  margin-top: 18px;
}

.fit-list {
  list-style: none;
  padding: 0;
  margin: 0 0 4px;
}

.fit-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  padding: 6px 0;
}

.fit-icon {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 1rem;
}

.fit-check {
  color: #22c55e;
}

.fit-x {
  color: #ef4444;
}

.fit-bullet {
  color: rgba(255, 255, 255, 0.6);
}

.fit-list-cost {
  margin-bottom: 20px;
}

.fit-card-close {
  font-size: 1.05rem;
  font-weight: 700;
  color: #22c55e;
  line-height: 1.4;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fit-list-pain {
  margin-top: 8px;
}

.fit-list-pain li {
  padding: 8px 0;
  padding-left: 16px;
  border-left: 3px solid rgba(34, 197, 94, 0.4);
  margin-bottom: 4px;
}

.fit-list-pain li::before {
  content: "• ";
  color: rgba(34, 197, 94, 0.9);
  font-weight: 700;
  margin-right: 4px;
}

/* CTA FINAL */
.section-cta-final {
  text-align: center;
  padding-bottom: 40px;
}

.cta-impact-phrase {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.4;
  margin: 0 auto 28px;
  max-width: 640px;
}

.cta-highlight {
  color: #22c55e;
  font-weight: 700;
}

.section-cta-final h2 {
  margin-bottom: var(--spacing-md);
}

/* FOOTER */
.footer {
  padding: var(--spacing-lg) 0;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  text-align: center;
}

.footer-links {
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  margin: 0 var(--spacing-sm);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-link {
  color: #ffffff;
  text-decoration: underline;
}

.footer-link:hover {
  opacity: 0.8;
}

.footer-disclaimer {
  margin-top: 25px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.footer-disclaimer p {
  margin-bottom: 15px;
}

.footer-disclaimer p:last-child {
  margin-bottom: 0;
}

.footer-legal,
.footer-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 auto;
  width: 100%;
  white-space: nowrap;
  text-align: center;
}

@media (max-width: 640px) {
  .footer-legal,
  .footer-text {
    white-space: normal;
  }
}
