/* ---- RESET ---- */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
    box-sizing: border-box;
}

/* ---- HEADER ---- */
.header {
    background-color: #333;
    color: white;
    padding: 5px 20px;
    z-index: 1000;
    position: relative;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.navbar-brand img {
    height: 80px;
    max-width: 100px;
    object-fit: contain;
}

.nav-links {
    display: block; /* Visible por defecto en desktop */
}

.nav-links ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    transition: background 0.3s;
}

.nav-links ul li a:hover {
    background-color: #555;
    border-radius: 5px;
}

/* ---- BOTÓN MENÚ (MÓVIL) ---- */
.menu-btn {
    font-size: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: none; /* Oculto por defecto en desktop, se muestra en móvil con media query */
}




/* ---- SIDEBAR ---- */
.sidebar {
    position: fixed;
    top: 0;
    left: -250px; /* OCULTO A LA IZQUIERDA POR DEFECTO */
    width: 250px;
    height: 100%;
    background-color: #222;
    color: white;
    padding-top: 60px;
    transition: left 0.3s ease; /* Animación de entrada desde la izquierda */
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10500;
}

.sidebar.active {
    left: 0; /* MOSTRAR CUANDO TIENE LA CLASE 'active' */
}




.sidebar ul {
    list-style: none;
    padding: 0;
    width: 100%;
}

.sidebar ul li {
    padding: 15px;
    text-align: center;
    width: 100%;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    display: block;
    width: 100%;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* ---- PORTADA ---- */
.cover-section {
    position: relative;
    width: 100%;
    height: 70vh;
    background-image: url('../img/portada.webp'); /* Asegúrate de que la ruta sea correcta */
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1; /* MÁS BAJO PARA QUE EL SIDEBAR LO CUBRA */
}

.cover-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1; /* MÁS BAJO PARA QUE EL SIDEBAR LO CUBRA */
}

.cover-section .container {
    text-align: left;
    padding: 20px;
}

.cover-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.cover-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.cover-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cover-buttons a {
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 5px;
    display: inline-block;
}

.cover-buttons .btn-primary {
    background-color: #d9534f;
    border-color: #d9534f;
    color: white;
}

.cover-buttons .btn-primary:hover {
    background-color: #c9302c;
    border-color: #c9302c;
}

.cover-buttons .btn-secondary {
    background-color: #555;
    border-color: #555;
    color: white;
}

.cover-buttons .btn-secondary:hover {
    background-color: #444;
    border-color: #444;
}

/* ---- TARJETAS DE PRESENTACIÓN ---- */
.container.py-5 .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.card-custom {
    width: 100%;
    max-width: 320px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    background-color: #fff;
    margin-bottom: 20px;
}

.card-img-top {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

/* ---- EFECTO HOVER PARA IMAGENES DE LAS TARJETAS ---- */
.card-img-top {
    transition: transform 0.4s ease;
}

.card-custom:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    text-align: center;
    padding: 10px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.card-text {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.btn-primary {
    background-color: #d9534f;
    border-color: #d9534f;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #c9302c;
    border-color: #c9302c;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* ---- EFECTO HOVER PARA LAS CARTAS ---- */
.card-custom:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ---- EFECTO HOVER PARA BOTONES DE VIEW PROFILE ---- */
.btn-primary {
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

/* ---- BANNER ---- */
.banner {
    background-color: #f8f9fa;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.banner h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.stars {
    font-size: 1.5rem;
    color: #ffd700;
    display: flex;
    gap: 5px;
}

/* ---- FOOTER ---- */
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 40px 20px;
    font-size: 1rem;
    margin-top: 60px;
}

.footer h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin: 10px 0;
}

.footer ul li a {
    color: white;
    text-decoration: none;
}

.footer ul li a:hover {
    text-decoration: underline;
}

/* ---- LISTA DE 10 ELEMENTOS EN EL FOOTER ---- */
.footer-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.footer-list li {
    text-align: center;
}

.footer-list a {
    color: white;
    text-decoration: none;
}

.footer-list a:hover {
    text-decoration: underline;
}

/* ---- BOTÓN FLOTANTE DE WHATSAPP ---- */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease-in-out;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    background-color: #1ebe57;
}

/*
    Las siguientes reglas CSS para .overlay y .modal son para el pop-up de términos.
    Aunque ahora se genera dinámicamente con jQuery y tiene estilos inline, es buena práctica
    tener las definiciones generales aquí para consistencia y si decides volver a HTML puro.
    Los estilos inline de jQuery tienen mayor especificidad y sobrescribirán estos.
*/
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal {
    background: #fff;
    padding: 20px;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.modal h2 {
    margin-top: 0;
}

.buttons {
    margin-top: 20px;
    text-align: right;
}

.buttons button {
    margin-left: 10px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.btn-accept {
    background-color: #28a745;
    color: white;
}

.btn-decline {
    background-color: #dc3545;
    color: white;
}

/* --- MEDIA QUERIES (PARA DISPOSITIVOS MÓVILES) --- */
@media (max-width: 767px) {
    /* Mostrar botón menú solo en móvil */
    .menu-btn {
        display: block;
    }

    /* Ocultar la navegación de escritorio en móvil */
    .nav-links {
        display: none;
    }

    /* No necesitamos especificar 'display: flex;' y 'right: -250px;' aquí otra vez.
       Ya están definidos para el sidebar por defecto y la clase 'active' los controla. */
    /* .sidebar {
        display: flex;
        right: -250px;
    } */

    .sidebar.active {
        right: 0;
    }

    .cover-title {
        font-size: 2rem;
    }

    .cover-subtitle {
        font-size: 1rem;
    }

    .cover-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cover-buttons a {
        margin-bottom: 10px;
    }

    .card-custom {
        max-width: 90%; /* Ajusta el ancho de las tarjetas en móvil */
        margin: 0 auto 20px auto; /* Centra las tarjetas y añade espacio inferior */
    }

    .footer {
        padding: 20px 10px;
    }

    .footer-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .banner h2 {
        font-size: 1.5rem;
    }

    .stars {
        font-size: 1.2rem;
    }
}





/*😁🤡🤩🤗🤗🤗ESTO ES PARA QUE CUANDO LA PAGINA SE PONGA EN ESPANIOL NO SE ROMPA EL HEADER 😛🤐*/

.navbar .nav-links ul {
  display: flex;
  flex-wrap: wrap; /* 👈 permite que los items bajen de línea si no caben */
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  justify-content: flex-end;
}
.navbar .nav-links ul li a {
  white-space: nowrap; /* 👈 evita que se corte el texto, mejor para español */
  padding: 8px 10px;
  display: inline-block;
}


@media (max-width: 768px) {
  .navbar .nav-links ul li a {
    font-size: 0.85rem;
  }
}




/* 👈 para que en modo celular se vean 2 una al lado de la otra */



@media (max-width: 576px) {
  .card-img-top {
    height: 450px;
    object-fit: cover;
  }
  .card-body {
    padding: 0.5rem;
  }
  .card-title {
    font-size: 0.9rem;
  }
  .card-text {
    font-size: 0.75rem;
  }
  .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
}
