/* Estilos generales */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-image: url('dora.jpg');
    background-size: cover;
    background-attachment: fixed;
    color: #333;
}

/* Estilos del header */
header {
    background-color: #000; /* Fondo negro */
    color: #fff;
    padding: 20px 0;
    text-align: center;
    position: relative;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Sombra más pronunciada */
}

/* Estilo del título del header */
header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 700;
    letter-spacing: 1px; /* Espaciado entre letras para una apariencia más refinada */
    text-transform: uppercase; /* Mayúsculas para mayor impacto */
    position: relative;
    z-index: 2;
    /* Añadir una transición para la sombra del texto */
    transition: text-shadow 0.3s ease;
}

header h1:hover {
    text-shadow: 0 4px 8px rgba(255, 255, 255, 0.6); /* Sombra del texto en hover */
}

/* Navegación */
nav {
    margin-top: 15px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px; /* Mayor espacio entre los elementos de la lista */
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    padding: 10px 20px; /* Mayor padding para un área de clic más grande */
    border-radius: 30px; /* Bordes redondeados para botones más modernos */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease; /* Transiciones suaves */
    position: relative; /* Para efectos de pseudo-elementos */
    font-weight: 500; /* Un poco más de peso para los enlaces */
}

nav ul li a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: #fff;
    transition: width 0.3s ease;
}

nav ul li a:hover::before {
    width: 100%;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Fondo blanco translúcido en el hover */
    color: #fff;
    transform: translateY(-3px); /* Efecto de elevación al pasar el cursor */
}

/* Estilos del footer */
.footer {
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: #f5f5f5;
    text-align: center;
    padding: 40px 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    border-top: 2px solid #333;
    overflow: hidden;
}

.footer-content {
    display: inline-block;
    white-space: nowrap;
    animation: slide 20s linear infinite;
    font-size: 1em;
}

/* Estilo del texto en el footer */
.footer h2 {
    margin-top: 0;
    font-size: 1.5em;
    color: #f5f5f5;
    font-weight: 600;
}

.footer p {
    margin: 10px 0;
    color: #e0e0e0;
    font-size: 1em;
}

.footer a {
    color: #f5f5f5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #d0d0d0;
}

/* Animación de deslizamiento para el texto del footer */
@keyframes slide {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Sección de enlaces sociales */
.footer .social-links {
    margin: 20px 0;
}

.footer .social-links a {
    margin: 0 10px;
    font-size: 1.5em;
    color: #f5f5f5;
    transition: color 0.3s ease;
}

.footer .social-links a:hover {
    color: #e9e9e9;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

/* Estilos de la sección de bienvenida */
.welcome {
    padding: 60px 20px;
    background: #fff;
    text-align: center;
    position: relative;
    border-bottom: 2px solid #e0e0e0;
}

.welcome-content {
    max-width: 800px;
    margin: 0 auto;
}

.welcome h2 {
    margin: 0 0 20px;
    font-size: 2.2em;
    color: #333;
}

.welcome p {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.6;
    color: #666;
}

/* Estilos del contenedor de perfumes */
.perfume-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 40px 20px;
    margin-top: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.perfume {
    position: relative;
    width: 250px;
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
}

.perfume::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.perfume:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.perfume:hover::before {
    opacity: 1;
    background-image: url(attr(data-hover));
}

.perfume p {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1.1em;
    z-index: 2;
}

/* Estilo para los números en rojo y verde */
.red {
    color: #e74c3c; /* Rojo más brillante */
}

.green {
    color: #2ecc71; /* Verde más brillante */
}

/* Estilos de la clase para precios */
.price {
    font-weight: bold;
}
