/* =========================================================
   DIABONOS – ESTILOS GENERALES
   Archivo principal de estilos de la aplicación
========================================================= */


/* =========================================================
   1. VARIABLES DE COLOR (IDENTIDAD CORPORATIVA)
========================================================= */

:root {
    --color-primary: #243f6e;
    --color-secondary: #1e293b;
    --color-green: #6cab10;
    --color-light: #f8fafc;
    --color-white: #ffffff;
}


/* =========================================================
   2. NAVBAR
========================================================= */

.navbar-diabonos {
    background-color: var(--color-primary);
}

.navbar-diabonos .navbar-brand,
.navbar-diabonos .nav-link {
    color: var(--color-white);
    font-weight: 500;
}

.navbar-diabonos .nav-link:hover {
    color: #e2e8f0;
}


/* =========================================================
   3. BOTONES DE PAÍS
========================================================= */

.btn-country {
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    padding: 6px 8px;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-country img {
    width: 28px;
    height: auto;
    display: block;
}

.btn-country:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-country.active {
    background: var(--color-white);
}


/* =========================================================
   4. BOTONES
========================================================= */

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    font-weight: 600;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-outline-light {
    font-weight: 500;
}


/* =========================================================
   5. CONTENIDO GENERAL
========================================================= */

main.container {
    min-height: 60vh;
}


/* =========================================================
   HERO
========================================================= */

.hero-video {
    width: 100%;
    background-color: #000;
}

.hero-video iframe {
    border: 0;
}

.hero-video h1 {
    color: var(--color-secondary);
}

.hero-video .btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}


/* =========================================================
   CATEGORÍAS
========================================================= */

.categoria-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    padding: 10px;
}

.categoria-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.categoria-icon {
    max-width: 80px;
    max-height: 80px;
    display: block;
    margin: 0 auto 12px auto;
}


/* =========================================================
   GALERÍA
========================================================= */

.galeria-img {
    max-height: 420px;
    object-fit: cover;
    border-radius: 8px;
}


/* =========================================================
   FOOTER – POLÍTICA ÚNICA
========================================================= */

.footer-diabonos {
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 0.9rem;
    margin-top: auto;
}

.footer-diabonos .container {
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
}

.footer-diabonos p {
    margin: 0;
}


/* =========================================================
   APP HOME
========================================================= */

.app-section {
    background-color: #ffffff;
}

.app-section h2,
.app-section p {
    color: var(--color-primary);
}


/* =========================================================
   BOTONES CORPORATIVOS
========================================================= */

.btn-diabonos {
    background-color: var(--color-green);
    color: #ffffff;
    font-weight: 600;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.btn-diabonos:hover {
    background-color: #5a9c0e;
    color: #ffffff;
}

.btn-diabonos-sm {
    background-color: var(--color-green);
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 18px;
    border-radius: 6px;
    border: none;
    transition: all 0.25s ease;
}

.btn-diabonos-sm:hover {
    background-color: #5a9c0e;
}


/* =========================================================
   PORTAFOLIO HOME
========================================================= */

.portafolio-home {
    background-color: var(--color-primary);
    width: 100%;
}

.portafolio-home h2,
.portafolio-home p {
    color: #ffffff;
}

.portafolio-home .card {
    background-color: #ffffff;
    border-radius: 10px;
}


/* =========================================================
   SECTION FULL WIDTH (ÚNICA DEFINICIÓN)
========================================================= */

.section-full {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}


/* =========================================================
   NOSOTROS
========================================================= */

.nosotros-section {
    background-color: #ffffff;
}

.nosotros-title {
    color: var(--color-primary);
}

.nosotros-box {
    display: flex;
    gap: 36px;
    padding: 40px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
    align-items: center;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nosotros-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(0,0,0,0.12);
}

.nosotros-icon-gif {
    width: 140px;
    height: auto;
    flex-shrink: 0;
}

.nosotros-box h4 {
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.nosotros-box p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 0;
    font-size: 15px;
}

@media (max-width: 768px) {
    .nosotros-box {
        flex-direction: column;
        padding: 28px;
    }

    .nosotros-icon-gif {
        width: 90px;
    }
}


/* =========================================================
   PORTAFOLIO FULL
========================================================= */

.portafolio-full {
    background-color: var(--color-green);
    width: 100%;
    padding: 80px 0;
}

.portafolio-full h2,
.portafolio-full p {
    color: #ffffff;
}

.portafolio-full .card {
    height: 100%;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.portafolio-full .categoria-icon {
    max-width: 70px;
    margin: 0 auto;
}

.portafolio-full .btn {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 600;
}


/* =========================================================
   MODAL APP
========================================================= */

.app-gif {
    width: 110px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.modal-body p {
    color: var(--color-secondary);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .app-gif {
        width: 90px;
    }
}


/* =========================================================
   ESTRUCTURA GENERAL + RESET UNIFICADO
========================================================= */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}


/* =========================================================
   ONDA SUPERIOR
========================================================= */

.wave-top {
    width: 100%;
    height: 120px;
    background: linear-gradient(
        180deg,
        rgba(191,219,254,0.9) 0%,
        rgba(219,234,254,0.7) 50%,
        rgba(255,255,255,1) 100%
    );
    clip-path: ellipse(140% 85% at 50% 0%);
}


/* =========================================================
   AJUSTES FINALES
========================================================= */

.section-header {
    margin-top: -30px;
}

/* =====================================
   AJUSTE TÍTULOS PORTAFOLIO
===================================== */

/* Categoría, Subcategoría, Proveedor */
.portafolio-home h2,
.portafolio-full h2,
.section-header h2 {
    font-size: 1.5rem;   /* antes estaba muy grande */
}

/* Detalle de producto (nombre) */
.section-header h2.fw-bold {
    font-size: 1.5rem;
}

/* Breadcrumb / texto debajo del título */
.section-header p {
    font-size: 0.85rem;
}

/* =====================================
   CONTACTO – BLOQUE INFO CORPORATIVA
===================================== */

.contacto-info {
    background: linear-gradient(
        180deg,
        #f8fafc 0%,
        #ffffff 100%
    );
    border-left: 6px solid var(--color-green);
}

.contacto-info h5 {
    color: var(--color-primary);
}

.contacto-info li {
    font-size: 0.95rem;
}

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

.contact-link:hover {
    color: var(--color-green);
}

.form-control,
.form-select {
    border-radius: 10px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(108, 171, 16, 0.6);
    box-shadow: 0 0 0 0.2rem rgba(108, 171, 16, 0.18);
}
/* =====================================
   DROPDOWN NAVBAR POR HOVER (DESKTOP)
===================================== */

@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

.modal.fade .modal-dialog {
    transform: scale(0.9);
    transition: transform 0.3s ease-out;
}

.modal.fade.show .modal-dialog {
    transform: scale(1);
}

/* =====================================
   DETALLE PRODUCTO – DISEÑO PRO
===================================== */

.producto-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.producto-breadcrumb {
    font-size: 0.85rem;
    color: #6c757d;
}

.producto-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
}

.producto-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.06);
}

.producto-img {
    width: 260px;
    cursor: pointer;
    transition: transform 0.25s ease;
}

.producto-img:hover {
    transform: scale(1.05);
}

.producto-descripcion {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #495057;
}

.btn-volver {
    font-size: 0.85rem;
}

.modal-backdrop.show {
    opacity: 0.85;
}

.vendedor-modal-body {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vendedor-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    width: 100%;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef6df 100%);
    color: var(--color-primary);
}
