/* =========================================
    CONFIGURACIÓN GENERAL
    ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap');

:root {
    --primary-color: brown;
    --muted: #666;
    --bs-body-font-family: 'Comic Neue', sans-serif, Arial;
}

html {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Comic Neue', Arial, sans-serif;
    color: brown;
    font-size: 18px;
}

body {
    background-color: #fffaee;
    min-height: 100vh;
    margin: 0; 
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* =========================================
    PÁGINA DE INICIO (ca_index.html) 
    Mantenemos las drop-cards intactas
   ========================================= */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    width: 90%;
    max-width: 1200px;
}

.custom-dropdown { position: relative; display: inline-block; }

.drop-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.drop-card:hover { transform: translateY(-5px); }

.drop-menu {
    display: none;
    position: absolute;
    z-index: 100;
    background-color: white;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 10px 0;
    list-style: none;
    left: 50%;
    transform: translateX(-50%);
}

.custom-dropdown:hover .drop-menu { display: block; }

.drop-menu li a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}
.card-title{
    text-align: center;
}

.drop-menu li a:hover {
    background-color: #f1f1f1;
    color: var(--primary-color);
}
.icon-propi {
    /* Ajusta el tamaño para que se parezca al antiguo fs-1 (aprox 2.5rem - 3rem) */
    width: 2.5rem;
    height: 2.5rem; /* Aseguramos que sea cuadrado */
    
    /* Si quieres centrarlo perfectamente si el texto se desalinea */
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.5rem; /* Un poco de espacio con el texto de abajo */
    
    /* Si tu imagen no es negra y quieres aplicarle el color text-primary por CSS, 
       podrías usar filtros, pero lo más fácil es que la imagen ya tenga el color que quieres. */
}

/* =========================================
    HEADER Y NAVEGACIÓN (ca_adoracio.html)
    Botones: Solo palabra, sin decoración
   ========================================= */
.header-categories {
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 5px 0;
    margin-bottom: 5px;
    display: flex;
    justify-content: center;
}

.header-container {
    width: 90%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.categories-nav {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ESTILO SOLO PALABRA */
.category-link {
    text-decoration: none !important; /* Quita subrayado */
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.80rem;
    background: none;  /* Eliminamos fondo */
    border: none;      /* Eliminamos borde */
    padding: 5px 0;    /* Espaciado mínimo lateral */
}

.category-link:hover {
    color: grey !important; /* Cambio a gris */
    background: none;
    text-decoration: none;
}

/* Página actual */
.category-link.active {
    color: red; /* Un tono distinto para saber dónde estás */
}

/* =========================================
    CONTENEDOR DE TEXTO
   ========================================= */
.contenedor {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;  
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 90%;          
    max-width: 960px; 
    background-color: #f9f9ea;
}

.img-izquierda {
    float: left;
    width: 240px;            /* Tamaño tipo bandera */
    height: auto;
    margin-right: 20px;     /* Espacio a la derecha para el texto */
    margin-bottom: 10px;
    border-radius: 5px;
}

.img-derecha {
    float: right;
    width: 240px;
    height: auto;
    margin-left: 20px;      /* Empuja el texto a la izquierda */
    margin-bottom: 10px;
    border-radius: 5px;
}

.texto {
    width: 100%;            
    color: darkred;
    line-height: 1.6;                
    box-sizing: border-box;                  
}

h1, h2 { color: darkred; text-align: center; }
h3, h4 { color: darkred; margin-top: 1.2rem; }

p {
    text-align: justify; /* Suele quedar mejor en bloques de lectura */
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .header-container { flex-direction: row; justify-content: space-between; align-items: center; }
}

