/* ==========================================================================
   SECCIÓN DE BENEFICIOS - ESTILOS PREMIUM
   ========================================================================== */
.benefits-panel {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.benefit-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  box-shadow: 0 4px 12px rgba(16, 57, 78, 0.03);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(16, 57, 78, 0.08);
}

.benefit-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.benefit-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.benefit-card:hover .benefit-icon-wrapper {
  transform: scale(1.08);
}

.benefit-icon-wrapper.blue-theme {
  color: var(--blue);
  background: rgba(0, 155, 219, 0.08);
}

.benefit-icon-wrapper.green-theme {
  color: var(--green);
  background: rgba(163, 189, 49, 0.08);
}

.benefit-card h4 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.benefit-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.benefit-card li {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
  position: relative;
  padding-left: 22px;
}

.benefit-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--green);
  font-weight: bold;
  font-size: 1rem;
}

.benefit-card li strong {
  color: var(--ink);
}

#cumlaudeResult,
.cumlaude-status {
  margin-top: 10px;
  padding: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

#cumlaudeResult.success,
.cumlaude-status.success {
  color: #4a5c0a;
}

#cumlaudeResult.error,
.cumlaude-status.error {
  color: #a33737;
}

/* Cabeceras de sección y estructurado */
.benefits-panel {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.benefits-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.benefits-section-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.benefits-section-header h4 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}

.benefits-section-header p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.45;
  max-width: 800px;
}

.section-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
}

.section-badge.blue-badge {
  background: var(--soft-blue);
  color: #0c739e;
  border: 1px solid rgba(0, 155, 219, 0.2);
}

.section-badge.green-badge {
  background: var(--soft-green);
  color: #526506;
  border: 1px solid rgba(163, 189, 49, 0.2);
}

/* Tarjetas de Ventajas Comerciales */
.perks-section {
  border-top: 1px solid var(--line);
  padding-top: 40px;
}

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

.perk-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(16, 57, 78, 0.02);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.perk-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(16, 57, 78, 0.07);
  border-color: rgba(163, 189, 49, 0.4);
}

.perk-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.perk-card-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.perk-card:hover .perk-card-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.perk-card-icon-wrapper.pink-theme {
  background: #fff0f5;
  border: 1px solid rgba(255, 192, 203, 0.3);
}

.perk-card-icon-wrapper.orange-theme {
  background: #fff5eb;
  border: 1px solid rgba(255, 165, 0, 0.15);
}

.perk-card-icon-wrapper.green-theme {
  background: var(--soft-green);
  border: 1px solid rgba(163, 189, 49, 0.25);
}

.perk-card-icon-wrapper.blue-theme {
  background: var(--soft-blue);
  border: 1px solid rgba(0, 155, 219, 0.15);
}

.perk-card h5 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.perk-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Banner de Agradecimiento */
.benefits-thank-you {
  background: var(--soft-green);
  border: 1px solid rgba(163, 189, 49, 0.25);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
}

.thank-you-sprout {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 4px;
  animation: sprout-pulse 2s infinite ease-in-out;
}

.benefits-thank-you h5 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #3e4a05;
}

.benefits-thank-you p {
  margin: 0;
  font-size: 0.98rem;
  color: #55660e;
  max-width: 600px;
  line-height: 1.5;
}

.benefits-thank-you strong {
  font-size: 1rem;
  color: #3e4a05;
  margin-top: 4px;
}

@keyframes sprout-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1) rotate(5deg);
  }
}

@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .perks-grid {
    grid-template-columns: 1fr;
  }
  .benefits-panel {
    gap: 30px;
  }
  .perks-section {
    padding-top: 30px;
  }
}

/* ==========================================================================
   ESTILOS INTERNOS DEL MODAL DE BENEFICIOS - PREMIUM
   ========================================================================== */
.benefit-action {
  margin-top: auto;
  padding-top: 18px;
}

.benefit-action .benefit-info-btn {
  width: 100%;
  justify-content: center;
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.benefit-modal-intro {
  font-size: 0.96rem;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 0;
  margin-bottom: 24px;
}

.benefit-modal-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - 280px);
  overflow-y: auto;
  padding-right: 6px;
}

/* Scrollbar styling for options inside modal */
.benefit-modal-options::-webkit-scrollbar {
  width: 6px;
}
.benefit-modal-options::-webkit-scrollbar-track {
  background: transparent;
}
.benefit-modal-options::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}
.benefit-modal-options::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

.benefit-modal-option-card {
  background: #f8fafb;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 16px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.benefit-modal-option-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 57, 78, 0.04);
  border-color: rgba(0, 155, 219, 0.3);
}

/* Green theme border for discount/special options */
.benefit-modal-option-card:has(.badge-special) {
  border-left-color: var(--green);
}

.benefit-modal-option-card:hover:has(.badge-special) {
  border-color: rgba(163, 189, 49, 0.3);
}

.benefit-modal-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.benefit-modal-option-header h5 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}

.benefit-modal-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.benefit-modal-badge.badge-free {
  background: var(--soft-blue);
  color: #0c739e;
}

.benefit-modal-badge.badge-special {
  background: var(--soft-green);
  color: #526506;
}

.benefit-modal-badge.badge-discount {
  background: #fff0f5;
  color: #c71585;
}

.benefit-modal-option-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Soporte premium para escritorios medianos y pequeños: mantiene la tarjeta y la mascota grandes, la mascota más elevada y visible, sin cortes arriba */
@media (min-width: 561px) and (max-width: 1500px), (min-width: 561px) and (max-height: 960px) {
  .welcome-intro-content {
    max-width: 760px; /* Tarjeta grande y premium */
    transform: translateY(80px); /* Desplazamiento vertical adaptado para dar margen a la mascota más elevada */
  }
  .welcome-intro-glass {
    min-height: 360px;
    padding: 44px 40px;
    border-radius: 28px;
  }
  .welcome-intro-mascot {
    width: min(50vw, 460px); /* Un pelín más grande y nítida */
    bottom: 81.5%; /* Elevada para mostrar más parte del cuerpo y piernas de la mascota saludando */
  }
  .welcome-intro-kicker {
    margin-bottom: 20px;
  }
  .welcome-intro-content p {
    font-size: 2.50rem;
    line-height: 1.2;
  }
  .welcome-intro-button {
    margin-top: 28px;
    min-height: 50px;
    font-size: 1.02rem;
  }
}

/* Soporte para ultra-compactos o portátiles de baja resolución */
@media (min-width: 561px) and (max-width: 1100px), (min-width: 561px) and (max-height: 750px) {
  .welcome-intro-content {
    max-width: 680px;
    transform: translateY(90px); /* Mayor margen vertical en pantallas bajas */
  }
  .welcome-intro-glass {
    min-height: 320px;
    padding: 34px 28px;
    border-radius: 22px;
  }
  .welcome-intro-mascot {
    width: min(45vw, 380px); /* Tamaño compacto pero visible */
    bottom: 81.5%; /* Elevada en proporción */
  }
  .welcome-intro-kicker {
    margin-bottom: 14px;
    min-height: 28px;
    font-size: 0.72rem;
    padding: 0 12px;
  }
  .welcome-intro-content p {
    font-size: 2.10rem;
  }
  .welcome-intro-button {
    margin-top: 22px;
    min-height: 44px;
    font-size: 0.94rem;
    padding-inline: 22px;
  }
}

