/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #FD0408;
    --dark-red: #DF0000;
    --light-red: #FF181C;
    --accent-gray: #4A4A4A;
    --dark-gray: #1A1A1A;
    --medium-gray: #6B7280;
    --light-gray: #FAFAFA;
    --white: #FFFFFF;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-gray);
    min-height: 100vh;
    line-height: 1.6;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.hover-scale {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Header */
#header {
    background-color: var(--white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.logo-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--dark-red) 0%, var(--primary-red) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 30px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(253,4,8,0.25);
    transform: rotate(-3deg);
}

.logo-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-gray);
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 11px;
    color: var(--medium-gray);
    letter-spacing: 2px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #374151;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-button:hover {
    color: var(--primary-red);
}

.cart-button {
    background: linear-gradient(135deg, var(--dark-red) 0%, var(--primary-red) 100%);
    border: none;
    border-radius: 12px;
    padding: 0.85rem 1.75rem;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 15px;
    font-weight: 600;
    position: relative;
    box-shadow: 0 4px 12px rgba(253,4,8,0.25);
    transition: all 0.3s;
}

.cart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(253,4,8,0.35);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, var(--accent-gray) 0%, #5F9EA0 100%);
    color: white;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(74,74,74,0.4);
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    max-width: 950px;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,0.3);
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 68px;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero-description {
    font-size: 21px;
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.7;
    opacity: 0.95;
    max-width: 750px;
    margin: 0 auto 2.5rem;
}

.hero-button {
    background: linear-gradient(135deg, var(--dark-red) 0%, var(--primary-red) 100%);
    color: white;
    border: none;
    padding: 1.2rem 3.5rem;
    font-size: 17px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    letter-spacing: 0.3px;
}

.hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* Secciones */
.section {
    max-width: 1400px;
    margin: 5rem auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    font-weight: 800;
    letter-spacing: -1px;
}

.section-subtitle {
    color: var(--medium-gray);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.page-title {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    font-weight: 800;
}

.page-subtitle {
    font-size: 18px;
    color: var(--medium-gray);
    margin-bottom: 3rem;
}

/* Grid de Categorías/Productos */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
    position: relative;
}

.category-image {
    height: 260px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.category-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--light-red) 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(253,4,8,0.3);
}

.category-content {
    padding: 2rem;
}

.category-title {
    font-family: 'Poppins', sans-serif;
    font-size: 23px;
    margin-bottom: 0.75rem;
    color: var(--dark-gray);
    font-weight: 700;
}

.category-link {
    display: flex;
    align-items: center;
    color: var(--primary-red);
    font-size: 15px;
    font-weight: 600;
    gap: 0.25rem;
}

/* Tarjeta de Producto */
.product-card {
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
}

.product-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.product-content {
    padding: 1.5rem;
}

.product-title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    cursor: pointer;
    font-weight: 700;
}

.product-description {
    color: var(--medium-gray);
    font-size: 14px;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.quantity-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: center;
}

.quantity-button {
    background: var(--light-gray);
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.quantity-button:hover {
    background: #e5e5e5;
}

.quantity-input {
    width: 60px;
    text-align: center;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    padding: 0.5rem;
    font-size: 16px;
    font-weight: 600;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
}

.add-to-cart-button {
    flex: 1;
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.add-to-cart-button:hover {
    opacity: 0.9;
}

.view-detail-button {
    background: var(--light-gray);
    border: 1px solid #E5E5E5;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--primary-red);
    font-weight: 600;
    transition: background 0.2s;
}

.view-detail-button:hover {
    background: #e5e5e5;
}

/* Detalle de Producto */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.product-detail-image {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.product-detail-title {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    font-weight: 800;
}

.product-detail-description {
    font-size: 18px;
    color: var(--medium-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.product-features {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.product-features h3 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.product-features ul {
    list-style: none;
    line-height: 2;
}

.product-features li::before {
    content: "✓ ";
    color: var(--primary-red);
    font-weight: bold;
}

.detail-quantity-selector {
    display: flex;
    gap: 1rem;
    align-items: center;
    background-color: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.detail-quantity-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.detail-quantity-button {
    background: var(--light-gray);
    border: none;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-quantity-input {
    width: 80px;
    text-align: center;
    border: 2px solid #E5E5E5;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 18px;
    font-weight: 600;
}

.detail-add-button {
    flex: 1;
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

/* Back Button */
.back-button {
    background: none;
    border: none;
    color: var(--primary-red);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 16px;
    font-weight: 600;
}

.back-button:hover {
    text-decoration: underline;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--dark-gray) 0%, #374151 100%);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(253,4,8,0.15) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(74,74,74,0.15) 0%, transparent 50%);
    opacity: 0.8;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: 'Poppins', sans-serif;
    font-size: 44px;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.cta-description {
    font-size: 19px;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.7;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--light-red) 100%);
    color: white;
    border: none;
    padding: 1.2rem 3.5rem;
    font-size: 17px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(253,4,8,0.4);
    letter-spacing: 0.3px;
}

/* Carrito Lateral */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 200;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 450px;
    max-width: 90vw;
    background-color: white;
    box-shadow: -5px 0 20px rgba(0,0,0,0.2);
    z-index: 201;
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.3s ease-out;
}

.cart-header {
    padding: 2rem;
    border-bottom: 1px solid #E5E5E5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    color: var(--dark-gray);
    font-weight: 700;
}

.close-cart {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--medium-gray);
}

.cart-empty svg {
    margin: 0 auto 1rem;
    opacity: 0.3;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--light-gray);
    border-radius: 10px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background-size: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 16px;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    font-weight: 600;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-button {
    background: white;
    border: 1px solid #E5E5E5;
    border-radius: 5px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-quantity {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #DC2626;
    cursor: pointer;
    margin-left: auto;
    font-size: 13px;
}

.cart-footer {
    padding: 2rem;
    border-top: 1px solid #E5E5E5;
    background-color: var(--light-gray);
}

.cart-total {
    margin-bottom: 1rem;
    font-size: 14px;
    color: var(--medium-gray);
}

.cart-total strong {
    color: var(--dark-gray);
}

.checkout-button {
    width: 100%;
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
}

/* Formulario de Cotización */
.quote-form-container {
    background-color: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 3rem auto;
}

.quote-summary {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: 10px;
}

.quote-summary h3 {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.quote-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 14px;
}

.quote-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #E5E5E5;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.form-grid {
    display: grid;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #E5E5E5;
    border-radius: 10px;
    font-size: 16px;
}

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

.submit-button {
    width: 100%;
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    margin-top: 2rem;
    cursor: pointer;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-gray) 0%, #374151 100%);
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: 5rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.footer-logo-box {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--dark-red) 0%, var(--primary-red) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 800;
    transform: rotate(-3deg);
}

.footer-logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 700;
}

.footer-description {
    opacity: 0.85;
    line-height: 1.7;
    font-size: 15px;
}

.footer-section h4 {
    margin-bottom: 1.25rem;
    font-size: 17px;
    font-weight: 700;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    opacity: 0.85;
    font-size: 15px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.7;
}

.footer-bottom {
    text-align: center;
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    opacity: 0.7;
    font-size: 14px;
}

.footer-bottom a {
    color: var(--light-red);
    text-decoration: none;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 42px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .cart-sidebar {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}
