/* Variables de color y tipografía */
:root {
    --primary-color: #18a8b5;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --card-bg-color: #ffffff;
    --text-color: #333;
    --header-footer-bg: #000;
    --header-footer-text: #ffffff;
}

/* Estilos generales */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background-color: var(--header-footer-bg);
    color: var(--header-footer-text);
    padding: 1rem 2rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    //font-size: 1.5rem;
    font-weight: bold;
    color: var(--header-footer-text);
    text-decoration: none;
}

.logo img {
    width: 295px;
    margin-top:5px
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #0056b3;
}

.footer {
    background-color: var(--header-footer-bg);
    color: var(--header-footer-text);
    text-align: center;
    padding: 1.5rem;
}

.card {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin: 10px;
    width: 42%;
    display: inline-grid;
    min-height: 530px;
    max-height: 530px;
}

.home-card {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin: 10px;
    width: 82%;
    display: inline-block;
    min-height: 425px;
    max-height: 425px;
}

.show-card {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin: 10px;
    width: 82%;
    display: inline-block;
}

.profile {
    display: flex;
}

.profile-card {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin: 10px;
}

.contact {
    color: var(--primary-color);
    text-decoration: none;
}

.robot-image {
    text-align: center;
    display: block;
    margin: 0 auto;
    max-height: 240px;
}

.robot-image-home {
    text-align: center;
    display: block;
    margin: 0 auto;
    max-height: 200px;
    max-width: 280px;
}

.page-header{
    width: 100%;
}

.sidebar-filters{
    width: 100%;
}

.apply-filters-button {
    width: 200px;
    padding: 5px;
}

.card-link {
    text-decoration: none;
    color: var(--primary-color);
}

.home-link {
    font-weight: bold;
    text-decoration: none;
    color: var(--primary-color);
}

.main-image {
    width: 313px;
}

.flash {
    text-align: center;
    font-weight: bold;
    background-color: lightcoral;
    color: black;
    padding: 5px;
}

.flash_notice {
    text-align: center;
    font-weight: bold;
    background-color: lightgreen;
    padding: 5px;
}

.cookies-eu {
    color: white;
    position: fixed;
    bottom: 0;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem; /* Espacio entre enlaces */
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info span {
    font-weight: 500;
    color: #555;
}

/* Estilos del botón de "Sign out" */
.user-info button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.user-info button:hover {
    background-color: #0056b3;
}

.sign-out button {
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sign-out button:hover {
    background-color: var(--primary-color);
}

.danger-zone button {
    background-color: darkred;
    color: grey;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.danger-zone button:hover {
    color: white;
}

/* Estilos para el botón de hamburguesa (oculto por defecto en desktop) */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: lightgrey;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* Estilos generales para todos los textarea */
textarea {
    /* Box-sizing asegura que padding y border se incluyan en el ancho/alto */
    box-sizing: border-box;

    /* Establece un ancho del 100% del contenedor */
    width: 100%;

    /* Define un tamaño mínimo y máximo para que el textarea no sea ni muy pequeño ni muy grande */
    min-height: 100px;
    max-height: 300px;

    /* Agrega un poco de padding para que el texto no se pegue a los bordes */
    padding: 10px;

    /* Establece una fuente legible y un tamaño de letra adecuado */
    font-family: inherit;
    font-size: 16px;

    /* Añade un borde sutil y un radio para las esquinas */
    border: 1px solid #ccc;
    border-radius: 8px;

    /* Transición suave para los cambios de estilo al enfocarse */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Evita que el usuario pueda redimensionar el textarea verticalmente */
textarea {
    resize: vertical;
}

/* Efecto al enfocar (cuando el usuario hace clic en el textarea) */
textarea:focus {
    /* Cambia el color del borde */
    border-color: #007bff; /* Un azul común para efectos de enfoque */

    /* Añade una sombra suave */
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);

    /* Elimina el contorno por defecto del navegador */
    outline: none;
}

.danger-zone {
    color: darkred;
    border: 1px solid darkred;
}

@media (max-width: 992px) {
    .card {
        width: 80%;
        max-height: 650px;
    }

    .robot-image {
        max-width: 300px;
    }

    .hamburger {
        display: block; /* Muestra el botón de hamburguesa en mobile */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Oculta el menú fuera de la pantalla */
        height: 100vh;
        width: 70%;
        background-color: #000;
        flex-direction: column;
        padding-top: 3rem;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        z-index: 999;
    }

    /* Cuando el menú está activo, se desliza hacia la vista */
    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        text-align: center;
        margin: 0.5rem 0;
    }

    .nav-links li a,
    .user-info span,
    .user-info button {
        font-size: 1.2rem;
    }

    .user-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .profile {
        display: inline-block;
    }
}
