/* ============================================
   GLOBAL — Propuesta 4: FIRMEZA (variante)
   Navy + Dorado | Playfair Display + Inter
   ============================================ */

*, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary:      #0A1628;
  --color-secondary:    #C9A84C;
  --color-white:        #FFFFFF;
  --color-light:        #F5F7FA;
  --color-text:         #1E2D40;
  --color-text-muted:   #64748B;
  --color-border:       #E2E8F0;
  --color-card:         #FFFFFF;
  --color-overlay:      rgba(10, 22, 40, 0.80);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: background 0.35s, padding 0.35s, box-shadow 0.35s;
}

.nav.scrolled {
  background: var(--color-primary);
  padding: 12px 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.nav__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav__logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-secondary);
  flex-shrink: 0;
}

.nav__brand-text {
  display: flex;
  flex-direction: column;
}

.nav__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.2;
  font-family: 'Playfair Display', serif;
}

.nav__sub {
  font-size: 10px;
  color: var(--color-secondary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav__link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  letter-spacing: 0.2px;
}

.nav__link:hover { color: var(--color-secondary); }

.nav__cta {
  background: var(--color-secondary);
  color: var(--color-primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  transition: opacity 0.2s;
}

.nav__cta:hover { opacity: 0.88; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== FOOTER ===== */
.footer {
  background: #04090F;
  border-top: 3px solid var(--color-secondary);
  padding: 48px 28px 32px;
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer__logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-secondary);
}

.footer__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-white);
  font-family: 'Playfair Display', serif;
}

.footer__role {
  font-size: 12px;
  color: var(--color-secondary);
  margin-top: 2px;
}

.footer__links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer__link {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer__link:hover { color: var(--color-secondary); }

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.footer__bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.footer__legal { font-size: 11px !important; }

/* ===== RESPONSIVE NAV ===== */
@media (max-width: 900px) {
  .nav__toggle { display: flex; }

  .nav__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-primary);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 0 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  }

  .nav__menu.open { display: flex; }

  .nav__menu li { width: 100%; }

  .nav__link {
    display: block;
    padding: 13px 28px;
    width: 100%;
  }

  .nav__cta {
    display: block;
    margin: 8px 28px 0;
    text-align: center;
    border-radius: 4px;
    padding: 12px 22px;
  }
}
