﻿:root {
    --verde: #173e2b;
    --verde-oscuro: #0e291b;
    --verde-hoja: #527a39;
    --naranja: #f28c18;
    --crema: #faf7ef;
    --blanco: #ffffff;
    --texto: #202820;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.7;
    color: var(--texto);
    background: var(--crema);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--naranja);
    outline-offset: 5px;
}

[hidden] {
    display: none !important;
}

.contenedor {
    width: min(90%, 1320px);
    margin-inline: auto;
}

.cabecera-publica {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    border-bottom: 1px solid #e7e7e0;
    transition: box-shadow .3s;
}

.cabecera-publica.desplazada {
    box-shadow: 0 5px 25px #00000015;
}

.navegacion {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo-corporativo img {
    width: 117px;
    height: 60px;
    object-fit: contain;
    display: block;
}

.menu-principal {
    display: flex;
    align-items: center;
    gap: 30px;
}

.menu-principal a {
    font-size: .95rem;
    font-weight: 600;
    transition: color .2s;
}

.menu-principal a:hover {
    color: var(--verde-hoja);
}

.menu-principal form {
    margin: 0;
}

.menu-principal .acceso {
    background: var(--verde);
    color: white;
    padding: 12px 22px;
    border-radius: 6px;
    border: 0;
}

.menu-toggle {
    display: none;
}

.hero {
    position: relative;
    min-height: 650px;
    min-height: max(650px, calc(100svh - 90px));
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    overflow: hidden;
    color: white;
    background:
        radial-gradient(ellipse at 85% 20%,
        #527a39 0%, transparent 55%),
        linear-gradient(135deg, #0e291b, #173e2b);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .15;
    background-image:
        repeating-linear-gradient(
            125deg,
            transparent 0,
            transparent 80px,
            #ffffff20 81px,
            transparent 82px
        );
}

.hero-slide {
    width: 100%;
    padding: 70px 80px 110px;
}

.hero-slide.activo {
    animation: aparecer .7s ease both;
}

.hero-contenido {
    max-width: 1050px;
    margin: auto;
    text-align: center;
}

.etiqueta {
    display: inline-block;
    color: var(--verde-hoja);
    font-size: .78rem;
    font-weight: 750;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.hero .etiqueta,
.profesional .etiqueta {
    color: #ffbd67;
}

.hero h1,
.hero h2 {
    margin: 10px 0 25px;
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 1.1;
}

.hero p {
    max-width: 700px;
    margin: 0 auto 35px;
    font-size: clamp(1rem, 2vw, 1.35rem);
    color: #e7efe5;
}

.logo-hero {
    width: min(470px, 85%);
    max-height: 260px;
    object-fit: contain;
}

.boton-primario {
    display: inline-block;
    background: var(--naranja);
    color: var(--verde-oscuro);
    font-weight: 700;
    padding: 16px 30px;
    border-radius: 5px;
    transition: transform .2s, background .2s;
}

.boton-primario:hover {
    transform: translateY(-3px);
    background: #ffb254;
}

.hero-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border: 1px solid #ffffff55;
    border-radius: 50%;
    background: #00000015;
    color: white;
}

.hero-control.anterior {
    left: 3%;
}

.hero-control.siguiente {
    right: 3%;
}

.hero-indicadores {
    position: absolute;
    bottom: 75px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.hero-indicadores button {
    width: 14px;
    height: 14px;
    padding: 0;
    background: transparent;
    border: 1px solid white;
    border-radius: 50%;
}

.hero-indicadores button.activo {
    background: var(--naranja);
    border-color: var(--naranja);
}

.bajar {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8rem;
}

.seccion {
    padding: 110px 0;
}

.seccion h2 {
    margin: 0 0 25px;
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.15;
    color: var(--verde);
}

.dos-columnas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.nosotros-imagen {
    min-height: 380px;
    display: grid;
    place-items: center;
    padding: 40px;
    background: white;
    border-radius: 12px;
}

.nosotros-texto p {
    color: #526057;
    font-size: 1.05rem;
}

.enlace-destacado {
    color: var(--verde);
    font-weight: 700;
    display: inline-block;
    margin-top: 15px;
}

.franja-valores {
    background: var(--verde);
    color: white;
    padding: 65px 0;
}

.valores {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.valores article {
    border-left: 1px solid #ffffff35;
    padding-left: 30px;
}

.valores span {
    color: #ffbd67;
    font-size: 1.5rem;
    font-family: Georgia, serif;
}

.valores h3 {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: 1.8rem;
    margin: 10px 0;
}

.valores p {
    color: #d6e0d6;
    margin: 0;
}

.productos {
    background: #fff;
}

.titulo-seccion {
    text-align: center;
    margin-bottom: 60px;
}

.rejilla-productos {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
}

.producto {
    border: 1px solid #e4e7df;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    transition: transform .25s, box-shadow .25s;
}

.producto:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 35px #173e2b15;
}

.producto-imagen {
    aspect-ratio: 250 / 180;
    overflow: hidden;
    background: var(--crema);
}

.producto-imagen img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.producto-contenido {
    padding: 20px;
}

.producto-categoria {
    color: var(--verde-hoja);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.producto h3 {
    color: var(--verde);
    margin: 8px 0 15px;
    font-size: 1.15rem;
}

.producto a {
    font-size: .85rem;
    font-weight: 600;
    color: var(--verde);
}

.profesional {
    background: var(--verde-oscuro);
    color: white;
}

.profesional h2 {
    color: white;
}

.profesional-contenido {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.profesional-contenido .boton-primario {
    flex-shrink: 0;
}

.contacto-contenido {
    text-align: center;
    max-width: 800px;
}

.telefono {
    display: block;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--verde);
    margin: 30px 0;
}

address {
    font-style: normal;
}

.pie-publico {
    background: #0b2117;
    color: #dce6dc;
    padding-top: 65px;
}

.pie-contenido {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
}

.pie-contenido strong {
    color: white;
    font-size: 1.8rem;
    letter-spacing: 3px;
}

.pie-contenido a {
    display: block;
    margin-bottom: 7px;
}

.pie-contenido h3 {
    color: white;
    font-size: 1rem;
}

.pie-inferior {
    text-align: center;
    border-top: 1px solid #ffffff20;
    padding: 20px;
    font-size: .85rem;
}

.aviso {
    padding: 15px 5%;
    background: #dcfce7;
    color: #166534;
    text-align: center;
}

.aviso.danger {
    background: #fee2e2;
    color: #991b1b;
}

.aviso.warning {
    background: #fef3c7;
    color: #92400e;
}

@keyframes aparecer {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 1100px) {

    .menu-principal {
        gap: 17px;
    }

    .rejilla-productos {
        grid-template-columns: repeat(3, 1fr);
    }

    .dos-columnas {
        gap: 40px;
    }
}

@media (max-width: 800px) {

    .navegacion {
        min-height: 76px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 12px;
        background: transparent;
        border: 0;
    }

    .menu-toggle span {
        width: 26px;
        height: 2px;
        background: var(--verde);
    }

    .menu-principal {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 25px 5%;
        flex-direction: column;
        align-items: stretch;
        border-bottom: 1px solid #dddddd;
    }

    .js .menu-principal {
        display: none;
    }

    .js .menu-principal.abierto {
        display: flex;
    }

    body:not(.js) .cabecera-publica {
        position: relative;
    }

    body:not(.js) .navegacion {
        flex-wrap: wrap;
    }

    body:not(.js) .menu-principal {
        position: static;
        width: 100%;
    }

    .hero {
        min-height: 600px;
    }

    .hero-slide {
        padding: 60px 50px 110px;
    }

    .hero-control {
        width: 32px;
        height: 32px;
    }

    .seccion {
        padding: 70px 0;
    }

    .dos-columnas,
    .valores,
    .pie-contenido {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .nosotros-imagen {
        min-height: 250px;
    }

    .rejilla-productos {
        grid-template-columns: repeat(2, 1fr);
    }

    .profesional-contenido {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 420px) {

    .rejilla-productos {
        grid-template-columns: 1fr;
    }

    .hero h1,
    .hero h2 {
        font-size: 2.8rem;
    }

    .boton-primario {
        padding: 14px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ========================================
   DISTINTIVO MURCIA - ESPANA
   ======================================== */

.origen-corporativo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 4px;
}

.bandera-combinada {
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 3px;
    box-shadow: 0 2px 5px #00000025;
    transform: skewY(-5deg);
    transition: transform .3s ease;
}

.bandera-combinada img {
    display: block;
    width: 36px;
    height: 24px;
    object-fit: contain;
}

.origen-corporativo:hover .bandera-combinada {
    transform: skewY(0deg) scale(1.08);
}

.origen-corporativo span {
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .6px;
    color: #526057;
    white-space: nowrap;
}

@media (max-width: 800px) {

    .origen-corporativo {
        margin-left: auto;
        order: 1;
    }

    .menu-toggle {
        order: 2;
    }

    .bandera-combinada img {
        width: 30px;
        height: 20px;
    }

    .origen-corporativo span {
        font-size: .58rem;
    }

    .navegacion {
        gap: 12px;
    }

}


/* ========================================
   CITRIBIO - PORTADA FOTOGRAFICA
   ======================================== */

.hero {
    min-height: max(650px, calc(90svh - 90px));
    background: #173e2b;
}

.hero::before {
    display: none;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.hero-slide:nth-child(1) {
    background-image:
        linear-gradient(90deg,
            #00000005 0%,
            #14251b30 40%,
            #0e291bbd 100%),
        url("../img/corporativa/portada-01.webp");
}

.hero-slide:nth-child(2) {
    background-image:
        linear-gradient(90deg,
            #00000005 0%,
            #14251b30 40%,
            #0e291bbd 100%),
        url("../img/corporativa/portada-02.webp");
}

.hero-slide:nth-child(3) {
    background-image:
        linear-gradient(90deg,
            #00000005 0%,
            #14251b30 40%,
            #0e291bcc 100%),
        url("../img/corporativa/portada-03.webp");
}

.hero-contenido {
    width: 55%;
    max-width: 850px;
    margin: 0 3% 0 auto;
    text-align: center;
}

.hero h1,
.hero h2 {
    text-shadow: 0 3px 20px #00000070;
    font-size: clamp(3rem, 5vw, 6rem);
}

.hero p {
    color: white;
    text-shadow: 0 2px 8px #00000090;
}

.hero .etiqueta {
    color: #ffffff;
    letter-spacing: 5px;
    text-shadow: 0 2px 8px #00000090;
}

.hero .boton-primario {
    border-radius: 8px;
}

.hero-control {
    z-index: 5;
    background: #00000030;
    border: 2px solid #ffffffcc;
}

.hero-indicadores,
.bajar {
    z-index: 5;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 40px;
    background: var(--crema);
    clip-path: ellipse(75% 100% at 50% 100%);
    z-index: 2;
}

.logo-hero {
    filter: drop-shadow(0 3px 8px #00000040);
}

@media (max-width: 800px) {

    .hero {
        min-height: 650px;
    }

    .hero-slide {
        justify-content: center;
        background-position: 35% center;
        padding: 50px 40px 100px;
    }

    .hero-slide:nth-child(n) {
        background-image:
            linear-gradient(
                #0e291b55,
                #0e291baa
            ),
            var(--foto);
    }

    .hero-slide:nth-child(1) {
        --foto: url("../img/corporativa/portada-01.webp");
    }

    .hero-slide:nth-child(2) {
        --foto: url("../img/corporativa/portada-02.webp");
    }

    .hero-slide:nth-child(3) {
        --foto: url("../img/corporativa/portada-03.webp");
    }

    .hero-contenido {
        width: 100%;
        margin: 0;
    }

    .hero h1,
    .hero h2 {
        font-size: clamp(2.5rem, 7vw, 4rem);
    }

    .hero .etiqueta {
        letter-spacing: 2px;
    }
}


/* ========================================
   UNIVERSO CITRIBIO
   ======================================== */

.universo-citribio {
    background: #f4f1e9;
}

.rejilla-dominios {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.dominio-card {
    background: white;
    border: 1px solid #e4e7df;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 10px 25px #173e2b10;
    transition: transform .25s, box-shadow .25s;
}

.dominio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px #173e2b18;
}

.dominio-etiqueta {
    display: inline-block;
    margin-bottom: 14px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--naranja);
}

.dominio-card h3 {
    margin: 0 0 12px;
    color: var(--verde);
    font-size: 1.1rem;
}

.dominio-card p {
    margin: 0 0 16px;
    color: #526057;
}

.dominio-card a {
    color: var(--verde);
    font-weight: 700;
}

@media (max-width: 1100px) {
    .rejilla-dominios {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 550px) {
    .rejilla-dominios {
        grid-template-columns: 1fr;
    }
}

/* Ajuste del encuadre de la tercera diapositiva */

.hero-slide:nth-child(3) {
    background-position: center 15%;
}


/* ========================================
   ANIMACIONES DE DESPLAZAMIENTO
   ======================================== */

.revelar {
    opacity: 0;
    transform: translateY(35px);
    transition:
        opacity .8s ease,
        transform .8s cubic-bezier(.22, 1, .36, 1);
}

.revelar.visible {
    opacity: 1;
    transform: translateY(0);
}

.nosotros-imagen.revelar {
    transform: translateX(-35px);
}

.nosotros-texto.revelar {
    transform: translateX(35px);
}

.nosotros-imagen.revelar.visible,
.nosotros-texto.revelar.visible {
    transform: translateX(0);
}

.producto:nth-child(2),
.valores article:nth-child(2) {
    transition-delay: .1s;
}

.producto:nth-child(3),
.valores article:nth-child(3) {
    transition-delay: .2s;
}

.producto:nth-child(4) {
    transition-delay: .3s;
}

.producto:nth-child(5) {
    transition-delay: .4s;
}

body.web-publica {
    overflow-x: clip;
}

@media (max-width: 800px) {

    .revelar,
    .nosotros-imagen.revelar,
    .nosotros-texto.revelar {
        transform: translateY(20px);
    }

    .revelar.visible,
    .nosotros-imagen.revelar.visible,
    .nosotros-texto.revelar.visible {
        transform: none;
    }

}

@media (prefers-reduced-motion: reduce) {

    .revelar {
        opacity: 1;
        transform: none !important;
        transition: none !important;
    }

}


/* ========================================
   PRODUCTOS INTERACTIVOS
   ======================================== */

.producto-imagen {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    background: #f4efe5;
}

.producto-imagen .fruta-entera,
.producto-imagen .fruta-abierta {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        opacity .65s ease,
        transform .85s ease;
}

.fruta-entera {
    opacity: 1;
    transform: scale(1);
}

.fruta-abierta {
    opacity: 0;
    transform: scale(1.08);
}

.producto:hover .fruta-entera,
.producto:focus-within .fruta-entera,
.producto.fruta-activada .fruta-entera {
    opacity: 0;
    transform: scale(1.12);
}

.producto:hover .fruta-abierta,
.producto:focus-within .fruta-abierta,
.producto.fruta-activada .fruta-abierta {
    opacity: 1;
    transform: scale(1);
}

.producto {
    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}

.producto:hover {
    border-color: #f28c18;
    box-shadow: 0 15px 35px #f28c1825;
}

@media (hover: none) {

    .producto:not(.fruta-activada) .fruta-entera {
        opacity: 1;
        transform: none;
    }

    .producto:not(.fruta-activada) .fruta-abierta {
        opacity: 0;
    }

}

@media (prefers-reduced-motion: reduce) {

    .fruta-entera,
    .fruta-abierta {
        transition: none !important;
        transform: none !important;
    }

}

