/* ============================================================
   DISTRIBUIDORA LA GANADERA
   SITIO WEB PUBLICO
   NEGRO / BLANCO / GRIS
   ============================================================ */


/* ============================================================
   RESET
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: #f3f3f3;
    color: #222;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    min-height: 100vh;
}


/* ============================================================
   HEADER
   ============================================================ */

.header {
    width: 100%;

    min-height: 150px;

    display: flex;
    align-items: center;

    gap: 30px;

    padding: 12px 40px;

    background: #ffffff;

    color: #111;

    border-bottom: 1px solid #d8d8d8;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, .08);
}


/* ============================================================
   LOGO
   ============================================================ */

.logo {
    width: 125px;
    height: 125px;

    object-fit: contain;

    flex-shrink: 0;

    display: block;
}


/* ============================================================
   BLOQUE DEL TITULO
   ============================================================ */

.title-block {
    flex: 1;

    min-width: 0;
}

.title-row {
    display: flex;

    align-items: baseline;

    gap: 12px;
}

.title-row h1 {
    margin: 0;

    font-size: 30px;

    line-height: 1.2;

    font-weight: 700;

    color: #111;
}

#version {
    font-size: 11px;

    color: #777;

    white-space: nowrap;

    font-weight: normal;
}

.subtitle {
    margin: 7px 0 0;

    font-size: 15px;

    color: #666;

    line-height: 1.4;
}


/* ============================================================
   MENU PUBLICO
   ============================================================ */

.public-menu {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 8px;

    flex-shrink: 0;
}

.public-menu a {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 40px;

    padding: 9px 14px;

    border-radius: 5px;

    color: #333;

    background: transparent;

    border: 1px solid transparent;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .15s ease;
}

.public-menu a:hover {
    background: #f0f0f0;

    border-color: #d0d0d0;

    color: #000;
}


/* ============================================================
   BOTON INGRESAR
   ============================================================ */

.public-menu .login-link {
    margin-left: 6px;

    padding-left: 18px;
    padding-right: 18px;

    background: #111;

    color: #fff;

    border-color: #111;
}

.public-menu .login-link:hover {
    background: #333;

    color: #fff;

    border-color: #333;

    transform: translateY(-1px);
}


/* ============================================================
   CONTENIDO PRINCIPAL
   ============================================================ */

main {
    width: 100%;

    max-width: 1150px;

    margin: 0 auto;

    padding: 35px 20px 50px;
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
    position: relative;

    min-height: 360px;

    display: flex;

    align-items: center;

    margin-bottom: 25px;

    padding: 50px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #171717 0%,
            #222 55%,
            #111 100%
        );

    color: #fff;

    border-radius: 10px;

    box-shadow:
        0 4px 18px rgba(0, 0, 0, .15);
}


/* ============================================================
   DETALLE VISUAL DEL HERO
   ============================================================ */

.hero::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    right: -100px;
    top: -100px;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,.08);

    box-shadow:
        0 0 0 35px rgba(255,255,255,.025),
        0 0 0 70px rgba(255,255,255,.018);
}

.hero-content {
    position: relative;

    z-index: 1;

    max-width: 700px;
}

.hero h2 {
    margin: 0 0 18px;

    font-size: 38px;

    line-height: 1.15;

    color: #fff;

    font-weight: 700;
}

.hero p {
    margin: 0 0 12px;

    font-size: 17px;

    line-height: 1.65;

    color: #ddd;
}


/* ============================================================
   BOTON HERO
   ============================================================ */

.hero-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-top: 18px;

    padding: 13px 22px;

    min-height: 46px;

    background: #fff;

    color: #111;

    border: 1px solid #fff;

    border-radius: 5px;

    text-decoration: none;

    font-size: 15px;

    font-weight: 700;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .15s ease;
}

.hero-button:hover {
    background: #e8e8e8;

    color: #000;

    border-color: #e8e8e8;

    transform: translateY(-1px);
}


/* ============================================================
   SECCIONES PUBLICAS
   ============================================================ */

.public-section {
    background: #fff;

    border: 1px solid #ddd;

    border-radius: 10px;

    padding: 32px;

    margin-bottom: 25px;

    box-shadow:
        0 2px 10px rgba(0, 0, 0, .06);
}

.public-section h2 {
    margin: 0 0 15px;

    font-size: 25px;

    line-height: 1.25;

    color: #111;
}

.public-section p {
    margin: 10px 0;

    font-size: 16px;

    line-height: 1.7;

    color: #555;
}

.public-section .hero-button {
    background: #111;

    color: #fff;

    border-color: #111;
}

.public-section .hero-button:hover {
    background: #333;

    color: #fff;

    border-color: #333;
}


/* ============================================================
   FOOTER
   ============================================================ */

footer {
    width: 100%;

    padding: 25px 20px;

    margin-top: 0;

    background: #111;

    color: #aaa;

    border-top: 1px solid #222;

    text-align: center;
}

footer p {
    margin: 0;

    font-size: 13px;

    line-height: 1.5;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 950px) {

    .header {
        gap: 20px;

        padding: 15px 25px;
    }

    .logo {
        width: 100px;
        height: 100px;
    }

    .title-row h1 {
        font-size: 25px;
    }

    .subtitle {
        font-size: 14px;
    }

    .public-menu {
        gap: 3px;
    }

    .public-menu a {
        padding: 8px 10px;

        font-size: 13px;
    }

    .public-menu .login-link {
        padding-left: 13px;
        padding-right: 13px;
    }

    .hero {
        padding: 40px;
    }

    .hero h2 {
        font-size: 32px;
    }
}


/* ============================================================
   MOVIL
   ============================================================ */

@media (max-width: 700px) {

    .header {
        min-height: auto;

        display: flex;

        flex-wrap: wrap;

        align-items: center;

        padding: 15px 20px;

        gap: 15px;
    }

    .logo {
        width: 85px;
        height: 85px;
    }

    .title-block {
        flex: 1;

        min-width: 200px;
    }

    .title-row {
        flex-wrap: wrap;

        align-items: baseline;

        gap: 7px;
    }

    .title-row h1 {
        font-size: 22px;
    }

    #version {
        font-size: 10px;
    }

    .subtitle {
        margin-top: 5px;

        font-size: 13px;
    }

    .public-menu {
        width: 100%;

        justify-content: center;

        flex-wrap: wrap;

        padding-top: 5px;
    }

    .public-menu a {
        flex: 0 0 auto;

        padding: 9px 12px;
    }

    .public-menu .login-link {
        margin-left: 0;
    }

    main {
        padding: 20px 15px 35px;
    }

    .hero {
        min-height: 330px;

        padding: 30px 25px;

        border-radius: 8px;
    }

    .hero h2 {
        font-size: 28px;
    }

    .hero p {
        font-size: 15px;

        line-height: 1.6;
    }

    .public-section {
        padding: 25px 20px;

        border-radius: 8px;
    }

    .public-section h2 {
        font-size: 22px;
    }

    .public-section p {
        font-size: 15px;
    }
}


/* ============================================================
   TELEFONO PEQUEÑO
   ============================================================ */

@media (max-width: 450px) {

    .header {
        align-items: flex-start;
    }

    .logo {
        width: 75px;
        height: 75px;
    }

    .title-block {
        min-width: 0;
    }

    .title-row h1 {
        font-size: 19px;
    }

    .subtitle {
        font-size: 12px;
    }

    .public-menu {
        justify-content: flex-start;
    }

    .public-menu a {
        font-size: 12px;

        min-height: 36px;

        padding: 7px 10px;
    }

    .hero {
        min-height: 300px;

        padding: 25px 20px;
    }

    .hero h2 {
        font-size: 25px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero-button {
        width: 100%;

        text-align: center;
    }

    .public-section {
        padding: 22px 18px;
    }
}

/* ============================================================
   TITULO HERO
   ============================================================ */

.hero-title {
    white-space: nowrap;
    font-size: 30px;
}

@media (max-width: 700px) {

    .hero-title {
        white-space: normal;
        font-size: 25px;
    }

}