/**
 * YüFin - Estilos da Página de Planos
 */

/* ===== HERO DOS PLANOS COM ESTILO FLUTUANTE ===== */
.plans-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 24px 64px;
  margin-top: 80px;
  background: var(--yufin-gradient);
  text-align: center;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plans-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  animation: plansBackgroundFloat 8s ease-in-out infinite;
}

@keyframes plansBackgroundFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-10px) scale(1.02); }
}

.plans-hero h1 {
  position: relative;
  z-index: 2;
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  margin-bottom: 1.5rem;
  font-family: 'Nunito', sans-serif;
  line-height: 1.2;
  text-align: center;
  word-wrap: break-word;
  hyphens: auto;
}

.plans-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.plans-hero p {
  position: relative;
  z-index: 2;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  animation: plansSubtitleFloat 2s ease-in-out infinite;
  max-width: 600px;
  margin: 0 auto;
  margin-top: 12px;
}

@keyframes plansSubtitleFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-3px); }
}

/* ===== SEÇÃO HEADER DOS PLANOS ===== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem) !important;
  font-weight: 800 !important;
  color: #2c3e50 !important;
  margin-bottom: 1rem !important;
  font-family: 'Nunito', sans-serif;
}

.section-header p {
  font-size: 1.25rem;
  color: #6c757d;
  max-width: 500px;
  margin: 0 auto;
}

/* ===== CONTAINER DOS PLANOS ===== */
.plans-container {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* ===== CARDS DOS PLANOS ===== */
.plan-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(255, 140, 66, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 600px; /* Altura fixa para todos os cards */
}

.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 140, 66, 0.3);
}

/* Removido destaque do plano recomendado - todos os cards iguais */

/* ===== HEADER DO PLANO ===== */
.plan-header {
  text-align: center;
  margin-bottom: 1.5rem;
  height: 140px; /* Altura fixa para header */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.plan-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.plan-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-family: 'Nunito', sans-serif;
}

.plan-subtitle {
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.4;
  text-align: center !important;
  display: block !important;
  width: 100% !important;
  margin: 0 auto !important;
}

/* ===== PREÇO DO PLANO ===== */
.plan-price {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e9ecef;
  height: 100px; /* Altura fixa para preço */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--yufin-primary);
  font-family: 'Nunito', sans-serif;
}

.period {
  font-size: 0.9rem;
  color: #6c757d;
  margin-top: 0.5rem;
}

/* ===== LISTA DE FUNCIONALIDADES ===== */
.feature-list {
  margin-bottom: 2rem;
  height: 200px; /* Altura fixa para lista de funcionalidades */
  overflow-y: auto;
  padding-right: 0.5rem;
  flex-grow: 1;
}

.feature-list::-webkit-scrollbar {
  width: 4px;
}

.feature-list::-webkit-scrollbar-track {
  background: #f1f3f4;
  border-radius: 2px;
}

.feature-list::-webkit-scrollbar-thumb {
  background: var(--yufin-primary);
  border-radius: 2px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: #495057;
}

.feature-item::before {
  content: '✓';
  color: var(--yufin-primary);
  font-weight: bold;
  flex-shrink: 0;
}

/* ===== BOTÃO DO PLANO ===== */
.plan-button {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px; /* Altura fixa para botões */
  margin-top: auto; /* Empurra o botão para baixo */
}

.plan-button.primary {
  background: var(--yufin-gradient);
  color: white;
}

.plan-button.primary:hover {
  background: linear-gradient(135deg, #d67e0a 0%, #ee9116 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(238, 145, 22, 0.3);
}

.plan-button.secondary {
  background: #f8f9fa;
  color: var(--yufin-primary);
  border: 2px solid var(--yufin-primary);
}

.plan-button.secondary:hover {
  background: var(--yufin-primary);
  color: white;
  transform: translateY(-2px);
}

/* ===== SEÇÃO ENTERPRISE/ESPECIALISTA COM ESTILO FLUTUANTE ===== */
.enterprise-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.enterprise-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(238,145,22,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  animation: enterpriseBackgroundFloat 8s ease-in-out infinite;
}

@keyframes enterpriseBackgroundFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-10px) scale(1.02); }
}

.enterprise-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.enterprise-section h2 {
  position: relative;
  z-index: 2;
  font-size: clamp(2rem, 4vw, 3rem) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  white-space: normal !important; /* Alterado de nowrap para normal */
  overflow: visible !important;
  text-overflow: unset !important;
  margin-bottom: 1.5rem !important;
  font-family: 'Nunito', sans-serif;
  word-wrap: break-word !important; /* Adicionado para quebra de linha */
  hyphens: auto !important; /* Adicionado para hifenização */
}

.enterprise-section p {
  position: relative;
  z-index: 2;
  font-size: 1.25rem !important;
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 600 !important;
  margin-bottom: 2rem !important;
  animation: enterpriseSubtitleFloat 2s ease-in-out infinite;
  font-family: 'Nunito Sans', sans-serif;
  line-height: 1.6;
}

@keyframes enterpriseSubtitleFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-3px); }
}

/* ===== EFEITO DE PARTÍCULAS FLUTUANTES ===== */
.enterprise-section::after {
  content: '✨';
  position: absolute;
  top: 20%;
  left: 10%;
  font-size: 1.5rem;
  opacity: 0.6;
  animation: enterpriseParticleFloat 6s ease-in-out infinite;
  z-index: 1;
}

@keyframes enterpriseParticleFloat {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
  }
  25% {
    transform: translateY(-20px) translateX(10px);
  }
  50% {
    transform: translateY(-10px) translateX(-5px);
  }
  75% {
    transform: translateY(-15px) translateX(15px);
  }
}

.enterprise-button {
  background: var(--yufin-gradient);
  color: white;
  padding: 1.25rem 2.5rem;
  border: none;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(238, 145, 22, 0.3);
  text-decoration: none;
  display: inline-block;
  font-family: 'Nunito Sans', sans-serif;
}

.enterprise-button:hover {
  background: linear-gradient(135deg, #d67e0f 0%, #e6a200 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(238, 145, 22, 0.4);
}

/* ===== GARANTIR CENTRALIZAÇÃO DAS DESCRIÇÕES ===== */
.plan-card .plan-subtitle,
.plans-container .plan-card .plan-subtitle,
.plans-grid .plan-card .plan-subtitle {
  text-align: center !important;
  display: block !important;
  width: 100% !important;
  margin: 0 auto !important;
  justify-content: center !important;
  align-items: center !important;
}

/* ===== NAVEGAÇÃO CONSISTENTE ===== */
.plans-navbar .navbar-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.plans-navbar .navbar-link {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-fast);
  position: relative;
}

.plans-navbar .navbar-link:hover {
  color: var(--yufin-primary);
}

.plans-navbar .navbar-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--yufin-gradient);
  transition: var(--transition-fast);
}

.plans-navbar .navbar-link:hover::after {
  width: 100%;
}

.plans-navbar .navbar-link.active {
  color: var(--yufin-primary);
}

.plans-navbar .navbar-link.active::after {
  width: 100%;
}

/* ===== BOTÃO PÁGINA ANTERIOR ===== */
.back-button {
  background: var(--yufin-gradient);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.9rem;
}

.back-button:hover {
  background: linear-gradient(135deg, #d67e0f 0%, #e6a200 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(238, 145, 22, 0.3);
}

/* ===== RESPONSIVIDADE ESPECÍFICA DOS PLANOS ===== */
@media (max-width: 1199px) and (min-width: 992px) {
  .plans-hero {
    padding: 5rem 2rem 4rem;
  }
  
  .plans-container {
    padding: 3.5rem 1.5rem;
  }
  
  .plans-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 991px) and (min-width: 768px) {
  .plans-hero {
    padding: 4.5rem 1.5rem 3.5rem;
  }
  
  .plans-container {
    padding: 3rem 1rem;
  }
  
  .plans-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
  }
  
  .plan-card {
    padding: 1.75rem;
  }
  
  .enterprise-section {
    padding: 4.5rem 1.5rem;
  }
}

@media (max-width: 767px) and (min-width: 576px) {
  .plans-hero {
    padding: 5.5rem 1rem 3rem; /* Aumentado padding superior de 4rem para 5.5rem */
    min-height: 420px !important; /* Aumentado de 350px para 420px */
  }
  
  .plans-container {
    padding: 2.5rem 1rem;
  }
  
  .plans-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .plan-card {
    padding: 1.5rem;
  }
  
  .plan-card.recommended {
    transform: none;
  }
  
  .plan-card.recommended::before {
    right: -0.5rem;
    padding: 0.4rem 1.5rem;
    font-size: 0.7rem;
  }
  
  .enterprise-section {
    padding: 4rem 1rem;
  }
  
  .enterprise-section h2 {
    font-size: 2rem;
  }
  
  .enterprise-section p {
    font-size: 1.1rem;
  }
  
  .enterprise-button {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 575px) and (min-width: 480px) {
  .plans-hero {
    padding: 5rem 0.75rem 2.5rem; /* Aumentado padding superior de 3.5rem para 5rem */
    min-height: 380px !important; /* Aumentado de 320px para 380px */
  }
  
  .plans-container {
    padding: 2rem 0.75rem;
  }
  
  .plans-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .plan-card {
    padding: 1.25rem;
  }
  
  .enterprise-section {
    padding: 3.5rem 0.75rem;
  }
  
  .enterprise-section h2 {
    font-size: 1.75rem;
  }
  
  .enterprise-section p {
    font-size: 1rem;
  }
  
  .enterprise-button {
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 479px) {
  .plans-hero {
    padding: 3rem 0.5rem 2rem;
  }
  
  .plans-container {
    padding: 1.5rem 0.5rem;
  }
  
  .plans-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .plan-card {
    padding: 1rem;
  }
  
  .plan-card.recommended {
    transform: none;
  }
  
  .plan-card.recommended::before {
    right: -0.25rem;
    padding: 0.3rem 1rem;
    font-size: 0.65rem;
  }
  
  .enterprise-section {
    padding: 3rem 0.5rem;
  }
  
  .enterprise-section h2 {
    font-size: 1.5rem;
  }
  
  .enterprise-section p {
    font-size: 0.9rem;
  }
  
  .enterprise-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* ===== RESPONSIVIDADE ESPECÍFICA PARA MOBILE ===== */
@media (max-width: 767px) {
  /* Centralizar conteúdo dos cards de planos no mobile */
  .plan-header {
    text-align: center !important;
  }
  
  .plan-title {
    text-align: center !important;
  }
  
  .plan-subtitle {
    text-align: center !important;
  }
  
  .plan-price {
    text-align: center !important;
  }
  
  .feature-list {
    text-align: center !important;
  }
  
  .feature-item {
    justify-content: center !important;
    text-align: center !important;
  }
  .plans-hero {
    padding: 6rem 1rem 4rem !important; /* Aumentado padding superior de 4rem para 6rem */
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 400px !important; /* Aumentado de 320px para 400px */
    align-items: center !important;
    justify-content: center !important;
  }
  
  .plans-hero-content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .plans-hero h1 {
    font-size: clamp(1.4rem, 7vw, 2.2rem) !important;
    line-height: 1.2 !important;
    padding: 0 1rem !important;
    margin-bottom: 1.5rem !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #ffffff !important;
    text-align: center !important;
    position: relative !important;
    z-index: 10 !important;
  }
  
  .plans-hero p {
    font-size: 1.1rem !important;
    padding: 0 0.5rem !important;
    margin-bottom: 0 !important;
    margin-top: 2rem !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    text-align: center !important;
    position: relative !important;
    z-index: 10 !important;
  }
}

@media (max-width: 479px) {
  /* Centralizar conteúdo dos cards de planos em celulares pequenos */
  .plan-header {
    text-align: center !important;
  }
  
  .plan-title {
    text-align: center !important;
  }
  
  .plan-subtitle {
    text-align: center !important;
  }
  
  .plan-price {
    text-align: center !important;
  }
  
  .feature-list {
    text-align: center !important;
  }
  
  .feature-item {
    justify-content: center !important;
    text-align: center !important;
  }
  
  .plans-hero {
    padding: 5rem 0.5rem 3rem !important; /* Aumentado padding superior de 3rem para 5rem */
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 380px !important; /* Aumentado de 300px para 380px */
    align-items: center !important;
    justify-content: center !important;
  }
  
  .plans-hero-content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .plans-hero h1 {
    font-size: clamp(1.1rem, 8vw, 1.8rem) !important;
    line-height: 1.3 !important;
    padding: 0 0.5rem !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #ffffff !important;
    text-align: center !important;
    position: relative !important;
    z-index: 10 !important;
  }
  
  .plans-hero p {
    font-size: 1rem !important;
    padding: 0 0.25rem !important;
    margin-bottom: 0 !important;
    margin-top: 1.5rem !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    text-align: center !important;
    position: relative !important;
    z-index: 10 !important;
  }
}

/* ===== FORÇAR CENTRALIZAÇÃO DAS FUNCIONALIDADES DOS PLANOS ===== */
.feature-item {
  justify-content: center !important;
  text-align: center !important;
}

/* ===== AJUSTE PARA TELAS MUITO PEQUENAS ===== */
@media (max-width: 400px) {
  .plans-hero {
    min-height: 320px !important;
    padding: 2.5rem 0.25rem 2.5rem !important;
  }
  
  .plans-hero h1 {
    font-size: clamp(1rem, 9vw, 1.6rem) !important;
    line-height: 1.4 !important;
    padding: 0 0.25rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .plans-hero p {
    font-size: 0.9rem !important;
    padding: 0 0.25rem !important;
    margin-top: 1rem !important;
    line-height: 1.4 !important;
  }
}