/* =========================================================
   CAFIOCCIDENTE
   Hoja de estilos principal
   ========================================================= */

:root {
    --green: #003f2d;
    --green-dark: #002f22;
    --green-light: #07563d;
    --mint: #a9f0c9;
    --cream: #f7f8f3;
    --white: #ffffff;
    --black: #171A18;
    --text: #123126;
    --muted: #66736c;

    --border: #e6e9e4;

    --font-serif: "Cormorant Garamond", Georgia, serif;
    --font-sans: "DM Sans", Arial, sans-serif;
    --font-momo: "Momo Trust Display", Arial, sans-serif;
    --font-open: "Open Sans", Arial, sans-serif;
}

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

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--cream);
    font-family: var(--font-open);
}

img {
    display: block;
    max-width: 100%;
}

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

/* =========================================================
   ELEMENTOS GENERALES
   ========================================================= */

.section-container {
    width: min(1320px, 100%);
    margin-left: auto;
    margin-right: auto;
    padding-left: 28px;
    padding-right: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        color 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    font-size: 18px;
    padding: 16px 22px;
    color: var(--white);
    background: var(--green);
}

.btn-primary:hfeaturever {
    background: var(--green-light);
}

.btn-outline {
    padding: 8px 18px;
    border: 1px solid var(--green);
    color: var(--green);
    font-family: var(--font-momo);
}

.btn-outline:hover {
    color: var(--white);
    background: var(--green);
}

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

.site-header {
    height: 76px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--white);
    border-bottom: 1px solid #eeeeee;
}

.logo {
    gap: 8px;
    color: var(--green);
}

.logo-icon{
    position: relative;
    display: inline-block;
    /* ajusta al tamaño real de tu logo */
    width: 188px;
    height: auto;
}

.logo-icon img {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

/* La imagen a color, visible por defecto */
.headerImg-one {
    position: relative;
    z-index: 1;
    opacity: 1;
}

/* La imagen en gris, oculta por defecto, superpuesta encima */
.headerImg-two {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    opacity: 0;
}

/* Al hacer hover en el logo, se invierte */
.logo:hover .headerImg-one {
    opacity: 0;
}

.logo:hover .headerImg-two {
    opacity: 1;
}

.logo-mark {
    position: relative;
    width: 29px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-mark::before {
    content: "";
    width: 16px;
    height: 26px;
    border-left: 3px solid #168354;
    border-right: 3px solid #168354;
    border-radius: 100% 0 100% 0;
    transform: rotate(30deg);
}

.logo-mark::after {
    content: "";
    position: absolute;
    width: 2px;
    height: 27px;
    background: #123d2d;
    transform: rotate(-20deg);
}

.logo-text strong {
    display: block;
    font-size: 14px;
    line-height: 1;
    letter-spacing: -0.6px;
}

.logo-text small {
    display: block;
    margin-top: 2px;
    font-size: 4.5px;
    letter-spacing: 0.4px;
    font-weight: 500;
}


.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    position: relative;
    color: #4d5852;
    font-size: 18px;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    background: var(--green);

    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.main-nav a:hover::after {
    transform: scaleY(1);
}

.main-nav a.active {
    color: var(--green);
    font-weight: 600;
}

.main-nav a.active::after {
    transform: scaleY(1);
}

.header-btn {
    padding: 8px 20px;
}


/* .main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    position: relative;
    color: #4d5852;
    font-size: 16px;
}

.main-nav a.active {
    color: var(--green);
    font-weight: 600;
    
}

.main-nav a.active::after {

    content: "";
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 1px;
    background: var(--green);
    transition: width 0.3s ease;
}

.header-btn {
    padding: 8px 20px;
} */

/* =========================================================
   BARRA DE MERCADO
   ========================================================= */

.market-bar {
    height: 38px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    overflow: hidden;
    background: #eef2ed;
    color: #263c34;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    min-height: 38px;
}

.market-bar span {
    white-space: nowrap;
    font-size: 15px;
}

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

.hero {
    min-height: 64vh;
    padding: 40px 5%;
    display: flex;
    align-items: center;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url("ImgCafioccidente/Banner/cafe\ pazcifico\ taza\ 1900\ x\ 800.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /*background: 
    
    
        linear-gradient(90deg, rgba(0, 42, 28, 0.60), rgba(0, 40, 28, 0.10)),
        linear-gradient(0deg, rgba(0, 43, 28, 0.32), transparent 55%),
        url("https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?auto=format&fit=crop&w=1800&q=85")
        center / cover no-repeat;*/
}

.hero-content {
    max-width: 880px;
    margin-top: 35px;
    color: var(--white);
}


.hero h1 {
    margin: 0 14px 28px;
    font-family: var(--font-momo);
    font-size: 60px;
    line-height: 0.92;
    font-weight: 700;
    letter-spacing: -0.6px;
}

.hero p {
    max-width: 580px;
    margin: 0 14px 36px;
    font-family: var(--font-open);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.35;
}

.hero .btn span {
    font-size: 28px;
    margin-top: -2px;
    line-height: 0;
}

/* =========================================================
   CARACTERÍSTICAS
   ========================================================= */

.features {
    margin-top: 48px;
    display: grid;
    justify-content: center;
    align-items: center;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    min-height: 222px;
    min-width: 400px;
    padding: 34px 30px 34px;
    border-radius: 5px;
    background: #f0f2ee;
    text-align: center;
}

.feature-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--black);
    background: var(--mint);
    color: #073d2c;
    font-size: 64px;
}

.feature-card h2 {
    margin: 0 0 26px;
    color: var(--black);
    font-family: var(--font-momo);
    font-size: 32px;
    letter-spacing: 2px;
    /*-webkit-text-stroke: 1px var(--green);*/    
    font-weight: 600;
}

.feature-card p {
    margin: 10px;
    color: #59655f;
    font-family: var(--font-open);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
}

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

.products-section {
    margin-top: 82px;
}

.section-heading {
    display: grid;
    justify-content: center;
    align-items: center;
    max-width: 64%;
    margin: 0 auto;
    text-align: center;
}

.section-heading h2 {
    margin: 0 0 5px;
    color: #092f22;
    font-family: var(--font-momo);
    font-weight: 600;
    font-size: 32px;
}

.section-heading p {
    margin: 0;
    color: #69746e;
    font-family: var(--font-open);
    font-size: 16px;
}

.products-grid {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.product-card {
    overflow: hidden;
    border: 1px solid #e7e9e5;
    border-radius: 6px;
    background: var(--white);
}

.product-card > img {
    width: 100%;
    height: 235px;
    object-fit: cover;
}

.product-content {
    padding: 16px 18px 18px;
}

.product-tag {
    display: inline-block;
    margin-bottom: 5px;
    color: #a5665b;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.7px;
}

.product-tag-premium {
    padding: 2px 5px;
    border-radius: 3px;
    background: #a8f08d;
    color: #27621d;
}

.product-content h3 {
    margin: 0 0 5px;
    font-family: var(--font-momo);
    font-size: 24px;
    font-weight: 500;
}

.product-content p {
    min-height: 34px;
    margin: 0 0 13px;
    color: #67716c;
    font-family: var(--font-open);
    font-size: 16px;
    line-height: 1.45;
}

.product-link {
    color: #315447;
    font-family: var(--font-open);
    font-size: 16px;
}

.product-link span {
    margin-left: 5px;
    font-size: 16px;
}

/* =========================================================
   HISTORIA / PRODUCTORES
   ========================================================= */

.story {
    margin-top: 142px;
    margin-bottom: 142px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 46px;
    align-items: center;
}

.story-image {
    height: 315px;
    overflow: hidden;
    border-radius: 7px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    padding: 3px 8px;
    border-radius: 8px;
    background: var(--mint);
    color: #39755b;
    font-size:11px;
    letter-spacing: 0.7px;
}

.story-content h2 {
    margin: 8 0 17px;
    color: #073324;
    font-family: var(--font-momo);
    font-size: 32px;
    line-height: 0.98;
}

.story-description {
    margin-bottom: 18px;
    color: #5e6963;
    font-family: var(--font-open);
    font-size:16px;
    line-height: 1.55;
}

.story-point {
    display: flex;
    gap: 8px;
    margin: 7px 0;
}

.point-icon {
    color: #bd4b45;
    font-size: 28px;
}

.story-point strong {
    display: block;
    margin-bottom: 2px;
    color: #1e4336;
    font-size: 14px;
}

.story-point p {
    margin: 0;
    color: #68726d;
    font-family: var(--font-momo);
    font-size: 12px;
}

.story-content .btn {
    margin-top: 9px;
}

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

.site-footer {
    min-height: 190px;
    padding: 34px 5% 0;
    background: var(--green);
    color: var(--white);
}

.footer-grid {
    width: min(940px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.15fr 1fr;
    gap: 35px;
}

.footer-logo {
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.footer-brand > p {
    max-width: 160px;
    margin: 9px 0 0;
    color: #d7e5de;
    font-family: var(--font-momo);
    font-size: 10px;
    line-height: 1.5;
}

.footer-brand > img {
    max-width: 80%
}

.footer-column h3 {
    margin: 3px 0 9px;
    font-family: var(--font-momo);
    font-size: 16px;
}

.footer-column a,
.footer-column p {
    margin: 0;
    color: #d7e5de;
    font-family: var(--font-open);
    font-size: 12px;
    line-height: 1.8;
}

.footer-column a {
    display: block;
}

.social-links {
    display: flex;
    gap: 9px;
    margin-top: 7px;
}

.social-links a {
    color: var(--white);
    font-family: var(--font-open);
    font-size: 12px;
}

.footer-column .footer-small {
    margin-top: 12px;
    line-height: 1.5;
}

.footer-bottom {
    width: min(940px, 100%);
    margin: 28px auto 0;
    padding: 13px 0;
    display: flex;
    gap: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom a {
    color: #c8d9d1;
    font-family: var(--font-open);
    font-size: 12px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 760px) {

    .site-header {
        height: auto;
        padding: 14px 20px;
    }

    .main-nav {
        display: none;
    }

    .header-btn {
        padding: 8px 14px;
    }

    .market-bar {
        justify-content: flex-start;
        gap: 12px;
        
    }

    .hero {
        min-height: 430px;
        padding: 30px 25px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .features,
    .products-grid,
    .story {
        grid-template-columns: 1fr;
    }

    .features {
        margin-top: 25px;
    }

    .products-section {
        margin-top: 50px;
    }

    .story {
        margin-top: 55px;
    }

    .story-image {
        height: 270px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
}

@media (max-width: 480px) {

    .hero h1 {
        font-size: 31px;
    }

    .feature-card {
        min-height: 110px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 5px;
    }
}
