/* =========================
   GENERAL
========================= */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(160deg, #d9f0da 0%, #c9e8cc 55%, #bde2c2 100%);
    color: #173b2a;
}

.body {
    background-color: rgb(154, 236, 154);
    width: 90%;
    margin: 40px auto;
    padding-top: 0;
    padding-bottom: 0;
    border-radius: 18px;
    box-shadow: 3px 5px 20px rgba(1, 14, 6, 0.733);
    overflow: hidden;
}

/* =========================
   NAVBAR
========================= */
hr {
    border: 2px solid #1d3321;
}

.navbar {
    min-height: 82px;
    background: #174b31;
    /* border-bottom: 2px solid #012909a1;
    border-top: 2px solid #012909a1; */
    padding: 20px;
    margin: 0;
    border-radius:18px 18px 0 0 ;
}

.logo {
    text-decoration: none;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
}

.logo span {
    background-color: #011f07;
    border-radius: 50%;
    padding: 4px;
    font-size: 25px;
}

.menu {
    display: flex;
    gap: 32px;
}

.menu a {
    position: relative;
    text-decoration: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    padding-bottom: 3px;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #54ec54;
    transition: width 0.25s ease;
}

.menu a:hover {
    color: #54ec54;
}

.menu a:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.buscar {
    text-decoration: none;
    color: #fbfffd;
    font-size: 25px;
}

.login {
    text-decoration: none;
    background: #bfc5c2;
    color: rgb(5, 34, 18);
    padding: 12px 21px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
}

/* =========================
   HERO
========================= */
.hero {
    min-height: min(82vh, 680px);
    padding: 50px 5% 60px;
}

.hero-content {
    max-width: 600px;
}

/* =========================
   ETIQUETA
========================= */
.etiqueta {
    display: inline-block;
    background: #dcefdc;
    color: #31704b;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 22px;
    box-shadow: 4px 5px 15px rgba(3, 31, 14, 0.377);
}

/* =========================
   TITULO
========================= */
.hero h1 {
    font-size: clamp(25px, 3vw, 42px);
    line-height: 1.05;
    letter-spacing: -2px;
    color: #012909;
    margin-bottom: 24px;
}

.hero h1 span {
    color: #288f39;
}

/* =========================
   TEXTO
========================= */
.hero p {
    max-width: 500px;
    color: #233128;
    font-size: 19px;
    line-height: 1.8;
    margin-bottom: 32px;
}

/* =========================
   BOTONES
========================= */
.botones {
    gap: 15px;
    margin-bottom: 45px;
}

.btn-principal {
    text-decoration: none;
    background: #174b31;
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-principal:hover {
    background: #00632e;
    color: white;
    transform: translateY(-2px);
}

.btn-secundario {
    background-color: transparent;
    border: none;
    color: #092517;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-secundario:hover {
    color: rgb(17, 102, 0);
    transform: translateY(-2px);
}

/* =========================
   MINI CARDS
========================= */
.mini-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 12px;
    max-width: 420px;
}

.mini-card {
    background: white;
    padding: 12px 16px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 4px 6px 18px rgba(3, 31, 14, 0.14);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mini-card:hover {
    transform: translateY(-4px);
    box-shadow: 6px 12px 24px rgba(3, 31, 14, 0.22);
}

.mini-card .icono {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(145deg, #e5f6e6, #cdeccf);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.mini-card:hover .icono {
    transform: scale(1.12) rotate(-4deg);
}

.mini-card strong,
.mini-card span {
    display: block;
}

.mini-card strong {
    color: #244b34;
    font-size: 13px;
}

.mini-card span {
    color: #7a8c80;
    font-size: 11px;
}

@media (max-width: 450px) {
    .mini-cards {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

/* =========================
   ANIMACIONES
========================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes flotarSuave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animar-entrada {
    opacity: 0;
    animation: fadeInUp 0.7s ease forwards;
    animation-delay: var(--retraso, 0s);
}

.animar-escala {
    opacity: 0;
    animation: scaleIn 0.8s ease forwards;
    animation-delay: 0.2s;
}

/* Entrada más ágil para el contenido de los modales: el usuario ya
   disparó la acción, así que debe verse casi de inmediato. */
.animar-escala-modal {
    opacity: 0;
    animation: scaleIn 0.3s ease forwards;
}

.flotar {
    animation: flotarSuave 3.5s ease-in-out infinite;
    animation-delay: var(--retraso-flotar, 0s);
}

/* Visible por defecto: si JS no llega a correr (o el observer nunca
   dispara), el contenido igual se ve. Solo se oculta cuando el propio
   JS agrega .oculto-inicial justo antes de observar el elemento. */
.animar-scroll {
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--retraso, 0s);
}

.animar-scroll.oculto-inicial {
    opacity: 0;
    transform: translateY(26px);
}

@media (prefers-reduced-motion: reduce) {
    .animar-entrada,
    .animar-escala,
    .flotar,
    .animar-scroll {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* =========================
   HERO IMAGEN (CORREGIDO Y RESPONSIVO)
========================= */
.hero-image {
    position: relative;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.circulo {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 1; /* Mantiene la proporción circular perfecta */
    /* border-radius: 50%; */
    /* background: #6a8a4f; */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 4px 8px 18px rgba(3, 31, 14, 0.63);
}

.imagen-plato {
    width: 100%;
    height: 100%;
    /* border-radius: 50%; */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* box-shadow: 0 15px 25px rgba(36, 76, 47, 0.4); */
}

.imagen-plato img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* =========================
   BURBUJAS
========================= */
.burbuja {
    position: absolute;
    background: white;
    padding: 12px 18px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(31, 73, 48, 0.12);
    color: #3d5947;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.burbuja span {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #e5f3dc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #23471d;
    
}

.burbuja-1 {
    top: 10%;
    right: 0;
    box-shadow: 4px 5px 18px rgba(3, 31, 14, 0.699);
}

.burbuja-2 {
    bottom: 10%;
    left: 0;
    box-shadow: 4px 5px 18px rgba(3, 31, 14, 0.603);
}

/* =========================
   MODAL REGISTRO
========================= */
#contenidoRegistro {
    border: none;
    border-radius: 24px;
    overflow: hidden;
}
/* =========================
   MODAL LOGIN
========================= */
#contenidoLogin {
    border: none;
    border-radius: 24px;
    overflow: hidden;
}



/* ==========================================
   ESTILOS PARA EL FOOTER
========================================== */
.footer {
    margin: 0;
    padding: 30px;
    background-color: #112d21;
}

.container-footer {
    gap: 50px;
}

.fs-7 {
    font-size: 0.85rem;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: #2ec4b6;
}

.btn-red-social {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-red-social:hover {
    background-color: #198754;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.enlace-red-social {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.enlace-red-social:hover {
    color: #ffffff;
}

.enlace-red-social:hover .btn-red-social {
    background-color: #198754;
    transform: scale(1.05);
}

/* =========================
   SECCIONES LANDING (CÓMO FUNCIONA / BENEFICIOS)
========================= */
.seccion-landing {
    padding: 60px 5%;
}

.seccion-landing-alt {
    background: #eaf6eb;
    border-radius: 30px;
    margin: 10px 4%;
}

.seccion-landing h2 {
    color: #012909;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    margin-bottom: 8px;
}

.subtitulo-landing {
    color: #405548;
    font-size: 15px;
    max-width: 560px;
    margin: 0 auto;
}

.paso-landing {
    background: white;
    border-radius: 22px;
    padding: 30px 26px;
    box-shadow: 4px 8px 22px rgba(3, 31, 14, 0.12);
    position: relative;
    transition: 0.3s;
}

.paso-landing:hover {
    transform: translateY(-4px);
    box-shadow: 6px 12px 26px rgba(3, 31, 14, 0.18);
}

.paso-numero {
    position: absolute;
    top: -14px;
    right: 20px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #174b31;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 6px 14px rgba(3, 31, 14, 0.3);
}

.paso-icono {
    font-size: 32px;
    margin-bottom: 14px;
}

.paso-landing h3 {
    color: #174b31;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.paso-landing p {
    color: #536d60;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.beneficio-landing {
    background: white;
    border-radius: 20px;
    padding: 24px 18px;
    text-align: center;
    box-shadow: 4px 8px 20px rgba(3, 31, 14, 0.1);
    transition: 0.3s;
}

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

.beneficio-icono {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 16px;
    background: #edf7e9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.beneficio-landing h3 {
    color: #174b31;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.beneficio-landing p {
    color: #536d60;
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 576px) {
    .seccion-landing {
        padding: 40px 6%;
    }

    .seccion-landing-alt {
        margin: 10px 3%;
    }
}

/* =========================
   MEDIA QUERIES (RESPONSIVO)
========================= */

/* TABLET */
@media (max-width: 991px) {
    .menu {
        margin-top: 20px;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .nav-right {
        justify-content: center;
        margin-top: 15px;
        padding-bottom: 15px;
    }

    .hero {
        text-align: center;
        padding: 40px 6%;
    }

    .hero-content {
        margin: auto;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .botones {
        justify-content: center;
    }

    .mini-cards {
        justify-content: center;
    }

    .burbuja {
        padding: 8px 12px;
        font-size: 11px;
    }
}

/* CELULAR */
@media (max-width: 768px) {
    .body {
        width: 95%;
        margin: 15px auto;
        padding: 10px;
    }

    .hero {
        padding: 20px 2%;
    }

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

    .mini-cards {
        justify-content: center;
    }

    .mini-card {
        width: 100%;
        max-width: 280px;
    }

    .burbuja {
        display: none; /* Se ocultan para no empujar o tapar la imagen en pantallas chicas */
    }
}

/* CELULAR PEQUEÑO */
@media (max-width: 450px) {
    .hero h1 {
        font-size: 28px;
    }

    .botones {
        flex-direction: column;
        width: 100%;
    }

    .btn-principal,
    .btn-secundario {
        width: 100%;
    }
}