/* ==================================================
   MENÚ COMPARTIDO - VIVERO FORESTAL
   Colores tomados del diseño original de index.php
   ================================================== */

:root {
    --vf-verde: #102f25;
    --vf-verde-claro: #1c4937;
    --vf-dorado: #c9a45c;
    --vf-crema: #f7f4eb;
}

/* Espacio para que el menú fijo no tape el contenido.
   Se aplica a index.php y a los CRUD que incluyan este CSS. */
body {
    padding-top: 88px;
}

.vf-menu,
.vf-menu * {
    box-sizing: border-box;
}

.vf-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 88px;
    z-index: 3000;
    background: var(--vf-verde);
    border-bottom: 2px solid var(--vf-dorado);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .16);
}

.vf-menu-contenedor {
    width: 90%;
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.vf-menu-marca {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    color: var(--vf-dorado);
    text-decoration: none;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 30px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
}

.vf-menu-marca i {
    font-size: 29px;
}

.vf-menu-marca:hover {
    color: #e2c47f;
}

.vf-menu-enlaces {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(15px, 2.3vw, 34px);
}

.vf-menu-enlaces a {
    display: inline-block;
    padding: 10px 0;
    color: #fff;
    text-decoration: none;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .15px;
    white-space: nowrap;
    transition: color .2s ease;
}

.vf-menu-enlaces a:hover,
.vf-menu-enlaces a.vf-activo {
    color: var(--vf-dorado);
}

/* Menú móvil */
.vf-menu-control,
.vf-menu-hamburguesa {
    display: none;
}

@media (max-width: 900px) {
    body {
        padding-top: 78px;
    }

    .vf-menu {
        height: 78px;
    }

    .vf-menu-contenedor {
        width: 92%;
        position: relative;
    }

    .vf-menu-marca {
        font-size: 27px;
    }

    .vf-menu-hamburguesa {
        width: 42px;
        height: 38px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        padding: 5px;
        cursor: pointer;
    }

    .vf-menu-hamburguesa span {
        display: block;
        width: 100%;
        height: 2px;
        border-radius: 3px;
        background: var(--vf-dorado);
        transition: transform .2s ease, opacity .2s ease;
    }

    .vf-menu-enlaces {
        display: none;
        position: absolute;
        top: 100%;
        left: -4.35%;
        width: 108.7%;
        padding: 12px 5% 18px;
        background: var(--vf-verde);
        border-bottom: 2px solid var(--vf-dorado);
        box-shadow: 0 8px 14px rgba(0, 0, 0, .18);
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .vf-menu-enlaces a {
        padding: 12px 8px;
        text-align: center;
        border-bottom: 1px solid rgba(201, 164, 92, .18);
    }

    .vf-menu-control:checked ~ .vf-menu-enlaces {
        display: flex;
    }

    .vf-menu-control:checked + .vf-menu-hamburguesa span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .vf-menu-control:checked + .vf-menu-hamburguesa span:nth-child(2) {
        opacity: 0;
    }

    .vf-menu-control:checked + .vf-menu-hamburguesa span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 420px) {
    .vf-menu-marca {
        font-size: 24px;
    }

    .vf-menu-marca i {
        font-size: 25px;
    }
}