/* style.css - básico para el layout de Codaini */
:root{
  --bg-dark: #0f2a2a;
  --accent: #28b487; /* verde/azul */
  --muted: #6b6f76;
  --card-bg: #ffffff;
  --glass: rgba(255,255,255,0.03);
}

body {
  font-family: "Inter", "Poppins", system-ui, -apple-system, "Helvetica Neue", Arial;
  color: #222;
  background: linear-gradient(180deg, #091719 0%, #0b2b2b 45%, #ffffff 100%);
  -webkit-font-smoothing:antialiased;
  padding-top: 70px;
}

.navbar.custom-navbar {
  background: rgba(6, 18, 18, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0.8rem 1rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030;
  transition: background 0.3s ease, padding 0.3s ease;
}

.navbar.custom-navbar .navbar-brand img.logo {
  height: 40px;
  width: auto;
  transition: var(--transition);
}

.navbar-nav .nav-item {
  margin-left: .5rem;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.5rem 0.9rem !important;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
}

/* ==== LOGO ESTILO ==== */
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: 40px;
  background: #ffffff;        /* color de fondo */
  border-radius: 50%;         /* forma circular */
  padding: 6px;               /* espacio interior */
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.logo-container:hover .logo-img {
  background: #21a37a;        /* tono más oscuro al pasar el mouse */
  transform: scale(1.05);
}

.logo-text {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

/* Container */
.container-lg {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
}

/* HERO */
.hero {
  padding: 6rem 0 4rem;
  color: white;
}
.hero .tagline {
  font-weight: 700;
  font-size: 3rem;
  line-height: 1.05;
  margin-bottom: 1rem;
}
.hero p.lead {
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.6rem;
  max-width: 56ch;
}

/* Buttons */
.btn-codaini {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(40,180,135,0.12);
}
.btn-outline-codaini {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
}

/* Cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 20px rgba(15,40,40,0.06);
  overflow: hidden;
}

.card .tag {
  display:inline-block;
  font-size:0.75rem;
  padding: 0.5rem 0.6rem;
  border-radius: 999px;
  background: #0b3a35;
  color: #eef6f4;
  font-weight:600;
  margin-bottom:0.6rem;
}

.card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: .6rem;
  object-fit: cover;
}

.card, .formacion-content, .hero {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.cards:only-child,
.cards:has(.card:only-child) {
  display: flex;
  justify-content: center;
}
.cards:has(.card:only-child) .card {
  max-width: 320px;
}


.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Two column callout */
.callout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: center;
  margin: 3rem 0;
}
.callout .cta {
  padding: 2rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(12,22,22,0.06);
}
.callout .cta h3 { margin:0 0 0.6rem 0; }

/* Footer contact */
.contact-form input, .contact-form textarea {
  width:100%;
  padding: .7rem;
  border-radius: 8px;
  border:1px solid #e8ebee;
  margin-bottom: .6rem;
}
.small-muted { color: var(--muted); font-size:0.95rem; }

/* Responsive */
@media (max-width: 880px){
  .hero .tagline { font-size: 2rem; }
  .callout { grid-template-columns: 1fr; }
}

/* ===== SECCIÓN FORMACIÓN ===== */
.section-formacion {
  background: var(--bg-dark);
  color: white;
  padding: 5rem 0;
}

.formacion-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.formacion-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.formacion-text p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 1.6rem;
}

.formacion-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* Responsivo */
@media (max-width: 900px) {
  .formacion-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .formacion-text {
    order: 2;
  }
}

/* ====== GAME DETAIL ====== */
.game-detail {
  color: #fff;
  padding: 3rem 1rem;
}

.game-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3rem;
}

.game-cover img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 6px 30px rgba(0,0,0,0.4);
}

.game-info h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.synopsis {
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.meta p {
  margin: 0.3rem 0;
  color: #d6efea;
}

.game-actions {
  margin-top: 1.4rem;
}

.game-features {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 3rem;
}

.game-features ul {
  list-style: none;
  padding: 0;
}

.game-features li::before {
  content: "✔️ ";
  margin-right: .3rem;
}

.game-gallery {
  margin-top: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 1rem;
}

.gallery-item img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.03);
}

@media (max-width: 900px){
  .game-header {
    grid-template-columns: 1fr;
    text-align: center;
  }
}