:root {
  /* Color principal */
  --primary: #052a51;
  --primary-dark: #041f3d;
  --primary-light: #0a3b6f;

  /* Fondos */
  --bg-section: #f6f8fb;
  --bg-card: #ffffff;

  /* Texto */
  --text-main: #052a51;
  --text-muted: #6b7280;

  /*PRO*/

  --purple-pro: #7c3aed;
  --purple-pro-dark: #602fb5;

  /* Premium */
  --gold-premium: #d4af37;
  --gold-light: #f5d76e;

  /* Estados */
  --success: #2ecc71;
  --danger: #e74c3c;
}

:root {
  --primary: #052a51;
  --primary-light: #0b3f78;
  --primary-soft: #eaf1f8;

  --text-dark: #1f2a37;
  --text-muted: #6b7280;

  --border: #d1d9e6;
  --bg-input: #f9fbfd;

  --danger: #dc2626;
  --success: #16a34a;

  --gold-premium: #d4af37;
}




/* Header base ya existente */
.header {
  width: 100%;
  min-height: 100vh;
  position: relative;
}

.plans-section {
  padding: 150px 20px 150px;
  background: var(--bg-section);
  text-align: center;
}

.plans-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.plans-subtitle {
  color: var(--text-muted);
  margin-bottom: 50px;
}


.plans-container {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.plan-card {
  background: var(--bg-card);
  width: 320px;
  padding: 40px 30px;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  position: relative;

  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.6s ease-out forwards;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* delays */
.plan-card:nth-child(1) {
  animation-delay: 0.2s;
}
.plan-card:nth-child(2) {
  animation-delay: 0.4s;
}
.plan-card:nth-child(3) {
  animation-delay: 0.6s;
}
.plan-card:nth-child(4) {
  animation-delay: 0.8s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* delay escalonado */
.plan-card:nth-child(1) {
  animation-delay: 0.2s;
}
.plan-card:nth-child(2) {
  animation-delay: 0.45s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}


.plan-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.plan-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.plan-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  text-align: left;
}

.plan-card ul li {
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-main);
}

.plan-card ul li i {
  margin-right: 10px;
  color: var(--success);
}

.plan-card ul li .fa-xmark {
  color: var(--danger);
}

.plan-btn {
  padding: 12px 30px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 1rem;
}



/******************************************************************************************************/

/* PREMIUM */

.premium .plan-icon {
  color: var(--gold-premium);
}

.basico-btn{
    background: var(--primary);
    transition: background 0.3s ease;
}

.basico-btn:hover{
    background: var(--primary-dark);
}


.premium-btn {
  background: var(--gold-light);
  color: #1f1f1f;
    transition: background 0.3s ease;
}

.premium-btn:hover {
  background: var(--gold-premium);
}

.plan-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(
    135deg,
    var(--gold-light),
    var(--gold-premium)
  );
  color: #1f1f1f;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
}

.includes-basic-pro {
  background: #eef3f8;
  color: var(--primary);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.includes-basic-pro i {
  color: var(--gold-premium);
  margin-right: 6px;
}



/* Precio plan básico */
.basic-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-muted); /* gris */
  margin: 10px 0 25px;
}

.basic-price .currency {
   font-size: 1.5rem;
  vertical-align: super;
  margin-right: 4px;
}

.basic-price .period {
   font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 6px;
}



/* Caja interna de beneficios */
.premium-box {
  background: #fdfbf4;
  border: 1px solid var(--gold-light);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 25px;
  text-align: left;
}

.premium-box h4 {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.premium-box h4 i,
.premium-box ul li i {
  color: var(--gold-premium);
}

.premium-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.premium-box ul li {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.premium-box ul li i {
  color: #2ecc71;
  margin-right: 8px;
}

/* Precio Premium */
.premium-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold-premium);
  margin: 10px 0 25px;
}

.premium-price .currency {
  font-size: 1.5rem;
  vertical-align: super;
  margin-right: 4px;
}

.premium-price .period {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 6px;
}

/***************************************PRO***************************************************/


/* PRO */

.pro .plan-icon {
  color: #7c3aed; /* morado elegante */
}

.pro-price {
  font-size: 3rem;
  font-weight: 800;
  color: #7c3aed;
 margin: 10px 0 25px;
}


.pro-price .currency {
   font-size: 1.5rem;
  vertical-align: super;
  margin-right: 4px;
}

.pro .period {
  font-size: 0.9rem;
  color: var(--text-muted);
    font-weight: 500;
  margin-left: 6px;

}

.includes-basic {
  background: #eef3f8;
  color: var(--primary);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.includes-basic i {
  color: var(--purple-pro);
  margin-right: 6px;
}

.pro-btn {
  background: var(--purple-pro);
   transition: background 0.3s ease;
}

.pro-btn:hover {
  background: var(--purple-pro-dark);
}



/***************************************************************************************************/




/**=======PLAN PERSONALIZADO============**/




.custom .plan-icon {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--purple-pro) 50%,
    var(--gold-premium) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.custom h3{
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--purple-pro) 50%,
    var(--gold-premium) 100%
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  background-clip: text;
  color: transparent;

  display: inline-block;
}

.custom-btn{
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--purple-pro) 50%,
    var(--gold-premium) 100%
  );
}
/* -------------------- Media Queries -------------------- */



/* Tablets más pequeñas y móviles grandes (≤768px) */
@media screen and (max-width: 768px) {
  .header {
    height: 80vh; /* menos altura para tablet */
    background-attachment: scroll; /* evita efecto fijo que puede cortar imagen */
  }
}

/* Móviles pequeños (≤480px) */
@media screen and (max-width: 480px) {
  .header {
    height: 70vh;
  }

}

/* Móviles pequeños (≤480px) */
@media screen and (max-width: 340px) {

  .header-content{
    width: 300px;
  }
}
