/* Reset de márgenes y padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Importar las fuentes desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lato:wght@300;400;700&display=swap');

/* Aplicar la fuente a los títulos */
h1,
h2,
h3 {
    font-family: 'Playfair Display', sans-serif;
    font-weight: 700;
}

/* Aplicar la fuente al contenido general */
body,
p,
span {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
}

a {
    all: unset;
    font-weight: 400;
    cursor: pointer;
}

body {
    background-color: #f4f4f4;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.container {
    gap: 20px;
    width: 100%;
    padding: 20px;
    max-width: 1200px;
    column-count: 3;
}

.card:nth-child(odd) {
    grid-row: span 2;
    /* Algunas cards ocuparán 2 filas */
}

.card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 3.5vh;

}

.card:hover {
    transform: scale(1.05);
}

.card-image {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: cover;
}

.card-image:hover {
    cursor: pointer;
}

.card-content {
    padding: 15px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card-text {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
}

.card-description {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
}


#modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

#modal-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
}

#close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

#close-modal:hover {
    color: #ccc;
}


/* Estilos para el contenedor del formulario */
.form-container {
    max-width: 450px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-family: 'Arial', sans-serif;
    color: #333;
}

/* Título */
.form-container h2 {
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
}

/* Estilos generales para los inputs */
.form-container input,
.form-container textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    transition: all 0.3s ease;
}

/* Estilo al hacer foco en los inputs */
.form-container input:focus,
.form-container textarea:focus {
    border-color: #007bff;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

/* Estilo para los textareas */
.form-container textarea {
    resize: none;
    /* Deshabilitar la capacidad de redimensionar */
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    transition: all 0.3s ease;
}

/* Botón de enviar */
.form-container button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.form-container button:hover {
    background: linear-gradient(135deg, #0056b3, #003f7f);
    transform: scale(1.05);
}

/* Botón de cancelar */
.form-container button:last-of-type {
    background: #dc3545;
    margin-top: 20px;
    font-weight: normal;
}

.form-container button:last-of-type:hover {
    background: #b52b3a;
    transform: scale(1.05);
}

/* Mensaje de error */
.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 10px;
    font-weight: bold;
}

#imagePreview {
    display: block;
    max-width: 300px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Toast */
.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 12px;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.5s, top 0.5s;
}


/* go downs when spawns */
.toast.show {
    visibility: visible;
    opacity: 1;
    top: 40px;

}

/* go up when hides */
.toast.hide {
    opacity: 0;
    top: 10px;

    transition: opacity 0.5s, top 0.5s;
}


/* Fondo semitransparente del modal */
.auth-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

/* Caja del modal */
.auth-box {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

/* Inputs de usuario y contraseña */
.auth-box input {
    display: block;
    width: 90%;
    margin: 12px auto;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Botón de login */
.auth-box button {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
}

.auth-box button:hover {
    background: #218838;
}

/* Mensaje de error */
#authMessage {
    margin-top: 10px;
    color: red;
    font-weight: bold;
}

/* Clase para cuando la tarjeta está disponible */
.available {
    color: #343a40;
    /* Color de texto gris oscuro (más elegante) */
    font-weight: bold;
    /* Texto en negrita */
    background-color: #d4edda;
    /* Fondo verde claro */
    border: 2px solid #28a745;
    /* Borde verde más suave */
    padding: 10px;
    /* Espaciado interno para mayor claridad */
    border-radius: 5px;
    /* Bordes redondeados */
    box-shadow: 0 4px 6px rgba(0, 128, 0, 0.3);
    /* Sombra suave verde */
    text-align: center;
    /* Centrar el texto */
    transition: background-color 0.3s ease;
    /* Transición suave para el cambio de fondo */
    cursor: default;
    /* El cursor no cambia */
}

/* Cuando el ratón pasa sobre la tarjeta disponible */
.available:hover {
    background-color: #c3e6cb;
    /* Cambia el fondo cuando se pasa el ratón */
}

/* Clase para cuando la tarjeta no está disponible */
.noAvailable {
    color: #343a40;
    /* Color de texto gris oscuro */
    font-weight: bold;
    /* Texto en negrita */
    background-color: #f8d7da;
    /* Fondo rojo claro */
    border: 2px solid #dc3545;
    /* Borde rojo más suave */
    padding: 10px;
    /* Espaciado interno para mayor claridad */
    border-radius: 5px;
    /* Bordes redondeados */
    box-shadow: 0 4px 6px rgba(255, 0, 0, 0.3);
    /* Sombra suave roja */
    text-align: center;
    /* Centrar el texto */
    transition: background-color 0.3s ease;
    /* Transición suave para el cambio de fondo */
    cursor: default;
    /* El cursor no cambia */
}

/* Cuando el ratón pasa sobre la tarjeta no disponible */
.noAvailable:hover {
    background-color: #f1b0b7;
    /* Cambia el fondo cuando se pasa el ratón */
}









/* Estilos generales para el header */
header {
    background-color: #f4f4f4;
    /* Fondo blanco */
    color: #333333;
    /* Texto oscuro */
    padding: 30px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid #f1f1f1;
    /* Añadí una línea sutil debajo */
}

/* Contenedor del header para mejor alineación */
.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Título del header */
header h1 {
    font-size: 2.5em;
    margin: 10px 0;
    font-weight: bold;
    color: #333333;
    /* Color del texto */
    text-transform: uppercase;
    letter-spacing: 1px;
    /* Espaciado entre letras */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    /* Sombra sutil */
}

.contact-info {
    display: flex;
    justify-content: center;
    /* Centrar en el eje horizontal */
    align-items: center;
    /* Alinear verticalmente */
    gap: 20px;
    /* Espacio entre los elementos */
    flex-wrap: wrap;
    /* Permite que los elementos bajen de línea en pantallas pequeñas */
}

/* Información de contacto */
.wsp {
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    color: #555555;
    /* Color gris más suave */
}

.gmail {
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    /* Color gris más suave */
}

.instagram {
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    /* Color gris más suave */
}

/* Estilo para el ícono de WhatsApp */
.wsp i {
    font-size: 1.8em;
    color: #25D366;
    /* Color verde de WhatsApp */
    transition: transform 0.3s ease;
}

i {
    font-size: 1.8em;
    /* Color verde de WhatsApp */
    transition: transform 0.3s ease;
}

.contact-info i:hover {
    transform: scale(1.1);
    /* Aumentar ícono al pasar el ratón */
}

/* 📱 Para tablets y pantallas medianas */
@media (max-width: 1024px) {
    .container {
        column-count: 2;
        /* Reduce a 2 columnas */
    }
}

/* 📱 Para celulares */
@media (max-width: 600px) {
    .container {
        column-count: 1;
        /* Solo una columna en móviles */
    }
}




/* ImgUrl */


.divImgUrl {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-width: 600px;
    margin: 1.5rem 0;
    padding: 1.2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.divImgUrl label {
    font-weight: 500;
    color: #2d3436;
    font-size: 0.9rem;
    margin-bottom: -0.3rem;
}

#cardImage {
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

#cardImage:focus {
    outline: none;
    border-color: #74b9ff;
    box-shadow: 0 0 0 3px rgba(116, 185, 255, 0.25);
}

#cardImage::placeholder {
    color: #b2bec3;
    font-style: italic;
}

#imgUrlButton {
    align-self: flex-start;
    padding: 0.7rem 1.5rem;
    background-color: #74b9ff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
}

#imgUrlButton:hover {
    background-color: #54a0ff;
    transform: translateY(-1px);
}

#imgUrlButton:active {
    transform: translateY(0);
}

/* Estilos para validación */
#cardImage:invalid {
    border-color: #ff7675;
}

#cardImage:invalid:focus {
    box-shadow: 0 0 0 3px rgba(255, 118, 117, 0.25);
}


/* img url modal */


.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.gallery img {
    width: 100px;
    height: 100px;
    cursor: pointer;
    border-radius: 5px;
}

.modal-a {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content-a {
    position: relative;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    max-width: 80%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.modal-a img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    cursor: pointer;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* modal */


/* Estilo para el modal */
.modalImgUrl {
    display: none;
    /* Inicialmente oculto */
    position: fixed;
    z-index: 1;
    /* Se muestra encima de todo el contenido */
    left: 0;
    top: 0;
    width: 100%;
    /* Ancho completo */
    height: 100%;
    /* Alto completo */
    background-color: rgba(0, 0, 0, 0.7);
    /* Fondo oscuro semi-transparente */
    overflow: auto;
    /* Permite hacer scroll si es necesario */
    padding-top: 60px;
}

/* Estilo para el contenido del modal */
.modal-content-a {
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columnas de igual tamaño */
    gap: 10px;
    /* Espacio entre las imágenes */
    width: 90%;
    /* Ancho del contenido */
    max-width: 900px;
    /* Ancho máximo */
    max-height: 80vh;
    /* Limitar altura máxima del modal */
    overflow-y: auto;
    /* Scroll vertical si las imágenes son muchas */
    padding: 10px;
}

/* Estilo para el botón de cerrar */
.close {
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 25px;
    cursor: pointer;
    z-index: 2;
}

.close:hover,
.close:focus {
    color: #f1f1f1;
    text-decoration: none;
    cursor: pointer;
}

/* Estilo para las imágenes dentro del modal */
.modal-content-a img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    /* Bordes redondeados */
    object-fit: cover;
    /* Mantiene la imagen bien ajustada sin deformarla */
}

/* Fondo del modal cuando se hace clic */
.modalImgUrl:target {
    display: block;
}