/* style.css - CÓDAINI THEME TECH (parte 1: navbar, logo, hero) */
:root {
  --bg-dark: #061818;
  --accent: #00ffe5; /* Verde neón estilo digital */
  --muted: #8fbfbf;
  --card-bg: #ffffff;
  --glass: rgba(255,255,255,0.03);
  --transition: all 0.3s ease;
}

body {
  font-family: "Inter", "Poppins", system-ui, -apple-system, "Helvetica Neue", Arial;
  color: #222;
  background: linear-gradient(180deg, #041818 0%, #0b2b2b 45%, #f9fbfb 100%);
  -webkit-font-smoothing: antialiased;
  padding-top: 70px;
}

/* ===== NAVBAR ===== */
.navbar.custom-navbar {
  background: rgba(6, 18, 18, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 255, 229, 0.08);
  padding: 0.8rem 1rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030;
  box-shadow: 0 4px 20px rgba(0, 255, 229, 0.08);
  transition: var(--transition);
}

.navbar.custom-navbar .navbar-brand img.logo {
  height: 40px;
  width: auto;
  transition: var(--transition);
}

.navbar-nav .nav-item {
  margin-left: 0.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(0, 255, 229, 0.08);
  color: #fff !important;
  box-shadow: inset 0 0 10px rgba(0, 255, 229, 0.25);
}

/* ===== LOGO ===== */
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: 40px;
  background: #ffffff;
  border-radius: 50%;
  padding: 6px;
  object-fit: contain;
  box-shadow: 0 0 8px rgba(0, 255, 229, 0.25);
  transition: var(--transition);
}

.logo-container:hover .logo-img {
  background: var(--accent);
  transform: scale(1.06);
}

.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 PRINCIPAL ANIMADO --- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top right, #072727, #041313 80%);
}

/* Cuadrícula animada */
.hero .tech-grid {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridMove 20s linear infinite;
  z-index: 0;
}

/* Efecto radial suave */
.hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,255,229,0.05), transparent 70%);
  z-index: 1;
}

/* Animación de cuadrícula */
@keyframes gridMove {
  from { background-position: 0 0; }
  to { background-position: 40px 40px; }
}

/* Asegura que el contenido esté al frente */
.hero .container-lg {
  position: relative;
  z-index: 2;
}

/* Ajuste de títulos */
.hero .tagline {
  font-weight: 700;
  font-size: 2.8rem;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(0,255,229,0.25);
}

.hero .lead {
  color: #b9f1f1;
  margin-bottom: 1.6rem;
  max-width: 56ch;
}

/* Botones principales coherentes */
.hero .btn-codaini {
  background-color: #00ffe5;
  color: #061818;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.9rem 1.5rem;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(0,255,229,0.25);
}

.hero .btn-codaini:hover {
  background-color: #00d4c5;
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0,255,229,0.4);
}

.hero .btn-outline-codaini {
  border: 2px solid rgba(255,255,255,0.3);
  color: white;
  background: transparent;
  border-radius: 8px;
  padding: 0.8rem 1.4rem;
  transition: all 0.3s ease;
}

.hero .btn-outline-codaini:hover {
  background-color: rgba(255,255,255,0.1);
  transform: scale(1.05);
  border-color: #00ffe5;
  color: #00ffe5;
}

/* ===== BUTTONS - CÓDAINI TECH STYLE ===== */
.btn-codaini {
  background: var(--accent);
  color: #061818;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(0, 255, 229, 0.25);
  transition: all 0.3s ease;
}

.btn-codaini:hover {
  background: #00d4c5;
  box-shadow: 0 0 25px rgba(0, 255, 229, 0.35);
  transform: translateY(-2px);
}

/* Variante con borde */
.btn-outline-codaini {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(0,255,229,0.25);
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-codaini:hover {
  background: rgba(0,255,229,0.08);
  border-color: rgba(0,255,229,0.4);
  box-shadow: 0 0 18px rgba(0,255,229,0.25);
  transform: translateY(-2px);
}

/* 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: #ffffff;
  box-shadow: 0 0 25px rgba(0, 255, 229, 0.1);
  border: 1px solid rgba(0,255,229,0.1);
  transition: all 0.3s ease;
}

.callout .cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(0, 255, 229, 0.2);
}

.callout .cta h3 {
  margin: 0 0 0.6rem 0;
  color: var(--accent);
  text-shadow: 0 0 8px rgba(0,255,229,0.25);
}

/* ===== CONTACT FORM ===== */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(0,255,229,0.2);
  margin-bottom: 0.6rem;
  background: rgba(255,255,255,0.95);
  color: #0b2b2b;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(0,255,229,0.25);
}

.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;
  position: relative;
  overflow: hidden;
}

.section-formacion::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(0,255,229,0.1), transparent 70%);
}

.formacion-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.formacion-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent);
  text-shadow: 0 0 8px rgba(0,255,229,0.3);
}

.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 0 25px rgba(0,255,229,0.15);
  transition: transform 0.3s ease;
}

.formacion-image img:hover {
  transform: scale(1.05);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .formacion-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .formacion-text {
    order: 2;
  }
}
