/* ==========================================================
   🌐 OPTIMIZACIÓN RESPONSIVE - GMA Consultores y Capacitación
   ========================================================== */

/* === REGLAS GENERALES === */
html, body {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  margin: auto;
}

/* === MENÚ RESPONSIVE === */
.menu-toggle {
  display: none;
  background: #003366;
  color: #fff;
  border: none;
  font-size: 1.5rem;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
}

@media (max-width: 992px) {
  .main-nav {
    display: none;
    flex-direction: column;
    background: #001a33;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 15px 0;
    text-align: center;
    z-index: 100;
  }

  .main-nav.active {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .main-nav a {
    padding: 12px 0;
    color: #fff;
    font-size: 1.2rem;
  }

  .menu-toggle {
    display: block;
  }

  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* === HERO SECTIONS === */
@media (max-width: 768px) {
  .hero-bdashboard h1,
  .hero-actividades h1 {
    font-size: 1.8rem;
  }

  .hero-bdashboard p,
  .hero-actividades p {
    font-size: 1rem;
  }

  .banner-evento {
    padding: 30px 10px;
  }
}

/* === TARJETAS DE EVENTOS === */
@media (max-width: 768px) {
  .eventos-grid {
    grid-template-columns: 1fr;
    padding: 30px 5%;
  }

  .evento-card img {
    height: 200px;
  }

  .evento-info h3 {
    font-size: 1.2rem;
  }
}

/* === DASHBOARD DE AÑOS === */
@media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
    align-items: center;
    gap: 25px;
    background: #001a33;
  }

  .year-card {
    width: 85%;
    height: 240px;
  }

  .year-inner {
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.25);
  }

  .year-front h2 {
    font-size: 2.2rem;
  }

  .year-front span {
    font-size: 0.9rem;
  }

  /* Activar flip con toque en móviles */
  .year-card:active .year-inner {
    transform: rotateY(180deg);
  }
}

/* === PIE DE PÁGINA === */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-content h4 {
    margin-bottom: 10px;
  }

  .firma-deberes {
    font-size: 0.85rem;
  }
}

/* === FORMULARIOS === */
@media (max-width: 768px) {
  form {
    width: 100%;
  }

  .form-group {
    display: flex;
    flex-direction: column;
  }

  .form-group input, 
  .form-group textarea {
    font-size: 1rem;
    padding: 10px;
  }

  .btn {
    width: 100%;
    margin-bottom: 10px;
  }
}

/* === CARRUSEL NOSOTROS === */
@media (max-width: 768px) {
  .carousel-container {
    overflow-x: auto;
    display: flex;
    gap: 15px;
    scroll-snap-type: x mandatory;
  }

  .carousel-container img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    scroll-snap-align: center;
    border-radius: 10px;
  }
}
