:root {
    --primary-color: #1a1a1a;
    --secondary-color: #ffffff;
    --accent-color: #1df60b;
}

@font-face {
    font-family: 'ITC Avant Garde Gothic Std';
    src: url('../fonts/itc-avant-garde-gothic-std-demi.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: 'ITC Avant Garde Gothic Std', sans-serif;
    color: var(--secondary-color);
    background-color: var(--primary-color);
    line-height: 1.2;
    transition: opacity 0.8s ease-out;
}

body.rotating {
    opacity: 0;
    transition: none;
}

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#bgVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

header {
    padding: 0;
}

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
}

.logo img {
    height: 40px;
    width: auto;
}

.menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.menu a {
    color: var(--secondary-color);
    text-decoration: none;
    text-transform: uppercase;
}

.menu a:hover {
    color: var(--accent-color);
}

.inicio .menu a[href="index.html"],
.productos .menu a[href="productos.html"] {
    color: var(--accent-color);
}

.inicio main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.inicio .content {
    text-align: center;
    padding: 2rem;
}

.product-showcase {
    margin-top: 0;
}

.products-page {
    margin-top: 3.5rem;
    min-height: calc(100vh - 6rem); 
    padding-bottom: 4rem; 
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
    margin-top: 1rem;
    margin-bottom: 2rem; 
}

.section-title {
    margin: 0;
    padding: 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    line-height: 1;
    background: black;
}

.product-card {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.product-info {
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.product-info .text-content {
    flex: 1 0 auto;
}

.product-info .button-container {
    flex-shrink: 0;
    padding-top: 1rem;
}

.product-info h3 {
    font-family: 'ITC Avant Garde Gothic Std', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1;
    color: var(--secondary-color);
}

.product-info p {
    font-size: 0.9rem;
    line-height: 1.1;
    color: var(--secondary-color);
    margin-bottom: 0;
    padding: 0 0.5rem;
}

.contact-button {
    display: inline-block;
    padding: 0.6rem 2rem;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem;
    text-align: center;
    z-index: 10;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    color: var(--secondary-color);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.social-links a:hover {
    color: var(--accent-color);
}

@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 1rem;
        padding: 0.5rem;
    }

    .product-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
    }

    .products-page {
        margin-top: 4.5rem;
        padding-bottom: 5rem;
    }
}

@media (max-width: 480px) {
    .products-page {
        margin-top: 5.5rem;
        padding-bottom: 6rem;
    }
}

@media screen and (orientation: landscape) and (max-height: 600px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 0.8rem;
        padding: 0.5rem;
    }

    .product-card {
        height: auto;
        max-height: calc(100vh - 7rem);
        display: flex;
        flex-direction: column;
    }

    .product-image {
        width: 100%;
        aspect-ratio: 4/5;
        object-fit: cover;
        max-height: calc((100vh - 7rem) * 0.7);
    }

    .product-info {
        padding: 0.4rem;
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
        max-height: calc((100vh - 7rem) * 0.3);
    }

    .product-info h3 {
        font-size: 0.9rem;
        margin: 0;
        line-height: 1.1;
    }

    .product-info p {
        font-size: 0.75rem;
        margin: 0;
        padding: 0;
        line-height: 1.1;
    }

    .contact-button {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
        margin: 0;
        line-height: 1;
    }
}
