html {
    scroll-behavior: smooth;
    height: 100%;
}

.eco-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%, 20px);
    background: var(--kombu-green);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    z-index: 9999;
}

.eco-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.hero-home {
    min-height: 95vh;
    display: grid;
    grid-template-columns: 40% 60%;
    background-color: var(--bg-cream);
    position: relative;
    overflow: hidden;
}

.hero-content {
    animation: fadeUp 1s ease-out;
    position: relative;
    z-index: 2;
    left: auto;
    top: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 120px 40px 70px;
    text-align: center;
    margin-left: 90px;
}

.title {
    font-family: var(--font-serif-title);
    color: var(--moss-green);
    font-size: clamp(3.8rem, 7vw, 8rem);
    line-height: 0.8;
    margin: 0;
}

.subtitle {
    font-family: var(--font-serif-field);
    font-size: clamp(1.3rem, 2vw, 2.3rem);
    letter-spacing: 0.35cm;
    text-align: center;
    font-weight: bold;
    margin: 15px 0 45px;
}

.text-home {
    position: static;
    font-family: var(--font-sans-body);
    letter-spacing: 0.15cm;
    text-align: center;
    font-size: clamp(1rem, 1.4vw, 1.35rem);
    line-height: 1.5;
    margin: 0 0 25px;
    max-width: 430px;
    color: #000;
}

.hero-content-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 230px;
    height: 40px;
    background-color: white;
    border-radius: 30px;
    color: #000;
    font-family: var(--font-sans-body);
    letter-spacing: 0.08cm;
    font-weight: 500;
    border: 1px solid black;
    text-decoration: none;
}

.hero-content-btn:hover {
    background-color: var(--botones);
    transform: translateY(-3px);

}

.hero-image {
    animation: fadeRight 1.2s ease-out;
    min-height: 95vh;
    width: 100%;
    margin-top: 0;

    background-image: url('/images/bg-home.png');
    background-size: cover;
    background-position: center left;
    background-repeat: no-repeat;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}



/* Filtros */
.filters-home {
    height: 55px;
    margin-top: 15%;
    margin: 30px 2% 20px 2%;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category {
    background-color: rgba(147, 162, 103, 0.15);
    color: var(--kombu-green);
    border: 2px solid var(--moss-green);
    border-radius: 30px;
    width: auto;
    padding: 8px 12px;
    font-size: 1.2rem;
    cursor: pointer;
    text-decoration: none;
    color: var(--dk-green);
}

.category:hover {
    background-color: var(--lg-green);
    transform: translateY(-1px);

}

.category.active {
    background-color: var(--lg-green);
    color: var(--dk-green);
}

/* estado inicial */
.fade-out {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

/* entrada */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cards */
.grid-container {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 0 5% 20px;
}

.cards {

    border-radius: 30px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    background-color: white;
}

/* Título e Ícono*/
.header-card {
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.title-card {
    color: var(--kombu-green);
    font-size: 1.8rem;
    margin: 0;
    line-height: 1.1;
    max-width: 70%;
}

.category-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

/* Autor */
.card-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 7px 0 15px 10px;
    cursor: pointer;
}

.card-author:hover {
    transform: translateX(5px);
    transition: transform 0.2s;
    text-decoration: underline;
}

.author-img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border-color: brown;
    object-fit: cover;
}

.author-name {
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    color: black;
}



/* Descripción */
.card-description {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Footer Card: Botón y Likes*/
.footer-card {
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.more {
    background-color: var(--botones);
    border-radius: 20px;
    color: var(--kombu-green);
    text-decoration: none;
    padding: 5px 15px;
    font-weight: bold;
    font-size: 1rem;
    transition: 0.3s;
}

.more:hover {
    filter: brightness(0.9);
}

.tipss {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-right: 15px;
}

.like-section,
.comment-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--kombu-green);
}

.comment-svg {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.comment-svg:hover {
    transform: translateY(-2px);
    color: var(--moss-green);
}

.likes-count {
    font-size: 1.1rem;
    display: inline-block;
    transition: transform .2s ease;
}

.likes-count.bump {
    animation: countBump .35s ease;
}

.heart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--beige);
    transition: transform .25s ease, color .25s ease;
}

.heart svg {
    transition: transform .25s ease, filter .25s ease;
}

.heart.liked {
    color: var(--kombu-green);
}

.heart.animate {
    animation: likePop .42s cubic-bezier(.18, .89, .32, 1.28);
}

.heart.animate::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 34px;
    height: 34px;
    border: 2px solid currentColor;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(.2);
    opacity: .45;
    pointer-events: none;
    animation: likeRipple .55s ease-out forwards;
}

@keyframes likePop {
    0% {
        transform: scale(1);
    }

    35% {
        transform: scale(1.32);
    }

    65% {
        transform: scale(.92);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes likeRipple {
    to {
        transform: translate(-50%, -50%) scale(1.65);
        opacity: 0;
    }
}

@keyframes countBump {
    0% {
        transform: translateY(0);
    }

    45% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0);
    }
}

.share-section {
    border: none;
    background: transparent;
    color: var(--kombu-green);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
    transition: transform .2s ease, color .2s ease;

}

.share-section:hover {
    transform: translateY(-2px);
    color: var(--moss-green);
}

.share-section.copied {
    animation: sharePop .35s ease;
}

@keyframes sharePop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.18);
    }

    100% {
        transform: scale(1);
    }
}


/* Botón para Crear */
.fixed-add-button-container {
    position: fixed;
    bottom: 30px;
    right: 5%;
    z-index: 100;
}

.fixed-add-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 70px;
    background-color: var(--kombu-green);
    color: var(--beige);
    border-radius: 25px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fixed-add-button:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.add-button-text {
    font-weight: bold;
    margin-bottom: 0;
}

/* Autenticacion */
.bg-image {
    min-height: 100vh;
    margin: 0;
    background-image: url('../images/decoracion_plantas.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.auth-title {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 25px;
    color: #FBFBFB;
    font-family: 'Glacial indifference', sans-serif;
}

.auth-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-box {
    padding: 40px;
    width: 100%;
    max-width: 45%;
    text-align: center;
    border-radius: 30px;
    background-color: rgba(136, 144, 99, 0.85);
    color: white;
    margin: 30px auto 30px;

}

.input-group {
    text-align: left;
    width: 80%;
    margin: 0 auto 15px;
}

.input-group label {
    display: block;
    font-weight: bold;
    margin-left: -10px;
    margin-bottom: 5px;
    color: var(--kombu-green);
}

.password-wrapper {
    position: relative;
    margin: 0 auto;
    text-align: left;
}



.auth-box input,
.password-wrapper input {
    width: 100%;
    padding: 12px;
    padding-right: 40px;
    border: none;
    border-bottom: 2px solid #4C3D19;
    background: transparent;
    outline: none;
    font-size: 14px;
}

.password-field {
    position: relative;
    width: 100%;
}

.password-field input {
    width: 100%;
    padding-right: 45px;
}

.password-toggle-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.password-toggle-icon:hover {
    opacity: 1;
}

.auth-box input {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid var(--kombu-green);
    background: transparent;
    outline: none;
}

.btn-primary {
    width: 80%;
    background-color: var(--tan);
    color: #000;
    padding: 12px;
    border-radius: 25px;
    border: none;
    font-weight: bold;
    margin: 20px 0;
    cursor: pointer;
}

.btn-google,
.btn-outline {
    display: block;
    width: 80%;
    margin: 10px auto;
    padding: 10px;
    border: 1px solid #000;
    border-radius: 25px;
    background: transparent;
    text-decoration: none;
    color: #000;
}

input::placeholder {
    color: #333;
}

.divider {
    margin: 15px 0;
    font-size: 18px;
}

.login-link {
    font-size: 18px;
    color: white;
}

.forgot-link {
    text-decoration: none;
    font-size: 16px;
    color: #000;
    font-weight: bold;
}

/* Vista Detallada Tip */
.tip-detail-container {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 50px 10%;
}

.single-tip-page {
    padding: 120px 4% 60px;
    background: var(--bg-cream);
}

.single-tip-card {
    width: min(1150px, 100%);
    margin: 0 auto 28px;
    padding: 48px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.78);
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 48px;
}

.single-tip-category {
    display: inline-block;
    background: var(--bone);
    color: var(--kombu-green);
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.85rem;
    margin-bottom: 22px;
}

.single-tip-title {
    color: var(--kombu-green);
    font-size: clamp(2.4rem, 4vw, 4.2rem);
    line-height: 1.08;
    margin: 0;
}

.single-tip-line {
    width: 55px;
    height: 4px;
    background: var(--moss-green);
    margin: 28px 0;
}

.single-tip-description {
    color: #111;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

.single-tip-image-link {
    display: block;
}

.single-tip-image {
    width: 100%;
    height: 460px;
    object-fit: cover;
    border-radius: 24px;
}

.single-tip-no-image {
    width: 100%;
    min-height: 420px;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.single-tip-bottom {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 22px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.single-tip-author {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--kombu-green);
}

.single-tip-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.single-tip-author span {
    display: block;
    font-size: 0.75rem;
    color: var(--cafe-noir);
}

.single-tip-author strong {
    display: block;
}

.single-tip-actions {
    display: flex;
    align-items: center;
    gap: 32px;
    color: var(--kombu-green);
}

.single-comment-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.single-comments-card {
    width: min(1150px, 100%);
    margin: 0 auto;
    padding: 30px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.72);
}

.single-comments-header h2 {
    color: var(--kombu-green);
    font-size: 1.4rem;
    margin: 0 0 18px;
}

.single-comment-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    margin-bottom: 26px;
}

.single-comment-form textarea {
    min-height: 52px;
    resize: none;
    border: 1px solid rgba(136, 144, 100, 0.35);
    border-radius: 18px;
    padding: 15px 18px;
    outline: none;
    font-family: var(--font-sans-body);
}

.single-comment-form button {
    border: none;
    background: var(--bg-green);
    color: var(--kombu-green);
    border-radius: 18px;
    padding: 0 28px;
    font-weight: bold;
    cursor: pointer;
}
.single-comment-form button:hover {
    background: var(--botones);
}

.single-comment-item {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.single-comment-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.single-comment-body {
    flex: 1;
}

.single-comment-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--kombu-green);
}

.single-comment-meta span {
    font-size: 0.82rem;
    color: #777;
}

.single-comment-body p {
    margin: 6px 0 0;
    line-height: 1.5;
    color: #111;
}

.single-delete-comment-form {
    display: flex;
    justify-content: flex-end;
}

.single-delete-comment-form button {
    border: none;
    border-radius: 20px;
    padding: 10px 16px;
    background: transparent;
    color: var(--kombu-green);
    cursor: pointer;
    font-size: 0.8rem;
}
.single-delete-comment-form button:hover{
    background-color: #f0352b;
    color: white;
}


/* Botón de regresar */
.back-button {
    position: absolute;
    margin-top: 110px;
    top: 30px;
    left: 30px;
    color: #333;
    transition: color 0.3s;
}

.back-button:hover {
    color: var(--kombu-green);
}

.tip-detail-card {
    margin: 40px auto;
    background: rgba(144, 153, 119, 0.90);
    border-radius: 50px;
    padding: 45px 40px 20px 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.author-info {
    padding: 0 30px;
    max-width: 90%;
    border-radius: 50px;
    background-color: rgba(147, 162, 103, 0.15);

    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--kombu-green);
}

.author-info:hover {
    background-color: var(--lg-green);

}

.author-avatar {
    padding: 10px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.tip-title {
    font-size: 3rem;
    margin-bottom: 30px;
    color: var(--bone);
    line-height: 1.1;
}

.description {
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    gap: 30px;
}

.tip-description {
    flex: 1;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 60px;
    color: black;

}

.tip-detail-footer {
    display: flex;
    font-size: 1.6rem;
    gap: 35px;
    align-items: center;
    flex-direction: row-reverse;
    margin-top: 30px;
}

.like-icon {
    font-size: 2.2rem;
    color: var(--kombu-green);
}

.tip-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.tip-image:hover {
    transform: scale(1.02);
    filter: brightness(0.9);
}

.text-muted {
    color: whitesmoke;
}

/* ===== SORT SELECT ===== */

.sort-container {
    display: flex;
    justify-content: flex-end;
    margin: 0 5% 20px;
}

.custom-select {
    position: relative;
    width: 230px;
    user-select: none;
}

.selected-option {
    background-color: rgba(147, 162, 103, 0.15);
    border: 2px solid var(--moss-green);
    border-radius: 25px;
    position: relative;


    padding: 12px 18px;

    color: var(--kombu-green);
    font-weight: 500;

    cursor: pointer;

    transition: all .3s ease;
}

.selected-option:hover {
    background-color: rgba(147, 162, 103, 0.3);
}

.selected-option::after {
    content: "";

    width: 18px;
    height: 18px;

    position: absolute;

    right: 15px;
    top: 50%;

    transform: translateY(-50%);

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23354024' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: center;

    transition: transform .3s ease;
}

.custom-select.active .selected-option::after {
    transform: translateY(-50%) rotate(180deg);
}

.options-container {

    position: absolute;

    top: calc(100% + 8px);

    width: 100%;

    background: white;

    border-radius: 20px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, .15);

    overflow: hidden;

    opacity: 0;
    visibility: hidden;

    transform: translateY(-10px);

    transition: all .25s ease;

    z-index: 999;
}

.custom-select.active .options-container {

    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.option {

    padding: 12px 18px;

    cursor: pointer;

    color: var(--kombu-green);

    transition: .2s;
}

.option:hover {

    background-color: var(--moss-green);

    color: white;
}

.option.selected {

    background-color: rgba(147, 162, 103, 0.2);

    font-weight: bold;
}

/* Contenedor */
.load-more-container {
    display: flex;
    justify-content: center;
    margin: 50px 0 80px;
}

/* Botón */
#load-more-btn {
    background-color: rgba(147, 162, 103, 0.15);
    border: 2px solid var(--moss-green);
    border-radius: 30px;

    padding: 14px 28px;

    color: var(--kombu-green);
    font-size: 1rem;
    font-weight: 600;

    cursor: pointer;

    transition: all 0.3s ease;

    display: flex;
    align-items: center;
    gap: 10px;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Hover */
#load-more-btn:hover {
    background-color: var(--moss-green);
    color: white;

    transform: translateY(-2px);
}

/* Click */
#load-more-btn:active {
    transform: translateY(1px);
}

#load-more-btn:hover::before {
    transform: rotate(-15deg) scale(1.15);
}

/* Deshabilitado */
#load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.tip-modal {
    align-items: flex-start;
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.tip-modal.show {
    display: flex;
}

.tip-modal-content {
    position: relative;
    scrollbar-gutter: stable;
    width: min(850px, 95%);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: rgba(248, 247, 242, 0.96);
    border-radius: 35px;
    padding: 35px;
    padding-right: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
    animation: modalPop .25s ease;
}

.tip-modal-close {
    position: absolute;
    top: 30px;
    right: 50px;
    border: none;
    background: transparent;
    font-size: 2rem;
    cursor: pointer;
    color: var(--kombu-green);
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.categories-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 30px 2% 20px;
}

.filters-home {
    flex: 1;

    display: flex;
    align-items: center;
    gap: 10px;

    overflow-x: auto;
    scroll-behavior: smooth;

    scrollbar-width: none;
}

.filters-home::-webkit-scrollbar {
    display: none;
}

.scroll-btn {
    width: 42px;
    height: 42px;

    border: none;
    border-radius: 50%;

    background: rgba(147, 162, 103, 0.15);

    color: var(--kombu-green);

    cursor: pointer;

    font-size: 1.2rem;

    transition: all .25s ease;

    flex-shrink: 0;
}

.scroll-btn:hover {
    background: var(--moss-green);
    color: white;

    transform: scale(1.08);
}

.scroll-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

.language-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-btn {
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--kombu-green);
    border: 1px solid var(--moss-green);
    background-color: rgba(147, 162, 103, 0.15);
    transition: all .2s ease;
}

.lang-btn:hover,
.active-lang {
    background-color: var(--moss-green);
    color: white;
}

.account-lang {
    padding: 8px 10px;
}

.hero-fade-out {
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity .8s ease, transform .8s ease;
}

.welcome-modern {
    min-height: 100vh;
    position: relative;
    overflow: hidden;

    padding: 135px 7% 60px;

    background:
        linear-gradient(135deg,
            rgba(242, 237, 222, 0.96),
            rgba(229, 215, 196, 0.92)),
        url('/images/bg-home.png');

    background-size: cover;
    background-position: center;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 45px;
}

.welcome-modern::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(1px);
    pointer-events: none;
}

.welcome-modern-content {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}

.welcome-copy {
    max-width: 610px;
}

.welcome-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 18px;
    border-radius: 50px;

    background: rgba(147, 162, 103, .18);
    color: var(--kombu-green);

    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .78rem;
}

.welcome-copy h1 {
    margin: 25px 0 22px;

    font-family: var(--font-serif-title);
    font-size: clamp(3.8rem, 8vw, 8.5rem);
    line-height: .88;

    color: var(--moss-green);
}

.welcome-copy p {
    max-width: 520px;

    color: var(--cafe-noir);
    font-size: 1.08rem;
    line-height: 1.7;
}

.welcome-actions {
    display: flex;
    gap: 16px;
    margin-top: 34px;
}

.welcome-btn {
    position: relative;
    overflow: hidden;

    padding: 13px 28px;
    border-radius: 50px;

    text-decoration: none;
    font-weight: 700;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

.welcome-btn.primary {
    background: var(--kombu-green);
    color: var(--bone);
    box-shadow: 0 14px 28px rgba(53, 64, 36, .22);
}

.welcome-btn.secondary {
    border: 2px solid var(--moss-green);
    color: var(--kombu-green);
    background: rgba(255, 255, 255, .38);
}

.welcome-btn:hover {
    transform: translateY(-3px);
}

.welcome-btn.primary:hover {
    box-shadow: 0 18px 34px rgba(53, 64, 36, .28);
}

.welcome-visual {
    position: relative;
    min-height: 460px;
}

.floating-card {
    position: absolute;
    border-radius: 34px;

    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(136, 144, 100, .35);

    box-shadow: 0 20px 50px rgba(53, 64, 36, .14);
    backdrop-filter: blur(8px);

    color: var(--kombu-green);
}

.card-main {
    width: min(390px, 90%);
    padding: 34px;

    top: 70px;
    right: 60px;

    animation: softFloat 6s ease-in-out infinite;
}

.card-label {
    display: inline-block;
    margin-bottom: 18px;

    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--moss-green);
    font-weight: 700;
}

.card-main h3 {
    margin: 0 0 14px;
    font-size: 2rem;
    color: var(--kombu-green);
}

.card-main p {
    margin: 0;
    line-height: 1.6;
    color: var(--cafe-noir);
}

.card-small {
    padding: 13px 18px;

    display: flex;
    align-items: center;
    gap: 10px;

    font-weight: 700;

    animation: softFloatSmall 5s ease-in-out infinite;
}

.card-top {
    top: 25px;
    left: 45px;
}

.card-bottom {
    bottom: 60px;
    right: 20px;
    animation-delay: .8s;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--moss-green);
}

.organic-circle {
    position: absolute;

    width: 310px;
    height: 310px;

    left: 30px;
    bottom: 35px;

    border-radius: 42% 58% 48% 52% / 48% 42% 58% 52%;

    background:
        linear-gradient(135deg,
            rgba(147, 162, 103, .65),
            rgba(229, 215, 196, .75));

    animation: morphShape 9s ease-in-out infinite;
    z-index: -1;
}

.welcome-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    opacity: .45;
    z-index: 1;
}

.shape-one {
    width: 220px;
    height: 220px;
    background: var(--moss-green);
    top: 130px;
    right: -70px;
}

.shape-two {
    width: 180px;
    height: 180px;
    background: var(--tan);
    bottom: 60px;
    left: -50px;
}

.welcome-strip {
    position: relative;
    z-index: 2;

    width: min(900px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.welcome-strip div {
    padding: 18px 20px;
    border-radius: 24px;

    background: rgba(255, 255, 255, .5);
    border: 1px solid rgba(136, 144, 100, .25);

    color: var(--kombu-green);
    font-weight: 700;
    text-align: center;
}

.welcome-strip span {
    display: block;
    margin-bottom: 4px;

    color: var(--moss-green);
    font-size: .8rem;
}

.reveal-up {
    opacity: 0;
    transform: translateY(28px);
    animation: revealUp .8s ease forwards;
}

.delay-one {
    animation-delay: .18s;
}

.delay-two {
    animation-delay: .35s;
}


.comments-section {
    margin-top: 25px;
    max-height: none;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    padding: 22px;
}

.comments-section h3 {
    color: var(--kombu-green);
    margin-bottom: 16px;
}

.comments-list {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 6px;
}

.comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.comment-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-body {
    flex: 1;
    background: rgba(147, 162, 103, 0.12);
    border-radius: 18px;
    padding: 12px 14px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--kombu-green);
    font-size: 0.85rem;
}

.comment-header span {
    color: #777;
    font-size: 0.75rem;
}

.comment-body p {
    margin: 8px 0 0;
    color: var(--cafe-noir);
    line-height: 1.4;
}

.comment-form {
    margin-top: 18px;
    display: flex;
    gap: 10px;
}

.comment-form textarea {
    flex: 1;
    min-height: 45px;
    resize: none;
    border-radius: 20px;
    border: 1px solid var(--moss-green);
    padding: 12px 14px;
    outline: none;
}

.delete-comment-div {
    display: flex;
    justify-content: flex-end;
}

.comment-form button,
.delete-comment-btn {
    color: var(--kombu-green);
    border: none;
    border-radius: 20px;
    padding: 10px 16px;
    cursor: pointer;
    background-color: var(--bg-cream);
}

.delete-comment-btn {
    margin-top: 8px;
    font-size: 0.75rem;
    padding: 6px 12px;
}

.comment-form button:hover {
    background-color: var(--botones);
}

.delete-comment-btn:hover {
    background-color: #f0352b;
    color: white;
}

.no-comments,
.comments-loading,
.login-comment-message {
    color: var(--cafe-noir);
    font-size: 0.9rem;
}

.emoji-picker {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.emoji-btn {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: var(--bone);

    cursor: pointer;

    padding: 0;

    font-size: 18px;
    line-height: 1;
}


@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes softFloat {

    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-14px) rotate(1deg);
    }
}

@keyframes softFloatSmall {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }
}

@keyframes morphShape {

    0%,
    100% {
        border-radius: 42% 58% 48% 52% / 48% 42% 58% 52%;
        transform: rotate(0deg) scale(1);
    }

    50% {
        border-radius: 58% 42% 55% 45% / 40% 55% 45% 60%;
        transform: rotate(7deg) scale(1.04);
    }
}

@media (max-width: 768px) {
    .single-tip-page {
        padding: 95px 18px 35px;
    }

    .single-tip-card {
        grid-template-columns: 1fr;
        padding: 24px 18px;
        border-radius: 24px;
        gap: 22px;
    }

    .single-tip-title {
        font-size: 2rem;
    }

    .single-tip-line {
        margin: 18px 0;
    }

    .single-tip-image {
        height: 260px;
        border-radius: 18px;
    }

    .single-tip-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .single-tip-actions {
        width: 100%;
        justify-content: space-between;
        gap: 15px;
    }

    .single-comments-card {
        padding: 22px 16px;
        border-radius: 24px;
    }

    .single-comment-form {
        grid-template-columns: 1fr;
    }

    .single-comment-form button {
        height: 44px;
    }

    .single-comment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .welcome-modern {
        padding: 115px 22px 45px;
        min-height: auto;
    }

    .welcome-modern-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .welcome-copy {
        text-align: center;
    }

    .welcome-copy p {
        margin: 0 auto;
    }

    .welcome-actions {
        flex-direction: column;
    }

    .welcome-btn {
        text-align: center;
    }

    .welcome-visual {
        min-height: 360px;
    }

    .card-main {
        top: 55px;
        transform: translateX(50%);
        width: 92%;
        right: 20px;
    }

    .card-top {
        top: 5px;
        left: 0;
    }

    .card-bottom {
        bottom: 15px;
        right: 0;
    }

    .organic-circle {
        width: 230px;
        height: 230px;
        left: 50%;
        bottom: 35px;
        transform: translateX(-50%);
    }

    .welcome-strip {
        grid-template-columns: 1fr;
    }

    .auth-box {
        max-width: 80%;
    }

    .tip-modal-content {
        width: 100%;
        max-width: 100%;
        max-height: calc(100vh - 105px);
        overflow-y: auto;
        padding: 22px 16px;
        border-radius: 28px;
    }

    .tip-modal-close {
        top: 14px;
        right: 18px;
        font-size: 2rem;
        z-index: 10;
    }

    .tip-modal-content .author-info {
        padding: 6px 14px;
        margin-bottom: 18px;
    }

    .tip-modal-content .author-avatar {
        width: 38px;
        height: 38px;
        padding: 5px;
    }

    .tip-modal-content .tip-detail-card {
        margin: 0;
        padding: 28px 20px 22px;
        border-radius: 28px;
    }

    .tip-modal-content .tip-title {
        font-size: 2rem;
        margin-bottom: 20px;
        line-height: 1;
    }

    .tip-modal-content .description {
        flex-direction: column;
        gap: 18px;
    }

    .tip-modal-content .tip-description {
        font-size: 1rem;
        line-height: 1.55;
        margin-bottom: 10px;
        word-break: break-word;
    }

    .tip-modal-content .tip-image {
        width: 100%;
        max-width: 240px;
        height: 240px;
        margin: 0 auto;
        display: block;
    }

    .tip-modal-content .tip-detail-footer {
        margin-top: 20px;
        font-size: 1.2rem;
        gap: 15px;
    }

    .comments-section {
        padding: 18px 14px;
        border-radius: 22px;
    }

    .comments-list {
        max-height: 220px;
        overflow-y: auto;
    }

    .comment-form {
        flex-direction: column;
    }

    .comment-form button {
        width: 100%;
    }

    .comment-header {
        flex-direction: column;
        gap: 2px;
    }

    .tip-modal {
        padding: 85px 12px 25px;
        overflow-y: auto;
    }

    .hero-home {
        grid-template-columns: 1fr;
        min-height: 100vh;
    }

    .hero-content {
        padding: 115px 25px 35px;
        min-height: 48vh;
        margin-left: 0;
    }

    .title {
        font-size: 4rem;
    }

    .subtitle {
        font-size: 1.1rem;
        letter-spacing: 0.18cm;
        margin-bottom: 35px;
    }

    .text-home {
        font-size: 0.95rem;
        letter-spacing: 0.08cm;
        max-width: 300px;
    }

    .hero-content::after {
        width: 190px;
        height: 38px;
        font-size: 0.9rem;
    }

    .hero-image {
        min-height: 52vh;
        background-position: center;
    }
}