:root {
    --pistache: #A8C686; --girasol: #6e4428; --crema: #f3ddab; 
    --crema-claro: #f8e8c6; --verde-oscuro: #5d7a3c; --dorado-miel: #c2a075;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background-color: var(--crema); color: var(--girasol); overflow-x: hidden; }

/* HEADER */
header { 
    position: fixed; top: 0; width: 100%; height: 75px;
    padding: 0 5%; background: rgba(243, 221, 171, 0.98); 
    display: flex; justify-content: space-between; align-items: center; 
    z-index: 1000; border-bottom: 1px solid var(--dorado-miel); 
}
.logo { font-size: 1.4rem; font-weight: 700; color: var(--verde-oscuro); text-decoration: none; }
.logo span { color: var(--girasol); }
.search-container input { padding: 10px 15px; border-radius: 20px; border: 1px solid var(--dorado-miel); outline: none; width: 160px; }

/* GRID CATALOGO */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; padding: 100px 5% 50px; }
.portfolio-card { background: var(--crema-claro); border-radius: 20px; overflow: hidden; border: 1px solid var(--dorado-miel); text-align: center; transition: 0.3s; }
.card-image img { width: 100%; height: 230px; object-fit: cover; }
.card-content { padding: 20px; }
.view-demo { background: var(--girasol); color: white; border: none; padding: 12px 25px; border-radius: 50px; cursor: pointer; font-weight: 600; }

/* VISOR DEMO */
.visor-fullscreen { display: none; position: fixed; inset: 0; background: black; z-index: 9999; flex-direction: column; }
.visor-header { height: 65px; background: var(--crema-claro); display: flex; justify-content: space-between; align-items: center; padding: 0 20px; border-bottom: 2px solid var(--girasol); }
.btn-regresar { background: none; border: none; color: var(--girasol); font-size: 1.3rem; cursor: pointer; }
.btn-pedido-redir { background: #25D366; color: white; border: none; padding: 10px 20px; border-radius: 10px; cursor: pointer; font-weight: 600; }
.iframe-container { flex: 1; width: 100%; height: 100%; }
#iframeInvitacion { width: 100%; height: 100%; border: none; }

/* PAGINA PERSONALIZAR (Formulario) */
.form-card { background: white; padding: 25px; border-radius: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); max-width: 500px; margin: 20px auto; }
.mini-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; background: var(--crema-claro); padding: 10px; border-radius: 15px; }
#imgMiniatura { width: 65px; height: 65px; object-fit: cover; border-radius: 10px; }
.dato-input { width: 100%; padding: 12px; margin: 10px 0; border-radius: 10px; border: 1px solid #ccc; font-size: 1rem; }
.btn-action-form { background: var(--verde-oscuro); color: white; border: none; padding: 12px; border-radius: 10px; width: 100%; margin-bottom: 10px; cursor: pointer; font-weight: 600; }
.btn-enviar-ws { background: #25D366; color: white; border: none; width: 100%; padding: 15px; border-radius: 15px; font-weight: 700; margin-top: 15px; cursor: pointer; }

/* MODALES */
.modal-custom { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 10000; align-items: center; justify-content: center; padding: 20px; }
.modal-content { background: white; padding: 20px; border-radius: 20px; width: 100%; max-width: 400px; text-align: center; }
#map { height: 250px; width: 100%; margin: 15px 0; border-radius: 15px; }

/* Estilo para la leyenda de scroll */
.scroll-hint {
    position: fixed;
    bottom: 80px; /* Separación del borde inferior */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000; /* Asegura que esté por encima de las tarjetas */
    color: var(--girasol);
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none; /* Para que no estorbe si el usuario quiere hacer clic en algo atrás */
}

.scroll-hint p {
    background: rgba(255, 255, 255, 0.8); /* Fondo semi-transparente para que se lea bien */
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.scroll-hint i {
    font-size: 1.2rem;
    animation: bounce 2s infinite; /* Animación de rebote */
}

/* Animación de rebote */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* Clase para ocultar cuando el usuario ya bajó */
.scroll-hint.hidden {
    opacity: 0;
    visibility: hidden;
}

/* OTROS */
.whatsapp-float { position: fixed; top: 25px; right: 25px; z-index: 9000; background: #25d366; color: white; padding: 12px 22px; border-radius: 50px; text-decoration: none; font-weight: 600; }
.previews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; padding: 20px; max-width: 1100px; margin: 0 auto; }

@keyframes spin { from {transform: rotate(0deg);} to {transform: rotate(360deg);} }