/* ============================================================
   ALIANZA HOHENAU — styles.css
   Claudio Villalba Intendente 2026
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --blue:        #1a3a6e;
  --blue-dark:   #0f2347;
  --blue-light:  #2654a0;
  --yellow:      #f5c518;
  --yellow-dark: #d4a800;
  --green:       #2e8b57;
  --white:       #ffffff;
  --gray-light:  #f4f6fa;
  --gray-mid:    #dde3ee;
  --text:        #1a1a2e;
  --font:        'Montserrat', sans-serif;
  --radius:      10px;
  --shadow:      0 4px 24px rgba(0,0,0,0.12);
  --transition:  0.3s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- Container ---------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  background: var(--yellow);
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  letter-spacing: 0.04em;
  transition: background var(--transition), transform var(--transition);
  margin-top: 1.5rem;
}
.btn-primary:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
}

.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.9rem 2.4rem;
  border-radius: 50px;
  transition: opacity var(--transition), transform var(--transition);
  margin-top: 1.5rem;
}
.btn-instagram:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--blue-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.header-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: 0.05em;
}
.brand-sub {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 2rem;
}
.site-nav a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 3px;
  transition: color var(--transition);
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--yellow);
  transition: width var(--transition);
}
.site-nav a:hover { color: var(--yellow); }
.site-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, var(--blue-light) 100%);
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 64px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,24,50,0.85) 40%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 4rem 0;
}

.hero-text { flex: 1; }

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--yellow);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 0.95;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.hero-title .accent { color: var(--yellow); }

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
  margin-top: 1rem;
  text-transform: uppercase;
}

.hero-tag {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  margin-top: 0.5rem;
  line-height: 1.6;
}
.tag-sep { opacity: 0.5; margin: 0 0.3em; }

.hero-image-wrap {
  flex: 0 0 340px;
  display: flex;
  justify-content: center;
}

.hero-photo {
  width: 100%;
  max-width: 340px;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  object-fit: cover;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--yellow);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  z-index: 2;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Vision ---------- */
.vision {
  background: var(--green);
  padding: 2.5rem 0;
  text-align: center;
}
.vision-inner { max-width: 780px; }
.vision-text {
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.8;
}
.vision-text strong { color: var(--yellow); }
.vision-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  margin-top: 1rem;
}

/* ---------- Propuestas ---------- */
.propuestas {
  background: var(--gray-light);
  padding: 5rem 0;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--blue-dark);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--yellow);
  border-radius: 4px;
  margin: 0.6rem auto 0;
}
.section-title--light { color: var(--white); }
.section-title--light::after { background: var(--yellow); }

.section-subtitle {
  text-align: center;
  color: #555;
  font-size: 1rem;
  margin-top: 0.8rem;
  margin-bottom: 3rem;
}
.section-subtitle--light { color: rgba(255,255,255,0.8); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
  margin-top: 3rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.15);
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.card ul { display: flex; flex-direction: column; gap: 0.45rem; }
.card ul li {
  font-size: 0.9rem;
  color: #444;
  padding-left: 1rem;
  position: relative;
}
.card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
}

/* ---------- Galería ---------- */
.galeria {
  background: var(--blue-dark);
  padding: 5rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 3/4;
  background: var(--blue);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}
.gallery-item::after {
  content: '🔍';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: rgba(10,24,50,0.5);
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover img { transform: scale(1.06); filter: brightness(0.8); }
.gallery-item:hover::after { opacity: 1; }

/* ---------- Contacto ---------- */
.contacto {
  background: var(--blue);
  padding: 5rem 0;
  text-align: center;
}
.contacto-inner { max-width: 600px; }
.contacto .section-title { color: var(--white); }
.contacto-text {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  margin-top: 0.8rem;
  line-height: 1.7;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-dark);
  padding: 2rem 0;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-brand {
  font-size: 1rem;
  font-weight: 800;
  color: var(--yellow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-alliance {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}
.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.2rem;
}

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 0 60px rgba(0,0,0,0.7);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}
.lightbox-close:hover { color: var(--yellow); }

/* ---------- Fade-in animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  /* Nav */
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: var(--blue-dark);
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 150;
  }
  .site-nav.open a { font-size: 1.3rem; }
  .nav-toggle { display: block; z-index: 160; }

  /* Header brand smaller on mobile */
  .brand-name { font-size: 0.95rem; }

  /* Hero */
  .hero { padding-top: 60px; }
  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 0 3rem;
    gap: 1.5rem;
  }
  .hero-overlay { background: rgba(10,24,50,0.82); }

  .hero-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-image-wrap {
    flex: none;
    width: 100%;
    display: flex;
    justify-content: center;
    order: -1;
  }
  .hero-photo {
    width: 70%;
    max-width: 260px;
    border-radius: var(--radius);
  }

  .hero-title { font-size: clamp(2.4rem, 10vw, 3.2rem); line-height: 1; }
  .hero-subtitle { font-size: 1rem; letter-spacing: 0.06em; }
  .hero-tag { font-size: 0.8rem; padding: 0 1rem; }

  .btn-primary {
    display: block;
    width: fit-content;
    margin: 1.2rem auto 0;
  }

  /* Vision */
  .vision { padding: 2rem 0; }
  .vision-text { font-size: 0.95rem; }
  .vision-tag { letter-spacing: 0.1em; font-size: 0.72rem; }

  /* Propuestas */
  .propuestas { padding: 3.5rem 0; }
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-top: 2rem;
  }
  .card { padding: 1.5rem 1.2rem; }

  /* Galería */
  .galeria { padding: 3.5rem 0; }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-top: 2rem;
  }

  /* Contacto */
  .contacto { padding: 3.5rem 0; }
  .btn-instagram { font-size: 0.95rem; padding: 0.8rem 1.8rem; }

  /* Footer */
  .footer-brand { font-size: 0.85rem; letter-spacing: 0.04em; }
  .footer-alliance { font-size: 0.7rem; }
}

/* S20 Ultra y pantallas angostas (~412px) */
@media (max-width: 430px) {
  .container { width: 92%; }

  .hero-photo { width: 65%; max-width: 220px; }
  .hero-title { font-size: 2.6rem; }
  .hero-eyebrow { font-size: 0.75rem; letter-spacing: 0.18em; }
  .hero-tag {
    font-size: 0.75rem;
    line-height: 1.5;
    word-break: break-word;
  }

  .section-title { font-size: 1.4rem; }
  .section-subtitle { font-size: 0.88rem; }

  .card h3 { font-size: 0.95rem; }
  .card ul li { font-size: 0.85rem; }

  /* Galería: 2 columnas cuadradas en lugar de 3/4 */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item { aspect-ratio: 1 / 1; }

  .footer-alliance {
    font-size: 0.65rem;
    line-height: 1.8;
  }
}
