﻿/* =========================================================
   FARMACIA WEB
   DISEÑO GENERAL
========================================================= */
:root {
    --verde: #008f68;
    --verde-oscuro: #006b4e;
    --verde-claro: #eaf8f3;
    --rojo: #e53935;
    --texto: #263238;
    --gris: #6b7280;
    --fondo: #f7f9f8;
    --blanco: #ffffff;
    --borde: #e5e7eb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--texto);
    background: #ffffff;
}

a {
    text-decoration: none;
}


/* =========================================================
   BARRA SUPERIOR
========================================================= */

.top-bar {
    background: var(--verde-oscuro);
    color: #ffffff;
    padding: 8px 0;
    font-size: 13px;
}

    .top-bar a {
        color: #ffffff;
        margin-left: 22px;
    }

    .top-bar i {
        margin-right: 5px;
    }


/* =========================================================
   HEADER
========================================================= */

.main-header {
    background: #ffffff;
    padding: 18px 0;
    border-bottom: 1px solid var(--borde);
}


/* LOGO */

.logo {
    display: inline-flex;
    align-items: center;
    color: var(--verde-oscuro);
}

    .logo:hover {
        color: var(--verde);
    }

.logo-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--verde);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-right: 11px;
    box-shadow: 0 5px 15px rgba(0, 143, 104, .20);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

    .logo-text strong {
        font-size: 22px;
        font-weight: 800;
        letter-spacing: .5px;
    }

    .logo-text span {
        font-size: 14px;
        font-weight: 700;
        color: var(--verde);
        margin-top: 5px;
        letter-spacing: 2px;
    }


/* =========================================================
   BUSCADOR
========================================================= */

.search-box {
    position: relative;
}

    .search-box input {
        width: 100%;
        height: 50px;
        border: 1px solid #d9dfe2;
        border-radius: 27px;
        padding-left: 22px;
        padding-right: 58px;
        font-size: 14px;
        background: #ffffff;
    }

        .search-box input:focus {
            border-color: var(--verde);
            box-shadow: 0 0 0 4px rgba(0, 143, 104, .10);
            outline: none;
        }

.search-button {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--verde);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
}

    .search-button:hover {
        background: var(--verde-oscuro);
        color: #ffffff;
    }


/* =========================================================
   CUENTA / CARRITO
========================================================= */

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.header-action {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--texto);
    font-size: 14px;
    font-weight: 600;
}

    .header-action:hover {
        color: var(--verde);
    }

    .header-action > i {
        font-size: 27px;
        color: var(--verde);
    }

.cart-icon {
    position: relative;
}

    .cart-icon i {
        font-size: 28px;
        color: var(--verde);
    }

.cart-count {
    position: absolute;
    top: -9px;
    right: -10px;
    width: 19px;
    height: 19px;
    background: var(--rojo);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}


/* =========================================================
   MENÚ
========================================================= */

.main-menu {
    background: var(--verde);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
}

.navbar-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-link {
    display: block;
    color: #ffffff;
    padding: 15px 18px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: .2s;
}

    .menu-link:hover {
        color: #ffffff;
        background: var(--verde-oscuro);
    }

    .menu-link.active {
        background: var(--verde-oscuro);
    }

    .menu-link i {
        margin-right: 5px;
    }

.menu-offers {
    background: var(--rojo);
}

    .menu-offers:hover {
        background: #c62828;
    }


/* =========================================================
   HERO
========================================================= */

.hero-section {
    background: linear-gradient( 110deg, #e8f8f2 0%, #f7fcfa 55%, #ffffff 100% );
    min-height: 390px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

    .hero-section .container {
        padding-top: 45px;
        padding-bottom: 45px;
    }

.hero-label {
    display: inline-block;
    color: var(--verde);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.hero-section h1 {
    font-size: 46px;
    line-height: 1.12;
    font-weight: 700;
    margin-bottom: 18px;
    color: #18352e;
}

    .hero-section h1 strong {
        display: block;
        color: var(--verde);
    }

.hero-section p {
    max-width: 540px;
    color: var(--gris);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
}

    .hero-buttons .btn-primary {
        background: var(--verde);
        border-color: var(--verde);
    }

        .hero-buttons .btn-primary:hover {
            background: var(--verde-oscuro);
            border-color: var(--verde-oscuro);
        }

.hero-image {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--verde);
    font-size: 100px;
}

.hero-circle {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 15px 45px rgba(0, 0, 0, .10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--verde);
    font-size: 90px;
}

.hero-image > i {
    position: absolute;
    z-index: 2;
    font-size: 90px;
}


/* =========================================================
   TÍTULOS DE SECCIÓN
========================================================= */

.categories-section,
.products-section {
    padding: 65px 0;
}

.categories-section {
    background: #ffffff;
}

.products-section {
    background: var(--fondo);
}

.section-title {
    text-align: center;
    margin-bottom: 35px;
}

    .section-title > span {
        color: var(--verde);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 2px;
    }

    .section-title h2 {
        margin: 7px 0;
        font-size: 30px;
        font-weight: 700;
        color: #1f2933;
    }

    .section-title p {
        color: var(--gris);
        margin: 0;
    }

.section-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    text-align: left;
}

.view-all {
    color: var(--verde);
    font-weight: 700;
    font-size: 14px;
}

    .view-all:hover {
        color: var(--verde-oscuro);
    }


/* =========================================================
   CATEGORÍAS
========================================================= */

.category-card {
    min-height: 150px;
    background: #ffffff;
    border: 1px solid var(--borde);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--texto);
    padding: 20px 10px;
    transition: all .25s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .03);
}

    .category-card:hover {
        transform: translateY(-6px);
        border-color: var(--verde);
        box-shadow: 0 12px 25px rgba(0, 143, 104, .13);
        color: var(--verde);
    }

.category-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--verde-claro);
    color: var(--verde);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
    margin-bottom: 12px;
}

.category-card h5 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

.category-offer .category-icon {
    background: #fff0f0;
    color: var(--rojo);
}

.category-offer:hover {
    border-color: var(--rojo);
    color: var(--rojo);
}


/* =========================================================
   PRODUCTOS
========================================================= */

.product-card {
    background: #ffffff;
    border: 1px solid var(--borde);
    border-radius: 15px;
    overflow: hidden;
    transition: .25s;
    height: 100%;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, .09);
    }

.product-image {
    height: 190px;
    background: #f7faf9;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--verde);
    font-size: 70px;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--verde);
    color: #ffffff;
    padding: 5px 9px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: bold;
}

    .product-badge.offer {
        background: var(--rojo);
    }

.product-info {
    padding: 18px;
}

    .product-info small {
        color: var(--gris);
        font-size: 11px;
    }

    .product-info h5 {
        font-size: 15px;
        font-weight: 700;
        min-height: 40px;
        margin: 7px 0 10px;
    }

.product-price {
    color: var(--verde);
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 13px;
}

.product-old-price {
    color: #999999;
    text-decoration: line-through;
    font-size: 12px;
}

.product-info .btn-primary {
    background: var(--verde);
    border-color: var(--verde);
    border-radius: 8px;
}

    .product-info .btn-primary:hover {
        background: var(--verde-oscuro);
        border-color: var(--verde-oscuro);
    }


/* =========================================================
   BENEFICIOS
========================================================= */

.benefits-section {
    padding: 45px 0;
    background: #ffffff;
    border-top: 1px solid var(--borde);
}

.benefit {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px;
}

    .benefit > i {
        width: 55px;
        height: 55px;
        flex-shrink: 0;
        border-radius: 50%;
        background: var(--verde-claro);
        color: var(--verde);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 25px;
    }

    .benefit h5 {
        font-size: 16px;
        font-weight: 700;
        margin: 0 0 5px;
    }

    .benefit p {
        color: var(--gris);
        font-size: 13px;
        margin: 0;
    }


/* =========================================================
   FOOTER
========================================================= */

.footer {
    background: #15231f;
    color: #cbd5d1;
    padding: 50px 0 20px;
}

    .footer h5 {
        color: #ffffff;
        font-size: 16px;
        margin-bottom: 18px;
    }

    .footer p {
        font-size: 14px;
        line-height: 1.7;
    }

    .footer a {
        display: block;
        color: #cbd5d1;
        margin-bottom: 10px;
        font-size: 14px;
    }

        .footer a:hover {
            color: #ffffff;
        }

    .footer hr {
        border-color: #34423e;
        margin: 30px 0 18px;
    }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {

    .header-actions {
        justify-content: center;
    }

    .navbar-wrapper {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .hero-section h1 {
        font-size: 38px;
    }
}


@media (max-width: 767px) {

    .top-bar {
        text-align: center;
    }

        .top-bar .text-md-end {
            margin-top: 6px;
            text-align: center !important;
        }

        .top-bar a {
            margin-left: 8px;
            margin-right: 8px;
        }

    .main-header {
        padding: 15px 0;
    }

    .logo {
        width: 100%;
        justify-content: center;
    }

    .header-actions {
        justify-content: center;
    }

    .hero-section {
        text-align: center;
    }

        .hero-section h1 {
            font-size: 34px;
        }

        .hero-section p {
            margin-left: auto;
            margin-right: auto;
        }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-image {
        height: 230px;
        margin-top: 20px;
    }

    .section-title-row {
        display: block;
        text-align: center;
    }

        .section-title-row .view-all {
            display: inline-block;
            margin-top: 10px;
        }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .logo-img {
        max-width: 30px;
        max-height:50px;
        width: auto;
        height: auto;
        object-fit: contain;
    }
}


