/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================
   GENERAL
========================= */
body {
    font-family: "Georgia", serif;
    background-color: rgb(243, 238, 231);
    color: #2b2b2b;
    line-height: 1.6;
    scroll-behavior: smooth;
}

h2 {
    font-size: 2.2rem;
}

/* =========================
   HEADER (STICKY)
========================= */
.header {
    backdrop-filter: blur(6px);
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 18px 30px;

    background: rgba(59, 47, 47, 0.96);
    color: #f5f0e6;

    border-bottom: 3px solid rgb(176, 137, 104);

    box-shadow:
        inset 0 -2px 4px rgba(255,255,255,0.03),
        0 3px 10px rgba(0,0,0,0.25);
}

.logo {
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,.4);
}
.logo a {
    text-decoration: none;
    color: #f5f0e6;
}
/* =========================
   NAV
========================= */
.nav-list {
    display: flex;
    gap: 18px;
    list-style: none;
}

.nav-list a {
    color: #f5f0e6;
    text-decoration: none;

    font-size: 1.2rem;

    transition: 0.2s;

    border-bottom: 1px solid transparent;
}

.nav-list a:hover {
    border-bottom: 1px solid #d4a373;
    color: #d4a373;
}

/* =========================
   BOTONES
========================= */
.btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 14px;
    background: #b08968;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.2s;
}
.btn2 {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 14px;
    background:#3b2f2f;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.2s;
}

.btn:hover {
    background: #7f5539;
}

.btn-call {
    background: #d4a373;
    color: #2b2b2b;
    font-weight: bold;
}

.btn-call:hover {
    background: #b08968;
}

.reviews {
    width: 60vw;

    margin: 0 auto;          /* 👈 centra horizontalmente */
    
    background: #fffaf3;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);

    padding: 20px;

    display: flex;           /* 👈 clave */
    flex-direction: column;
    align-items: center;     /* 👈 centra contenido */
}
.reviews > * {
    margin: 30px 0;
}
.carousel {
    position: relative;
    margin: auto;
}

.review {
    background: #fffaf3;
    padding: 20px;
    opacity: 0;
    transform: translateX(-5vw);
    transition: opacity 0.5s ease, transform 0.5s ease;
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
}


.review.active {
    display: block;
    opacity: 1;
    width: 45vw;
    transform: translatex(0);
    position: relative;
    margin: 0 1vw;
    overflow:visible;
    text-align: center;
}

.controls {
    margin-top: 15px;
    display: flex;
}

.controls button {
    border: none;
    z-index: 1;
    background-color: transparent;
    cursor: pointer;
}

.controls button > * {
    width: 3vh;
    height: 2vh;
    transition: 0.2s;
}

.controls button > *:hover{
    width: 4vh;
    height: 3vh;
}
/* =========================
   HERO
========================= */
.hero {
    position: relative;

    overflow: hidden;

    color: white;
    text-align: center;

    padding: 120px 20px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            rgba(0,0,0,0.45),
            rgba(0, 0, 0, 0.801)
        ),
        url("src/cafeteria.jpeg");

    background-size: cover;
    background-position: center;

    filter: blur(2px);

    transform: scale(1.05);

    z-index: -1;
}
.hero2::before{
    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.45) 85%,
            rgb(204, 138, 84) 97%
        ),
        url("src/mostrador.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.hero3::before{
    background:
        linear-gradient(
            rgba(0,0,0,0.45),
            rgba(0, 0, 0, 0.801)
        ),
        url("src/escaparate.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.hero4::before{
    background:
        linear-gradient(
            rgba(0,0,0,0.45),
            rgba(0, 0, 0, 0.801)
        ),
        url("src/mesas.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.hero-content {
    max-width: 800px;
    margin: auto;
}

.hero h1 {
    font-size: 4rem;
    letter-spacing: 2px;

    margin-bottom: 10px;

    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero h2 {
    font-weight: normal;
    color: #f5d7a1;

    margin-bottom: 20px;
}

.hero p {
    max-width: 650px;
    margin: 20px auto;

    font-size: 1.1rem;
}

.hero q {
    display: block;

    margin-top: 20px;

    font-style: italic;
    color: #f5d7a1;

    font-size: 1.1rem;
}

/* =========================
   SECCIONES
========================= */
.section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: auto;
}

.section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #3b2f2f;
}


.producto_seccion {
    padding: 80px 20px;
}

.producto_seccion > h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #3b2f2f;
}

.flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

/* CARD producto */
.producto {
    display: flex;
    flex-direction: column;

    height: min-content;

    width: calc(50% - 15px);

    background: #fffaf3;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 20px;

    opacity: 0;

    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: linear-gradient(
        rgba(255, 250, 243, 0.63),rgba(255, 250, 243, 0.651)
    ),url("src/granosCafeBorde.png");
    background-repeat: repeat;
}


.producto:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}
.producto {
    animation: arriba 1s ease forwards;
}

@keyframes arriba {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* TÍTULO */
.producto h3 {
    text-align: left;

    font-size: 1.8rem;

    margin-bottom: 20px;

    color: #3b2f2f;
}

/* FIGURE */
.producto figure {
    display: flex;

    gap: 20px;

    background: #ebddd2;

    border-radius: 8px;

    overflow: hidden;

    min-height: 260px;
}

/* IMAGEN */
.producto img {
    width: 50%;

    object-fit: cover;

    transition: transform .35s ease;
}

.producto:hover img {
    transform: scale(1.03);
}

/* TEXTO */
.producto figcaption {
    width: 50%;

    display: flex;
    align-items: center;

    padding: 5vw;

    font-size: 1.1rem;
    line-height: 1.7;

    color: #2b2b2b;
    display: flex;
    flex-direction: column;
}

/* Alternar dirección */
.producto:nth-of-type(even) figure {
    flex-direction: row-reverse;
}
.actividades {
    height: 50vh;
    width: 100%;
    transition: 1s;
}

.actividad > * > img {
    border-radius: 10px;
    position: absolute;
    height: 40vh;
    width: 40vh;
    animation: escalar 2s ease-in-out alternate infinite;
    transition: 0.4s;
}
.actividad > * > figcaption {
    border-radius: 10px;
    position: absolute;
    height: 0px;
    width: 0px;
    overflow: hidden;
}
.ac1 > * > *{
    left: 10vw;
    transition: 0.4s;
}
.ac2 > * > *{
    right: 10vw;
    transition: 0.4s;
}

@keyframes escalar {
    to {
        transform: scale(1.1);
    }
}

.ac1:hover > * > img {
    left: -5vw;
    height: 50vh;
    width: 50vh;
    animation: none;
}
.ac1:hover > * > figcaption {
    margin-top: 2vw;
    left: 200px;
    height: 40%;
    width: 40%;
    background-color: #e0d6c8;
    z-index: -1;
    padding: 2vw;
    padding-left: 12vh;
    border: solid 2px #b08968;
    font-size: 1rem;
}

.ac2:hover > * > img {
    right: -5vw;
    height: 50vh;
    width: 50vh;
    animation: none;
}
.ac2:hover > * > figcaption {
    margin-top: 2vw;
    right: 200px;
    height: 40%;
    width: 40%;
    background-color: #e0d6c8;
    z-index: -1;
    padding: 2vw;
    padding-right: 12vh;
    border: solid 2px #b08968;
    font-size: 1rem;
}
/* =========================
   GRID / CARDS
========================= */
.grid {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));

    gap: 25px;
}

.card {
    border: 1px solid #e0d6c8;

    border-radius: 8px;

    padding: 25px;

    box-shadow: 0 3px 10px rgba(0,0,0,0.05);

    transition: 0.25s;
    background: #fffaf3;
}

.card:hover {
    transform: translateY(-4px);
}

.card h3 {
    margin-bottom: 15px;
    color: #3b2f2f;
}

.cta .card {
    text-align: center;
}

/* =========================
   REVIEWS
========================= */
.reviews {
    min-height: 180px;
    align-self: center;
    background: #fffaf3;
    max-width: 1200px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
    padding: 20px;
}

/* =========================
   FOOTER
========================= */
.footer {
    background-color: rgb(59, 47, 47);

    color: #f5f0e6;

    padding: 50px 20px;

    margin-top: 100px;
    background-image: linear-gradient(
        rgba(59, 47, 47, 0.8),rgba(59, 47, 47, 0.8)
    ),url("src/granosCafeBordeBlanco.png");
    background-repeat: repeat;
}

.footer-content {
    display: flex;

    justify-content: space-between;

    flex-wrap: wrap;

    gap: 40px;

    max-width: 1200px;
    margin: auto;
}

.footer h3 {
    margin-bottom: 15px;
}

/* SOCIAL */
.social {
    list-style: none;
}

.social li {
    margin-bottom: 10px;
}

.social a {
    color: #f5f0e6;
    text-decoration: none;

    transition: 0.2s;
}

.social a:hover {
    color: #d4a373;
}

/* =========================
   MAPA
========================= */
.map {
    width: 300px;
    height: 180px;
    max-width: 30%;
    max-height: 30%;

    background: rgba(255,255,255,0.05);

    border-radius: 8px;
}

.map > iframe {
    width: 100%;
    height: 100%;

    border-radius: 10px;
}

/* =========================
   COPYRIGHT
========================= */
.footer p {
    text-align: center;

    margin-top: 40px;

    color: #d8cbb9;
}
.logos{
    width: 30px;
    height: 30px;

    margin-right: 8px;
}
.elemento-social {
    display: flex;
    align-items: center;
}


.hero-content p,
.hero-content h1,
.hero-content h2 {
    opacity: 0;
    animation: fadeIn 2s ease forwards;
    animation-delay: 0.4s;
}


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


.typewrite {
    display: inline-block;
    clip-path: inset(0 100% 0 0);
    animation: reveal 3s steps(50, end) forwards;
    animation-delay: 1s;
}
.titheros span {
    display: inline-block;
    overflow: hidden;
    opacity: 1;
    white-space: nowrap;
    clip-path: inset(0 100% 0 0);
    animation: reveal 0.6s steps(20, end) forwards;
}
@keyframes reveal {
    to {
        clip-path: inset(0 0 0 0);
    }
}
.conocenos{
    width: 100%;
    margin: 0px 0px 100px 0px;
    padding: 5vw;
    padding-top: 2vw;
    max-width: none;
    box-sizing: border-box;
    background: linear-gradient(
        rgba(172, 137, 102, 0.7),
        rgba(172, 137, 102, 0.7)
    ),url("src/granosCafe.png");
    background-repeat: repeat;
}
.conocenos img {
    width: 30vw;
    padding: auto;
    border-radius: 20px;
    border: solid 5px #3b2f2f;
    
}
.conocenos figcaption {
    width: 80vw;
    max-width: 600px;
    font-size: 1.4rem;
    padding: 10px;
    background-color: rgba(236, 223, 208, 0.726);
    border: solid 3px rgba(105, 81, 58, 0.863);
    border-radius: 10px;
}

.conocenos figure {
    flex-direction: column;
    align-items: center;
}

.tapasSec{
    text-align: center;
}
.tapasSec > * {
    margin: 50px 0px;
}
.tapas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 80px 30px;
    justify-items: center;
    align-items: ce;
}
.tapa {
    width: 100%;
    height: 100%;
    max-width: 400px;
}
.tapa > img {
    width: 80%;
    height: 85%;
    max-width: 80%;
    display: block;
    object-fit: cover;
    transition: 1s;
    justify-self: center;
}
.tapa > img:hover{
    width: 90%;
    height: 90%;
}
.alergenos{
    display: flex;
    justify-content: center;
    gap: 5px;
}
.alergenos * {
    width: 25px;
    height: 25px;
}
.botellas {
    width: 100%;
    height: 30vw;
    position: relative;
    background: linear-gradient(
            to bottom,
            rgb(204, 138, 84) 3%,
            rgba(59, 47, 47, 0) 10%
        ),url("src/fondoBotellas.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.botellas > img {
    position: absolute;
    height: 33vw;
    cursor: pointer;
}
.bot1 {
    left: 1.2vw;
    animation: subir 0.5s ease forwards;
    animation-delay: 0.5s;
}
.bot2 {
    animation: subir 0.5s ease forwards;
    animation-delay: 0.4s;
    left: 9.3vw;
}
.bot3 {
    animation: subir 0.5s ease forwards;
    animation-delay: 0.3s;
    left: 17.8vw;
}
.bot4 {
    animation: subir 0.5s ease forwards;
    animation-delay: 0.2s;
    left: 25.6vw;
}
.bot5 {
    animation: subir 0.5s ease forwards;
    animation-delay: 0.1s;
    left: 33.3vw;
}
.bot6 {
    animation: subir 0.5s ease forwards;
    animation-delay: 0s;
    left: 40.7vw;
}
.bot7 {
    animation: subir 0.5s ease forwards;
    animation-delay: 0s;
    right: 42.2vw;
}
.bot8 {
    animation: subir 0.5s ease forwards;
    animation-delay: 0.1s;
    right: 33.3vw;
}
.bot9 {
    animation: subir 0.5s ease forwards;
    animation-delay: 0.2s;
    right: 25.4vw;
}
.bot10 {
    animation: subir 0.5s ease forwards;
    animation-delay: 0.3s;
    right: 17vw;
}
.bot11 {
    animation: subir 0.5s ease forwards;
    animation-delay: 0.4s;
    right: 8vw;
}
.bot12 {
    right: 0vw;
    animation: subir 0.5s ease forwards;
    animation-delay: 0.5s;
}

.botellas > img:hover {
    height: 35vw;
    transition: 0.3s;
}
.triangulo {
    pointer-events: none;
    width: 0vw;
    bottom: 0;
    max-height: 3vw;
    transition: 0.3s;
}
.descripcion {
    background-color: rgb(59, 47, 47);
    color: rgb(176, 137, 104);
    padding: 0vw;
    height: 0vw;
    transition:0.3s;
}

@keyframes subir {
    from {
        bottom: -50vw;

    }
    to {
        bottom: -3vw;
    }
}
.conocenosbody{
    background: #ebddd2;
}
.personas {
    width: 100%;
    margin: 50px 0 0 0;
    padding: 0px;
    max-width: none;
    color: #f5f0e6;
}
.personas h2 {
    color: #f5f0e6; margin-bottom: 0px;
}

.persona {
    background-color: rgb(59, 47, 47);
    height: min-content;
    width: 100%;
    margin: 0px 0px 50px 0px;

    background-image: linear-gradient(
        to right,
        rgba(59, 47, 47, 0.6),
        rgba(59, 47, 47, 0.6)
    ),url("src/granosCafe.png");
}

.persona figure {
    width: 100%;
    height: 100%;
    display: flex;
}
.persona figcaption {
    padding: 5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cargo {
    font-style: italic;
    text-align: center;
    color: #d4a373;
    justify-self: end;
    margin-bottom: 30px;
}
.persona figure img {
    min-height: 100%;
    width: 40%;
    margin-left: 0px;
    justify-self: flex-start;
}
.ofertas{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25vw, 1fr));
    gap: 25px;
}
.ofertas{
    margin: 50px;
}
.oferta {
    display: flex;
    align-items: center;
    flex-direction: column;
    background-color: #e0d6c8;
    border: solid 2px #3b2f2f;
    border-radius: 5px;
    box-shadow: 3px 3px 3px rgba(34, 31, 28, 0.562);
}
.oferta img {
    width: 40%;
}
.oferta {
    text-align: center;
}
.ofertas h3 {
    font-size: 3rem;
}
.ofertas h4 {
    font: italic;
    position: relative;
    transform: rotate(-20deg);
    align-self: flex-start;
    font-size: 3rem;
    left: -20px;
    top: -20px;
    animation: escalarOferta 1s ease-in-out alternate infinite;
}
.ofertas p {
    font-size: 1.5rem;
}
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}


@keyframes escalarOferta {
    to {
        transform: scale(1.1) rotate(-20deg);
    }
}
/* =========================
   RESPONSIVE
========================= */
.menu-toggle span {
    width: 30px;
    height: 3px;
    background: #f5f0e6;
}
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 2rem;
        color: #f5f0e6;
        cursor: pointer;
    }

    .nav {
        display: none;
        width: 100%;
    }

    .nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 15px;
    }
    .header {
        gap: 20px; 
    }
    .btn-call {
        display: none;
    }

    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-content h1,
    .producto {
        width: 100%;
    }
    
    .conocenos img {
    width: 80vw;
    }

    .producto figure {
        flex-direction: column;
    }

    .producto:nth-of-type(even) figure {
        flex-direction: column;
    }

    .producto img,
    .producto figcaption {
        width: 100%;
    }

    .producto img {
        max-height: 260px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        overflow-wrap: anywhere;
    }
.actividades {
    display: none;
}
.grid {
    grid-template-columns: repeat(auto-fit, max(1fr));
}
.persona figure {
    flex-direction: column;
}
.persona figure img{
    width: 100%;
}
.ofertas h3 {
    font-size: 2rem;
}
.ofertas{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50vw, 1fr));
    gap: 25px;
}
.oferta img {
    width: 100%;
}
.logo {
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,.4);
}
.map {
    width: 60vw;
    height: 180px;
    max-width: none;
    max-height: none;
}
}