/* ==========================================================================
   ALOJAGÜEB® — MOBILE-FIRST DESIGN SYSTEM
   El Sistema Operativo 100% Personalizado para Alojamientos Turísticos & Casas Rurales
   ========================================================================== */

:root {
  --bg-dark: #070b14;
  --bg-card: rgba(15, 23, 42, 0.78);
  --bg-card-hover: rgba(30, 41, 59, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(249, 115, 22, 0.4);

  --terracotta: #f97316;
  --terracotta-light: #fb923c;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --emerald: #10b981;
  --blue: #3b82f6;

  --gradient-aloja: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #f59e0b 100%);
  --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  --gradient-wa: linear-gradient(135deg, #25d366 0%, #128c7e 100%);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-lg: 0 15px 35px -10px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 35px rgba(249, 115, 22, 0.25);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 90px;
}

/* Background Atmosphere */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.25;
}

.glow-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--terracotta) 0%, transparent 70%);
  top: -120px;
  right: -80px;
}

.glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--amber) 0%, transparent 70%);
  bottom: 20%;
  left: -150px;
}

/* Layout Container */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Header & Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 14px 0;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(7, 11, 20, 0.85);
  border-bottom: 1px solid var(--border-glass);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-emblem-svg {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -0.5px;
}

.logo-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--terracotta);
  background: rgba(249, 115, 22, 0.15);
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
}

.nav-phone-direct {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-wa);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 700;
  font-size: 13.5px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}

.nav-phone-direct:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  color: #fff;
}

/* Hero Section */
.hero-section {
  padding: 120px 0 60px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 10px var(--terracotta);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5.2vw, 58px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  max-width: 950px;
  margin: 0 auto 20px;
}

.text-gradient {
  background: linear-gradient(135deg, #f97316 0%, #fb923c 40%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gold {
  color: var(--amber-light);
}

.hero-subtitle {
  font-size: clamp(16px, 1.8vw, 18.5px);
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 34px;
  line-height: 1.6;
}

.hero-subtitle strong {
  color: var(--text-main);
}

.hero-ctas {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-whatsapp {
  background: var(--gradient-wa);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
  color: #fff;
}

.btn-glass {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 12.5px;
}

/* Feature Bar */
.hero-features-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
}

/* CASE STUDY SECTION (Mirrors Sellaventura style) */
.case-study-hero {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(7, 11, 20, 0.95) 100%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  margin-top: 50px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.case-badge-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(249, 115, 22, 0.85);
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.case-study-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}

@media (max-width: 860px) {
  .case-study-grid { grid-template-columns: 1fr; }
}

.case-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 14px;
}

.case-desc {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.case-checks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.case-checks li span:first-child {
  color: var(--terracotta-light);
  font-weight: 900;
  font-size: 16px;
  line-height: 1.2;
}

.case-checks li strong {
  color: var(--text-main);
}

/* Terminal / Preview Box */
.terminal-box {
  background: #04060a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #cbd5e1;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
  font-size: 11px;
  color: var(--text-dim);
  margin-left: 8px;
}

.terminal-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.terminal-row:last-child {
  border-bottom: none;
}

.terminal-row .key { color: var(--text-muted); }
.terminal-row .val { color: var(--terracotta-light); font-weight: 700; }
.terminal-row .val.green { color: #34d399; }

/* Operational Pillars Grid */
.pillars-section {
  padding: 70px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--terracotta);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.2;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 18px;
}

.card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

/* Call to Action WhatsApp Banner */
.cta-banner {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 50px 32px;
  text-align: center;
  margin-top: 40px;
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.8vw, 38px);
  font-weight: 900;
  margin-bottom: 12px;
}

.cta-banner p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 620px;
  margin: 0 auto 28px;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 40px 0 20px;
  border-top: 1px solid var(--border-glass);
  margin-top: 60px;
  font-size: 13px;
  color: var(--text-dim);
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--terracotta);
}

/* Mobile Sticky Action Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(7, 11, 20, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-glass);
  padding: 12px 16px;
  z-index: 1000;
}

@media (max-width: 640px) {
  .mobile-sticky-bar {
    display: flex;
    gap: 10px;
  }
  .mobile-sticky-bar .btn {
    flex: 1;
    justify-content: center;
    padding: 10px 14px;
    font-size: 14px;
  }
}
