/* Reset básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #0f172a;
}

body {
    background: linear-gradient(180deg, #fbfdff 0%, #f3f7fb 100%);
    line-height: 1.5;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem;
}

.site-header {
    background: white;
    border-bottom: 1px solid #e6eef8;
    position: sticky;
    top: 0;
    z-index: 40;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    font-size: 1.25rem;
    color: #1e3a8a;
    font-weight: 700;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

.brand-name {
    font-size: 1.05rem;
    color: #1e3a8a;
    font-weight: 800;
}

.main-nav a {
    color: #1e293b;
    margin-left: 1rem;
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 0.35rem;
    border-radius: 6px;
}

.main-nav a:hover {
    background: #eef6ff;
    color: #1e3a8a;
}

.hero {
    padding: 3rem 0;
}

.home-hero {
    background: linear-gradient(135deg, rgba(46, 116, 229, 0.06), rgba(243, 247, 255, 0.6));
    border-radius: 12px;
}

.hero .lead {
    margin-top: 0.75rem;
    font-size: 1.05rem;
    color: #334155;
}

.hero-content {
    max-width: 640px;
}

.hero-illustration {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.card-illus {
    font-size: 4rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(16, 24, 40, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img {
    max-width: 280px;
    height: auto;
    display: block;
}

.tagline {
    font-size: 1.4rem;
    color: #2b6cb0;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(43, 108, 176, 0.1);
}

.hero-cta .btn {
    margin-right: 0.5rem;
}

.btn {
    background: #2b6cb0;
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    display: inline-block;
}

.btn.ghost {
    background: transparent;
    color: #2b6cb0;
    border: 2px solid rgba(43, 108, 176, 0.12);
}

.section {
    padding: 2rem 0;
}

.section h2,
.section h3 {
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.muted {
    color: #64748b;
    font-size: 0.95rem;
}

.features {
    background: transparent;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.feature {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.04);
    font-weight: 700;
    color: #0f172a;
}

.feature .muted {
    display: block;
    font-weight: 400;
    margin-top: 0.5rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.product-card {
    background: linear-gradient(180deg, #fff, #fbfdff);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.04);
    transition: transform .14s ease, box-shadow .14s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.08);
}

.product-card h3 {
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}

.product-card .price {
    color: #0f4c81;
    font-weight: 800;
}

.product-card .desc {
    margin-top: 0.5rem;
    color: #475569;
    font-size: 0.95rem;
}

.form {
    display: block;
    max-width: 680px;
    margin-top: 1rem;
}

.form label {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="number"],
.form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e6eef8;
    border-radius: 10px;
    margin-top: 0.25rem;
    background: white;
}

.form textarea {
    min-height: 110px;
}

.form .btn {
    margin-top: 0.6rem;
}

.form-msg {
    margin-top: 0.6rem;
    color: #2f855a;
}

.site-footer {
    background: transparent;
    padding: 1rem 0;
    margin-top: 2rem;
    border-top: 1px solid #e6eef8;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1e3a8a;
}

@media (max-width: 900px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .account-area {
        display: none;
    }

    /* Move account links to main menu if needed, or hide for simplicity for now */

    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: white;
        border-top: 1px solid #e6eef8;
        padding: 1rem 0;
        margin-top: 1rem;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a,
    .cart-toggle {
        margin: 0;
        padding: 0.8rem 1rem;
        display: block;
        width: 100%;
        text-align: left;
        border-radius: 0;
    }

    .cart-toggle {
        justify-content: flex-start;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-illustration {
        display: none;
    }
}

/* Accesibilidad: foco visible */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 3px solid rgba(43, 108, 176, 0.14);
    outline-offset: 2px;
}

/* Winter theme additions */
.winter-theme {
    background: linear-gradient(180deg, #f0f6ff 0%, #eef6fb 40%, #f8fbff 100%);
}

.winter-hero {
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.6), rgba(241, 245, 255, 0.9));
    border: 1px solid rgba(224, 242, 254, 0.6);
}

.card-illus {
    font-size: 4rem;
    background: linear-gradient(180deg, #ffffff, #f0f6ff);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
}

/* Snow effect (subtle) */
.winter-theme::before {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    pointer-events: none;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.9) 0.5px, transparent 0.5px), radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.9) 0.6px, transparent 0.6px);
    background-size: 30px 30px, 40px 40px;
    opacity: 0.5;
    mix-blend-mode: screen;
}

/* Account area */
.account-area {
    margin-left: 1rem;
    color: #0f172a;
    font-weight: 600;
}

.account-area a {
    color: #1e3a8a;
    text-decoration: none;
    margin-left: 0.5rem;
    font-weight: 700;
}

/* Product image */
.product-card img.product-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.6rem;
}

/* Image preview on vender page */
#image-preview {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Shopping Cart UI */
.cart-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #1e293b;
    margin-left: 0.5rem;
    /* Reduced from 1rem to save space */
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    /* Slightly smaller font */
    padding: 0.5rem 0.2rem;
    /* Adjusted padding as requested */
    vertical-align: middle;
}


/* Team List Styling */
.team-section {
    margin: 2rem 0;
}

.team-section h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.team-list {
    list-style: none;
    padding: 0;
}

.team-list li {
    background: white;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
    border-left: 4px solid #2b6cb0;
}

.team-list li strong {
    color: #0f172a;
    font-size: 1.05rem;
}

.team-list .role {
    color: #2b6cb0;
    font-weight: 600;
    font-style: italic;
    margin-right: 0.3rem;
}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 100;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

.modal-overlay.open {
    display: flex;
}

.cart-modal {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
}

.cart-header h2 {
    font-size: 1.5rem;
    color: #1e3a8a;
    margin: 0;
}

.close-cart {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.cart-item-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.cart-item-price {
    color: #0f4c81;
    font-weight: 700;
}

.remove-item {
    color: #ef4444;
    background: none;
    border: none;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    margin-left: 1rem;
}

.cart-footer {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.btn-checkout {
    width: 100%;
    background: #2f855a;
    text-align: center;
}

.btn-checkout:hover {
    background: #276749;
}

.empty-cart-msg {
    text-align: center;
    color: #64748b;
    padding: 2rem 0;
}