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

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

body {
    background: #f5f2eb !important;
    color: #1a2a1a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* ========================================================= */
/* ================= CONTENIDO PRINCIPAL ==================== */
/* ========================================================= */

.contenido-principal {
    padding: 60px 8%;
    transition: margin-left .4s ease;
    max-width: 100%;
    overflow-x: hidden;
}

/* ========================================================= */
/* ======================= TOP BAR ========================== */
/* ========================================================= */

.barra-superior {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 15px;
    border: 1px solid rgba(45, 90, 61, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 10px;
    width: calc(100% - 20px);
    box-sizing: border-box;
}

/* -------- ANIMACIÓN ENTRADA -------- */

.barra-superior > * {
    opacity: 0;
    transform: translateY(-20px);
    animation: entradaSuperior 2s forwards;
}

@keyframes entradaSuperior {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------- LADO IZQUIERDO -------- */

.iconos-izquierda {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* logo */

.caja-logo {
    height: 50px;
    cursor: pointer;
}

.imagen-logo {
    height: 100%;
    object-fit: cover;
}

/* perfil-box (avatar) */

.perfil-box {
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
    flex-shrink: 0;
}

.perfil-box:hover {
    transform: scale(1.12);
    box-shadow: 0 0 12px rgba(155, 237, 183, 0.5);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #9bedb7;
}

.perfil-box i {
    font-size: 1.4rem;
    transition: color 0.3s;
}

.notif-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background-color: #ff4d4d;
    border-radius: 50%;
}

/* -------- LADO DERECHO -------- */

.botones-derecha {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* buscador */

.caja-buscador {
    width: 780px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    border-radius: 12px;
    border: 1px solid rgba(45, 90, 61, 0.15);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: 0.4s ease;
}

.caja-buscador input {
    background: transparent;
    border: none;
    outline: none;
    color: #1a2a1a;
    font-size: 16px;
    width: 700px;
}

.caja-buscador i { 
    color: #5a5a5a; 
}

.caja-buscador:hover { 
    background: rgba(255, 255, 255, 1); 
    border-color: rgba(45, 90, 61, 0.3);
}

.caja-buscador input:focus { 
    outline: none; 
    border-bottom: 2px solid #2d5a3d; 
    box-shadow: 0 0 10px rgba(45, 90, 61, 0.2); 
}

/* caja idioma */

.lang-box {
    padding: 10px 18px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(45, 90, 61, 0.2);
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition: 0.4s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    color: #2d5a3d;
}

.lang-box:hover { 
    background: rgba(255, 255, 255, 1); 
    transform: scale(1.05); 
    border-color: rgba(45, 90, 61, 0.4);
}

/* boton login */

.caja-login { 
    padding: 10px 20px; 
    font-size: 16px; 
    font-weight: 600; 
    border-radius: 12px; 
    background: linear-gradient(135deg, rgba(45, 90, 61, 0.1), rgba(45, 90, 61, 0.05)); 
    border: 1px solid rgba(45, 90, 61, 0.2); 
    color: #2d5a3d; 
    backdrop-filter: blur(12px); 
    cursor: pointer; 
    transition: 0.4s ease; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); 
    text-decoration: none;
}

.caja-login:hover { 
    background: linear-gradient(135deg, rgba(45, 90, 61, 0.2), rgba(45, 90, 61, 0.1));
    transform: scale(1.05); 
}

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

.seccion-hero {
    min-height: 100vh;
    width: 100%;
    background-image: url("../../assets/flora/fondoTitulo.jpg");
    background-size: cover;
    background-position: center;
    transition: all 0.7s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-left: 8%;
    padding-right: 8%;
    position: relative;
    overflow-x: hidden;
    margin-top: 80px;
}

.seccion-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(245, 242, 235, 0) 0%, rgba(245, 242, 235, 0.9) 100%);
    pointer-events: none;
    z-index: 1;
}

.titulo-hero {
    position: relative;
    z-index: 2;
    margin-top: 150px;
    font-size: clamp(40px, 10vw, 140px);
    letter-spacing: 4px;
    font-weight: 700;
    color: #1a2a1a;
    word-break: break-word;
    white-space: normal;
    line-height: 1.2;
    max-width: 100%;
    padding-right: 20px;
}

.texto-hero {
    font-size: 22px;
    margin-top: 5px;
    color: #4a5a4a;
    max-width: 500px;
    z-index: 2;
}

/* ========================================================= */
/* ======================= BOTONES ========================== */
/* ========================================================= */

.barra-botones {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
    padding: 10px;
    max-width: 100%;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

/* Scroll general del contenedor */
.barra-botones::-webkit-scrollbar {
    height: 6px;
}

/* Fondo del scroll */
.barra-botones::-webkit-scrollbar-track {
    background: transparent;
}

/* Barra que se mueve */
.barra-botones::-webkit-scrollbar-thumb {
    background: #2d5a3d;
    border-radius: 10px;
}

/* Hover */
.barra-botones::-webkit-scrollbar-thumb:hover {
    background: #1a3a2a;
}

.boton-filtro {
    width: auto;
    min-width: 110px;
    height: 45px;
    flex: 0 0 auto;
    border-radius: 10px;
    border: 1px solid #c8d5c0;
    background: #e8f0e5;
    color: #1a2a1a;
    cursor: pointer;
    transition: .25s;
    padding: 0 15px;
    font-size: 14px;
}

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

/* ========================================================= */
/* ================= PUBLICACIÓN GRANDE ===================== */
/* ========================================================= */

.tarjeta-grande {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 30px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    position: relative;
}

.tarjeta-grande.mostrar {
    opacity: 1;
    transform: translateY(0);
}

/* Contenedor de la imagen/video */
.tarjeta-grande .media-grande {
    flex: 1.2;
    min-width: 0;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #0f2a1b;
}

.tarjeta-grande .imagen-grande,
.tarjeta-grande video {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: contain;
    display: block;
    border-radius: 16px;
}

/* Contenedor de la información */
.tarjeta-grande .info-grande {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    min-width: 0;
    overflow: visible;
}

.titulo-grande {
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    color: #1a2a1a;
    word-break: break-word;
}

.descripcion-grande {
    font-size: 15px;
    color: #5a6a5a;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sección de interacción (likes, comentarios, etc) */
.interacciones-grande {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.btn-like-grande {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    color: #2d5a3d;
}

.btn-like-grande:hover {
    background: rgba(45, 90, 61, 0.1);
    transform: scale(1.05);
}

.btn-like-grande i {
    font-size: 1.3rem;
}

.btn-like-grande.liked i {
    color: #ff4d4d;
}

.cantidad-likes {
    font-size: 14px;
    font-weight: 600;
    color: #1a2a1a;
}

.btn-comentar-grande {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    color: #2d5a3d;
}

.btn-comentar-grande:hover {
    background: rgba(45, 90, 61, 0.1);
}

.btn-comentar-grande i {
    font-size: 1.2rem;
}

.btn-compartir-grande {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    color: #2d5a3d;
}

.btn-compartir-grande:hover {
    background: rgba(45, 90, 61, 0.1);
}

.btn-compartir-grande i {
    font-size: 1.2rem;
}

.boton-ver-mas {
    align-self: flex-start;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 30px;
    border: 1px solid #c8d5c0;
    background: #e8f0e5;
    color: #1a2a1a;
    cursor: pointer;
    transition: 0.25s;
    margin-top: 5px;
}

.boton-ver-mas:hover {
    background: #d4e2ce;
    transform: translateY(-2px);
}

/* ========================================================= */
/* ================= PUBLICACIONES ========================== */
/* ========================================================= */

.grid-publicaciones {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px;
    max-width: 100%;
}

/* tarjeta */

.tarjeta-publicacion {
    background: #0f2a1b;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid #1a3b26;
    transition: .35s;
    opacity: 0;
    transform: translateY(20px);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 380px;
    overflow: hidden;
}

.tarjeta-publicacion.mostrar {
    opacity: 1;
    transform: translateY(0);
}

.tarjeta-publicacion:hover {
    transform: translateY(-6px);
    background: #f5f8f2;
}

.tarjeta-publicacion .imagen-publicacion {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
    display: block;
}

.titulo-publicacion {
    font-size: 22px;
    color: #1a2a1a;
}

.descripcion-publicacion {
    font-size: 14px;
    color: #5a6a5a;
}

/* Contenedor de likes en tarjetas pequeñas */
.likes-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-like {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    transition: transform 0.1s;
}

.btn-like:hover {
    transform: scale(1.1);
}

.btn-comentar, .btn-compartir {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.btn-comentar:hover, .btn-compartir:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================================= */
/* ================= BOTON SCROLL TOP ======================= */
/* ========================================================= */

.btn-scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid #2d5a3d;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-scroll-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.btn-scroll-top:hover {
    background-color: #2d5a3d;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-scroll-top:active {
    transform: scale(0.92);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-scroll-top img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* ========================================================= */
/* ================= MODALES =============================== */
/* ========================================================= */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    width: 90%;
    max-width: 380px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin: 20px;
}

.modal-content h2 {
    color: white;
    margin: 15px 0;
    font-family: 'League Spartan', sans-serif;
    font-size: clamp(1.3rem, 5vw, 1.8rem);
}

.modal-content p {
    color: #ffffff;
    font-weight: 600;
    font-size: clamp(0.85rem, 3vw, 0.95rem);
    margin-bottom: 20px;
    font-family: 'League Spartan', sans-serif;
    line-height: 1.4;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn-cancelar {
    background: rgba(144, 238, 144, 0.3);
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    font-size: clamp(0.85rem, 3vw, 1rem);
}

.btn-confirmar, .btn-login-modal {
    background: #2d5a27;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    transition: 0.3s;
    display: inline-block;
    font-size: clamp(0.85rem, 3vw, 1rem);
}

.btn-confirmar:hover, .btn-login-modal:hover {
    background: #1e3d1a;
    transform: scale(1.05);
}

.btn-cancelar:hover {
    background: rgba(144, 238, 144, 0.5);
}

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

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
    .caja-buscador {
        width: 400px;
    }
    
    .caja-buscador input {
        width: 340px;
    }
    
    .grid-publicaciones {
        gap: 30px;
    }
}

/* Tablets pequeñas y móviles grandes */
@media (max-width: 900px) {
    .grid-publicaciones {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .contenido-principal {
        padding: 50px 5%;
    }
    
    .tarjeta-grande {
        flex-direction: column;
        padding: 15px;
        gap: 20px;
    }
    
    .tarjeta-grande .media-grande {
        width: 100%;
        max-height: 400px;
    }
    
    .tarjeta-grande .imagen-grande,
    .tarjeta-grande video {
        max-height: 400px;
        width: 100%;
        object-fit: cover;
    }
    
    .tarjeta-grande .info-grande {
        width: 100%;
        text-align: center;
        align-items: center;
    }
    
    .interacciones-grande {
        justify-content: center;
    }
    
    .boton-ver-mas {
        align-self: center;
    }
    
    .descripcion-grande {
        -webkit-line-clamp: 4;
    }
}

/* Móviles */
@media (max-width: 768px) {
    .barra-superior {
        margin: 5px;
        width: calc(100% - 10px);
        padding: 8px 12px;
    }
    
    .iconos-izquierda {
        gap: 10px;
    }
    
    .caja-logo {
        height: 35px;
    }
    
    .botones-derecha {
        gap: 8px;
    }
    
    .caja-buscador {
        width: auto;
        padding: 6px 10px;
    }
    
    .caja-buscador input {
        width: 120px;
        font-size: 13px;
    }
    
    .lang-box, .caja-login {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .perfil-box {
        width: 32px;
        height: 32px;
    }
    
    .seccion-hero {
        margin-top: 70px;
        padding-left: 5%;
        padding-right: 5%;
    }
    
    .titulo-hero {
        margin-top: 80px;
        font-size: clamp(35px, 8vw, 60px);
        letter-spacing: 2px;
    }
    
    .texto-hero {
        font-size: 16px;
        max-width: 90%;
    }
    
    .barra-botones {
        gap: 10px;
        padding: 8px;
    }
    
    .boton-filtro {
        min-width: 100px;
        height: 40px;
        font-size: 13px;
        padding: 0 12px;
    }
    
    .tarjeta-grande {
        padding: 12px;
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .tarjeta-grande .media-grande {
        max-height: 300px;
    }
    
    .tarjeta-grande .imagen-grande,
    .tarjeta-grande video {
        max-height: 300px;
    }
    
    .titulo-grande {
        font-size: 20px;
    }
    
    .descripcion-grande {
        font-size: 13px;
        -webkit-line-clamp: 3;
    }
    
    .interacciones-grande {
        gap: 15px;
    }
    
    .btn-like-grande, .btn-comentar-grande, .btn-compartir-grande {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .btn-like-grande i, .btn-comentar-grande i, .btn-compartir-grande i {
        font-size: 1.1rem;
    }
    
    .boton-ver-mas {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .btn-scroll-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
    
    .btn-scroll-top img {
        width: 18px;
        height: 18px;
    }
    
    .modal-content {
        padding: 1.5rem;
        margin: 15px;
    }
}

/* Móviles pequeños */
@media (max-width: 600px) {
    .grid-publicaciones {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .contenido-principal {
        padding: 40px 4%;
    }
    
    .tarjeta-grande .media-grande {
        max-height: 250px;
    }
    
    .tarjeta-grande .imagen-grande,
    .tarjeta-grande video {
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .barra-superior {
        padding: 6px 10px;
    }
    
    .caja-buscador input {
        width: 90px;
    }
    
    .lang-box, .caja-login {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .caja-buscador {
        padding: 4px 8px;
    }
    
    .caja-buscador i {
        font-size: 12px;
    }
    
    .titulo-hero {
        margin-top: 60px;
        font-size: clamp(30px, 7vw, 45px);
        letter-spacing: 1px;
    }
    
    .texto-hero {
        font-size: 14px;
    }
    
    .boton-filtro {
        min-width: 90px;
        height: 35px;
        font-size: 12px;
        padding: 0 10px;
    }
    
    .contenido-principal {
        padding: 30px 4%;
    }
    
    .tarjeta-publicacion {
        min-height: 340px;
        padding: 15px;
    }
    
    .tarjeta-publicacion .imagen-publicacion {
        height: 180px;
    }
    
    .titulo-publicacion {
        font-size: 18px;
    }
    
    .descripcion-publicacion {
        font-size: 13px;
    }
    
    .tarjeta-grande {
        padding: 10px;
    }
    
    .tarjeta-grande .media-grande {
        max-height: 200px;
    }
    
    .titulo-grande {
        font-size: 18px;
    }
    
    .descripcion-grande {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
}

/* Landscape en móvil */
@media (max-width: 768px) and (orientation: landscape) {
    .seccion-hero {
        min-height: auto;
        height: auto;
        padding: 60px 5%;
    }
    
    .titulo-hero {
        margin-top: 30px;
        font-size: clamp(30px, 6vw, 45px);
    }
    
    .tarjeta-grande {
        flex-direction: row;
        padding: 12px;
    }
    
    .tarjeta-grande .media-grande {
        max-height: 200px;
        flex: 1;
    }
    
    .tarjeta-grande .info-grande {
        flex: 1;
        text-align: left;
        align-items: flex-start;
    }
    
    .interacciones-grande {
        justify-content: flex-start;
    }
    
    .boton-ver-mas {
        align-self: flex-start;
    }
    
    .titulo-grande {
        font-size: 18px;
    }
    
    .descripcion-grande {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
    
    .grid-publicaciones {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Pantallas muy grandes (4K) */
@media (min-width: 1920px) {
    .contenido-principal {
        padding: 80px 12%;
    }
    
    .grid-publicaciones {
        gap: 60px;
    }
    
    .caja-buscador {
        width: 1000px;
    }
    
    .caja-buscador input {
        width: 900px;
        font-size: 18px;
    }
    
    .boton-filtro {
        min-width: 150px;
        height: 55px;
        font-size: 16px;
    }
    
    .tarjeta-publicacion .imagen-publicacion {
        height: 260px;
    }
    
    .titulo-publicacion {
        font-size: 26px;
    }
    
    .descripcion-publicacion {
        font-size: 16px;
    }
}

/* Altura pequeña en desktop */
@media (max-height: 700px) and (min-width: 769px) {
    .seccion-hero {
        min-height: auto;
        padding: 40px 8%;
    }
    
    .titulo-hero {
        margin-top: 60px;
    }
    
    .tarjeta-grande {
        height: 350px;
    }
    
    .tarjeta-grande .imagen-grande {
        height: 100%;
    }
}

/* Mejoras de accesibilidad táctil en móvil */
@media (max-width: 768px) {
    button, 
    .boton-filtro,
    .btn-scroll-top,
    .caja-login,
    .lang-box,
    .perfil-box,
    .boton-ver-mas,
    .btn-cancelar,
    .btn-confirmar,
    .btn-login-modal,
    .btn-like,
    .btn-comentar,
    .btn-compartir,
    .btn-like-grande,
    .btn-comentar-grande,
    .btn-compartir-grande {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    
    button:active,
    .boton-filtro:active,
    .caja-login:active,
    .lang-box:active {
        transform: scale(0.97);
    }
    
    input {
        font-size: 16px !important;
    }
}

/* Prevenir desbordamiento en todos los elementos */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Asegurar que ningún elemento cause desbordamiento */
.barra-superior, .seccion-hero, .contenido-principal {
    max-width: 100%;
    overflow-x: hidden;
}

/* Pre-carga invisible para evitar parpadeos */
body::after {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    z-index: -1;
    content: 
        url("../../assets/flora/subcategorias_bg/flora_arboles.jpg")
        url("../../assets/flora/subcategorias_bg/flora_fungi.jpg")
        url("../../assets/flora/subcategorias_bg/flora_todos.jpg")
        url("../../assets/flora/subcategorias_bg/flora_arbustos.jpg")
        url("../../assets/flora/subcategorias_bg/flora_cactacea.jpg")
        url("../../assets/flora/subcategorias_bg/flora_endemica.jpg")
        url("../../assets/flora/subcategorias_bg/flora_extintas.jpg");
}