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

:root {
    --primary-color: #096CC8;
    --secondary-color: #0B83F4;
    --dark-color: #2B161B;
    --gray-color: #453E3E;
    --light-gray: #F7F3F5;
    --white: #FFFFFF;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--gray-color);
    background-color: var(--light-gray);
    animation: pageEnter 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pageExit {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100px);
    }
}

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

/* HEADER */
.header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    font-family: 'Racing Sans One', display;
    margin: 0;
}

.logo img {
    max-height: 90px;
    width: auto;
    display: block;
}

.tagline {
    font-size: 20px;
    margin-top: 2px;
    opacity: 0.9;
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    opacity: 0.8;
}

.cart-btn {
    background-color: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    transition: var(--transition);
}

.cart-btn:hover {
    transform: scale(1.05);
}

.cart-count {
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-left: 5px;
}

/* HERO SECTION */
.hero {
    background: url('../images/Fondo descarrilado.jpg') center/100% 100% no-repeat;
    color: var(--white);
    padding: 0;
    text-align: center;
    margin-top: 0;
    min-height: 70vh;
}

.hero-button {
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(180deg, var(--light-gray), var(--white));
}

.hero-content h2 {
    font-size: 48px;
    font-family: 'Racing Sans One', display;
    font-style: normal;
    font-weight: normal;
    margin-bottom: 15px;
}


/* BOTONES */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    display: block;
    padding: 18px 30px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #25D366, #20ba5a) !important;
    color: var(--white) !important;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    position: relative;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    border: none;
}

.btn-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.5s ease;
}

.btn-full:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4) !important;
}

.btn-full:hover::before {
    left: 100%;
}

.btn-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 20px 60px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(9, 108, 200, 0.3);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.btn-hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.btn-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(9, 108, 200, 0.5);
}

.btn-hero:hover:before {
    left: 100%;
}

.btn-hero:active {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(9, 108, 200, 0.4);
}

.btn-hero:hover {
    background-color: var(--light-gray);
    transform: translateY(-3px);
}

/* SHOP SECTION */
.shop {
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-family: 'Racing Sans One', display;
    color: var(--dark-color);
    margin-bottom: 40px;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* SHOP LAYOUT */
.shop-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

.shop-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-box {
    background-color: var(--white);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-input {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
}

.search-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 5px rgba(11, 131, 244, 0.3);
}

.search-btn {
    padding: 10px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.search-btn:hover {
    background-color: var(--secondary-color);
}

.categories-box {
    background-color: var(--white);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.categories-box h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 16px;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--gray-color);
    transition: var(--transition);
    padding: 8px;
    border-radius: 5px;
}

.category-item:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.category-item input[type="radio"] {
    cursor: pointer;
    accent-color: var(--primary-color);
}

.shop-content {
    min-height: 400px;
}

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

.product-card {
    background-color: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(20, 27, 46, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(9, 108, 200, 0.08);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(20, 27, 46, 0.15);
}

.product-image {
    width: 100%;
    height: 210px;
    background: linear-gradient(135deg, #ecf3fb, #f8fbff);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    color: var(--primary-color);
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.product-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-description {
    font-size: 13px;
    color: var(--gray-color);
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn-add-cart {
    flex: 1;
    padding: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-add-cart:hover {
    filter: brightness(1.05);
}

.btn-whatsapp {
    flex: 1;
    padding: 10px;
    background-color: #25D366;
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background-color: #20ba5a;
}

/* MODAL/CARRITO */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 200;
    backdrop-filter: blur(5px);
    animation: backdropEnter 0.3s ease;
}

@keyframes backdropEnter {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, var(--white) 0%, #F5F7FA 100%);
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 620px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3), 
                0 0 1px rgba(0, 0, 0, 0.1);
    animation: modalEnter 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(9, 108, 200, 0.1);
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-content h2 {
    color: var(--dark-color);
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cart-items {
    margin-bottom: 25px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.cart-items::-webkit-scrollbar {
    width: 6px;
}

.cart-items::-webkit-scrollbar-track {
    background: transparent;
}

.cart-items::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.cart-item {
    background: linear-gradient(135deg, var(--white) 0%, #F9FBFC 100%);
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border: 1px solid rgba(9, 108, 200, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.cart-item:hover {
    transform: translateX(3px);
    box-shadow: 0 6px 20px rgba(9, 108, 200, 0.15);
    border-color: rgba(9, 108, 200, 0.3);
}

.cart-item-image {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(9, 108, 200, 0.2);
    flex-shrink: 0;
}

.cart-item-info h4 {
    color: var(--dark-color);
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 15px;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
    margin-left: 12px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-info input {
    width: 50px;
    padding: 6px;
    border: 1px solid rgba(9, 108, 200, 0.2);
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 16px;
    margin-left: 0;
}

.cart-item-remove {
    background: #eef5fd;
    border: none;
    color: #2056a3;
    cursor: pointer;
    font-size: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.cart-item-remove:hover {
    transform: scale(1.08);
    color: #ff4444;
    background: #fdeff1;
}

.empty-cart {
    text-align: center;
    color: var(--gray-color);
    padding: 40px 20px;
    font-size: 16px;
}

.cart-total {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(9, 108, 200, 0.25);
    position: relative;
    overflow: hidden;
}

.cart-total::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translate(-100%, -100%);
    }
    100% {
        transform: translate(100%, 100%);
    }
}

.cart-total h3 {
    color: var(--white);
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--gray-color);
    padding: 36px 20px;
    background: #fff;
    border-radius: 10px;
    border: 1px dashed rgba(9, 108, 200, 0.35);
}

.cart-notification {
    position: fixed;
    top: 95px;
    right: 20px;
    background: #25D366;
    color: #fff;
    padding: 12px 16px;
    border-radius: 9px;
    z-index: 300;
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.24);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cart-notification.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* FOOTER */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 50px 20px 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.footer-section p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-section p.certified {
    font-size: 12px;
    font-style: italic;
    opacity: 0.8;
    margin-top: 8px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    opacity: 0.8;
}

/* CONTACT SECTION */
.contact-section {
    padding: 60px 20px;
    background-color: var(--light-gray);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-box {
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.info-box h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 16px;
}

.info-box p {
    color: var(--gray-color);
    margin-bottom: 8px;
    line-height: 1.6;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.social-links-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-icon {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--secondary-color);
    transform: translateX(5px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    margin-top: 10px;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
}

.contact-form-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-form-box {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-form-box h2 {
    color: var(--dark-color);
    margin-bottom: 8px;
    font-size: 24px;
}

.form-subtitle {
    color: var(--gray-color);
    margin-bottom: 25px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid #E8E8E8;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: var(--gray-color);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(9, 108, 200, 0.2);
}

.btn-submit {
    align-self: flex-start;
    padding: 14px 40px;
    font-size: 16px;
    margin-top: 10px;
}

.faq-box {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.faq-box h2 {
    color: var(--dark-color);
    margin-bottom: 25px;
    font-size: 24px;
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E8E8E8;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 16px;
}

.faq-item p {
    color: var(--gray-color);
    line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .header {
        padding: 12px 0;
    }

    .logo h1 {
        font-size: 24px;
    }

    .tagline {
        font-size: 16px;
    }

    .hero {
    min-height: 45vh;
    background-size: contain;
    background-position: center top;
    }
    
    .nav {
        width: 100%;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .shop-wrapper {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        order: 0;
    }

    .shop-content {
        order: 1;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .product-actions {
        flex-direction: column;
    }

    .modal-content {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 20px;
    }

    .header {
        padding: 10px 0;
    }

    .tagline {
        font-size: 14px;
    }

    .nav-link {
        font-size: 12px;
    }

    .hero-content h2 {
        font-size: 24px;
    }

    .shop-wrapper {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 24px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}



