﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background-color: #f8f9fa;
}

.navbar .nav-link:hover {
    opacity: 0.85;
    transition: 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    transition: 0.2s ease-in-out;
}

.btn {
    border-radius: 10px;
}

/* === Banner principal === */
.hero-banner {
    position: relative;
    width: 100%;
    height: 440px; 
    background: url('../images/Banner4.png') no-repeat center center;
    background-size: cover;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero-banner {
        height: 180px;
    }

        .hero-banner h1 {
            font-size: 1.6rem;
        }
}

.product-scroll {
    scroll-behavior: smooth;
    transition: transform 0.3s ease;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00a0bd;
    cursor: pointer;
    z-index: 10;
    font-size: 1.3rem;
    transition: all 0.2s ease;
}

.scroll-btn:hover {
    background-color: #00a0bd;
    color: white;
}

.scroll-btn.left {
    left: -20px;
}

.scroll-btn.right {
     right: -20px;
}

.categoria-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.categoria-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.categoria-card .overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 160, 189, 0.70); /* azul con transparencia */
    color: white;
    text-align: center;
    transition: background-color 0.3s ease;
}

.categoria-card:hover .overlay {
    background-color: rgba(0, 160, 189, 0.7);
}


/* --- Tarjeta de producto (compacta) --- */
.product-card {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    font-size: 0.9rem;
}

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    }

    /* Imagen compacta */
    .product-card .img-wrapper {
        width: 100%;
        height: 200px; /* antes 260px */
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #fff;
        overflow: hidden;
    }

        .product-card .img-wrapper img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            transition: transform 0.4s ease;
        }

    .product-card:hover .img-wrapper img {
        transform: scale(1.05);
    }

    /* Contenido más compacto */
    .product-card .card-body {
        padding: 0.75rem 0.5rem 1rem;
    }

    .product-card .card-title {
        font-size: 0.95rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
        color: #333;
    }

/* Color debajo del nombre */
.color-chip {
    background-color: rgba(0, 160, 189, 0.1);
    color: #00a0bd;
    border-radius: 12px;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    display: inline-block;
}

/* Texto del precio */
.product-card .card-text {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.75rem;
}

/* Botón */
.btn-ver-detalles {
    background-color: #00a0bd;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
    transition: all 0.25s ease;
}

    .btn-ver-detalles:hover {
        background-color: #00899f;
        transform: scale(1.03);
    }

/* 💎 Tabs minimalistas */
.custom-tab {
    border: none;
    background: none;
    font-weight: 500;
    font-size: 1.05rem;
    color: #777;
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    transition: all 0.25s ease;
}

    .custom-tab:hover {
        color: #00a0bd;
        background-color: rgba(0, 160, 189, 0.08);
    }

    .custom-tab.active {
        color: #fff !important;
        background-color: #00a0bd;
        box-shadow: 0 4px 12px rgba(0, 160, 189, 0.2);
    }

/* Quitar el borde inferior por defecto de Bootstrap */
.nav-tabs {
    border-bottom: none;
}

/* Responsive tweak */
@media (max-width: 768px) {
    .custom-tab {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }
}

.product-card {
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    }

    .product-card .card-body {
        display: flex;
        flex-direction: column;
    }

.btn-ver-detalles {
    background-color: #00a0bd;
    color: white;
    border-radius: 50px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

    .btn-ver-detalles:hover {
        background-color: #008aa5;
        color: white;
    }

.img-wrapper {
    border-bottom: 1px solid #eee;
}

#bloqueCostoEnvio {
    display: none !important;
}

.precio-elegante {
    font-size: 1.15rem;
    font-weight: 500;
    color: #444;
    margin: 0.3rem 0;
    font-family: "Poppins", sans-serif;
}



/* ==========================================================================
   🟦 ESTILO PARA CHECKOUT, SINPE Y PÁGINA DE GRACIAS
   ========================================================================== */

/* Titulares de sección */
.section-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #00a0bd;
    margin-bottom: 1.2rem;
}

/* Subtítulos dentro de cards */
.card-section-title {
    font-weight: 600;
    color: #4b4b4b;
    border-left: 4px solid #00a0bd;
    padding-left: 0.6rem;
    margin-bottom: 1.3rem;
}

/* Cards minimalistas */
.checkout-card {
    border: none !important;
    border-radius: 20px;
    background: white;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transition: transform 0.2s ease;
}

    .checkout-card:hover {
        transform: translateY(-2px);
    }

/* Inputs modernos */
.form-control, .form-select, textarea {
    border-radius: 12px !important;
    border: 1.5px solid #d6d8da !important;
}

    .form-control:focus, .form-select:focus, textarea:focus {
        border-color: #00a0bd !important;
        box-shadow: 0 0 0 0.15rem rgba(0,160,189,0.25) !important;
    }

/* Radios */
.form-check-input:checked {
    background-color: #00a0bd !important;
    border-color: #00a0bd !important;
}

/* Bloques informativos */
.info-block {
    background: rgba(0,160,189,0.07);
    border: 1px solid rgba(0,160,189,0.25);
    border-radius: 12px;
    padding: 1rem 1.2rem;
}

/* Botón principal */
.btn-primary {
    background-color: #00a0bd !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 0.8rem !important;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.25s ease, transform 0.15s ease;
}

    .btn-primary:hover {
        background-color: #008aa5 !important;
        transform: scale(1.02);
    }

/* Resumen de pedido */
.order-summary-item {
    border-bottom: 1px solid #ebebeb;
    padding: 1rem 0;
}

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

/* Etiquetas compactas */
.summary-label {
    color: #666;
    font-weight: 500;
}

.summary-value {
    font-weight: 700;
    color: #222;
}

/* Página de gracias */
.gracias-wrapper {
    text-align: center;
    padding: 3rem 1rem;
}

.gracias-check {
    font-size: 4rem;
    color: #00a0bd;
}

.gracias-text {
    font-size: 1.3rem;
    color: #444;
    margin-top: 1rem;
}

.gracias-sub {
    color: #666;
    margin-top: 0.5rem;
}

.brand-color {
    color: #00A0BD !important;
}

.brand-bg {
    background-color: #00A0BD !important;
    color: white !important;
}

.pedido-card {
    border-radius: 12px;
    background: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    padding: 20px;
}

.pedido-table thead {
    background: rgba(0,160,189,0.10);
}

.pedido-table tbody tr:hover {
    background-color: rgba(0,160,189,0.06);
    transition: 0.2s ease-in-out;
}

.badge-estado {
    background-color: #00A0BD !important;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.btn-ver {
    border-color: #00A0BD !important;
    color: #00A0BD !important;
    font-weight: 500;
    border-radius: 20px;
    padding: 4px 14px;
}

    .btn-ver:hover {
        background-color: #00A0BD !important;
        color: white !important;
    }


.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    background-color: #00a0bd !important;
    color: #fff !important;
    border: none !important;
}

.thank-container {
    max-width: 850px;
    margin: 40px auto;
    background: #fff;
    padding: 35px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);
    font-family: 'Segoe UI', sans-serif;
}

.thank-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.thank-subtitle {
    color: #555;
    font-size: 18px;
    margin-bottom: 25px;
}

.status-box {
    padding: 18px 22px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 16px;
}

.status-success {
    background: #e8f9ef;
    color: #1c7c45;
    border-left: 5px solid #28a745;
}

.status-warning {
    background: #fff6e5;
    color: #946200;
    border-left: 5px solid #ffc107;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-top: 35px;
    margin-bottom: 15px;
    color: #333;
}

.order-info p {
    margin: 4px 0;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fafafa;
}

    .order-table th {
        background: #f0f0f0;
        padding: 12px;
        text-align: left;
        font-weight: 600;
    }

    .order-table td {
        padding: 12px;
        border-top: 1px solid #eaeaea;
    }

.total-box {
    font-size: 26px;
    font-weight: bold;
    margin-top: 10px;
    color: #0d6efd;
}

.btn-home {
    margin-top: 30px;
    padding: 12px 25px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
}

/* ===== Detalle de Orden – Clean UI ===== */

.order-wrapper {
    background: #fff;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.order-top h2 {
    font-size: 1.6rem;
}

.section-title-sm {
    font-weight: 600;
    color: #008aa5;
    margin-bottom: 0.8rem;
}

.soft-divider {
    border: none;
    height: 1px;
    background: #eee;
    margin: 1.6rem 0;
}

.order-section p {
    margin-bottom: 0.4rem;
}

.clean-table thead th {
    border-bottom: 1px solid #ddd;
    font-weight: 600;
    color: #444;
}

.clean-table tbody tr:hover {
    background-color: rgba(0,138,165,0.04);
}

.address-box {
    background: rgba(0,138,165,0.06);
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 8px;
}

.order-totals {
    max-width: 420px;
    margin-left: auto;
}

.total-line {
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

.total-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #008aa5;
}
