/* ====== ESTILOS GENERALES ====== */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #ffffff;
  color: #221e1e;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: 0.3px;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ====== NAVBAR ====== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 3rem;
  z-index: 1000;
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 45px;
  margin-right: 10px;
  border-radius: 50%;
}

.logo-text .nombre {
  font-weight: bold;
  font-size: 0.90rem;
  color: #b30000;
} 

.logo-text .semillero {
  font-size: 0.75rem;
  color: #282525;
}

.navbar nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.navbar nav a {
  font-weight: 600;
  color: #111;
  transition: color 0.3s;
}

.navbar nav a:hover {
  color: #b30000;
}



/* ====== MENÚ HAMBURGUESA (DESKTOP: OCULTO) ====== */
.menu-toggle {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #b30000;
}

.menu-toggle.active i {
  color: #111;
}

/* ====== HERO ====== */
.hero {
  background: linear-gradient(to right, rgba(255,255,255,0.1), rgba(255,255,255,0.1)),
              url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieJzZkUBBRKKlpzD6akejtdOqyBP8EjQC9xkMAmf8WTv8N5q1bvXZeptXaeNcVHPh1UHgpRAWKKSSiR56HT3dYTk8yqc4081N827dp4zZ86Uzuyw5-eUX-dJpLV_2813qKrHaK8-twg5NKdImg1w7l9K6IV5JOOSTjMVjdhxdO4RTOboqEt5PeLm1khrbr/s4032/Image%20(3).jpeg ');
  background-size: cover;
  background-position: center;
  height: 100vh;
  color: #222;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
}

.hero-content {
  max-width: 800px;
  background: rgba(255,255,255,0.7);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.hero-content h1 {
  font-size: 3rem;
  color: #b30000;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* ====== BOTONES ====== */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-primary {
  background-color: #b30000;
  color: white;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid #b30000;
  color: #b30000;
}

.btn-primary:hover {
  background-color: #7a0000;
}

.btn-secondary:hover {
  background-color: #b30000;
  color: white;
}

/* ====== SECCIONES ====== */
.section {
  padding: 6rem 10%;
  text-align: center;
  background: #ffffff;
}

.section.alt {
  background: #f9f9f9;
}

.section h2 {
  margin-bottom: 1.5rem;
  color: #b30000;
}

.section p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 1.5rem;
}

/* ====== TARJETAS ====== */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 1.5rem;
  width: 280px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 5px 15px rgba(179,0,0,0.2);
}

/* ====== CONTACTO ====== */
.contacto {
  background: #ffffff;
  color: #222;
  padding-bottom: 3rem;
}

.contacto h2 {
  color: #b30000;
}

.contacto-info {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  text-align: center;
}

.contacto-info a {
  color: #b30000;
  font-weight: bold;
  text-decoration: underline;
}

.mapa-container {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ====== FOOTER ====== */
footer {
  text-align: center;
  padding: 1.2rem;
  background: #f2f2f2;
  color: #333;
  font-size: 0.9rem;
}

/* ====== ANIMACIONES (AOS) ====== */
[data-aos] {
  transition: all 0.8s ease-in-out;
}

/* Pequeño ajuste si usas h2 dentro del hero */
.hero-content h2 {
  font-size: 1.8rem;
}

/* Centrar nav en desktop si se requiere */
.navbar nav {
  flex: 1;
  text-align: center;
}

.navbar nav a {
  display: inline-block;
}

/* ====== TUTORIALES ====== */
.section-header {
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: .75rem;
  margin: 0 auto 1.25rem;
  max-width: 1100px;
}

.badge {
  padding: .3rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  background: #b30000;
  color: #fff;
  white-space: nowrap;
}
.badge.alt { background:#111; }

.tutorial-grid {
  margin: 0 auto;
  max-width: 1100px;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.tutorial-card {
  background:#fff;
  border:1px solid #eee;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
  text-align:center;
}
.tutorial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
}

.tutorial-card .circle {
  width:140px; height:140px;
  border-radius:50%;
  object-fit:cover;
  display:block;
  margin: 0 auto .75rem;
  border: 3px solid rgba(179,0,0,.15);
}

.tutorial-card h4 { margin:.25rem 0 .25rem; color:#111; }
.tutorial-card p { color:#b30000; }
.tutorial-card .tiny { font-size:.95rem; }
.tutorial-card .meta {
  display:inline-block;
  margin-top:.35rem;
  font-size:.75rem;
  color:#b30000;
  font-weight:700;
}

/* ====== LINK ACTIVO EN NAVBAR ====== */
.navbar a.active {
  color:#b30000;
  position:relative;
}
.navbar a.active::after {
  content:"";
  position:absolute;
  left:0; right:0; bottom:-6px;
  margin:auto;
  width: 26px; height:3px;
  background:#b30000; border-radius:2px;
}

/* ====== MENÚ MÓVIL TIPO "ACGGP" ====== */
@media (max-width: 768px) {

  /* Navbar compacta */
  .navbar {
    padding: 0.6rem 1rem !important;
    justify-content: space-between !important;
  }

  /* Ocultar texto largo del logo en móvil */
  .logo-text {
    display: none !important;
  }

  .logo img {
    height: 38px !important;
    width: auto !important;
  }

  /* Mostrar hamburguesa */
  .menu-toggle {
    display: block !important;
    z-index: 1201 !important;
    font-size: 1.8rem !important;
  }

  /* Menú desplegable ocupando casi toda la pantalla */
  #nav-menu {
    position: fixed !important;
    top: 60px !important;      /* debajo de la navbar */
    left: 0 !important;
    right: 0 !important;
    max-height: 64vh;          /* hasta el 65% de la altura de la pantalla */
    overflow-y: auto;
    background: #ffffff !important;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.75rem;
    gap: 1rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    display: flex;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1200;
  }

  #nav-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  #nav-menu a {
    width: 100%;
    text-align: left;
    padding: 0.7rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid #eee;
  }

  /* Quitar subrayado especial del activo en móvil si molesta */
  .navbar a.active::after {
    display: none;
  }

  /* Body sin scroll cuando el menú esté abierto (si añades .menu-open desde JS) */
  body.menu-open {
    overflow: hidden;
  }

  /* 🔥 FIX CLAVE — SOLO CELULAR */
  .logo {
    min-width: 0 !important;
  }
}


/* ====== BOTÓN SUBIR (SCROLL TO TOP) ====== */
#scrollTopBtn {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1300;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#scrollTopBtn i {
  font-size: 1.4rem;
  color: #5c4dff;
}

#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Mantener espacio del logo para que el menú quede centrado */
.logo {
  min-width: 410px; /* Ajusta si quieres más o menos espacio */
}
