/* ==========================================================================
   SaldoCaribe - Transcaribe Saldo en Línea
   Design System: Mobile-First, Modern Caribbean Palette (Sunset Orange Theme)
   Dominio: saldocaribe.jlsoftware.net
   ========================================================================== */

:root {
  --primary: #FF5E36;          /* Naranja Atardecer Caribeño */
  --primary-dark: #E0431B;     /* Naranja Oscuro */
  --primary-light: #FFF1EE;    /* Fondo suave naranja */
  --secondary: #0F172A;        /* Azul Oscuro Slate / Navy */
  --secondary-dark: #070D19;   /* Fondo muy oscuro */
  --accent: #F59E0B;           /* Dorado / Ámbar */
  --accent-light: #FEF3C7;
  --danger: #EF4444;
  --success: #10B981;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --bg-main: #F8FAFC;
  --bg-card: #FFFFFF;
  --border-color: #E2E8F0;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 20px -2px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px -4px rgba(0,0,0,0.12);
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--secondary-dark);
}

.logo-badge {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.logo-text span {
  color: var(--primary);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-desktop a {
  font-weight: 500;
  color: var(--text-main);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

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

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 24px;
  height: 2.5px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-mobile {
  display: none;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
  animation: slideDown 0.3s ease;
}

.nav-mobile.show {
  display: block;
}

.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-mobile a {
  display: block;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--text-main);
  border-radius: var(--radius-md);
  background-color: var(--bg-main);
}

.nav-mobile a.active {
  background-color: var(--primary-light);
  color: var(--primary);
}

/* Main Container */
.main-wrapper {
  flex: 1;
}

.hero-banner {
  background: linear-gradient(135deg, #070D19 0%, #1E293B 45%, #FF5E36 100%);
  color: white;
  padding: 3rem 1.25rem 4rem 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 25px;
  background: var(--bg-main);
  border-radius: 25px 25px 0 0;
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 600px;
  margin: 0 auto 1.5rem auto;
}

/* Card Container & Form */
.card-section {
  max-width: 520px;
  margin: -3.5rem auto 2.5rem auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 10;
}

.card-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  font-size: 1.2rem;
}

.form-input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.8rem;
  font-size: 1.15rem;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-main);
  background-color: var(--bg-main);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: var(--primary);
  background-color: white;
  box-shadow: 0 0 0 4px rgba(255, 94, 54, 0.18);
}

.input-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: inherit;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 94, 54, 0.35);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 94, 54, 0.45);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
  display: none;
}

/* Virtual Card Output */
.result-box {
  margin-top: 1.5rem;
  display: none;
}

.virtual-card {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.virtual-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 94, 54, 0.25);
  filter: blur(20px);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.card-brand {
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 1rem;
  color: var(--accent);
}

.card-status-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid rgba(52, 211, 153, 0.4);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.card-balance-label {
  font-size: 0.85rem;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-balance-val {
  font-size: 2.2rem;
  font-weight: 900;
  color: #FF5E36;
  line-height: 1.1;
  margin: 0.25rem 0 1rem 0;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.85rem;
  font-size: 0.85rem;
  color: #CBD5E1;
}

.alert-message {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 1.25rem;
  display: none;
}

.alert-error {
  background-color: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

/* Sections & Content */
.section {
  max-width: 1000px;
  margin: 0 auto 3rem auto;
  padding: 0 1.25rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--secondary-dark);
  margin-bottom: 0.5rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 650px;
  margin: 0 auto;
}

/* Feature Grid */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-card {
  background-color: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Table styles */
.data-table-wrapper {
  overflow-x: auto;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-top: 1rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.data-table th {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-weight: 700;
  padding: 0.9rem 1rem;
  border-bottom: 2px solid var(--border-color);
}

.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background-color: var(--primary-light);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-icon {
  transition: transform 0.3s ease;
}

/* AdSense Slot Placeholder */
.ads-placeholder {
  max-width: 1000px;
  margin: 1.5rem auto;
  padding: 1rem;
  background-color: #F1F5F9;
  border: 1px dashed #CBD5E1;
  border-radius: var(--radius-sm);
  text-align: center;
  color: #94A3B8;
  font-size: 0.8rem;
  font-weight: 600;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Content Page Base */
.page-content {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-top: 2rem;
}

.page-content h1 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--secondary-dark);
  margin-bottom: 1rem;
}

.page-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1.5rem 0 0.75rem 0;
}

.page-content p {
  margin-bottom: 1rem;
  color: var(--text-main);
}

.page-content ul {
  margin: 0 0 1.25rem 1.5rem;
}

.page-content li {
  margin-bottom: 0.5rem;
}

/* Disclaimer Badge */
.disclaimer-box {
  background-color: #FFFBEB;
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: #92400E;
  margin: 1.5rem 0;
}

/* Footer */
.footer {
  background-color: #0F172A;
  color: #94A3B8;
  padding: 3rem 1.25rem 1.5rem 1.25rem;
  margin-top: auto;
  font-size: 0.9rem;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand .logo {
  color: white;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.footer-column h4 {
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-column a {
  color: #94A3B8;
}

.footer-column a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
}

/* Keyframes */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Media Queries */
@media (min-width: 768px) {
  .hero-title {
    font-size: 2.75rem;
  }
  
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .nav-desktop {
    display: flex;
  }
  
  .menu-toggle {
    display: none;
  }
  
  .footer-container {
    grid-template-columns: 1.5fr 2fr;
  }
  
  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .page-content {
    padding: 2.5rem;
  }
}
