/* ==========================================================================
   Softhard Peru — Hoja de estilos compartida
   ========================================================================== */

:root {
  --primary: #25D366;
  --primary-dark: #128C7E;
  --dark: #1a1a2e;
  --dark-secondary: #16213e;
  --bg-1: #0f0f23;
  --bg-2: #1a1a2e;
  --light: #f8f9fa;
  --text: #333;
  --text-light: #666;
  --accent: #00a884;
  --card-bg: rgba(255,255,255,0.05);
  --card-border: rgba(255,255,255,0.1);
  --muted: #9aa0b4;
  --white: #ffffff;
  --danger: #ff6b6b;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---------------------------------- Header ---------------------------------- */

header {
  background: rgba(15,15,35,0.75);
  backdrop-filter: blur(10px);
  padding: 1.1rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo span { color: var(--primary); }

.logo img { height: 38px; width: auto; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: #dcdce6;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* ---------------------------------- Buttons ---------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-whatsapp {
  background: var(--primary);
  color: #fff;
  padding: 1rem 2rem;
  width: 100%;
  font-size: 1rem;
}

.btn-whatsapp:hover {
  background: var(--primary-dark);
  transform: scale(1.02);
}

.btn-whatsapp svg { width: 22px; height: 22px; flex-shrink: 0; }

.btn-sm {
  padding: 0.65rem 1.3rem;
  width: auto;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.9rem 1.8rem;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ---------------------------------- Hero (home) ---------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.hero {
  text-align: center;
  padding: 9rem 2rem 3rem;
  color: #fff;
}

.hero .eyebrow {
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero h1 span { color: var(--primary); }

.hero p {
  font-size: 1.2rem;
  color: #aaa;
  max-width: 640px;
  margin: 0 auto;
}

/* ---------------------------------- Page hero (subpages) ---------------------------------- */

.page-hero {
  text-align: center;
  padding: 9rem 2rem 3.5rem;
  color: #fff;
}

.page-hero .eyebrow {
  margin-bottom: 1.25rem;
}

.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.page-hero h1 span { color: var(--primary); }

.page-hero p {
  font-size: 1.1rem;
  color: #aaa;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }

/* ---------------------------------- Trust bar ---------------------------------- */

.trust-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.trust-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  color: #ddd;
}

.trust-item .icon {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  display: block;
}

.trust-item strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.trust-item span.desc {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------------------------------- Sections ---------------------------------- */

section.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
}

section.section.tight { padding-top: 1rem; padding-bottom: 1rem; }

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: #fff;
}

.section-head .eyebrow {
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: block;
}

.section-head h2 {
  font-size: 2.1rem;
  margin-bottom: 0.75rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------------------------------- Plans ---------------------------------- */

.plans-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.plan-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.plan-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(37, 211, 102, 0.15);
}

.plan-card.popular {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.1) 0%, rgba(37, 211, 102, 0.05) 100%);
  border-color: var(--primary);
}

.popular-badge {
  position: absolute;
  top: 20px;
  right: -35px;
  background: var(--primary);
  color: #fff;
  padding: 5px 40px;
  font-size: 0.75rem;
  font-weight: 600;
  transform: rotate(45deg);
}

.plan-name {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.plan-storage {
  color: var(--primary);
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.plan-storage span { font-size: 1rem; color: #aaa; }

.plan-price {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.plan-price span { font-size: 1rem; color: #aaa; font-weight: 400; }

.plan-period {
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.plan-period .annual-total {
  color: var(--primary);
  font-weight: 600;
}

.features-list {
  list-style: none;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.features-list li {
  color: #ccc;
  padding: 0.45rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.93rem;
}

.features-list li::before {
  content: "\2713";
  color: var(--primary);
  font-weight: bold;
  flex-shrink: 0;
}

.section-divider {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 0 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
}

.section-divider h2 { color: #fff; font-size: 2rem; margin-bottom: 0.5rem; }
.section-divider p { color: var(--primary); font-size: 1.1rem; }

/* ---------------------------------- Why us / feature grid ---------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  color: #ccc;
}

.feature-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(37, 211, 102, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-card p { font-size: 0.92rem; color: var(--muted); line-height: 1.55; }

/* ---------------------------------- Stats ---------------------------------- */

.stats-bar {
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.stats-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stats-grid .stat-num {
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--primary);
}

.stats-grid .stat-label {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* ---------------------------------- Cards: team / values ---------------------------------- */

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.two-col.reverse { grid-template-columns: 0.9fr 1.1fr; }

.two-col h2 { color: #fff; font-size: 2rem; margin-bottom: 1rem; }
.two-col p { color: var(--muted); margin-bottom: 1rem; line-height: 1.7; }

.two-col img,
.media-block {
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 3rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

/* ---------------------------------- FAQ ---------------------------------- */

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question .plus {
  color: var(--primary);
  font-size: 1.3rem;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-question .plus { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.faq-answer-inner { padding: 0 1.5rem 1.25rem; }

.faq-item.open .faq-answer { max-height: 400px; }

/* ---------------------------------- Contact page ---------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.contact-info-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  color: #ccc;
}

.contact-info-list .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(37, 211, 102, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-info-list strong { display: block; color: #fff; font-size: 0.95rem; }
.contact-info-list span { color: var(--muted); font-size: 0.9rem; }

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  color: #ddd;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* ---------------------------------- Legal pages ---------------------------------- */

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  color: #ccc;
  line-height: 1.75;
}

.legal-content h2 {
  color: #fff;
  font-size: 1.3rem;
  margin: 2rem 0 0.75rem;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p, .legal-content li { color: #bbb; margin-bottom: 0.75rem; font-size: 0.95rem; }

.legal-content ul { padding-left: 1.25rem; }

.legal-updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
  display: block;
}

/* ---------------------------------- CTA band ---------------------------------- */

.cta-band {
  max-width: var(--max-width);
  margin: 0 auto 4rem;
  padding: 3rem 2.5rem;
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.14) 0%, rgba(18, 140, 126, 0.08) 100%);
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: var(--radius-lg);
  text-align: center;
}

.cta-band h2 { color: #fff; font-size: 1.7rem; margin-bottom: 0.6rem; }
.cta-band p { color: var(--muted); margin-bottom: 1.5rem; }

/* ---------------------------------- Footer ---------------------------------- */

footer {
  background: rgba(0,0,0,0.35);
  padding-top: 3.5rem;
  color: #888;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}

.footer-col p { font-size: 0.88rem; line-height: 1.65; color: #999; margin-bottom: 1rem; }

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }

.footer-col a {
  color: #999;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--primary); }

.footer-logo { color: #fff; font-size: 1.3rem; font-weight: 700; margin-bottom: 0.9rem; }
.footer-logo span { color: var(--primary); }

.footer-badges { display: flex; gap: 0.6rem; margin-top: 1rem; flex-wrap: wrap; }

.footer-badge {
  font-size: 0.72rem;
  color: var(--primary);
  border: 1px solid rgba(37, 211, 102, 0.3);
  background: rgba(37, 211, 102, 0.08);
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
}

.footer-bottom .legal-links { display: flex; gap: 1.25rem; }
.footer-bottom a { color: #888; text-decoration: none; }
.footer-bottom a:hover { color: var(--primary); }

/* ---------------------------------- Floating WhatsApp button ---------------------------------- */

.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 300;
  text-decoration: none;
  animation: wa-pulse 2.4s infinite;
}

.wa-float svg { width: 30px; height: 30px; fill: #fff; }

.wa-float:hover { background: var(--primary-dark); transform: scale(1.06); }

@keyframes wa-pulse {
  0% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------------------------------- Responsive ---------------------------------- */

@media (max-width: 900px) {
  .two-col, .two-col.reverse {
    grid-template-columns: 1fr;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero h1, .page-hero h1 { font-size: 2rem; }

  .plans-container { padding: 1rem 1rem 2rem; }

  nav.main-nav .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(15,15,35,0.98);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transform: translateY(-150%);
    opacity: 0;
    transition: all 0.25s ease;
    pointer-events: none;
  }

  nav.main-nav .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle { display: flex; }

  .footer-grid { grid-template-columns: 1fr; padding-bottom: 2rem; }

  .footer-bottom { flex-direction: column; text-align: center; }

  .wa-float { bottom: 16px; right: 16px; width: 54px; height: 54px; }
}

@media (max-width: 480px) {
  .container, section.section, .plans-container, .trust-bar { padding-left: 1.25rem; padding-right: 1.25rem; }
}
