/* assets/styles.css
   Estilos globales, sencillos y responsivos para JCI Venezuela.
   Colores basados en indicaciones: #0096D6 (azul JCI), #005594 (azul oscuro), #F5F5F5 gris claro, #FFC533 (dorado)
*/

:root {
  --blue: #0096D6;
  --blue-dark: #005594;
  --gold: #FFC533;
  --muted: #666;
  --bg: #ffffff;
  --card: #F5F5F5;
  --max-width: 1100px;
  --radius: 10px;
  --gap: 20px;
  font-family: "Montserrat", "Open Sans", Arial, sans-serif;
}

* { box-sizing: border-box }
html, body { height: 100% }
body {
  margin: 0;
  background: var(--bg);
  color: #222;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding: 14px 0;
}
.brand { display: flex; align-items: center }
.logo { height: 48px; display: block }
.main-nav { display: flex; gap: 16px; align-items: center }
.main-nav a { color: var(--blue-dark); text-decoration: none; font-weight: 600 }
.main-nav a.active { color: var(--blue) }
.menu-toggle { display: none; background: transparent; border: 0; font-size: 20px }

/* Hero con imagen completa y centrada, sin recorte perceptible */
.hero {
  position: relative;
  background-image: url('assets/hero-bg.jpg');
  background-size: cover;           /* ocupa toda la pantalla */
  background-position: center top;  /* centra el foco de la imagen */
  background-repeat: no-repeat;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: left;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.55);  /* oscurecimiento */
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1100px;
}

.hero-content {
  flex: 1;
  min-width: 260px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.hero .lead {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 24px;
  max-width: 600px;
}

.hero-actions .btn {
  margin-right: 12px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid transparent;
}
.btn.primary { background: var(--blue); color: #fff }
.btn.outline { background: transparent; color: var(--blue); border-color: var(--blue) }
.btn.primary:hover { opacity: 0.95 }
.btn.outline:hover { background: var(--blue); color: #fff }

/* Grid and cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px }
.cards .card, .product-card, .event-card {
  background: var(--card);
  padding: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cards .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.card h3 { margin: 10px 0 8px }
.card p { margin: 0 }

/* Imágenes de los proyectos: proporción uniforme y tamaño visual equilibrado */
.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;          /* ✅ mantiene la misma proporción (16:9) en todas */
  border-radius: var(--radius);
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;             /* recorta sin deformar */
  object-position: center;
  transition: transform 0.4s ease;
}

.card-img:hover {
  transform: scale(1.05);
}

/* versión adaptable para móviles */
@media (max-width: 768px) {
  .card-media {
    aspect-ratio: 4 / 3;         /* en móviles, proporción más cuadrada */
  }
}


/* CTA */
.cta {
  background: var(--blue);
  color: #fff;
  padding: 32px 0;
  margin-top: 28px;
  border-radius: 0;
}
.cta a.btn { background: #fff; color: var(--blue); padding: 12px 18px }

/* Table */
.agenda { width: 100%; border-collapse: collapse; margin-top: 16px }
.agenda th, .agenda td { padding: 10px; border: 1px solid #eee; text-align: left }

/* Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid #eee;
  padding: 18px 0;
  margin-top: 30px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-logo { height: 40px }
.footer-nav a { margin-left: 12px; color: var(--muted); text-decoration: none }

/* Forms */
.form { display: grid; grid-template-columns: 1fr 360px; gap: 18px }
.form label { display: block }
.form input, .form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}
.form-actions { display: flex; gap: 12px; align-items: center }

/* Alerts */
.alert { padding: 12px; border-radius: 8px; margin-bottom: 12px }
.alert.success { background: #e6ffef; border: 1px solid #b8f0c9 }
.alert.error { background: #fff1f1; border: 1px solid #f0b8b8 }

/* Responsive */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr) }
  .form { grid-template-columns: 1fr }
  .card-media { height: 180px }
}
@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr }
  .header-inner { gap: 12px }
  .menu-toggle { display: block }
  .main-nav {
    position: fixed;
    right: 12px;
    top: 64px;
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    display: none;
  }
  .main-nav.open { display: flex; flex-direction: column }
  .card-media { height: 160px }
}

/* Logo superior de la Convención */
.convencion-logo-top {
  text-align: center;
  margin: 30px 0 20px;
}
.convencion-logo-top img {
  max-width: 340px;
  width: 100%;
  height: auto;
}

/* Galería automática */
.galeria-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 40px;
}
.galeria-track {
  display: flex;
  gap: 12px;
  width: calc(250px * 20);
  animation: scrollGaleria 45s linear infinite;
}
.galeria-track img {
  width: 250px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.galeria-track img:hover {
  transform: scale(1.05);
}
@keyframes scrollGaleria {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 768px) {
  .galeria-track img {
    width: 180px;
    height: 120px;
  }
}

/* --- Estilos para la Tienda --- */
.shop-hero {
  margin-top: 30px;
}

.product-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

.product-media {
  width: 100%;
  height: 220px;
  background: #f5f5f5;
  overflow: hidden;
  border-bottom: 1px solid #eee;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-media img:hover {
  transform: scale(1.05);
}

.product-body {
  padding: 16px;
}

.product-body h3 {
  margin: 0 0 8px;
  color: var(--blue-dark);
}

.price {
  color: var(--blue);
  font-weight: bold;
  margin-bottom: 6px;
}

.desc {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 12px;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 768px) {
  .product-media {
    height: 180px;
  }
}
