/* CSS personalizado para Carpe Diem */

/* Fondo general tipo pizarra */
body {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    background-attachment: fixed;
    color: #f4f4f4;
    font-family: 'Georgia', serif;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Textura de pizarra */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.02) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.02) 1px, transparent 1px),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.01) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px, 120px 120px;
    pointer-events: none;
    z-index: -1;
}

/* Navbar personalizada */
.navbar {
    background: rgba(40, 40, 40, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #d4af37;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.navbar-brand img {
    filter: brightness(1.2) contrast(1.1);
}

.navbar-nav .nav-link {
    color: #f4f4f4 !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #d4af37 !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    color: #d4af37 !important;
}

/* Imagen principal */
.img-fluid {
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    margin: 20px 0;
}

/* Contenedor principal */
.page-content-box {
    background: rgba(40, 40, 40, 0.8);
    border-radius: 20px;
    padding: 40px;
    margin: 30px auto;
    max-width: 1200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Títulos principales */
h1 {
    color: #d4af37;
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin: 30px 0;
    letter-spacing: 2px;
}

h2 {
    color: #d4af37;
    font-size: 2.2rem;
    font-weight: 600;
    margin: 30px 0 20px 0;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    letter-spacing: 1px;
}

.contact h2 {
    border-bottom: 3px solid #d4af37;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

/* Secciones del menú */
section {
    background: rgba(60, 60, 60, 0.6);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    border-color: rgba(212, 175, 55, 0.4);
}

/* Títulos de sección */
section h2 {
    color: #d4af37;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: left;
    border-bottom: 2px solid rgba(212, 175, 55, 0.5);
    padding-bottom: 10px;
}

/* Listas del menú */
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

li {
    background: rgba(80, 80, 80, 0.4);
    margin: 10px 0;
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid #d4af37;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

li:hover {
    background: rgba(100, 100, 100, 0.5);
    transform: translateX(10px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

/* Precios en negrita y dorado */
li::after {
    content: attr(data-price);
    color: #d4af37;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Separador decorativo */
.b-example-divider,
.b-example-divider-form {
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    border: none;
    margin: 30px 0;
}

/* Redes sociales */
.social-networks {
    text-align: center;
    padding: 30px 0;
}

.social-networks a {
    display: inline-block;
    margin: 0 15px;
    transition: all 0.3s ease;
    filter: brightness(0.8);
}

.social-networks a:hover {
    transform: scale(1.2) rotate(5deg);
    filter: brightness(1.2);
}

.social-networks img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

/* Footer */
footer {
    background: rgba(20, 20, 20, 0.9);
    color: #f4f4f4;
    margin-top: 50px;
    border-top: 2px solid #d4af37;
}

footer .nav-link {
    color: #ccc !important;
    transition: color 0.3s ease;
}

footer .nav-link:hover {
    color: #d4af37 !important;
}

.text-muted {
    color: #bbb !important;
}

/* Efectos especiales */
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    background-size: 200px 100%;
    animation: shimmer 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .page-content-box {
        margin: 20px 10px;
        padding: 20px;
    }
    
    section {
        margin: 15px 0;
        padding: 20px;
    }
    
    li {
        font-size: 1rem;
        padding: 12px 15px;
    }
}

/* Animaciones de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 0.6s ease-out;
}

/* Cursor personalizado para enlaces */
a {
    cursor: pointer;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}

/* CSS específico para el formato de precios */

.item-name {
    color: #f4f4f4;
    font-weight: 400;
    flex-grow: 1;
}

.item-price {
    color: #d4af37;
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    margin-left: 15px;
}

/* Eliminar el pseudo-elemento ::after ya que usamos JavaScript */
li::after {
    content: none;
}

/* Estilo especial para suplementos y notas */
li em {
    color: #bbb;
    font-style: italic;
    font-size: 0.9rem;
}

/* Efecto especial para elementos destacados */
li:nth-child(even) {
    background: rgba(90, 90, 90, 0.3);
}

li:nth-child(odd) {
    background: rgba(80, 80, 80, 0.4);

    /* Menú de navegación sticky para secciones */
.menu-navigation {
    position: sticky;
    top: 76px; /* Altura del navbar principal */
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px 20px;
    margin: 20px auto;
    max-width: 1200px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    border: 1px solid rgba(212, 175, 55, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.menu-navigation:hover {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.menu-nav-title {
    color: #d4af37;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.menu-nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    align-items: center;
}

.menu-nav-link {
    color: #f4f4f4;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    background: rgba(80, 80, 80, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.menu-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.5s ease;
}

.menu-nav-link:hover {
    color: #d4af37;
    background: rgba(100, 100, 100, 0.6);
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.menu-nav-link:hover::before {
    left: 100%;
}

.menu-nav-link.active {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .menu-navigation {
        top: 56px; /* Altura del navbar en móvil */
        margin: 10px;
        padding: 10px 15px;
    }
    
    .menu-nav-links {
        gap: 8px;
    }
    
    .menu-nav-link {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .menu-nav-title {
        font-size: 1rem;
        margin-bottom: 10px;
    }
}

/* Scroll suave para las secciones */
html {
    scroll-behavior: smooth;
}

/* Animación de entrada para el menú sticky */
.menu-navigation {
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Efecto de pulso para el enlace activo */
.menu-nav-link.active {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
    }
    100% {
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    }
}

/* CSS para tooltips que funcionan en móviles y escritorio */

/* Configuración básica del tooltip */
[data-tooltip] {
    position: relative;
    cursor: pointer;
}

/* El tooltip en sí */
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 20, 0.95);
    color: #f4f4f4;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: normal;
    width: 250px;
    max-width: 90vw;
    text-align: center;
    line-height: 1.4;
    border: 1px solid #d4af37;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    z-index: 1000;
    
    /* Inicialmente oculto */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Flecha del tooltip */
[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    border: 6px solid transparent;
    border-top-color: #d4af37;
    z-index: 1001;
    
    /* Inicialmente oculto */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Mostrar en hover (escritorio) */
@media (hover: hover) {
    [data-tooltip]:hover::after,
    [data-tooltip]:hover::before {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(-10px);
    }
    
    [data-tooltip]:hover::before {
        transform: translateX(-50%) translateY(90%);
    }
}

/* Mostrar en tap/click (móviles) */
@media (hover: none) {
    [data-tooltip].show-tooltip::after,
    [data-tooltip].show-tooltip::before {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(-10px);
    }
    
    [data-tooltip].show-tooltip::before {
        transform: translateX(-50%) translateY(90%);
    }
    
    /* Indicador visual de que es clickeable en móvil */
    [data-tooltip] {
        position: relative;
    }
    
    [data-tooltip]::after {
        bottom: 100%;
        margin-bottom: 10px;
    }
}

/* Ajustes para tooltips que se salen de la pantalla */
[data-tooltip].tooltip-left::after {
    left: 0;
    transform: translateX(0);
}

[data-tooltip].tooltip-right::after {
    right: 0;
    left: auto;
    transform: translateX(0);
}

[data-tooltip].tooltip-left::before {
    left: 20px;
    transform: translateX(0) translateY(90%);
}

[data-tooltip].tooltip-right::before {
    right: 20px;
    left: auto;
    transform: translateX(0) translateY(90%);
}

/* Responsive para móviles */
@media (max-width: 768px) {
    [data-tooltip]::after {
        width: 200px;
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}