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

:root {
  --primary-color: #2D7BEA;
  --secondary-color: #7BC943;
  --heading-color: #2D3748;
  --text-color: #6B7280;
  --text-light: #6B7280;
  --background: #F5FAFC;
  --white: #fff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 18px 40px rgba(0, 0, 0, 0.12);
  --card-accent-1: #35B7D8;
  --card-accent-2: #4CAF50;
  --card-accent-3: #22C55E;
}

html, body {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--background);
  color: var(--heading-color);
  position: relative;
}

/* =========================================
   GLOBAL
========================================= */

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.container-full {
  width: 85%;
  max-width: 1600px;
  margin: auto;
}

.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 42px;
  margin-bottom: 15px;
  line-height: 1.3;
}

.section-title p {
  color: var(--text-light);
  font-size: 16px;
}

/* =========================================
   NAVBAR
========================================= */

.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-wrapper {
  display: flex;
  align-items: center;

}

.logo {
  color: var(--primary-color);
  font-size: 30px;
  font-weight: 700;
  margin: 0;
}

.logo-img {
  height: 75px;
  width: auto;
  display: block;
  margin-left: 0;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-left: 50px;
}

.social-links a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  background: rgba(123, 201, 67, 0.15);
  border-radius: 10px;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  background: rgba(45, 123, 234, 0.18);
  color: var(--primary-color);
}

.social-links svg {
  width: 18px;
  height: 18px;
}

.social-links a {
  position: relative;
}

.social-links a::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(123, 201, 67, 0.98);
  color: white;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.social-links a:hover::after,
.social-links a:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(2px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  /* Reduced gap to accommodate more links */
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--heading-color);
  font-weight: 500;
  transition: 0.3s;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 3px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.menu-btn {
  display: none;
  border: none;
  background: none;
  font-size: 32px;
  cursor: pointer;
}

/* =========================================
   HERO
========================================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #fff, #F5FAFC);
  padding-top: 120px;
  padding-bottom: 80px;
  overflow: hidden;
  --bg-offset: 0px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40vw;
  height: 100%;
  background: url("../images/wm_s2-Photoroom.png") center / cover no-repeat;
  background-position: center var(--bg-offset);
  opacity: 0.14;
  pointer-events: none;
  animation: bgDrift 18s ease-in-out infinite alternate;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
}

.tag {
  display: inline-block;
  padding: 10px 18px;
  background: #F5FAFC;
  color: var(--primary-color);
  border-radius: 30px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
}

.hero-text h2 {
  font-size: 58px;
  line-height: 1.1;
  margin-bottom: 25px;
}

.hero-text h2 span {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  color: var(--text-color);
  line-height: 1.9;
  margin-bottom: 30px;
  font-size: 17px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.store-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 12px;
  background: #000000;
  color: white;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.store-badge {
  width: 52px;
  height: 52px;
  min-width: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.store-badge svg {
  width: 28px;
  height: 28px;
}

.store-link span:last-child {
  font-size: 16px;
}

.store-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.18);
  opacity: 0.98;
}

.hero-store {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.qr-code-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: width 0.3s ease, height 0.3s ease;
}

.qr-code-wrapper.active {
  width: 250px;
  height: 250px;
  transform: translateY(-8px);
  animation: qrFloat 3s ease-in-out infinite;
}

.qr-code-image {
  width: 180px;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.qr-code-wrapper.active .qr-code-image {
  transform: scale(1.8);
}

@keyframes qrFloat {

  0%,
  100% {
    transform: translateY(-8px);
  }

  50% {
    transform: translateY(-16px);
  }
}

.btn {
  padding: 15px 30px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary {
  background: var(--primary-color);
  color: white;
}

.primary:hover {
  transform: translateY(-4px);
}

.secondary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.secondary:hover {
  background: var(--primary-color);
  color: white;
}

.hero-card {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-phone-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  animation: float 5s ease-in-out infinite;
  filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.18));
}

/* =========================================
   WHAT IS
========================================= */

.what-is-redellas {
  background: white;
}

.what-is-redellas-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.what-is-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.what-is-row--center {
  width: 67%;
  margin: auto;
  grid-template-columns: repeat(2, 1fr);
}

.what-is-row>.what-is-card:nth-child(3n+1) {
  border-left-color: var(--card-accent-1);
}

.what-is-row>.what-is-card:nth-child(3n+2) {
  border-left-color: var(--card-accent-2);
}

.what-is-row>.what-is-card:nth-child(3n+3) {
  border-left-color: var(--card-accent-3);
}

.what-is-card {
  background: white;
  padding: 35px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: 0.3s;
  border-left: 5px solid var(--primary-color);
  text-align: center;
}

.what-is-card:hover,
.what-is-card.active {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-left-width: 8px;
}

.what-is-card h3 {
  margin-bottom: 15px;
  font-size: 22px;
}

.what-is-card p {
  color: var(--text-color);
  line-height: 1.8;
}

.what-is-content-wrapper {
  display: grid;
  grid-template-columns: 7fr 3fr;
  /* 70% and 30% for desktop */
  gap: 40px;
  /* Gap between the two main content areas */
  align-items: center;
  /* Center items vertically */
}

/* Adjust section-title margin for the moved community section title */
.what-is-content-wrapper>div:last-child .section-title {
  margin-top: 0;
  /* Remove top margin if it's the first element in the grid cell */
  margin-bottom: 40px;
  /* Adjust as needed */
}

@media(max-width:1024px) {
  .what-is-content-wrapper {
    grid-template-columns: 1fr;
    /* Stack columns on tablet */
    gap: 50px;
    /* Adjust gap for stacked layout */
  }

  .what-is-content-wrapper>div:last-child .section-title {
    margin-top: 50px;
    /* Add some top margin when stacked */
  }
}

/* =========================================
   ZOOM / LUPA EFECTO
========================================= */

.zoom-container {
  position: relative;
  display: inline-block;
}

.zoom-lens {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  background-repeat: no-repeat;
  pointer-events: none;
  /* Deja pasar el click/hover a la imagen de abajo */
  display: none;
  /* Oculto por defecto */
  z-index: 10;
}

/* =========================================
   FEATURES
========================================= */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.feature-card {
  background: white;
  padding: 40px 30px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: 0.3s;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.icon {
  font-size: 42px;
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--text-color);
  line-height: 1.7;
}

/* =========================================
   HOW
========================================= */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 900px;
  margin: auto;
}

.how {
  position: relative;
  overflow: hidden;
}

.how {
  --bg-offset: 0px;
}

.how::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40vw;
  height: 100%;
  background: url("../images/wm_s2-Photoroom.png") center 20% / cover no-repeat;
  background-position: center var(--bg-offset);
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
  animation: bgDrift 18s ease-in-out infinite alternate;
}

.how-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.how-image-wrapper {
  display: flex;
  justify-content: flex-end;
}

.how-image {
  max-width: 520px;
  width: 100%;
  transition: transform 0.3s ease;
}

.how-image:hover {
  animation-play-state: paused;
  transform: scale(1.03);
}

.step {
  background: white;
  padding: 40px;
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: white;
  padding: 40px;
  border-radius: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step:hover,
.step.active {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.14);
}

.step:hover span,
.step.active span {
  animation: pulse-beacon 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.step span {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: white;
  font-weight: bold;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 4px;
}

.step-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step h3 {
  margin: 0;
  line-height: 1.2;
}

.step p {
  color: var(--text-color);
  line-height: 1.8;
}

/* =========================================
   PRICING
========================================= */

.pricing {
  background: var(--background);
}

.pricing-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  background: white;
  padding: 8px;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
}

.pricing-tab {
  border: none;
  background: transparent;
  padding: 12px 24px;
  border-radius: 40px;
  font-weight: 600;
  color: var(--text-color);
  cursor: pointer;
  transition: 0.3s;
  font-family: inherit;
  font-size: 15px;
}

.pricing-tab.active {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 10px rgba(45, 123, 234, 0.3);
}

.price-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.price-period {
  font-size: 16px;
  color: var(--text-light);
  font-weight: normal;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.price-card {
  background: white;
  padding: 50px 35px;
  border-radius: 24px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow);
  transition: 0.3s;
  border: 3px solid transparent;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.price-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(45, 123, 234, 0.3);
  border-color: var(--primary-color);
}

.popular {
  border: 3px solid var(--primary-color);
}

.badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 14px;
}

.price-card h2 {
  font-size: 48px;
  color: var(--primary-color);
  margin: 20px 0;
}

.price-card ul {
  list-style: none;
  margin: 30px 0;
}

.price-card li {
  margin: 12px 0;
  color: var(--text-color);
}

.price-card button {
  border: none;
  padding: 15px 30px;
  border-radius: 30px;
  background: var(--primary-color);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.price-card button:hover {
  transform: scale(1.05);
}

/* =========================================
   CTA
========================================= */

.contacto {
  padding: 120px 20px;
  background: linear-gradient(135deg, #F5FAFC, #F5FAFC);
  text-align: center;
  color: var(--heading-color);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =========================================
   CONTACT
========================================= */

.contact .section-title {
  margin-bottom: 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.contact-card,
.contact-form {
  background: white;
  padding: 40px;
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.contact-card:hover,
.contact-form:hover {
  border-color: #2D7BEA;
  box-shadow: 0 0 20px rgba(45, 123, 234, 0.4);
}

.contact-card h3 {
  margin-bottom: 18px;
}

.contact-card p {
  color: var(--text-color);
  line-height: 1.9;
  margin-bottom: 25px;
}

.contact-info p {
  margin-bottom: 12px;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-info svg {
  flex-shrink: 0;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.contact-form label {
  font-weight: 600;
  text-align: left;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  border: 1px solid rgba(34, 34, 34, 0.12);
  border-radius: 16px;
  padding: 16px 18px;
  font-size: 15px;
  color: var(--heading-color);
  background: #fbfbfb;
  transition: 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(45, 123, 234, 0.6);
  box-shadow: 0 10px 25px rgba(45, 123, 234, 0.15);
  transform: translateY(-3px);
  background: #fff;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form .btn {
  width: 100%;
  justify-content: center;
}

@media(max-width:1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

/* =========================================
   FOOTER
========================================= */

.cta h2 {
  font-size: 48px;
  margin-bottom: 20px;
}

.cta p {
  margin-bottom: 30px;
  line-height: 1.7;
}

/* =========================================
   FOOTER
========================================= */

.footer {
  background: #111;
  color: white;
  padding-top: 70px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  padding-bottom: 50px;
}

.footer h3,
.footer h4 {
  margin-bottom: 15px;
}

.footer p {
  color: #ccc;
  line-height: 1.8;
}

.copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #888;
}

.copy-left,
.copy-right {
  display: inline-block;
}

.copy-right {
  margin-left: auto;
}

@media (max-width: 600px) {
  .copy {
    flex-direction: column;
    text-align: center;
  }

  .copy-right {
    margin-left: 0;
  }
}

/* =========================================
   ANIMATIONS
========================================= */

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: 1s ease;
}

.fade-left {
  opacity: 0;
  transform: translateX(40px);
  transition: 1s ease;
}

.fade-right {
  opacity: 0;
  transform: translateX(-40px);
  transition: 1s ease;
}

.show {
  opacity: 1;
  transform: translate(0);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

@keyframes bgDrift {
  0% {
    background-position: center 15%;
  }

  100% {
    background-position: center 45%;
  }
}

@keyframes pulse-beacon {
  0% {
    box-shadow: 0 0 0 0 rgba(45, 123, 234, 0.5);
  }

  100% {
    box-shadow: 0 0 0 20px rgba(45, 123, 234, 0);
  }
}

/* =========================================
   TABLET
========================================= */

@media(max-width:1024px) {

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    order: 2;
  }

  .hero-card {
    order: 1;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-store {
    justify-content: center;
  }

  .hero-text h2 {
    font-size: 48px;
  }

  .hero-phone-image {
    max-width: 400px;
  }

  .what-is-row,
  .what-is-row--center {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .how-content {
    grid-template-columns: 1fr;
  }

  .how-image-wrapper {
    justify-content: center;
  }

  .hero::before {
    display: none;
    /* display:none; */
    /* Se ha comentado para que el fondo sea visible en tablets/móviles */
  }
}

/* =========================================
   MOBILE
========================================= */

@media(max-width:768px) {

  .section {
    padding: 80px 0;
  }

  .section-title h2 {
    font-size: 34px;
  }

  .hero {
    padding-top: 140px;
  }

  .hero-text h2 {
    font-size: 38px;
  }

  .hero-text p {
    font-size: 15px;
  }

  .hero-phone-image {
    max-width: 300px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
  }

  .qr-code-wrapper {
    display: none;
  }

  .logo-img {
    height: 55px;
    margin-left: 0;
  }

  .social-links {
    margin-left: 10px !important;
    gap: 5px;
  }
  
  .social-links a {
    width: 28px;
    height: 28px;
  }
  
  .social-links svg {
    width: 16px;
    height: 16px;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 30px;
    transition: 0.4s;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
  }

  .nav-links.active {
    right: 0;
  }

  .menu-btn {
    display: block;
  }

  .what-is-row,
  .what-is-row--center {
    grid-template-columns: 1fr;
  }

  .what-is-content-wrapper>div:last-child .section-title {
    margin-top: 40px;
    /* Adjust margin for mobile when stacked */
  }

  .footer-content {
    text-align: center;
  }

  .cta h2 {
    font-size: 36px;
  }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media(max-width:480px) {

  .container {
    width: 92%;
  }

  .container-full {
    width: 92%;
  }

  .hero-text h2 {
    font-size: 32px;
  }

  .hero-phone-image {
    max-width: 260px;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .price-card {
    padding: 40px 25px;
  }

  .what-is-card,
  .feature-card,
  .step {
    padding: 28px;
  }
}

/* =========================================
   NEW PRICING TABLE
========================================= */

.pricing {
  background: linear-gradient(180deg, #fff, #F5FAFC);
}

.pricing-table-wrapper {
  overflow-x: auto;
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  min-width: 900px;
  overflow: hidden;
}

.pricing-table thead {
  background: linear-gradient(135deg, #2D7BEA, #7BC943);
  color: white;
}

.pricing-table th {
  padding: 35px 20px;
  text-align: center;
  position: relative;
}

.pricing-table th:first-child {
  text-align: left;
  width: 28%;
  font-size: 18px;
}

.plan-header h3 {
  font-size: 24px;
  margin-bottom: 10px;
  font-weight: 700;
}

.plan-header span {
  font-size: 38px;
  font-weight: 700;
  display: block;
}

.recommended {
  background: rgba(255, 255, 255, 0.08);
}

.recommended-badge {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: var(--primary-color);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
}

.pricing-table tbody tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: 0.2s;
}

.pricing-table tbody tr:hover {
  background: #F5FAFC;
}

.pricing-table td {
  padding: 24px 20px;
  text-align: center;
  font-size: 16px;
  color: var(--text-color);
}

.pricing-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--heading-color);
}

.table-buttons td {
  padding: 35px 20px;
  background: #fff;
}

.table-btn {
  border: none;
  padding: 14px 26px;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  width: 100%;
  max-width: 180px;
}

.primary-btn {
  background: var(--primary-color);
  color: white;
}

.primary-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(45, 123, 234, 0.3);
}

.secondary-btn {
  background: #f3f3f3;
  color: #333;
}

.secondary-btn:hover {
  background: #e9e9e9;
  transform: translateY(-4px);
}

/* MOBILE */

@media(max-width:768px) {

  .pricing-table {
    min-width: 700px;
  }

  .pricing-table th {
    padding: 28px 16px;
  }

  .pricing-table td {
    padding: 20px 16px;
    font-size: 14px;
  }

  .plan-header h3 {
    font-size: 20px;
  }

  .plan-header span {
    font-size: 28px;
  }
}

/* =========================================
   NEW PRICING CARDS
========================================= */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: white;
  border-radius: 32px;
  padding: 45px 35px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
  transition: 0.35s ease;
  overflow: hidden;
  border: 2px solid rgba(0, 0, 0, 0.04);
}

.price-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 15px 30px rgba(45, 123, 234, 0.3);
  border-color: var(--primary-color);
}

.price-card.popular {
  border: 2px solid var(--primary-color);
  transform: scale(1.03);
}

.price-card.popular:hover {
  transform: scale(1.03) translateY(-12px);
}

.popular-label {
  position: absolute;
  top: 18px;
  right: 18px;
  background: linear-gradient(135deg, #2D7BEA, #7BC943);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 30px;
  letter-spacing: 0.5px;
}

.plan-icon {
  width: 70px;
  height: 70px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: #F5FAFC;
  margin-bottom: 25px;
}

.plan-icon.premium {
  background: linear-gradient(135deg, #2D7BEA, #7BC943);
}

.price-card h3 {
  font-size: 30px;
  margin-bottom: 20px;
}

.price {
  font-size: 52px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 15px;
}

.price span {
  display: block;
  font-size: 15px;
  color: var(--text-light);
  margin-top: 10px;
  font-weight: 500;
}

.plan-description {
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: 30px;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 35px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--heading-color);
  font-weight: 500;
}

.check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e8fff1;
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.disabled {
  color: #999 !important;
}

.plan-btn {
  width: 100%;
  border: none;
  border-radius: 18px;
  padding: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  font-size: 15px;
}

.primary-btn {
  background: linear-gradient(135deg, #2D7BEA, #7BC943);
  color: white;
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(45, 123, 234, 0.25);
}

.secondary-btn {
  background: #f5f5f5;
  color: #222;
}

.secondary-btn:hover {
  background: #ebebeb;
}

@media(max-width:768px) {

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

  .price {
    font-size: 44px;
  }

  .price-card {
    padding: 38px 28px;
  }
}

/* =========================================
   BACK BUTTON
========================================= */

.back-button {
  position: fixed;
  top: 110px;
  left: 40px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: white;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  z-index: 900;
}

.back-button:hover {
  transform: translateX(-5px);
  background: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-hover);
}

@media(max-width:1024px) {
  .back-button {
    top: 95px;
    left: 20px;
    width: 45px;
    height: 45px;
  }
}

@media(max-width:768px) {
  .community-stories-grid {
    grid-template-columns: 1fr;
  }
}

@media(max-width:768px) {
  .back-button {
    top: 90px;
    left: 10px;
    width: 40px;
    height: 40px;
  }

  .back-button svg {
    width: 20px;
    height: 20px;
  }
}

/* =========================================
   COMUNIDAD
========================================= */

.community-stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.story-card {
  background: white;
  padding: 35px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: 0.3s;
  border-top: 5px solid var(--secondary-color);
  /* Usando el color secundario para el acento */
}

.story-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-top-width: 8px;
}

.story-card h3 {
  margin-bottom: 15px;
  font-size: 22px;
  color: var(--primary-color);
}

.story-card p {
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 15px;
}

.story-author {
  font-style: italic;
  color: var(--text-light);
  font-weight: 500;
}
