/* ============================
   PALETA INSTITUCIONAL
============================ */
:root {
    --primario: #1f4e79;
    --primario-oscuro: #163754;
    --secundario: #f4b000;
    --gris: #f5f5f5;
    --gris-oscuro: #555;
    --borde: #ddd;
    --texto: #222;
    --exito: #28a745;
    --error: #dc3545;
    --radius: 10px;
    --sombra: 0 4px 12px rgba(0,0,0,0.08);
    --fuente: "Segoe UI", Arial, sans-serif;
}

/* ============================
   GENERAL
============================ */
body {
    margin: 0;
    padding: 0;
    font-family: var(--fuente);
    background: var(--gris);
    color: var(--texto);
}

h1, h2, h3, h4 {
    margin: 0 0 10px;
    font-weight: 600;
}

a {
    color: var(--primario);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ============================
   HEADER INSTITUCIONAL
============================ */
.header {
    background: white;
    padding: 15px 20px;
    box-shadow: var(--sombra);
}

.header-contenido {
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    width: 190px !important;
    height: 190px !important;
    object-fit: contain;
    display: block;
}

.titulo-sitio {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primario);
}

.menu a {
    margin-left: 20px;
    font-weight: 500;
    color: var(--gris-oscuro);
}

.menu a:hover {
    color: var(--primario);
}

/* ============================
   TARJETAS DE PRODUCTO
============================ */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    padding: 20px;
}

.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--sombra);
    padding: 15px;
    text-align: center;
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius);
}

.precio {
    font-size: 1.2rem;
    margin: 10px 0;
}

.oferta {
    color: var(--exito);
    font-weight: bold;
    margin-right: 8px;
}

.tachado {
    text-decoration: line-through;
    color: var(--gris-oscuro);
}

/* ============================
   BOTONES
============================ */
.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn:hover {
    opacity: 0.9;
}

.btn.comprar {
    background: var(--primario);
    color: white;
}

.btn.secundario {
    background: var(--secundario);
    color: black;
}

/* ============================
   DETALLE DE PRODUCTO
============================ */
.detalle-producto {
    display: flex;
    gap: 30px;
    padding: 20px;
}

.detalle-producto .imagen img {
    width: 350px;
    border-radius: var(--radius);
    box-shadow: var(--sombra);
}

.temario {
    background: white;
    padding: 20px;
    margin: 20px;
    border-radius: var(--radius);
    box-shadow: var(--sombra);
}

.temario pre {
    white-space: pre-wrap;
    font-family: inherit;
}

/* ============================
   CHECKOUT
============================ */
.checkout {
    padding: 20px;
}

.form-checkout {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--sombra);
    max-width: 450px;
    margin: auto;
}

.form-checkout input,
.form-checkout select {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: var(--radius);
    border: 1px solid var(--borde);
}

/* ============================
   OPINIONES
============================ */
.opinion {
    background: white;
    padding: 15px;
    border-radius: var(--radius);
    margin-bottom: 10px;
    box-shadow: var(--sombra);
}

/* ============================
   TRANSFERENCIA
============================ */
.transferencia .cuenta {
    background: white;
    padding: 15px;
    border-radius: var(--radius);
    box-shadow: var(--sombra);
    margin: 20px 0;
}

/* ============================
   GRACIAS
============================ */
.gracias {
    text-align: center;
    padding: 40px;
}

/* ============================
   FOOTER
============================ */
.footer {
    background: var(--primario-oscuro);
    color: white;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-contenido {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.footer-col h4,
.footer-col h3 {
    margin-bottom: 10px;
}

.footer-col a {
    display: block;
    color: #ddd;
    margin-bottom: 6px;
}

.footer-copy {
    text-align: center;
    margin-top: 20px;
    color: #ccc;
    font-size: 0.9rem;
}

/* ============================
   HERO INSTITUCIONAL
============================ */
.hero {
    background: white;
    padding: 40px 20px;
    box-shadow: var(--sombra);
    margin-bottom: 30px;
}

.hero-contenido {
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-texto {
    flex: 1;
}

.hero-texto h1 {
    font-size: 2.4rem;
    color: var(--primario);
    margin-bottom: 10px;
}

.hero-texto p {
    font-size: 1.1rem;
    color: var(--gris-oscuro);
    margin-bottom: 20px;
}

.hero-btn {
    background: var(--secundario);
    color: black;
    padding: 12px 22px;
    font-size: 1rem;
    border-radius: var(--radius);
}

.hero-banner {
    flex: 1;
}

.hero-banner img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--sombra);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-contenido {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-banner img {
        max-width: 90%;
    }
}
