/* =======================================================
   RESET + BASE
   ======================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at top, #121212 0%, #050509 50%, #020308 100%);
  color: #ffffff;
  line-height: 1.55;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity .25s ease, transform .25s ease;
}

a:hover {
  opacity: .85;
}

/* Color corporativo rojo */
:root {
  --brand-red: #e11d2f;
  --surface-dark: #10121a;
  --surface-soft: #181b24;
  --border-subtle: rgba(255,255,255,0.07);
}

/* =======================================================
   HEADER ESTILO APPLE + LOGO
   ======================================================= */

.header-apple {
  width: 100%;
  background: #000000;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* LOGO más grande */
.logo-img {
  height: 76px;   /* antes 58px */
  width: auto;
  filter: drop-shadow(0 0 6px rgba(0,0,0,0.7));
}

/* Texto de marca */
.logo-text {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.logo-word {
  display: inline-flex;
  align-items: baseline;
}

.logo-letter-red {
  color: var(--brand-red);
  font-weight: 700;
}

/* Menú superior */
.navbar-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.navbar-menu a {
  font-size: 0.95rem;
  color: #ffffff;
  opacity: .9;
}

/* =======================================================
   BOTONES (general y específico menú)
   ======================================================= */

.btn {
  border-radius: 22px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 20px;
  border: none;
  cursor: pointer;
}

/* Botón principal rojo */
.btn-nav,
.btn-primary {
  background: var(--brand-red);
  color: #ffffff !important;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15),
              0 10px 25px rgba(0,0,0,0.6);
}

.btn-nav:hover,
.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* Botón para contenido, contorno */
.btn-outline {
  border-radius: 22px;
  border: 1px solid var(--brand-red);
  color: var(--brand-red);
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  background: transparent;
}

.btn-outline:hover {
  background: rgba(225,29,47,0.12);
}

/* =======================================================
   LAYOUT GENERAL
   ======================================================= */

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* =======================================================
   HERO ESTILO APPLE (más claro)
   ======================================================= */

.hero {
  padding: 70px 40px;
  background: radial-gradient(circle at top, #181b24 0%, #0d0f16 45%, #05060b 100%);
  border-radius: 28px;
  text-align: center;
  margin-bottom: 60px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.06);
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-title span {
  color: var(--brand-red);
}

.hero-subtitle {
  font-size: 1.08rem;
  opacity: .78;
  margin-bottom: 28px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* =======================================================
   SECCIONES + TARJETAS
   ======================================================= */

.section {
  margin-bottom: 70px;
}

.section-title {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: #ffffff;
}

.section-subtitle {
  opacity: .75;
  font-size: 1.02rem;
  margin-bottom: 26px;
}

/* TARJETAS menos oscuras y con toque rojo */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px;
}

.card {
  background: linear-gradient(145deg, var(--surface-dark), var(--surface-soft));
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.55);
  border: 1px solid var(--border-subtle);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 42px rgba(0,0,0,0.7);
  border-color: rgba(225,29,47,0.7);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #ffffff;
}

.card p {
  font-size: 0.95rem;
  opacity: .78;
}

/* Badges / etiquetas */
.card-badge {
  display: inline-block;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(225,29,47,0.12);
  color: var(--brand-red);
  margin-bottom: 10px;
}

/* Footer tarjeta */
.card-footer {
  margin-top: 14px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: .8;
}

.product-card-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* =======================================================
   PRICING ESTILO APPLE + ROJO
   ======================================================= */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 34px;
}

.pricing-card {
  background: linear-gradient(150deg, var(--surface-dark), #141825);
  padding: 30px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 14px 40px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card.featured {
  border: 1.6px solid var(--brand-red);
  box-shadow: 0 18px 50px rgba(225,29,47,0.45);
}

.pricing-name {
  font-size: 1.4rem;
  font-weight: 600;
}

.pricing-tagline {
  opacity: .75;
  margin-bottom: 14px;
}

.pricing-price {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.pricing-price span {
  font-size: 1rem;
  opacity: .6;
}

.pricing-list {
  list-style: none;
  margin-bottom: 26px;
  opacity: .8;
}

.pricing-list li {
  margin-bottom: 8px;
}

/* =======================================================
   TABLA COMPARATIVA
   ======================================================= */

.table-wrapper {
  margin-top: 32px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-dark);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.55);
}

th {
  background: #111318;
  padding: 14px;
  font-weight: 600;
}

td {
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  opacity: .88;
}

tr:nth-child(even) td {
  background: #151722;
}

/* =======================================================
   FOOTER
   ======================================================= */

footer {
  text-align: center;
  padding: 32px 0 40px;
  opacity: .65;
  font-size: 0.85rem;
}

/* =======================================================
   RESPONSIVE
   ======================================================= */

@media (max-width: 900px) {
  .navbar {
    padding: 0 16px;
  }

  .logo-img {
    height: 64px;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .navbar-menu {
    gap: 16px;
  }

  main {
    padding: 28px 16px 60px;
  }

  .hero {
    padding: 50px 20px;
  }
}

@media (max-width: 640px) {
  .navbar {
    flex-direction: column;
    gap: 10px;
  }

  .navbar-menu {
    justify-content: center;
  }

  .hero {
    margin-bottom: 50px;
  }
}
