/* --- ESTILOS GENERALES Y RESET --- */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
   background-color: #f4f2f0; /* "background color" solicitado */
    color: #84807C; /* Color de texto Taupe de la paleta */
    height: 100%;
    overflow-x: hidden; 
    overflow-y: auto;
    padding-top: calc(60px + var(--safe-area-top)); /* Espacio para el header fijo */
    padding-bottom:calc(80px + env(safe-area-inset-bottom)) !important;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none;     /* IE 10 y Edge */
    user-select: none;         /* Estándar (Chrome, Firefox, Opera) */
    
}
 
/* --- SECCIÓN SUPERIOR (HEADER) FIJA --- */
.header-fijo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    right: 0;
    height: 110; /* Altura estimada del header completo */
    background-color: #FAFAFA; /* "background color" del header solicitado */
    border-bottom: 5px solid #BDCAC5; /* Línea sutil Verde Mist de collorPallete.webp */
    padding-top: 10px;  /*calc(5px + var(--safe-area-top)) 10px 5px;*/
    padding-bottom: 10px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
     margin-bottom: 0px;
    z-index: 1000; /* Siempre encima */
}

.contenedor-superior {
    display: flex;
    justify-content: space-between; /* Usuario a la izq, links a la der */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    margin-bottom: 10px;
}

/* Info Usuario */
.usuario-info {
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
}
.saludo { font-size: 11px; color: #572478; text-transform: uppercase; }
.nombre-completo { font-weight: bold; color: var(--brand-purple); font-size: 14px; }

/* Links Navegación */
.nav-links {
    display: flex;
    gap: 30px;
}
.nav-item {
    text-decoration: none;
    color: #84807C;
    font-size: 1rem;
    transition: color 0.3s;
}
.nav-item:hover {
    color: #A287A1; /* Color coral al pasar el mouse */
}
.nav-item.salir {
    color: #556945; /* Color rojo sutil para salir */
    font-size: 0.9rem;
}

/* Barra de Búsqueda */
.contenedor-busqueda {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    padding: 0 20px;
    width: 80%;
}
.search-form {
    position: relative;
    width: 100%;
    max-width: 600px;
    display: flex;
    background: #f0f0f0;
    border-radius: 12px;
    padding: 5px 12px;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 25px;
    font-size: 1.1rem;
    color: #8A8A8A;
    background-color: #FFFFFF;
    background: transparent;
    border: 1px solid #BDCAC5; /* Borde Verde Mist */
    border: none;
    flex-grow: 1;
    padding: 8px;
    outline: none;
    font-size: 14px;
    border-radius: 50px; /* Bordes muy redondeados */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Sombra suave */
    box-sizing: border-box;
}
.search-input::placeholder {
    color: #CCCCCC;
}
.search-input:focus {
    outline: none;
    box-shadow: 0 2px 15px rgba(236, 154, 134, 0.2); /* Sombra coral suave */
}
.search-button {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    color: #4A4A4A;
}
.formInput
{
    width: 100%; padding: 15px; 
    border: 1px solid #554855; 
    border-radius: 10px;
    box-sizing: border-box;
}
/* --- SECCIÓN INFERIOR (CONTENIDO) DESPLAZABLE --- */
.contenido-desplazable {
    margin-top: 10px; /* Ajustado al nuevo alto del header */
    height: calc(100vh - 120px); 
    overflow-y: auto;
    padding-bottom: 10px;
}

.contenedor-principal {
  max-width: 1200px;
    margin: 12px auto; /* Reducimos el margen de 120px a 40px porque ya tenemos el margen del padre */
    padding: 10px;
    margin-top: 0;
    font-family: 'Segoe UI', sans-serif;
}
/* Títulos con Hostinger Sans */
h1, h2, h3, .titulo-secciones, .nombre-producto-txt {
    font-family: 'Hostinger Sans', sans-serif;
    color: #5F6A60; /* Color Verde Bosque solicitado para títulos */
}

/* Título 'Secciones' */
.titulo-secciones-wrapper {
    margin-top: 20px;
    margin-bottom: 40px;
    text-align: center; /* Centrado como en la imagen */
}
.titulo-secciones {
    display: inline-block;
    color: #5F6A60; /* Verde solicitado */
    font-size: 1.5rem;
    font-weight: normal;
    background-color: #F4F2F0; /* Crema suave de collorPallete.webp */
    padding: 10px 60px;
    margin: 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

/* Grilla de Categorías */
.grilla-categorias {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Responsivo automático */
    gap: 20px;
}

/* Tarjeta de Categoría */
.categoria-card {
    position: relative;
    background-color: #FAFAFA;
    border-radius: 15px; /* Bordes redondeados */
    overflow: hidden; /* Para que la etiqueta no se salga */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 15px; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    min-height: 120px;
    text-align: center;
    align-items: center;
}
.categoria-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.categoria-img {
    width: 100%;
    height: 200px; /* Altura fija para que todas las tarjetas sean iguales */
    object-fit: cover; /* Ajusta la imagen sin deformarla */
    display: block;
}

/* Etiqueta oscura inferior */
.categoria-label-wrapper {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: center;
}
.categoria-label {
    background-color: #333333; /* Gris casi negro de la imagen */
    color: #FFFFFF;
    padding: 10px 20px;
    font-size: 1.2rem;
    border-radius: 20px; /* Bordes muy redondeados */
    white-space: nowrap; /* No rompe el texto */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.sin-datos {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    color: #8A8A8A;
    font-style: italic;
}

  /* Estilos específicos para la rejilla de resultados mixtos */
        .grid-resultados {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 20px;
            padding: 20px;
        }

    .acciones-card {
        display: flex;
        justify-content: space-between; /* Separa los botones a los extremos */
        align-items: center;
        margin-top: 15px;
        gap: 10px;
        padding-top: 10px;
        border-top: 1px solid #eee; /* Una línea sutil para separar del texto */
    }
        .card-busqueda {
            position: relative; /* Necesario para posicionar el icono de editar */
            background: #FFFFFF;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            border-top: 4px solid #ccc; 
            transition: transform 0.3s;
        }

       .card-busqueda:hover { transform: translateY(-5px); }
        /* Colores temáticos por tipo de hallazgo */
        .tipo-catalogo { border-top-color: #554855; } /* VERDE Oilystica */
        .tipo-receta { border-top-color: #A3C9A8; }   /* Verde suave */
        .tipo-padecimiento { border-top-color: #9DBAD5; } /* Azul suave */

        .badge-tipo {
            font-size: 0.75rem;
            text-transform: uppercase;
            padding: 4px 10px;
            border-radius: 20px;
            background: #FAFAFA;
            color: #666;
            display: inline-block;
            margin-bottom: 10px;
        }

        .titulo-resultado {
            font-size: 1.3rem;
            color: #554855;
            margin: 0 0 12px 0;
            font-weight: bold;
        }

        .btn-detalle {
            text-align: center;
            padding: 10px;
            background: #4A4A4A;
            color: #FAFAFA;
            text-decoration: none;
            border-radius: 25px;
            font-size: 0.9rem;
            transition: background 0.3s;
            width: 90%; 
            box-sizing: border-box;
            text-align: center;
        }

        .btn-detalle:hover { background: #A287A1; }

        .no-results {
            text-align: center;
            padding: 100px 20px;
            color: #C3A088;
        }
        
        /* Icono de edición flotante */
      .btn-editar-flotante 
        {
        position: absolute;
        top: 10px;
        right: 10px;
        background: rgba(142, 68, 173, 0.1);
        color: #554855;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: 0.3s;
        }
    .btn-editar-flotante:hover 
       {
        background: #554855;
        color: white;
        }
       .grupo-botones-horizontal {
        display: flex;
        gap: 10px; /* Aumentamos el espacio entre botones */
        justify-content: center; /* Los centramos en la tarjeta */
        align-items: center;
        margin-top: 10px;
        }
        
        .btn-detalle-chico, .btn-carrito-chico 
        {
            flex: 1;
            padding: 8px 4px;
            font-size: 0.8rem; /* Un poco más pequeña por el ancho reducido */
            border-radius: 6px;
            text-align: center;
            text-decoration: none;
            font-weight: 600;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 5px;
            transition: 0.3s;
            border: none;
            cursor: pointer;
            white-space: nowrap;
            width: 60%;
        }

         .btn-detalle-chico:hover { background: #D08455; }
         .btn-carrito-chico:hover { background: #554855; }

.btn-detalle-chico { background: #a287a1; color: white; }
.btn-carrito-chico { background: #5f6a60; color: white; }

.seccion-categorias-moderna {
        max-width: 1200px;
        margin: 40px auto;
        padding: 0 20px;
        text-align: center;
    }

    .classTitulo {
        font-size: 1.4rem;
        font-weight: 600;
        text-transform: uppercase;
        margin-bottom: 10px;
        letter-spacing: 0px;
        color: #5E6A5F;
    }

     .classSubTitulo {
        font-size: 1.5rem;
        font-weight: 500;
        margin-bottom: 10px;
        letter-spacing: 1px;
        color: #5E6A5F;
        width: 100%;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    /* Grilla minimalista basada en tu diseño de recetas */
    .grilla-productos-flotantes {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 40px 20px;
        justify-items: center;
    }

    .item-producto-link {
        text-decoration: none;
        color: #222;
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: transform 0.3s ease, opacity 0.2s ease;
        width: 100%;
    }

    .item-producto-link:hover {
        transform: translateY(-5px);
        opacity: 0.8;
    }

    .contenedor-img-flotante {
        width: 150px;
        height: 150px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 15px;
    }

    .contenedor-img-flotante img {
        max-width: 95%;
        max-height: 95%;
        object-fit: contain;
        /* Efecto de profundidad para que la foto "flote" */
        filter: drop-shadow(0 10px 15px rgba(0,0,0,0.08));
    }

    .nombre-producto-txt {
        font-size: 0.95rem;
        font-weight: 600;
        line-height: 1.2;
        color: #5E6A5F;
        text-align: center;
        max-width: 150px;
    }
    
    .formLabel {
        font-size: 1.0rem;
        font-weight: 400;
        line-height: 1.2;
        color: #554855;
        text-align: center;
        max-width: 150px;
    }
    /* Contenedor Principal */
.ruleta-section {
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
    padding: 20px;
    background-color: #fdfaf7; /* Un tono crema suave */
    border-radius: 15px;
}

.canvas-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

#canvas {
    width: 100%;
    height: auto;
    transition: transform 4s cubic-bezier(0.15, 0, 0.15, 1);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* El marcador o flecha de la ruleta */
.marcador {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; 
    height: 0; 
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid #8e9a78; /* Color verde oliva de tu marca */
    z-index: 10;
}

.btn-oilystica {
    background-color: #8e9a78;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s;
}

/* Estilos Testimonios */
.seccion-testimonios { margin-top: 50px; border-top: 1px solid #eee; padding-top: 30px; }
.testimonio-card { background: #fdfaff; border-radius: 10px; padding: 15px; margin-bottom: 15px; border-left: 4px solid #a287a1; }
.testimonio-header { display: flex; justify-content: space-between; font-size: 0.85rem; color: #572478; margin-bottom: 8px; font-weight: bold; }
.testimonio-texto { font-style: italic; color: #555; line-height: 1.4; }
.form-testimonio { background: #f8f9fa; padding: 20px; border-radius: 12px; margin-top: 20px; }
.area-testimonio { width: 100%; border: 1px solid #ddd; border-radius: 8px; padding: 10px; font-family: inherit; resize: none; }
.btn-testimonio { background: #572478; color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; margin-top: 10px; transition: 0.3s; }
.btn-testimonio:hover { background: #572478; }

.btn-oilystica:hover {
    background-color: #6d775c;
}

/* Contenedor de Resultado */
#resultado {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    margin-top: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: left; /* Alineación a la izquierda para mejor lectura */
}

/* Título de la Emoción */
#res-emocion {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 5px;
    font-weight: 700;
}

/* Descripción */
#res-descripcion {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Pregunta de Introspección - Más grande y negrita */
#res-pregunta {
    font-size: 1.4rem; /* Tamaño destacado */
    font-weight: 800;
    color: #2c3e50;
    border-left: 5px solid #8e9a78; /* Línea decorativa lateral */
    padding-left: 20px;
    margin: 30px 0;
    line-height: 1.3;
}

/* Lista de Aceites - Bullet list elegante */
.aceites-titulo {
    font-weight: bold;
    color: #8e9a78;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

#res-aceites {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

#res-aceites li {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 0;
    display: flex;
    align-items: center;
}

/* El bullet de la hoja 🌿 */
#res-aceites li::before {
    content: "🌿";
    margin-right: 15px;
    font-size: 1.1rem;
}

/* El botón de agregar */
.btn-carrito-mini {
    background-color: #5F6A60; /* Verde Oilystica */
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-carrito-mini:hover {
    background-color: #6d775c;
    transform: scale(1.05);
}
/* Estilo de las etiquetas de aceites */
.tag-aceite {
    display: inline-block;
    background: #5F6A60; /* Color principal de Oilystica */
    color: #ffffff;
    padding: 8px 18px;
    margin: 5px 4px;
    border-radius: 50px; /* Bordes totalmente redondeados */
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid transparent;
}

.tag-aceite:hover {
    background: #ffffff;
    color: #8e9a78;
    border: 1px solid #8e9a78;
    transform: translateY(-2px);
}

/* Animación de entrada */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
 /* OCULTAR NAV LINKS EN MÓVIL (Irán al Footer) */
        @media (max-width: 768px) {
            .nav-links { display: none; }
        }
/* --- RESPONSIVIDAD CORREGIDA PARA MÓVILES --- */



