/* =================================================== */
/* ================== FUENTES ======================= */
/* =================================================== */
@font-face {
    font-family: 'Eastman Grotesque Alt Bold';
    src: url('../fuentes/Eastman-Grotesque-Alt-Bold-trial.otf') format('opentype');
}

/* =================================================== */
/* ================== ESTILOS BASE ================== */
/* =================================================== */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Eastman Grotesque Alt Bold', Arial, sans-serif;
}

/* Fondo del área principal */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../imagenes/fondofilosofia.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
    opacity: 0.7;
}

/* =================================================== */
/* =============== BARRA LATERAL ==================== */
/* =================================================== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: auto;
}

/* Logo */
.logo-container {
    width: 60%;
    margin-bottom: 30px;
    text-align: center;
}

.logo-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

/* Botones de navegación */
.nav-central {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.nav-btn {
    display: block;
    width: 80%;
    padding: 14px 20px;
    text-align: center;
    background-color: #7e7e7e;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1rem;
    transition: background 0.3s;
}

.nav-btn:hover {
    background-color: #5a5a5a;
}

/* Área de usuario */
.user-menu-container {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 15px;
}

.cart-icon, .login-icon {
    margin-bottom: 15px;
}

.cart-icon img, .login-icon img {
    width: 45px;
    height: 45px;
    transition: transform 0.3s;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.cart-icon img:hover, .login-icon img:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
}

.user-name {
    font-weight: bold;
    color: #333;
    padding: 10px 15px;
    border-radius: 6px;
    transition: background-color 0.3s;
    font-size: 18px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    text-align: center;
    width: 80%;
    font-family: 'OpenSauceOne-Regular', Arial, sans-serif;
}

.user-name:hover {
    background-color: #7e7e7e;
    color: white;
}

.dropdown-menu {
    display: flex;
    flex-direction: column;
    width: 80%;
    gap: 10px;
    margin-top: 10px;
}

.logout-btn {
    color: #333;
    text-decoration: none;
    padding: 12px 15px;
    text-align: center;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 16px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

.logout-btn:hover {
    background-color: #7e7e7e;
    color: white;
    transform: translateX(5px);
}

/*Contacto */
.contact-container {
    margin-top: 20px;
    padding: 10px;
    border-top: 1px solid #ccc;
    text-align: center;
    font-size: 14px;
    font-family: 'OpenSauceOne-Regular', Arial, sans-serif;
}

.contact-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}

.contact-item {
    margin: 4px 0;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* =================================================== */
/* =============== HEADER MOBILE ==================== */
/* =================================================== */
.header-mobile {
    display: none;
    background: #f4f4f4;
    padding: 10px 20px;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
}

.menu-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.hamburger {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Menú móvil - MODIFICADO */
.menu-mobile {
    display: none;
    flex-direction: column;
    background: #f4f4f4;
    padding: 15px;
    gap: 10px;
    width: 100%;
    align-items: center;
    animation: slideDown 0.3s ease forwards;
}

.menu-mobile.active {
    display: flex;
}

/* Estilos para el contenedor de usuario */
.user-menu-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/* Estilos para el estado de usuario logueado */
.user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.user-name {
    margin: 10px 0;
    text-align: center;
    font-family: 'OpenSauceOne-Regular', Arial, sans-serif;
}

.dropdown-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.logout-btn {
    text-align: center;
    width: 100%;
    max-width: 250px;
    padding: 10px 15px;
    margin: 5px 0;
    background-color: #fff;
    border-radius: 5px;
}

.cart-icon, .login-icon {
    display: flex;
    justify-content: center;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media query para mostrar el header en móvil */
@media (max-width: 768px) {
    .header-mobile {
        display: flex;
    }
    
    .hamburger {
        display: block;
    }
    
    .sidebar {
        display: none;
    }
    
    body::before {
        left: 0;
    }
}

/* =================================================== */
/* ============= CONTENIDO PRINCIPAL ================ */
/* =================================================== */
.contenido-principal {
    margin-left: 280px; /* ajustado para coincidir con el ancho del sidebar */
    padding: 20px 40px;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.texto-sobre-nosotros h1 {
    font-size: 3rem;      /* tamaño grande */
    font-weight: bold;
    color: #333;
    margin-left: 50px;    /* mueve el texto un poco a la derecha */
    margin-top: 20px;
    transition: all 0.3s ease;
}

/* ajustes de responsividad */
@media (max-width: 1200px) {
    .texto-sobre-nosotros h1 {
        font-size: 2.2rem;
        margin-left: 20px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .texto-sobre-nosotros h1 {
        font-size: 1.8rem;
        margin-left: 10px;
    }
}


/* =================================================== */
/* ================= PALABRAS CLAVE ================= */
/* =================================================== */
.palabras-clave {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 25px;
    justify-content: start;
    align-items: start;
    padding-left: 50px; /* cuadros movidos a la derecha */
}

.palabra-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 0;
}

.palabra-miniatura {
    width: 150px;
    height: 233px;   
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.palabra-miniatura img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.palabra-texto {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    text-align: center;
    width: 100%;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    margin-top: 10px;
}

.palabra-item:hover .palabra-miniatura img {
    transform: scale(1.05);
}

.palabra-item:hover .palabra-texto {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
    color: #000;
}

/* =================================================== */
/* =============== OVERLAY IMÁGENES ================= */
/* =================================================== */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 280px;
    width: calc(100% - 280px);
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.8);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* =================================================== */
/* ============= BOTÓN DE WHATSAPP ================== */
/* =================================================== */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.whatsapp-btn img {
    width: 60px;
    height: 60px;
    display: block;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* =================================================== */
/* =============== RESPONSIVIDAD ==================== */
/* =================================================== */
@media (max-width: 1200px) {
    .contenido-principal {
        margin-left: 0;
        padding: 20px;
        justify-content: center;
    }
    .palabras-clave {
        grid-template-columns: 1fr;
        justify-content: center;
        gap: 15px;
        padding-left: 0;
    }
    .header-mobile {
        display: flex;
    }
    .sidebar {
        display: none;
    }
    .hamburger {
        display: block;
    }
}

@media (max-width: 768px) {
    .palabra-miniatura {
        width: 150px;
        height: 150px;
    }
    .palabra-texto {
        font-size: 0.9rem;
    }
    
    /* Ajustes para el header móvil en filosofía */
    .contenido-principal {
        margin-top: 70px;
        padding: 20px 15px;
        width: 100%;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .palabra-miniatura {
        width: 120px;
        height: 120px;
    }
    .palabra-texto {
        font-size: 0.8rem;
    }
}

@media (max-width: 992px) {
    .overlay {
        left: 0;
        width: 100%;
        background: none;
        justify-content: center;
        align-items: center;
    }

    .overlay img {
        max-width: 95%;
        max-height: 85%;
    }
}

/* =================================================== */
/* ========== AJUSTES ESPECÍFICOS RESPONSIVE ======== */
/* ================================================= */
@media (max-width: 992px) {
    body, html { 
        padding-left: 0;
        padding-top: 0;
    }
    
    .sidebar {
        display: none;
    }
    
    .header-mobile {
        display: flex;
    }
    
    .hamburger {
        display: block;
    }
    
    body::before { 
        left: 0;
        top: 0;
    }
    
    .nav-btn { 
        padding: 12px 18px; 
        font-size: 0.9rem; 
    }

    .menu-mobile {
        padding: 10px 15px;
        gap: 8px;
    }
    
    .menu-mobile .nav-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
        border-radius: 20px;
        text-align: center;
    }
    
    .user-menu-container {
        margin-top: 5px;
        display: flex;
        justify-content: center;
    }
    
    .user-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .cart-icon, .login-icon {
        width: 28px;
        height: 28px;
    }
    
    .cart-icon img, .login-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .user-name {
        font-size: 0.9rem;
        margin: 5px 0;
    }
    
    .dropdown-menu {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 100%;
        max-width: 200px;
    }
    
    .logout-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        text-align: center;
        background-color: #7e7e7e;
        color: white;
        border-radius: 15px;
        text-decoration: none;
    }
}