/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #1a1a1a;
    color: #ffffff;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000000;
    padding: 15px 5%;
    border-bottom: 2px solid #00FFFF;
    /* Elimina 'flex-wrap: wrap;' si estaba aquí */
}

/* Opcional: Ajusta los márgenes para un mejor espaciado */
.header > * {
    margin: 0 10px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #00FFFF;
    text-transform: uppercase;
}

/* Estilos para que el enlace del logo se vea bien */
.logo a {
    color: #00FFFF;
    text-decoration: none;
}

.logo a:hover,
.logo a:visited {
    color: #00FFFF;
    text-decoration: none;
}

/* Estilos para el menú de categorías desplegable */
.categories-nav {
    position: relative;
    margin-right: auto;
    padding-left: 20px;
}

.categories-nav a.dropdown-toggle {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
    display: block;
    padding: 10px 0;
}

.categories-nav a.dropdown-toggle:hover {
    color: #00FFFF;
}

.dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #000000;
    border: 1px solid #00FFFF;
    border-top: none;
    display: none;
    min-width: 180px;
    z-index: 100;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown-menu li a:hover {
    background-color: #212121;
}

/* Muestra el menú cuando el mouse está sobre el contenedor de navegación */
.categories-nav:hover .dropdown-menu {
    display: block;
}

.search-bar {
    flex-grow: 1;
    margin: 0 20px;
}

.search-bar input {
    padding: 10px;
    border: none;
    border-radius: 5px;
    width: 100%;
    background-color: #333333;
    color: #ffffff;
    font-size: 14px;
}

.user-nav {
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.nav-button {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    white-space: nowrap;
}

.nav-button:hover {
    color: #00FFFF;
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .categories-nav {
        width: 100%;
        padding-left: 0;
        margin-right: 0;
    }
    .search-bar {
        width: 100%;
        margin: 0;
    }
    .user-nav {
        width: 100%;
        justify-content: space-between;
    }
}

/* Estilos del carrusel */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 0;
    min-height: 400px;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

.prev-button, .next-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.prev-button { left: 10px; }
.next-button { right: 10px; }

/* Estilos para la sección de productos */
.products-section {
    text-align: center;
    padding: 50px 0;
}

.products-section h2, .benefits-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #00FFFF;
}

.product-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.product-link {
    text-decoration: none;
    color: inherit;
}

.product-card {
    background-color: #212121;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: left;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card img {
    width: 100%;
    border-radius: 8px;
}

.product-card h3 {
    font-size: 20px;
    margin: 15px 0 10px;
}

.product-card p {
    font-size: 14px;
    color: #b0b0b0;
}

.price {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #00FFFF;
    margin: 15px 0;
}

.buy-button {
    background-color: #00FFFF;
    color: #000000;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.buy-button:hover {
    background-color: #00E5E5;
}

/* Estilos para la sección de beneficios */
.benefits-section {
    text-align: center;
    padding: 50px 0;
    background-color: #000000;
}

.benefits-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.benefit-card {
    background-color: #212121;
    border-radius: 10px;
    padding: 20px;
    max-width: 250px;
    text-align: center;
}

.benefit-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}

.benefit-card h3 {
    color: #00FFFF;
}

@media (max-width: 768px) {
    .product-card, .benefit-card {
        width: 80%;
    }
}

/* Estilos para el pie de página (footer) */
.footer {
    background-color: #000000;
    color: #ffffff;
    padding: 40px 0 20px;
    font-size: 14px;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-info, .footer-links, .footer-social {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer h3 {
    color: #00FFFF;
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li a {
    color: #ffffff;
    text-decoration: none;
    line-height: 2;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #00FFFF;
}

.social-icons a {
    color: #ffffff;
    font-size: 24px;
    margin-right: 15px;
    text-decoration: none;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #00FFFF;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333333;
    padding-top: 20px;
    margin-top: 20px;
}

/* Estilos para el submenú anidado */
.categories-nav li {
    position: relative;
}

.dropdown-submenu {
    position: absolute;
    top: 0;
    left: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #000000;
    border: 1px solid #00FFFF;
    border-left: none;
    display: none;
    min-width: 150px;
}

.dropdown-submenu li a {
    display: block;
    padding: 10px 20px;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown-submenu li a:hover {
    background-color: #212121;
}

.categories-nav li:hover .dropdown-submenu {
    display: block;
}

.categories-nav .fa-caret-right {
    margin-left: 10px;
}

@media (max-width: 768px) {
    .dropdown-submenu {
        position: relative;
        left: 0;
        top: auto;
        border-left: 1px solid #00FFFF;
        border-top: none;
    }
}

/* Estilos para las páginas de categoría */
.category-hero {
    position: relative;
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    margin-bottom: 50px;
}

.category-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    max-width: 80%;
    padding: 0 10px;
}

.hero-text h2 {
    font-size: 36px;
    margin: 0;
    line-height: 1.3;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
}

.info-section {
    padding: 50px 5%;
    text-align: center;
}

.info-container {
    max-width: 900px;
    margin: 0 auto;
}

.info-container h3 {
    font-size: 28px;
    color: #00FFFF;
    margin-bottom: 20px;
}

.info-container p {
    font-size: 18px;
    line-height: 1.6;
    color: #b0b0b0;
    margin-bottom: 20px;
}

.call-to-action {
    background-color: #212121;
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
}

.call-to-action h4 {
    font-size: 24px;
    color: #00FFFF;
    margin-top: 0;
}

.quote-button {
    background-color: #00FFFF;
    color: #000000;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.quote-button:hover {
    background-color: #00E5E5;
}

@media (max-width: 768px) {
    .hero-text h2 {
        font-size: 24px;
    }
}

.benefits-pricing {
    padding: 50px 20px;
    background-color: #1a1a1a;
    text-align: center;
}

.benefits-pricing h2 {
    font-size: 2.5rem;
    color: #00FFFF;
    margin-bottom: 20px;
}

.pricing-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.pricing-card {
    background-color: #2b2b2b;
    color: #fff;
    border-radius: 10px;
    padding: 30px;
    width: 300px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.pricing-card.premium {
    border: 3px solid #00FFFF;
    background-color: #383838;
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #00FFFF;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
}

.pricing-card .price span {
    font-size: 1rem;
    color: #aaa;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: left;
}

.pricing-card ul li {
    margin-bottom: 10px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    color: #bbb;
}

.pricing-card ul li .fas {
    color: #00FFFF;
    margin-right: 10px;
}

.pricing-card .subscribe-button {
    background-color: #00FFFF;
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.pricing-card .subscribe-button:hover {
    background-color: #009999;
}

/* Estilos para las páginas de los planes individuales */
.info-section .feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.info-section .feature-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    color: #bbb;
}

.info-section .feature-list li .fas {
    color: #00FFFF;
    margin-right: 15px;
}

.paypal-button {
    background-color: #0070ba;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.paypal-button:hover {
    background-color: #004a80;
}
/* Estilos para el perfil de usuario y menú desplegable */
.user-profile {
    position: relative;
    display: inline-block;
}

.user-profile .user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-profile .user-dropdown-menu {
    display: none; /* Oculto por defecto */
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #212121;
    border: 1px solid #00FFFF;
    border-top: none;
    padding: 10px;
    min-width: 150px;
    z-index: 1000;
    text-align: right;
}

.user-profile .user-dropdown-menu.active {
    display: block; /* Visible cuando se activa */
}

#logout-button {
    background: none;
    border: none;
    color: #000000;
    padding: 10px;
    width: 100%;
    text-align: right;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.3s;
}

#logout-button:hover {
    color: #00FFFF;
}

/* Corrección para la barra de navegación cuando el usuario ha iniciado sesión */
.user-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-profile .nav-button {
    max-width: 150px; /* Limita el ancho del botón/nombre de usuario */
    overflow: hidden;
    text-overflow: ellipsis; /* Añade puntos suspensivos si el texto es muy largo */
    white-space: nowrap;
}

/* Estilos para el contenedor del perfil de usuario y el botón */
#user-profile {
    position: relative; /* Esencial para que el menú desplegable se posicione correctamente */
}

#user-name-button {
    background-color: transparent;
    color: #00FFFF;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

#user-name-button:hover {
    background-color: #333;
}

/* Estilos para el menú desplegable */
#user-dropdown-menu {
    display: none; /* Por defecto, el menú está oculto */
    position: absolute;
    top: 100%; /* Posiciona el menú justo debajo del botón */
    right: 0;
    background-color: #2c2c2c;
    border: 1px solid #444;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 5px 0;
    min-width: 150px; /* Asegura un ancho mínimo */
}

/* Estilos para el botón "Cerrar sesión" dentro del menú */
#logout-button {
    display: block;
    width: 100%;
    padding: 10px 15px;
    border: none;
    background: none;
    color: #000000;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#logout-button:hover {
    background-color: #444;
}

/* Oculta los botones de inicio de sesión cuando el perfil de usuario está visible */
#auth-buttons[style*="display: none"] + #user-profile[style*="display: block"] {
    /* Esta regla asegura que solo se muestre un conjunto de botones a la vez */
}
/* Esto ya lo tenías, pero es bueno revisarlo */
.user-nav {
    display: flex;
    align-items: center;
    gap: 15px; /* Espacio entre los botones */
}

/* Estilos para el logo principal debajo del encabezado */
.logo-section {
    text-align: center;
    padding: 50px 0;
}

.logo-section h1 {
    font-size: 8rem; /* Tamaño grande para el logo */
    font-weight: bold;
    color: #00FFFF; /* Color del neón */
    text-shadow: 0 0 10px #00FFFF, 0 0 20px #00FFFF, 0 0 30px #00FFFF; /* Efecto de brillo neón */
    margin: 0;
    letter-spacing: 10px;
}

/* Ajuste para pantallas más pequeñas */
@media (max-width: 768px) {
    .logo-section h1 {
        font-size: 4rem;
        letter-spacing: 5px;
    }
}
/* Estilos para el logo en el footer */
.footer-info .logo-section-footer {
   text-align: left; /* Alinea el logo a la izquierda en el footer */
   margin-top: 20px; /* Espacio superior */
}

.footer-info .logo-section-footer h1 {
   font-size: 4rem; /* Tamaño más pequeño para el footer */
   font-weight: bold;
   color: #00FFFF;
   text-shadow: 0 0 5px #00FFFF, 0 0 10px #00FFFF, 0 0 15px #00FFFF;
   margin: 0;
   letter-spacing: 5px;
}

/* Estilos para la página del carrito */
.cart-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
    background-color: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.cart-container h2 {
    text-align: center;
    color: #00FFFF;
    margin-bottom: 30px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background-color: #2a2a2a;
    border-radius: 8px;
    border: 1px solid #00FFFF;
    color: #fff;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.item-details {
    flex-grow: 1;
}

.item-details h3 {
    margin: 0 0 5px 0;
    color: #00FFFF;
}

.item-details p {
    margin: 0;
    color: #ccc;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.quantity-controls button {
    background-color: #00FFFF;
    color: #000;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1.2em;
}

.quantity-controls span {
    color: #fff;
    font-weight: bold;
}

.item-remove {
    background-color: #ff3333;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.item-remove:hover {
    background-color: #cc0000;
}

.cart-summary {
    text-align: right;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #00FFFF;
}

.cart-summary p {
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
}

.cart-summary #checkout-button {
    background-color: #00FFFF;
    color: #000;
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.cart-summary #checkout-button:hover {
    background-color: #00CFFF;
}
/* =========================================================================
   Estilos para las notificaciones (pop-up)
   ========================================================================= */
.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #00FFFF;
    color: #1a1a1a;
    padding: 15px 30px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    font-size: 1.1em;
    font-weight: bold;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.notification.show {
    opacity: 1;
    visibility: visible;
}
