/* ===== RESET / BASE ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height:100%; }

body {
  font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #f4f7f3;
  background: #0b2b1f;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.4;
}

/* ===== HERO BACKGROUND ===== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: center / cover no-repeat url("cinco.png");
}

/* Overlay oscuro */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(3,3,3,0.55);
  backdrop-filter: blur(1px);
}

/* ===== NAV ===== */
.nav {
  position: fixed;          /* ✅ CAMBIO CLAVE */
  top: 18px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 9999;            /* ✅ SIEMPRE ARRIBA */
}

.nav .left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  font-weight: 800;
  letter-spacing: 0.4px;
  font-size: 18px;
}

.logo img {
  height: 36px;
  display: block;
}

.nav .menu {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav a {
  color: #e6efe7;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  opacity: 0.95;
}

.nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ===== HERO CONTENT ===== */
.hero-content {
  position: relative;
  z-index: 3;
  width: min(1100px, 92%);
  background: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.28));
  border-radius: 12px;
  padding: 56px 40px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  transform: translateY(10px);
  animation: fadeUp .9s ease forwards;
  border: 1px solid rgba(255,255,255,0.04);
}

@keyframes fadeUp {
  from { opacity:0; transform: translateY(22px); }
  to { opacity:1; transform: translateY(0); }
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5.6vw, 48px);
  line-height: 1.02;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
  text-shadow: 0 6px 20px rgba(0,0,0,0.55);
}

.hero p.lead {
  margin-top: 8px;
  font-size: clamp(14px, 1.8vw, 18px);
  color: #d7e7df;
  font-style: italic;
  opacity: 0.95;
}

/* ===== BADGES ===== */
.badges {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.badge {
  display: inline-block;
  height: 48px;
  cursor: pointer;
  transition: transform .15s ease;
}

.badge:hover {
  transform: translateY(-4px);
}

/* ===== FOOTER ===== */
footer {
  background: #0f3a2f;
  color: #dfeee4;
  padding: 40px 24px;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.footer-left {
  max-width: 420px;
}

.footer-left h4 {
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-left p, 
.footer-left a {
  color: #d7e7df;
  font-size: 14px;
  opacity: 0.9;
  text-decoration: none;
}

.footer-center {
  text-align: center;
  flex: 1;
  min-width: 180px;
}

.footer-center img {
  height: 34px;
  margin-bottom: 8px;
}

.socials {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 12px;
}

.socials a img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: 0.3s;
}

.socials a img:hover {
  transform: scale(1.1);
}

.footer-right {
  max-width: 320px;
  min-width: 220px;
}

.subscribe-box {
  background: rgba(255,255,255,0.03);
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.03);
}

.subscribe-box label {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
  color: #eaf7ee;
}

.subscribe-box input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.2);
  background: rgba(255,255,255,0.03);
  color: #fff;
  margin-bottom: 8px;
}

.subscribe-box button {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: none;
  background: #173f30;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.subscribe-box small {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.85;
  color: #cfe9d7;
}

/* ===== RESPONSIVE ===== */
@media (max-width:900px) {
  .nav { top: 12px; left: 12px; right: 12px; }
  .nav .menu { display: none; }
  .hero-content { padding: 36px 20px; border-radius: 10px; }
  footer { padding: 28px 18px; gap: 12px; }
  .hero { min-height: 72vh; }
}

@media (max-width:480px) {
  .hero h1 { font-size: 26px; }
  .badge { height: 42px; }
  .footer-left, .footer-center, .footer-right {
    width: 100%;
    text-align: center;
  }
  .footer-right { margin-top: 12px; }
}

/* ===== UTIL ===== */
.muted { opacity: 0.85; font-size: 14px; color: #d6e9dd; }
.sr-only { position: absolute; left: -9999px; }
