/* =====================================
  Components
  ===================================== */
* {
    box-sizing: border-box;
}

:root {
    --primary-color: #28a745;
    --primary-dark: #218838;
    --danger-color: #ff4c4c;
    --info-color: #007bff;
    --text-color: #333;
    --bg-light: #f9f9f9;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
}


body {
    font-family: Verdana, Geneva, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
}

header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('hero-powerlifting.jpg');
    background-size: cover;
    background-position: center;
    color: #ffffff;
}

.section {
    padding: 20px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 40px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: left;
}

a {
    text-decoration: none;
}

.btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    margin: 20px 0;
}

.btn:hover {
    background-color: var(--primary-dark);
}

/* Hero Section */

/* Tipografía */
.hero-slide h1,
.hero-secondary h1 {
    font-size: 5rem;
    margin-bottom: 20px;
}

.hero-slide p,
.hero-secondary p {
    font-size: 1.5rem;
}

.hero {
    position: relative;
    height: 800px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

/* Hero Secundario (estático, más corto, centrado) */
.hero-secondary {
    height: 600px;
    align-items: center;
    text-align: center;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background: var(--primary-dark);
    font-weight: bold;
    text-align: left;
    transition: opacity 0.8s ease-in-out;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;                     /* top:0; right:0; bottom:0; left:0; */
  background: rgba(0, 0, 0, 0.3);  /* negro al 50% de opacidad */
  z-index: 1;
}

.hero * {
  z-index: 2;
}

.hero-secondary,
.hero-slide {
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.hero-text {
    max-width: 60%;
    padding: 3rem 6rem;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #fff;
}

@media screen and (max-width: 600px) {
    .hero {
        height: 500px;
    }

    .hero {
        font-size: 1rem;
    }

    .hero-slide h1,
    .hero-secondary h1 {
        font-size: 2rem;
    }

    .hero-text {
        max-width: 90%;
        padding: 1rem 2rem;
    }
}

.center-container {
    text-align: center;
    margin-top: 2rem;
}

.a-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.a-button:hover {
    background-color: #00b37f;
    /* Verde acento */
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.a-button:active {
    transform: scale(0.97);
}


/* =====================================
/* Sección de grids */
.grid {
    display: grid;
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.video-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.events-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.sponsor-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.grid-item {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sponsor-item {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sponsor-item::before {
  content: "";
  position: absolute;
  inset: 0;                     /* top:0; right:0; bottom:0; left:0; */
  background: rgba(0, 0, 0, 0.3);  /* negro al 50% de opacidad */
  z-index: 1;
}

.sponsor-item img {
    max-height: 200px;
    max-width: 70%;
    object-fit: contain;
    z-index: 1;
}

/* Sección de Eventos próximos */

.event-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 500px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: white;
}

.event-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
    z-index: 0;
}

.event-card h3 {
    position: relative;
    font-size: 1.3rem;
    margin: 0 0 0.5rem;
    z-index: 1;
    text-align: left;
}

.event-card a {
    position: relative;
    background-color: #00ffae;
    color: #000;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-weight: bold;
    z-index: 1;
    align-self: flex-start;
}

/* Sección de Noticias */

.news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.news-card {
    background-color: #fff;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.news-card:hover {
    transform: scale(1.02);
}

.news-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.news-card-content {
    padding: 15px;
}

.news-card-content h3 {
    font-size: 1.1rem;
    margin: 0 0 10px;
}

.news-card-content p {
    font-size: 0.95rem;
    color: #444;
}

.news-date {
    font-size: 0.8rem;
    color: #888;
    margin-top: 10px;
}

/* Footer Section */
.footer-section {
    background-color: #343a40;
    color: #ffffff;
    padding: 40px 20px;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.footer-col {
    margin-bottom: 20px;
    min-width: 220px;
    text-align: center;
}

.footer-col h3 {
    margin-bottom: 15px;
}

.affiliate-logos img {
    width: 120px;
    margin: 5px;
}

.contact-icons a {
    font-size: 30px;
    margin: 0 8px;
    color: #ffffff;
    text-decoration: none;
}

.contact-icons a:hover {
    color: #28a745;
}

.legal-links {
    list-style: none;
    padding: 0;
}

.legal-links li {
    margin-bottom: 8px;
}

.legal-links a {
    color: #ffffff;
    text-decoration: none;
}

.legal-links a:hover {
    color: #28a745;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #495057;
    padding-top: 15px;
    margin-top: 20px;
    font-size: 0.9rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

select {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    font-size: 1rem;
}

/* Records Display Section */

/* Responsive Table */
.table-container {
    overflow-x: auto;
}

#records-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#records-table thead th {
    background-color: #c40000;
    color: white;
    text-align: left;
    padding: 10px;
    font-size: 1rem;
}

#records-table tbody td {
    padding: 10px;
    font-size: 0.9rem;
    border-bottom: 1px solid #ddd;
}

#records-table tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

#records-table tbody tr:hover {
    background-color: #f1f1f1;
}

/* Board */
#director-board {
    padding: 50px 20px;
    background-color: #f1f3f5;
    text-align: center;
}

#director-board h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.director-board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Limita explícitamente a máximo 3 columnas */
@media (min-width: 800px) {
    .director-board-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.director-board-card {
    background-color: #ffffff;
    padding: 20px;
    transition: transform 0.2s ease;
}

.director-board-card:hover {
    transform: translateY(-5px);
}

.director-board-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

.director-board-card h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: #212529;
}

.director-board-card .cargo {
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
}

.director-board-card .email a {
    color: #28a745;
    text-decoration: none;
}

.director-board-card .email a:hover {
    text-decoration: underline;
}

/* Livestreams */

.video-card {
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s ease;
}

.video-card:hover {
    transform: scale(1.02);
}

.video-card img {
    width: 100%;
    display: block;
}

.video-card h3 {
    font-size: 1rem;
    padding: 10px 10px 0;
    color: #222;
}

.video-card .video-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

/*Social media */

.social-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.social-card {
    background-color: #fff;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.2s ease;
}

.social-card:hover {
    transform: translateY(-5px);
}

.social-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.social-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.social-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
}

.social-btn {
    background-color: #28a745;
    color: white;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 5px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.social-btn:hover {
    background-color: #218838;
}

/* Sección del calendario de eventos */
table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: var(--primary-color);
    color: white;
}

th,
td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

tr:hover {
    background-color: #f9f9f9;
}

.event-link {
    color: #28a745;
    font-size: 1.2rem;
}

.event-link:hover {
    color: #218838;
}

/* Partners section */

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    text-align: center;
}

.partner-card {
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.partner-card:hover {
    transform: translateY(-4px);
}

.partner-card img {
    max-width: 120px;
    max-height: 80px;
    margin-bottom: 15px;
    object-fit: contain;
}

.partner-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.partner-card p {
    font-size: 0.95rem;
    color: #444;
}

.partner-card a {
    display: inline-block;
    margin-top: 10px;
    color: #28a745;
    font-weight: 500;
    text-decoration: none;
}

.partner-card a:hover {
    text-decoration: underline;
}

/* Results section */

.dropdown-results {
    max-width: 400px;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Natsionals section */

.podium-section h2 {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.podium-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.podium-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    width: 200px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.podium-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.podium-card h3 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.podium-card p {
    font-size: 0.95rem;
    color: #333;
}

.podium-card.first {
    border-top: 4px solid gold;
}

.podium-card.second {
    border-top: 4px solid silver;
}

.podium-card.third {
    border-top: 4px solid #cd7f32;
    /* bronce */
}

/* Convocatoria section */

.announcements-section h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.announcements-list {
    list-style: none;
    padding: 0;
}

.announcements-list li {
    margin-bottom: 12px;
    font-size: 1rem;
}

.announcements-list a {
    color: #28a745;
    text-decoration: none;
    font-weight: 600;
}

.announcements-list a:hover {
    text-decoration: underline;
}

/* seccion comites */
∫ .committee {
    margin-bottom: 40px;
}

.committee h3 {
    font-size: 1.4rem;
    color: #28a745;
    margin-bottom: 10px;
}

.committee p {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.7;
}

.committee-members {
    margin-top: 10px;
    padding-left: 20px;
    list-style-type: disc;
    color: #333;
}

.committee-members li {
    margin-bottom: 5px;
}





/* Panel de Administración */

/* Grid de tarjetas */
.admin-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Cada tarjeta-opción */
.admin-card {
    display: block;
    background-color: #28a745;
    color: #fff;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, background-color 0.2s ease;
    margin: auto;
    width: 150px;
}

.admin-card:hover {
    transform: translateY(-5px);
    background-color: #218838;
}

/* ======= estilos admin-news ======= */

#new-news-btn,
#back-admin-btn {
    margin: 10px 0;
    background: #28a745;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.admin-table th,
.admin-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.admin-table th {
    background: #006400;
    color: #fff;
}

.admin-form {
    max-width: 600px;
    margin: 0 auto 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-form.hidden {
    display: none;
}

.admin-form label {
    font-weight: 600;
}

.admin-form input,
.admin-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

.admin-form button {
    width: auto;
    align-self: flex-start;
    margin-top: 10px;
}

/* Carrusel básico */
/* Carrusel principal */
.carousel-container {
    position: relative;
    max-width: 100%;
    margin: 2rem auto;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f1f1f1;
    overflow: hidden;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

/* Botones de navegación */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    user-select: none;
    z-index: 1;
    border-radius: 50%;
    transition: background 0.3s;
}

.carousel-button:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-button.prev {
    left: 1rem;
}

.carousel-button.next {
    right: 1rem;
}

/* Grid de miniaturas */
.photo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.photo-grid img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s, outline 0.2s;
    border: 2px solid transparent;
}

.photo-grid img:hover {
    transform: scale(1.05);
}

.photo-grid img.selected {
    border-color: #007a33;
    outline: 2px solid #00ffae;
}

/* contact section */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: auto;
}

.contact-form label {
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form button {
    background-color: #28a745;
    color: white;
    font-weight: bold;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.contact-form button:hover {
    background-color: #218838;
}

.contact-info {
    margin-top: 40px;
    font-size: 0.95rem;
    color: #333;
}

.contact-info p {
    margin-bottom: 8px;
}

.contact-info a {
    color: #28a745;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* CTA */

.cta-box {
    margin-top: 30px;
    background-color: #f4fdf6;
    padding: 20px;
    border-left: 5px solid #28a745;
    border-radius: 5px;
}

.cta-box p {
    margin: 0;
}

.cta-box strong {
    color: #218838;
}

/* Login section */
.container-form {
    max-width: 400px;
    margin: 80px auto;
    /* Centra vertical u horizontalmente */
    padding: 20px;
}

/* Título */
.container-form h1 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.8rem;
    color: #212529;
}

/* Formulario */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Etiquetas */
.login-form label {
    font-weight: 600;
    color: #333;
}

/* Inputs */
.login-form input[type="email"],
.login-form input[type="password"] {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus {
    outline: none;
    border-color: #28a745;
}

/* Botón */
.login-form button {
    padding: 12px;
    background-color: #28a745;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.login-form button:hover {
    background-color: #218838;
}

/* Mensaje de login */
#login-message {
    text-align: center;
    font-size: 0.95rem;
    height: 1.2em;
    /* reserva espacio para no mover el layout */
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 480px) {
    .container-form {
        margin: 40px 16px;
        padding: 16px;
    }

    .container-form h1 {
        font-size: 1.5rem;
    }

    .login-form input,
    .login-form button {
        font-size: 0.95rem;
    }
}

/* =====================================
  NAVBAR PRINCIPAL
  ===================================== */
.navbar {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    padding: 1rem 2rem;
    position: fixed;
    z-index: 1000;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

/* Contenedor de logo + hamburguesa */
.navbar-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Logo */
.logo img {
    height: 50px;
    width: auto;
    display: block;
}

/* Botón hamburguesa (oculto en desktop) */
.menu-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Contenedor de enlaces */
.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

/* Cada enlace o span que abre dropdown */
.nav-links a,
.dropdown-arrow {
    color: white;
    text-decoration: none;
    font-weight: 400;
    padding: 0.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-links a:hover,
.dropdown-arrow:hover {
    color: #00ffae;
    /* acento FEMEPO */
}

/* Estilos de dropdown en desktop */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 30%;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown-arrow {
    display: inline-block;
    position: relative;
    color: inherit;
    /* hereda el color (blanco sobre fondo verde) */
}

.dropdown-arrow::after {
    content: '\25BC';
    /* ▼ */
    display: inline-block;
    margin-left: 0.3em;
    font-size: 0.7em;
    vertical-align: middle;
}

/* Mostrar dropdown cuando tenga la clase `open` */
.dropdown.open .dropdown-content {
    display: block;
}


/* =====================================
    RESPONSIVE (Mobile)
    ===================================== */
@media (max-width: 768px) {

    /* Mostrar hamburguesa */
    .menu-toggle {
        display: block;
    }

    /* Colapsar menú por defecto */
    .nav-links {
        display: none;
        position: absolute;
        top: 88%;
        right: 0;
        width: 100%;
        background-color: rgba(0, 100, 0, 0.95);
        flex-direction: column;
        align-items: flex-end;
        padding: 1rem 2rem;
        gap: 1rem;
    }

    .nav-links.show {
        display: flex;
    }

    /* Alineación de items en móvil */
    .nav-links li {
        width: 100%;
        text-align: right;
    }

    .nav-links a,
    .dropdown-arrow {
        padding: 0.75rem 0;
    }

    /* Dropdowns en móvil: posición estática */
    .dropdown-content {
        position: static;
        background: transparent;
        box-shadow: none;
        padding-left: 1rem;
        text-align: right;
    }

    .nav-links .dropdown-content a {
        padding: 0.75rem 1.5rem;
        /* espacio generoso alrededor del texto */
        color: #333;
        background: #fff;
        /* asegura fondo blanco en cada item */
    }

    .nav-links .dropdown-content a:hover {
        background-color: #f1f1f1;
    }

    /* Mostrar solo cuando tenga clase `open` */
    .dropdown.open .dropdown-content {
        display: block;
    }

    .dropdown-content {
        /* por defecto oculto */
        display: none;
    }


}

@media (min-width: 769px) {
    .dropdown-content {
        display: none;
        /* oculta por defecto en desktop */
        position: absolute;
        /* vuelve a posición absoluta */
        background-color: #fff;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        left: 0;
    }

    .dropdown:hover>.dropdown-content {
        display: block;
        /* muestra al pasar el ratón */
    }
}