/* ============================================
   AceroMX · Hoja de Estilos Principal
   Ing. José Humberto Manrique Salmerón
   "Haz que suceda."
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;900&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

/* ── VARIABLES ── */
:root {
  --navy: #1B2A4A;
  --navy-dark: #111D33;
  --navy-light: #243558;
  --bronze: #B7791F;
  --bronze-light: #D4922A;
  --white: #FFFFFF;
  --gray: #8892A4;
  --gray-light: #F4F6F9;
  --gray-border: #E8ECF2;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Montserrat', sans-serif;
  background: #F4F6F9;
  min-height: 100vh;
}

.phone-frame {
  max-width: 100%;
  margin: 0 auto;
  background: #F4F6F9;
  min-height: 100vh;
  position: relative;
}

/* ── NAVBAR ── */
.navbar {
  background: #fff;
  border-bottom: 1px solid var(--gray-border);
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.nav-logo { display: flex; align-items: center; gap: 10px; }

.nav-icon {
  width: 38px; height: 38px;
  background: var(--navy);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}

.nav-icon::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--bronze);
}

.nav-icon svg { width: 22px; height: 22px; fill: white; }

.nav-brand { font-size: 18px; font-weight: 700; color: var(--navy); letter-spacing: -0.3px; }
.nav-brand span { color: var(--bronze); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.btn-register {
  background: var(--navy); color: white; border: none;
  padding: 10px 20px; border-radius: 8px;
  font-size: 13px; font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer; letter-spacing: 0.3px; transition: background 0.2s;
}
.btn-register:hover { background: var(--navy-light); }

.hamburger {
  width: 36px; height: 36px;
  display: flex; flex-direction: column; justify-content: center;
  gap: 5px; cursor: pointer; padding: 4px;
}
.hamburger span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: 0.3s; }
.hamburger span:nth-child(2) { width: 70%; }

/* ── HERO ── */
.hero {
  background: linear-gradient(170deg, var(--navy-dark) 0%, var(--navy) 60%, #1e3460 100%);
  padding: 48px 24px 40px;
  position: relative; overflow: hidden;
}

.hero::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(183,121,31,0.12) 0%, transparent 70%);
}

.hero::after {
  content: ''; position: absolute; bottom: -40px; left: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(183,121,31,0.07) 0%, transparent 70%);
}

.hero-phoenix {
  position: absolute; right: -20px; top: 50%;
  transform: translateY(-50%);
  width: 200px; height: 200px; opacity: 0.05;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(183,121,31,0.15); border: 1px solid rgba(183,121,31,0.35);
  border-radius: 100px; padding: 6px 14px; margin-bottom: 24px; position: relative;
}

.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--bronze); animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.badge-text {
  font-size: 10px; font-weight: 700;
  color: var(--bronze-light); letter-spacing: 2.5px; text-transform: uppercase;
}

.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: 38px; line-height: 1.1; color: white; margin-bottom: 6px; position: relative;
}
.hero-headline em { font-style: italic; color: var(--bronze-light); }

.hero-sub {
  font-size: 15px; line-height: 1.65;
  color: rgba(255,255,255,0.65); margin-bottom: 28px;
  position: relative; font-weight: 400;
}

/* Trust badges */
.trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; position: relative; }

.trust-badge {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px; padding: 6px 12px;
}
.trust-badge-icon { font-size: 13px; }
.trust-badge-text { font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.75); letter-spacing: 0.3px; white-space: nowrap; }

/* Search card */
.search-card {
  background: white; border-radius: 16px; padding: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25); position: relative;
}

.search-tabs {
  display: flex; gap: 4px; margin-bottom: 16px;
  background: var(--gray-light); border-radius: 8px; padding: 4px;
}

.tab {
  flex: 1; padding: 9px 6px; text-align: center;
  font-size: 12px; font-weight: 600; color: var(--gray);
  border-radius: 6px; cursor: pointer; transition: all 0.2s;
  font-family: 'Montserrat', sans-serif; border: none; background: transparent;
}
.tab.active { background: var(--navy); color: white; box-shadow: 0 2px 8px rgba(27,42,74,0.3); }

.search-input-wrap { position: relative; margin-bottom: 12px; }

.search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; fill: var(--gray);
}

.search-input {
  width: 100%; padding: 14px 14px 14px 42px;
  border: 1.5px solid var(--gray-border); border-radius: 10px;
  font-size: 15px; font-family: 'Montserrat', sans-serif;
  color: var(--navy); outline: none; transition: border 0.2s;
  background: var(--gray-light);
}
.search-input:focus { border-color: var(--navy); background: white; }
.search-input::placeholder { color: #aab; }

.btn-search {
  width: 100%; padding: 15px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: white; border: none; border-radius: 10px;
  font-size: 15px; font-weight: 700; font-family: 'Montserrat', sans-serif;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  gap: 8px; letter-spacing: 0.3px;
  box-shadow: 0 4px 16px rgba(27,42,74,0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-search:active { transform: translateY(1px); box-shadow: 0 2px 8px rgba(27,42,74,0.25); }
.btn-search-arrow { font-size: 18px; transition: transform 0.2s; }

/* ── POPULAR TAGS ── */
.popular-section { padding: 24px 24px 0; }
.popular-label { font-size: 11px; font-weight: 600; color: var(--gray); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; }
.popular-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.popular-tag {
  padding: 8px 16px; background: white;
  border: 1.5px solid var(--gray-border); border-radius: 100px;
  font-size: 13px; font-weight: 500; color: var(--navy);
  cursor: pointer; transition: all 0.2s; font-family: 'Montserrat', sans-serif;
}
.popular-tag:hover { border-color: var(--navy); background: var(--navy); color: white; }

/* ── STATS STRIP ── */
.stats-strip {
  background: white; padding: 28px 24px;
  display: flex; justify-content: space-around;
  border-bottom: 1px solid var(--gray-border); margin-top: 24px;
}
.stat-item { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.stat-number { font-size: 26px; font-weight: 900; color: var(--navy); line-height: 1; }
.stat-number span { color: var(--bronze); }
.stat-label { font-size: 10px; font-weight: 600; color: var(--gray); letter-spacing: 1px; text-transform: uppercase; }
.stat-divider { width: 1px; background: var(--gray-border); align-self: stretch; }

/* ── HOW IT WORKS ── */
.section { padding: 36px 24px; }
.section-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 3px; color: var(--bronze); text-transform: uppercase; margin-bottom: 8px; }
.section-title { font-family: 'Playfair Display', serif; font-size: 26px; color: var(--navy); line-height: 1.2; margin-bottom: 28px; }
.steps { display: flex; flex-direction: column; gap: 20px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  width: 40px; height: 40px; border-radius: 10px; background: var(--navy);
  color: white; font-size: 15px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative;
}
.step-num::after {
  content: ''; position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 20px; background: var(--gray-border);
}
.step:last-child .step-num::after { display: none; }
.step-content { padding-top: 4px; }
.step-title { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.step-desc { font-size: 13px; color: var(--gray); line-height: 1.55; }

/* ── PHOENIX SECTION ── */
.phoenix-section {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 36px 24px; margin: 0; position: relative; overflow: hidden;
}
.phoenix-section::after {
  content: ''; position: absolute; right: -40px; bottom: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(183,121,31,0.15) 0%, transparent 70%);
}
.phoenix-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 3px; color: var(--bronze); text-transform: uppercase; margin-bottom: 8px; }
.phoenix-title { font-family: 'Playfair Display', serif; font-size: 26px; color: white; margin-bottom: 12px; line-height: 1.2; }
.phoenix-sub { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.6; margin-bottom: 24px; }
.pillars-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pillar { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 14px; display: flex; gap: 10px; align-items: flex-start; }
.pillar-icon { font-size: 18px; flex-shrink: 0; }
.pillar-name { font-size: 10px; font-weight: 700; color: var(--bronze-light); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 3px; }
.pillar-desc { font-size: 11px; color: rgba(255,255,255,0.5); line-height: 1.4; }

/* ── SIGNATURE FOOTER ── */
.signature-footer { background: white; padding: 24px; border-top: 1px solid var(--gray-border); display: flex; align-items: center; gap: 14px; }
.sig-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 2px solid var(--bronze); }
.sig-avatar svg { width: 24px; height: 24px; fill: white; }
.sig-text { flex: 1; }
.sig-name { font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.sig-role { font-size: 11px; color: var(--gray); }
.sig-tagline { font-size: 11px; font-weight: 700; color: var(--bronze); font-style: italic; white-space: nowrap; }

/* ── DRAWER MENU ── */
.menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.menu-overlay.open { opacity: 1; pointer-events: all; }
.menu-drawer { position: fixed; top: 0; right: 0; width: 82%; max-width: 320px; height: 100vh; background: white; z-index: 201; transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1); display: flex; flex-direction: column; overflow-y: auto; }
.menu-drawer.open { transform: translateX(0); }
.drawer-header { padding: 20px 20px 16px; border-bottom: 1px solid var(--gray-border); display: flex; align-items: center; justify-content: space-between; background: var(--navy-dark); }
.drawer-logo { display: flex; align-items: center; gap: 10px; }
.drawer-brand { font-size: 18px; font-weight: 700; color: white; }
.drawer-brand span { color: var(--bronze); }
.drawer-close { width: 36px; height: 36px; background: rgba(255,255,255,0.1); border: none; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: white; font-size: 20px; font-family: 'Montserrat', sans-serif; transition: background 0.2s; }
.drawer-close:hover { background: rgba(255,255,255,0.2); }
.drawer-user { padding: 20px; background: var(--navy); display: flex; align-items: center; gap: 14px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.drawer-avatar { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.1); border: 2px solid var(--bronze); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.drawer-avatar svg { width: 22px; height: 22px; fill: white; }
.drawer-user-info { flex: 1; }
.drawer-user-name { font-size: 13px; font-weight: 700; color: white; margin-bottom: 2px; }
.drawer-user-sub { font-size: 11px; color: rgba(255,255,255,0.5); }
.drawer-user-btn { font-size: 11px; font-weight: 700; color: var(--bronze); background: none; border: 1px solid var(--bronze); border-radius: 6px; padding: 5px 10px; cursor: pointer; font-family: 'Montserrat', sans-serif; white-space: nowrap; }
.drawer-section-label { font-size: 9px; font-weight: 700; letter-spacing: 2.5px; color: var(--gray); text-transform: uppercase; padding: 16px 20px 8px; }
.drawer-item { display: flex; align-items: center; gap: 14px; padding: 14px 20px; cursor: pointer; transition: background 0.15s; border-bottom: 1px solid var(--gray-border); text-decoration: none; }
.drawer-item:hover { background: var(--gray-light); }
.drawer-item-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.drawer-item-icon.navy { background: rgba(27,42,74,0.08); }
.drawer-item-icon.bronze { background: rgba(183,121,31,0.1); }
.drawer-item-icon.green { background: rgba(16,185,129,0.1); }
.drawer-item-text { flex: 1; }
.drawer-item-title { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 2px; }
.drawer-item-sub { font-size: 11px; color: var(--gray); }
.drawer-item-arrow { font-size: 16px; color: var(--gray); }
.drawer-item-badge { background: var(--bronze); color: white; font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 100px; letter-spacing: 0.5px; }
.drawer-divider { height: 8px; background: var(--gray-light); border-top: 1px solid var(--gray-border); border-bottom: 1px solid var(--gray-border); }
.drawer-footer { padding: 20px; margin-top: auto; border-top: 1px solid var(--gray-border); }
.drawer-footer-sig { font-size: 11px; color: var(--gray); text-align: center; margin-bottom: 4px; }
.drawer-footer-tagline { font-size: 12px; font-weight: 700; color: var(--bronze); text-align: center; font-style: italic; }
.drawer-cta { width: 100%; padding: 14px; background: var(--navy); color: white; border: none; border-radius: 10px; font-size: 14px; font-weight: 700; font-family: 'Montserrat', sans-serif; cursor: pointer; margin-bottom: 14px; letter-spacing: 0.3px; }

/* ── CHAT BUTTON ── */
.chat-btn { position: fixed; bottom: 24px; right: 20px; width: 52px; height: 52px; background: var(--navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(27,42,74,0.4); cursor: pointer; border: 2px solid var(--bronze); transition: transform 0.2s; z-index: 99; }
.chat-btn:hover { transform: scale(1.08); }
.chat-btn svg { width: 24px; height: 24px; fill: white; }

/* ── RESPONSIVE · TABLET (768px+) ── */
@media (min-width: 768px) {
  .navbar { padding: 0 48px; height: 70px; }
  .nav-brand { font-size: 22px; }
  .nav-actions { gap: 16px; }
  .nav-links { display: flex !important; align-items: center; gap: 32px; list-style: none; }
  .nav-links a { font-size: 13px; font-weight: 600; color: var(--navy); text-decoration: none; letter-spacing: 0.3px; transition: color 0.2s; }
  .nav-links a:hover { color: var(--bronze); }
  .hamburger { display: none; }
  .hero { padding: 80px 48px 64px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto auto; gap: 0 48px; align-items: start; }
  .hero-badge { grid-column: 1; grid-row: 1; }
  .hero-headline { grid-column: 1; grid-row: 2; font-size: 52px; margin-bottom: 16px; }
  .hero-sub { grid-column: 1; grid-row: 3; font-size: 17px; margin-bottom: 24px; }
  .trust-row { grid-column: 1; grid-row: 4; margin-bottom: 0; }
  .search-card { grid-column: 2; grid-row: 1 / 5; align-self: center; box-shadow: 0 30px 80px rgba(0,0,0,0.3); padding: 28px; }
  .hero-phoenix { width: 300px; height: 300px; right: -30px; top: 20px; transform: none; opacity: 0.04; }
  .popular-section { padding: 28px 48px 0; }
  .stats-strip { padding: 36px 48px; justify-content: flex-start; gap: 60px; }
  .stat-number { font-size: 36px; }
  .stat-label { font-size: 11px; }
  .section { padding: 56px 48px; }
  .section-title { font-size: 34px; }
  .steps { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; }
  .step-num::after { display: none; }
  .phoenix-section { padding: 56px 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; align-items: center; }
  .phoenix-eyebrow { grid-column: 1; }
  .phoenix-title { grid-column: 1; font-size: 34px; }
  .phoenix-sub { grid-column: 1; }
  .pillars-grid { grid-column: 2; grid-row: 1 / 4; align-self: center; grid-template-columns: 1fr 1fr; gap: 12px; }
  .signature-footer { padding: 28px 48px; }
  .sig-name { font-size: 14px; }
  .sig-role { font-size: 12px; }
  .sig-tagline { font-size: 13px; }
}

/* ── RESPONSIVE · DESKTOP (1024px+) ── */
@media (min-width: 1024px) {
  .navbar { padding: 0 80px; }
  .hero { padding: 100px 80px 80px; gap: 0 80px; max-width: 1280px; margin: 0 auto; }
  .hero-headline { font-size: 64px; }
  .hero-sub { font-size: 18px; }
  .search-card { padding: 32px; }
  .tab { font-size: 13px; }
  .popular-section { padding: 36px 80px 0; }
  .stats-strip { padding: 40px 80px; gap: 80px; }
  .section { padding: 72px 80px; max-width: 1280px; margin: 0 auto; }
  .section-title { font-size: 40px; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .phoenix-section { padding: 72px 80px; }
  .phoenix-title { font-size: 40px; }
  .pillars-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .pillar { padding: 18px; }
  .pillar-name { font-size: 11px; }
  .pillar-desc { font-size: 12px; }
  .signature-footer { padding: 32px 80px; }
  .chat-btn { bottom: 32px; right: 40px; width: 58px; height: 58px; }
}

/* ── RESPONSIVE · WIDE (1440px+) ── */
@media (min-width: 1440px) {
  .hero, .section, .popular-section { max-width: 1400px; margin-left: auto; margin-right: auto; }
}
