/* Reset de estilos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Fondo con imagen */
body {
    background: url('img/fondo.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
}

/* Contenedor principal (Tablet) */
.tablet {
    background: rgba(0, 0, 0, 0.7); /* Color oscuro */
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    padding: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

/* Pantalla dentro de la tablet */
.tablet .screen {
    padding: 20px;
}

/* Logo y título */
.logo-header {
    width: 120px;
    margin-bottom: 10px;
}

.title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
}

/* Grid de iconos (Apps) */
.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    justify-items: center;
    margin-top: 20px;
}

/* Iconos de las apps */
.app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    min-height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s;
    cursor: pointer;
    padding: 10px;  /* Añadir padding para asegurar un buen espacio */
}

.app-icon i {
    font-size: 26px;
    color: white;
    margin-bottom: 5px;
}

.app-icon span {
    font-size: 12px;
    color: white;
}

/* Efecto hover */
.app-icon:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Pop-up */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
}

/* Contenedor del pop-up */
.popup-content {
    background: white;
    width: 90%;
    max-width: 350px;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

/* Botón de cerrar */
.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: red; /* Color del icono */
    cursor: pointer; /* Mantener el cursor de puntero para que sea clickeable */
    background: none;
    border: none;
}

.close-popup:hover {
    color: red; /* Color al pasar el ratón */
}

/* Eliminar los bordes del botón */
.close-popup:focus {
    outline: none; /* Evita que aparezca el contorno cuando se hace clic en la X */
}

/* Inputs y botones dentro del pop-up */
.popup-content input, 
.popup-content select, 
.popup-content button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    font-size: 14px;
}

/* Estilos para los inputs y select */
.popup-content input, 
.popup-content select {
    border: 1px solid #ccc;
    background: #f9f9f9;
    color: #333;
}

/* Botón */
.popup-content button {
    background: #ff0000;
    color: white;
    cursor: pointer;
    border: none;
}

.popup-content button:hover {
    background: #fc6a6a;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Adaptabilidad para móviles */
@media (max-width: 480px) {
    .tablet {
        width: 95%;
    }

    .popup-content {
        width: 90%;
    }
}

/* Bloc de Notas */
#note-area {
    width: 100%;
    height: 200px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    resize: none;
    background: #f9f9f9;
    color: #333;
}

/* Eliminar subrayado y color azul de enlaces */
a {
    text-decoration: none;
    color: inherit;
}

/* Banner de Cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 15px;
    font-size: 14px;
    z-index: 1000;
}

.cookie-banner button {
    background-color: red;
    color: white;
    padding: 10px 20px;
    margin: 0 10px;
    border: none;
    cursor: pointer;
}

.cookie-banner button:hover {
    background-color: #45a049;
}

/* Estilos del Modal */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Responsividad */
@media (max-width: 768px) {
    .cookie-banner {
        font-size: 12px;
        padding: 10px;
    }
    .cookie-banner button {
        padding: 8px 16px;
    }
}
