:root {
    --primary-color: #0056b3;
    --primary-hover: #003d82;
    --accent-color: #00c6ff;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.1);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header & Navegación */
header {
    background: #a2b0f2;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.5rem;
}

.logo-brand img {
    height: 45px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.2s;
}

nav a:hover, nav a.active {
    color: var(--primary-color);
}

/* Carrusel del Index */
.carousel-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.carousel-container {
    position: relative;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 400px;
}

.carousel-slide {
    display: none;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 3rem;
    cursor: pointer;
    background: linear-gradient(135deg, #ffffff 50%, #e6f7ff 100%);
}

.carousel-slide.active {
    display: flex;
}

.slide-content {
    max-width: 50%;
}

.slide-badge {
    background: var(--accent-color);
    color: #003d82;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.slide-title {
    font-size: 2.2rem;
    margin: 0.8rem 0;
    color: var(--primary-color);
}

.slide-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.slide-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
}

.slide-image img {
    max-height: 280px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.15));
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.carousel-btn.prev { left: 15px; }
.carousel-btn.next { right: 15px; }

/* Grid de Productos / Categorías */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    flex: 1;
}

.section-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.products-grid {
    display: grid;
    /* Fuerza exactamente 3 columnas en pantallas medianas y grandes */
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Ajuste responsive para pantallas pequeñas (tablets y móviles) */
@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}
.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    padding: 1rem;
    background: #f1f5f9;
}

.product-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-card-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-top: auto;
}

/* Vista de Detalle de Producto */
.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.product-detail-img-wrapper {
    background: #f1f5f9;
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-img-wrapper img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.product-detail-info h1 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.product-detail-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.specs-list {
    margin-bottom: 2rem;
    padding-left: 1.2rem;
}

.specs-list li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.btn-buy {
    display: inline-block;
    background: var(--primary-color);
    color: #ffffff;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    width: 100%;
    text-align: center;
}

.btn-buy:hover {
    background: var(--primary-hover);
}

/* Sección Misión, Visión y Valores (Index Bottom) */
.mvv-section {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 4rem 1rem;
    margin-top: 3rem;
}

.mvv-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mvv-box {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius);
    border-left: 5px solid var(--primary-color);
}

.mvv-box h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.mvv-box p, .mvv-box ul {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    margin-bottom: 0.75rem;
}

.values-list strong {
    color: var(--text-dark);
}

/* Footer */
footer {
    background: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 2rem;
    margin-top: auto;
}

/* Formulario de Checkout Ficticio */
.checkout-form {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}
