* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #C8102E;
    --primary-gold: #D4AF37;
    --primary-silver: #A8A9AD;
    --dark: #1A1A1A;
    --light: #F8F9FA;
    --light-metallic: linear-gradient(135deg, #E8E8E8 0%, #D0D0D0 100%);
    --white: #FFFFFF;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: #000000;
    z-index: 1000;
    transition: all 0.3s;
}

nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    width: 160px;
    height: 160px;
    background: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    overflow: hidden;
}

.logo-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-accent {
    color: var(--primary-gold);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.5rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--primary-gold);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-top: 0;
    padding-top: 140px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('imagenes/ia_0255.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
    text-align: center;
}

.hero-text {
    max-width: 800px;
    text-align: center;
}

.hero-text .highlight {
    background: linear-gradient(135deg, var(--primary-red), #E62E47);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text .gold-text {
    color: var(--primary-gold);
}

.hero-text p {
    font-size: 1.3rem;
    color: #FFFFFF;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease 0.4s backwards;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red), #E62E47);
    color: white;
    box-shadow: 0 10px 30px rgba(200, 16, 46, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(200, 16, 46, 0.4);
}

.btn-primary[download]::before {
    content: '⬇️ ';
    margin-right: 0.5rem;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid var(--primary-gold);
}

.btn-secondary:hover {
    background: var(--primary-gold);
    color: var(--dark);
}

/* Stats Section */
.stats {
    background: linear-gradient(135deg, #E8E8E8 0%, #D0D0D0 100%);
    padding: 4rem 2rem;
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.stats-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    background: linear-gradient(135deg, var(--dark), #2d2d2d);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--primary-gold);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.stat-label {
    color: var(--primary-silver);
    font-weight: 500;
}

/* Products Section */
.products {
    padding: 6rem 2rem;
    background-image: url('imagenes/fondo_rojo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.products > * {
    position: relative;
    z-index: 1;
}


.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 3rem;
    color: #E8E8E8;
    margin-bottom: 1rem;
}

.section-title h2 .gold-accent {
    color: var(--primary-gold);
}

.section-title p {
    font-size: 1.2rem;
    color: #E8E8E8;
}

.products-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: linear-gradient(135deg, #E8E8E8 0%, #D0D0D0 100%);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-gold);
}

.product-image {
    height: 250px;
    background: linear-gradient(135deg, var(--dark), #2d2d2d);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.product-card:hover .product-image::before {
    transform: translateX(100%);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-icon {
    font-size: 4rem;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
}

.product-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-content p {
    color: var(--dark);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.product-content .btn {
    margin-top: auto;
    align-self: flex-start;
}

.product-content h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.product-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.product-features li {
    padding: 0.5rem 0;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-features li::before {
    content: '✓';
    color: var(--primary-red);
    font-weight: bold;
    font-size: 1.2rem;
}

/* About Section */
.about {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #E8E8E8 0%, #D0D0D0 100%);
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--primary-gold);
}

.about-content h2 {
    font-size: 3rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.about-content h2 .red-accent {
    color: var(--primary-red);
}

.about-content p {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 2rem;
}

.about-content strong {
    color: var(--primary-red);
    font-weight: 700;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.features-list li {
    padding: 1rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #E8E8E8 0%, #D0D0D0 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
    border-left: 4px solid var(--primary-gold);
}

.features-list li:hover {
    background: var(--primary-red);
    color: white;
    transform: translateX(10px);
    border-left-color: var(--primary-gold);
}

.features-list li::before {
    content: '⚙️';
    font-size: 1.5rem;
}

/* Contact Section */
.contact {
    padding: 6rem 2rem;
    background: var(--dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="1" fill="rgba(212,175,55,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.contact-info h2 .gold-accent {
    color: var(--primary-gold);
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--primary-silver);
    margin-bottom: 2rem;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    padding: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.contact-details li a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-details li a:hover {
    color: #FFD700;
    text-decoration: underline;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-gold);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-gold);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
}

/* Footer */
footer {
    background: #0f0f0f;
    color: var(--primary-silver);
    padding: 3rem 2rem 1rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    max-width: 150px;
    height: auto;
}

.footer-section h3 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--primary-silver);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    padding: 0.5rem 0;
}

.footer-section ul li a {
    color: var(--primary-silver);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--primary-silver);
}

/* Social icons */
.social-icon {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    margin-right: 0.6rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 140px;
        left: -100%;
        flex-direction: column;
        background: var(--dark);
        width: 100%;
        padding: 2rem;
        transition: left 0.3s;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}
