@import url('https://fonts.googleapis.com/css2?family=Creepster&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

#navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-family: 'Creepster', cursive;
    font-size: 2rem;
    color: red;
    text-shadow: 2px 2px black;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 2rem;
    font-weight: bold;
}

header {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#myVideo {
    position: absolute;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    object-fit: cover;
}

h1 {
    font-family: 'Creepster', cursive;
    font-size: 5rem;
    color: red;
    text-shadow: 3px 3px black;
}

h2 {
    font-family: 'Creepster', cursive;
    font-size: 2rem;
    color: red;
    text-shadow: 1px 1px black;
    text-align: center;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15%;
    margin-bottom: 1rem;
}


.modal-content {
    background: white;
    margin: 3% auto;
    padding: 2rem;
    width: 90%;
    max-width: 900px;
    border-radius: 25px;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

#modal-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15%;
}

#modal-info {
    padding: 1rem;
}

#modal-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #3e3e3e;
}

#modal-price {
    font-size: 1.5rem;
    color: red;
    font-weight: bold;
    margin-bottom: 1rem;
}

#modal-description {
    line-height: 1.6;
    color: #666;
    margin-bottom: 2rem;
}

.social-links {
    background: #f8f8f8;
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: auto;
}

.social-links a {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: red;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    margin: 0.5rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.05);
}

.close {
    position: absolute;
    right: 25px;
    top: 15px;
    font-size: 35px;
    cursor: pointer;
    color: #333;
    transition: color 0.3s ease;
}

.close:hover {
    color: red;
}

@media (max-width: 768px) {
    .modal-content {
        grid-template-columns: 1fr;
    }
}


.section {
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section-title {
    font-family: 'Creepster', cursive;
    font-size: 3rem;
    color: red;
    text-shadow: 2px 2px black;
    margin-bottom: 50px;
    text-align: center;
}

.about-section {
    background: linear-gradient(to bottom, white, #f8f8f8);
}

.how-to-buy {
    background: white;
    text-align: center;
}

.how-to-buy-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.step-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.step-number {
    font-size: 2rem;
    font-weight: bold;
    color: red;
    margin-bottom: 1rem;
}

.footer {
    background: #f8f8f8;
    padding: 20px;
    text-align: center;
    margin-top: 50px;
}

.footer-text {
    cursor: pointer;
    transition: color 0.3s;
}

.footer-text:hover {
    color: red;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.products-container, .how-to-buy-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    padding: 1rem;
}

@media (max-width: 768px) {
    .products-container, .how-to-buy-steps {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}
@media (max-width: 768px) {
    /* Top bar mejorado */
    .nav-content {
        padding: 10px;
    }
    
    .nav-links {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 14px;
    }

    /* Modal optimizado */
    .modal-content {
        width: 95%;
        height: 90vh;
        overflow-y: auto;
        margin: 20px auto;
        padding: 15px;
        grid-template-columns: 1fr;
    }

    #modal-img {
        height: 250px;
        width: 100%;
        object-fit: cover;
    }

    #modal-info {
        padding: 10px 0;
    }

    .social-links {
        padding: 15px;
    }

    .social-links a {
        display: block;
        margin: 10px 0;
    }
}

h4 {
    font-family: 'Creepster', cursive;
    font-size: 1.4rem;
    color: black;
    text-align: center;
}

h5 {
    font-family: 'Creepster', cursive;
    font-size: 1.3rem;
    color: #35C301;
    text-align: center;
}