@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Paleta Oficial Matondi */
  --color-gold: #f8bf16;
  --color-dark: #1d1927;
  --color-light-bg: #f6f5f2;
  --color-bronze: #a1793e;
  --color-slate: #9d9490;
  --color-dark-roast: #3e1f0d;
  --color-wheat: #eec66e;

  /* Aliases funcionales */
  --bg-main: var(--color-light-bg);
  --bg-card: #ffffff;
  --text-main: var(--color-dark);
  --text-muted: var(--color-slate);
  --text-deep: var(--color-dark-roast);
  --primary: var(--color-gold);
  --primary-hover: #e5ab08;
  --accent: var(--color-bronze);
  
  /* Sombras y bordes */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(29, 25, 39, 0.05);
  --shadow-md: 0 8px 24px rgba(29, 25, 39, 0.08);
  --shadow-lg: 0 16px 40px rgba(29, 25, 39, 0.12);
  --shadow-gold: 0 8px 25px rgba(248, 191, 22, 0.28);
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--color-dark);
  letter-spacing: -0.02em;
}

/* ==================== NAVBAR ==================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(29, 25, 39, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--color-gold);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(248, 191, 22, 0.3));
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-title span {
  color: var(--color-gold);
}

.nav-subtitle {
  font-size: 0.72rem;
  color: var(--color-wheat);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: #f6f5f2;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--color-gold);
}

/* ==================== BOTONES ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-dark);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(248, 191, 22, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--color-gold);
  border: 1.5px solid var(--color-gold);
}

.btn-outline:hover {
  background: rgba(248, 191, 22, 0.1);
  color: #ffffff;
  border-color: #ffffff;
}

.btn-secondary {
  background: var(--color-dark-roast);
  color: #ffffff;
}

.btn-secondary:hover {
  background: #2a1407;
  transform: translateY(-2px);
}

/* ==================== HERO SECTION ==================== */
.hero {
  background: linear-gradient(135deg, #1d1927 0%, #291d29 50%, #3e1f0d 100%);
  color: #ffffff;
  padding: 70px 28px 85px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero::after {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, rgba(248, 191, 22, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(248, 191, 22, 0.15);
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--color-gold);
  background: linear-gradient(90deg, #f8bf16, #eec66e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #f6f5f2;
  max-width: 720px;
  margin: 0 auto 36px;
  font-weight: 400;
  opacity: 0.92;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==================== LINEAS DE BEBIDAS ==================== */
.beverage-lines {
  max-width: 1200px;
  margin: -40px auto 60px;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

.lines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.line-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--color-gold);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.line-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--color-bronze);
}

.line-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.line-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.line-desc {
  font-size: 0.88rem;
  color: var(--color-slate);
  line-height: 1.5;
}

/* ==================== FEATURES / OPERACIONES ==================== */
.features-section {
  max-width: 1200px;
  margin: 40px auto 70px;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 45px;
}

.section-tag {
  color: var(--color-bronze);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.2rem;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.feature-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid rgba(157, 148, 144, 0.2);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-wheat);
}

.feature-title {
  font-size: 1.25rem;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.feature-text {
  font-size: 0.94rem;
  color: #554e4b;
}

/* ==================== MODAL DE AUTENTICACIÓN ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(29, 25, 39, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-container {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--color-gold);
  overflow: hidden;
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  background: var(--color-dark);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--color-gold);
}

.modal-header-info h3 {
  color: #ffffff;
  font-size: 1.3rem;
  margin: 0;
}

.modal-header-info p {
  color: var(--color-wheat);
  font-size: 0.8rem;
  margin-top: 3px;
  font-weight: 500;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: var(--color-gold);
}

.modal-tabs {
  display: flex;
  background: #edece9;
  border-bottom: 1px solid rgba(157, 148, 144, 0.3);
}

.tab-btn {
  flex: 1;
  padding: 12px 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-slate);
  background: transparent;
  border: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  text-align: center;
}

.tab-btn:hover {
  color: var(--color-dark);
}

.tab-btn.active {
  color: var(--color-dark);
  background: #ffffff;
  border-bottom-color: var(--color-gold);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==================== ALERTAS Y FORMULARIOS ==================== */
.modal-alert {
  display: none;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 16px;
  line-height: 1.45;
}

.modal-alert.visible {
  display: block;
}

.modal-alert.error {
  background: #fdf2f2;
  color: #9b1c1c;
  border: 1px solid #f8b4b4;
}

.modal-alert.success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.modal-alert.warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.modal-alert.info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #d5d2cc;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--color-dark);
  background: #ffffff;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(248, 191, 22, 0.25);
}

/* Captcha Box */
.captcha-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-light-bg);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid #d5d2cc;
}

.captcha-image-wrapper {
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid #d5d2cc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 44px;
  width: 130px;
}

.captcha-image-wrapper svg {
  width: 100%;
  height: 100%;
}

.btn-refresh-captcha {
  background: var(--color-dark);
  color: var(--color-gold);
  border: none;
  border-radius: 4px;
  width: 36px;
  height: 44px;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-refresh-captcha:hover {
  background: var(--color-dark-roast);
}

.captcha-input-group {
  flex: 1;
}

/* OTP Input */
.otp-input-group {
  display: flex;
  justify-content: center;
  margin: 18px 0;
}

.otp-field {
  width: 220px;
  text-align: center;
  font-size: 1.8rem;
  letter-spacing: 12px;
  font-weight: 800;
  padding: 10px;
  border: 2px dashed var(--color-gold);
  border-radius: var(--radius-md);
  background: var(--color-light-bg);
  color: var(--color-dark);
  outline: none;
}

.otp-field:focus {
  border-style: solid;
  border-color: var(--color-dark);
}

.modal-footer-text {
  text-align: center;
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--color-slate);
}

.modal-footer-text a {
  color: var(--color-bronze);
  font-weight: 700;
  text-decoration: none;
}

.modal-footer-text a:hover {
  text-decoration: underline;
}

/* ==================== FOOTER ==================== */
.footer {
  margin-top: auto;
  background: var(--color-dark);
  color: #ffffff;
  padding: 40px 24px 25px;
  border-top: 4px solid var(--color-gold);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 25px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(157, 148, 144, 0.2);
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-slate);
}
