* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary-red: #ff2d55;
    --secondary-red: #ff7f7f;
    --red-dark: #8B0000;
}

body {
    background-color: var(--primary-red); /* Asegura que el fondo sea el mismo */
    margin: 0;
    padding-top: 90px;
    overflow-x: hidden;
}

section {
    scroll-margin-top: 114px; /* Ajusta según la altura del header */
}

#nosotros, #productos, #contacto {
    background-color: white;
}

#nosotros {
    text-align: center;
    background-color: #fff9f9; /* Un fondo suave y romántico */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#nosotros .container {
    max-width: 800px;
    margin: 0 auto;
}

#footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 15px 0;
    font-size: 14px;
}

#footer p {
    margin: 0;
}

footer a {
    font-weight: bold;
    text-decoration: none;
    color: inherit;
}

footer a:hover {
    text-decoration: underline;
}

h2 {
    text-align: center;
    font-size: 28px;
    color: #d63384; /* Un tono rosa vibrante */
    margin-bottom: 32px;
}

#nosotros p {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
}

#nosotros p:last-child {
    font-weight: bold;
    font-size: 20px;
    color: #b91c1c; /* Un tono rojo romántico */
}

#header {
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--primary-red); /* Misma propiedad de fondo */
    padding: 0;
    width: 100%;
    height: 90px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: none; /* Opcional si no quieres sombra */
    transition: all 0.3s ease-in-out;
}

.nav-container {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
    height: 100%;
}

.nav-links li {
    height: 100%;
    padding: 0 30px; /* Espaciado lateral */
    display: flex;
    align-items: center; /* Centrar texto verticalmente */
    transition: background-color 0.3s;
}

.nav-links li:hover {
    color: var(--red-dark);
    background-color: #ffffff;
}

.nav-links li:hover a {
    color: var(--red-dark); /* Cambia el color del texto */
}

.nav-links li:hover a::after {
    width: 100%;
}

.scrolled {
    background-color: rgba(255, 45, 85, 0.9);
}

.logo {
    height: 70px;
    transition: height 0.3s;
}

/* ---------------------- */
/* MENÚ RESPONSIVE */
/* ---------------------- */
.menu-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: left 0.5s ease-in-out;
}

/* Animación del botón cuando el menú está abierto */
.menu-toggle.active {
    left: 270px; /* Se mueve con el menú */
}

.menu-toggle div {
    width: 30px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s;
}

@media screen and (min-width: 768px) {
    .menu-toggle {
        display: none; /* Oculta el botón hamburguesa en pantallas grandes */
    }
}

/* Estilos para dispositivos móviles */
@media screen and (max-width: 768px) {
    #header {
        height: 70px; /* Reducimos el tamaño del header */
        padding: 0 15px;
    }

    .nav-container {
        justify-content: flex-end; /* Mueve los elementos a la derecha */
        padding-right: 15px; /* Agrega espacio a la derecha */
    }

    .nav-container a {
        order: 2; /* Asegura que el logo esté al final */
    }

    .logo {
        height: 60px;
        transition: height 0.3s;
        margin-top: 5px;
        margin-bottom: 5px;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: -200px;
        width: 200px;
        height: 300px;
        background-color: var(--primary-red);
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 15px 0;
        transition: left 0.5s ease-in-out;
    }

    .nav-links li {
        padding: 10px 20px;
    }

    .menu-toggle {
        order: 1;
        display: flex; /* Mostramos el botón de menú */
    }

    /* Clase para mostrar el menú cuando se activa */
    .nav-links.active {
        display: flex;
        left: 0;
        transition: left 0.5s ease-in-out;
    }
}

.buy-button {
    width: 100%;
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.buy-button:hover {
    border: 2px solid #ff4d4d; /* Rojo más vibrante para destacar el borde */
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.5); /* Efecto de resplandor */
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0;
}

nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    position: relative;
}

nav a:hover {
    color: var(--red-dark);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--red-dark);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

#hero {
    height: 100vh;
    background: linear-gradient(rgba(255, 45, 85, 0.9), rgba(255, 127, 127, 0.9)), url('https://via.placeholder.com/1920x1080') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '❤';
    position: absolute;
    font-size: 8rem;
    animation: heartbeat 1.2s infinite;
    opacity: 0.02;
    position: fixed;
    top: 200px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

button {
    padding: 15px 30px;
    background-color: var(--primary-red);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button:hover {
    transform: scale(1.2);
    border: 2px solid #ff4d4d; /* Rojo más vibrante para destacar el borde */
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.5); /* Efecto de resplandor */
}

.love-button {
    border-radius: 50px;
    margin-top: 20px;
    width: 200px;
    height: 100px;
    font-size: x-large;
    border: 0.5px solid #ffffff;
}

.love-button:hover {
    animation: Buttonbeat 1.2s infinite;
    border: 1px solid #ffffff;
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.5); /* Efecto de resplandor */
}

button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple 1s ease-out;
}

@keyframes heartbeat {
    0% { transform: scale(2.5); }
    25% { transform: scale(4); }
    50% { transform: scale(4); }
    75% { transform: scale(4); }
    100% { transform: scale(2.5); }
}

@keyframes Buttonbeat {
    0% { transform: scale(1.2); }
    25% { transform: scale(1.6); }
    50% { transform: scale(1.6); }
    75% { transform: scale(1.6); }
    100% { transform: scale(1.2); }
}

@keyframes ripple {
    from {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    to {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
}

.product-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-top: 14px;
}

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

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.product-card h3 {
    margin: 15px 0;
    color: var(--primary-red);
}

.product-card p {
    color: #666;
    padding-bottom: 10px;
}

form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: text;
    z-index: 2000;
}

input:hover, textarea:hover {
    border-color: var(--primary-red); /* Resalta el borde al hacer hover */
    box-shadow: 0 0 5px rgba(255, 45, 85, 0.5); /* Efecto de resplandor */
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

.heart {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: var(--primary-red);
    clip-path: path("M12 4.419c-2.826-5.695-11.999-4.064-11.999 3.27 0 7.27 9.903 10.938 11.999 15.311 2.096-4.373 12-8.041 12-15.311 0-7.327-9.17-8.972-12-3.27z");
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 24px;
    color: white;
    z-index: 1000;
    transform: scale(2); /* Aumenta el tamaño sin afectar la forma */
    transform-origin: center;
}

.heart:hover {
    transform: scale(2.5);
    animation: heartbeat 1.2s infinite;
}

/* Estilo para la onda en forma de corazón */
.wave-effect {
    position: absolute;
    width: 70px;
    height: 70px;
    background: rgba(255, 45, 85, 0.5);
    clip-path: path("M12 4.419c-2.826-5.695-11.999-4.064-11.999 3.27 0 7.27 9.903 10.938 11.999 15.311 2.096-4.373 12-8.041 12-15.311 0-7.327-9.17-8.972-12-3.27z");
    animation: waveHeart 2s ease-out;
    transform: scale(0);
    pointer-events: none; /* Para evitar que interfiera con el clic */
    z-index: 9999;
    opacity: 0.7;
}

@keyframes waveHeart {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        transform: scale(5);
        opacity: 0.5;
    }
    100% {
        transform: scale(10);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }
    
    nav ul {
        flex-direction: column;
        text-align: center;
    }
}