/* css/estilo.css */

/* Estilos del archivo adjunto Pasted_Text_1753885847752.txt */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    min-height: 100vh;
    line-height: 1.6;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
}
h1 {
    font-size: 2.2rem;
    font-weight: 300;
    color: #495057;
    margin-bottom: 8px;
}
.subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    font-weight: 400;
}
.card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}
.section-title {
    font-size: 1.4rem;
    font-weight: 400;
    color: #495057;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn-small {
    background: #495057;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-small:hover {
    background: #343a40;
}
.template-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.template-card:hover {
    background: #ffffff;
    border-color: #adb5bd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.template-card.selected {
    background: #ffffff;
    border-color: #495057;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.template-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 10px;
}
.template-preview {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}
label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #495057;
}
input, textarea, select {
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #adb5bd;
    box-shadow: 0 0 0 3px rgba(173, 181, 189, 0.1);
}
textarea {
    min-height: 150px;
    resize: vertical;
}
.btn {
    background: #495057;
    color: white;
    padding: 14px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn:hover {
    background: #343a40;
}
.btn-whatsapp {
    background: #25D366;
}
.btn-whatsapp:hover {
    background: #128C7E;
}
.btn-success {
    background: #28a745;
}
.btn-success:hover {
    background: #218838;
}
.preview-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e9ecef;
    margin-top: 20px;
}
.preview-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 15px;
}
.message-preview {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    white-space: pre-wrap;
    line-height: 1.6;
}
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background: #f8f9fa;
    color: #495057;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
    font-size: 0.95rem;
}
.notification.show {
    transform: translateX(0);
}
.variables-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    font-size: 0.9rem;
}
.variables-title {
    color: #856404;
    font-weight: 600;
    margin-bottom: 8px;
}
.variable-list {
    list-style-type: none;
    padding-left: 0;
}
.variable-list li {
    margin-bottom: 5px;
    color: #856404;
}
.variable {
    background: #ffeaa7;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}
.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close:hover {
    color: #000;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.recipients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.recipient-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s;
}
.recipient-card:hover {
    background: #e9ecef;
}
.recipient-card.selected {
    background: #495057;
    color: white;
    border-color: #343a40;
}
.recipient-name {
    font-weight: 500;
    margin-bottom: 5px;
}
.recipient-phone {
    font-size: 0.9rem;
    color: #6c757d;
}
.recipient-card.selected .recipient-phone {
    color: #adb5bd;
}
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    .card {
        padding: 20px;
    }
    .templates-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    h1 {
        font-size: 1.8rem;
    }
}

/* --- Estilos adicionales para el flujo por pasos (movidos de <style> en index.php) --- */
.step {
    display: none;
}
.step.active {
    display: block;
}
.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 150px;
    position: relative;
}
.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    right: -50%;
    height: 2px;
    background-color: #ced4da;
    z-index: 1;
}
.step-number {
    width: 30px;
    height: 30px;
    background-color: #ced4da;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 10px;
    z-index: 2;
    flex-shrink: 0;
}
.step-item.active .step-number {
    background-color: #495057;
}
.step-item.completed .step-number {
    background-color: #28a745;
}
.step-label {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
}
.step-item.active .step-label {
    color: #495057;
    font-weight: 500;
}
.step-item.completed .step-label {
    color: #28a745;
}
/* Botones de navegación */
.step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.btn-nav {
    padding: 10px 20px;
    font-size: 0.9rem;
}
/* Acordeón para categorías en el paso 1 */
.accordion {
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}
.accordion-header {
    background-color: #f8f9fa;
    color: #495057;
    cursor: pointer;
    padding: 12px 15px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: 0.3s;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.accordion-header:hover {
    background-color: #e9ecef;
}
.accordion-header.active {
    background-color: #e9ecef;
}
.accordion-icon {
    transition: transform 0.3s ease;
}
.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}
.accordion-content {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: #ffffff;
}
.accordion-content.show {
    max-height: 1500px;
    padding: 15px;
}
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    margin-top: 10px;
}
/* Estilos para el selector de emoticonos */
.emoji-picker {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}
.emoji-section-title {
    font-size: 1rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 10px;
}
.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    margin-top: 10px;
}
.emoji-button {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}
.emoji-button:hover {
    background: #e9ecef;
    transform: scale(1.1);
}
.emoji-button.selected {
    background: #495057;
    color: white;
    border-color: #343a40;
}
.selected-emojis {
    margin-top: 15px;
    min-height: 40px;
    padding: 10px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px dashed #ced4da;
}
.selected-emojis-title {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 5px;
}
.emojis-display {
    font-size: 1.5rem;
    min-height: 30px;
}
/* Ajustar el tamaño del modal si es necesario */
.modal-content {
    max-width: 700px;
}
.form-row-modal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
@media (max-width: 768px) {
    .form-row-modal {
        grid-template-columns: 1fr;
    }
    .step-item:not(:last-child)::after {
        display: none;
    }
    .step-indicator {
        gap: 5px;
    }
    .step-item {
        max-width: none;
        flex: 1 1 30%;
    }
    .emoji-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}
/* css/estilo.css (fragmento de estilos añadidos para paginación) */

/* ... (tus estilos existentes) ... */

/* --- Estilos para Paginación --- */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 10px 0;
    border-top: 1px solid #e9ecef;
}

.pagination-btn {
    background: #495057;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover:not(:disabled) {
    background: #343a40;
}

.pagination-btn:disabled {
    background: #ced4da;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-info {
    font-size: 0.95rem;
    font-weight: 500;
    color: #495057;
    min-width: 120px; /* Para que no se mueva el botón al cambiar el número */
    text-align: center;
}

/* Ajustar el tamaño del modal si es necesario */
.modal-content {
    max-width: 700px;
}

.form-row-modal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 768px) {
    .form-row-modal {
        grid-template-columns: 1fr;
    }
    .step-item:not(:last-child)::after {
        display: none;
    }
    .step-indicator {
        gap: 5px;
    }
    .step-item {
        max-width: none;
        flex: 1 1 30%;
    }
    /* Ajustar el tamaño del modal en móviles */
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 5% auto;
    }
    /* Ajustar la paginación en móviles */
    .pagination-controls {
        flex-direction: column;
        gap: 10px;
    }
    .pagination-info {
        order: -1; /* Colocar la info de página arriba en móviles */
    }
    .pagination-btn {
        width: 100%;
        justify-content: center;
    }
}
/* --- Fin Estilos para Paginación --- */
/* css/estilo.css - Añadir al final */

/* Estilos para PWA */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    .card {
        padding: 20px;
        margin-bottom: 15px;
    }
    h1 {
        font-size: 1.8rem;
    }
    .section-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    .btn-small {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
    .templates-grid,
    .recipients-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .template-card,
    .recipient-card {
        padding: 15px;
    }
    .step-indicator {
        gap: 5px;
    }
    .step-item {
        max-width: none;
        flex: 1 1 30%;
    }
    .step-item:not(:last-child)::after {
        display: none;
    }
    .emoji-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 8px;
    }
    .emoji-button {
        padding: 10px;
        font-size: 1rem;
    }
}
.visit-counter {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 15px 20px;
    max-width: 400px;
    margin: 30px auto;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.visit-counter div {
    margin: 8px 0;
    font-size: 1rem;
    color: #495057;
}

.visit-counter strong {
    color: #0d6efd;
}
/* Estilos para el ranking de frases */
.top-frases-container {
    margin-top: 15px;
}

.frase-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f5;
}

.frase-item:first-child {
    padding-top: 0;
}

.frase-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.frase-medalla {
    font-size: 1.5rem;
    font-weight: bold;
    color: #495057;
    min-width: 40px;
    text-align: center;
}

.frase-contenido {
    flex-grow: 1;
    padding: 0 15px;
}

.frase-texto {
    font-weight: 500;
    color: #343a40;
    word-break: break-word;
}

.frase-envios {
    background-color: #e9ecef;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #495057;
    font-weight: 600;
}
/* Estilos para el textarea de edición */
.message-preview-textarea {
    width: 100%;
    /* AUMENTAR la altura mínima */
    min-height: 250px; /* Cambiado de 150px a 250px, o el valor que prefieras */
    font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    padding: 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    resize: vertical; /* Permite redimensionar verticalmente */
    background-color: rgba(255, 255, 255, 0.9); /* Fondo blanco semitransparente */
    /* Asegurar que el texto se ajuste bien */
    white-space: pre-wrap;
    line-height: 1.5;
    /* Opcional: puedes establecer una altura fija si no quieres que cambie */
    /* height: 300px; */
}
/* --- Animaciones y Transiciones SUAVES (para index.php mejorado) --- */

/* Transición suave para elementos que cambian de opacidad o posición */
.step, .card, .top-frases-container, .notification {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Cuando un elemento se está "desvaneciendo" */
.fade-out {
    opacity: 0;
    transform: translateY(10px); /* Pequeño desplazamiento hacia abajo */
}

/* Cuando un elemento aparece */
.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* --- Acordeón Mejorado con Transiciones --- */
.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    /* Transición suave para max-height y padding */
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    background-color: #ffffff;
    opacity: 0; /* Inicialmente invisible */
}

.accordion-content.show {
    padding: 20px;
    /* Altura suficientemente grande, ajusta si tus contenidos son muy largos */
    max-height: 1000px;
    opacity: 1; /* Hacerlo visible */
}

/* Icono del acordeón con rotación suave */
.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}
/* --- Fin Acordeón Mejorado --- */


/* --- Mejora Visual del Indicador de Pasos --- */
.step-indicator {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 30px;
    /* Línea base que conecta los pasos */
    /* Creamos una pseudo-clase para la línea */
    /* Se adapta mejor si los pasos son flexibles */
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px; /* Ajusta según el tamaño del círculo */
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e9ecef;
    z-index: 1;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2; /* Asegura que esté por encima de la línea */
    /* Transición suave para el cambio de estado */
    transition: color 0.3s ease;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 5px;
    /* Transición suave para el fondo y color */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border: 2px solid #e9ecef;
}

.step-label {
    font-size: 0.85rem;
    text-align: center;
    color: #6c757d;
    transition: color 0.3s ease;
}

/* Estados del indicador de pasos */
.step-item.active .step-number {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
    /* Pequeño efecto de "pulsar" al activarse */
    transform: scale(1.1);
}

.step-item.active .step-label {
    color: #0d6efd;
    font-weight: 600;
}

.step-item.completed .step-number {
    background-color: #198754; /* Verde para completado */
    color: white;
    border-color: #198754;
}

.step-item.completed .step-label {
    color: #198754;
}

/* --- Mejora del Banner de Notificaciones --- */
/* Asumiendo que tienes un div con id="notification" para mostrar mensajes */
#notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 10000;
    /* Inicialmente oculto y con transición */
    opacity: 0;
    transform: translateX(100%); /* Fuera de la pantalla a la derecha */
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 90%;
    width: auto;
}

#notification.show {
    opacity: 1;
    transform: translateX(0); /* Entra desde la derecha */
}

/* Colores para diferentes tipos de notificaciones (ejemplo) */
#notification.success {
    background-color: #198754; /* Verde Bootstrap */
}

#notification.error {
    background-color: #dc3545; /* Rojo Bootstrap */
}

#notification.info {
    background-color: #0dcaf0; /* Cian Bootstrap */
}

/* --- Fin Animaciones y Transiciones SUAVES --- */
/* --- Estilos para Botones de Compartir (deben estar en css/estilo.css) --- */
.share-buttons-container {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.share-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 12px;
    text-align: center;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 20px; /* Más redondeado */
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-width: 90px; /* Ancho mínimo para mejor alineación */
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    color: white;
    text-decoration: none;
}

.share-btn:active {
    transform: translateY(-1px);
}

/* Colores específicos para cada red social */
.share-btn.whatsapp { background-color: #25D366; }
.share-btn.whatsapp:hover { background-color: #128C7E; }

.share-btn.facebook { background-color: #1877F2; }
.share-btn.facebook:hover { background-color: #0b5ac1; }

.share-btn.twitter { background-color: #000000; } /* Color de X */
.share-btn.twitter:hover { background-color: #333333; }

.share-btn.pinterest { background-color: #E60023; }
.share-btn.pinterest:hover { background-color: #b3001b; }

.share-btn.telegram { background-color: #0088cc; }
.share-btn.telegram:hover { background-color: #006ca5; }

.share-btn.tiktok { background-color: #000000; } /* Color de TikTok */
.share-btn.tiktok:hover { background-color: #ff0050; } /* Rosa TikTok al pasar el ratón */

/* Ajustes para móviles */
@media (max-width: 768px) {
    .share-buttons {
        gap: 8px;
    }
    
    .share-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        min-width: 80px;
    }
}

/* --- Fin Estilos para Botones de Compartir --- */
/* --- Estilos para el Buscador de Plantillas --- */
.search-container {
    margin-bottom: 20px;
}

.search-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

.search-container input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-container input[type="text"]:focus {
    outline: none;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Asegurar que las tarjetas ocultas no ocupen espacio visual */
.template-card[style*="display: none"] {
    display: none !important;
}

/* Mejorar la apariencia de los acordeones durante la búsqueda */
.accordion[style*="display: none"] {
    display: none !important;
}
/* --- Fin Estilos para el Buscador de Plantillas --- */
        /* Estilos para los controles de paginación */
        .pagination-controls {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 15px;
            margin-top: 15px;
        }
        .pagination-btn {
            padding: 8px 15px;
            font-size: 0.9rem;
        }
        .pagination-info {
            font-size: 0.95rem;
            font-weight: 500;
            color: #495057;
            min-width: 120px; /* Para que no se mueva el botón al cambiar el número */
            text-align: center;
        }
/* css/estilo.css (fragmento añadido al final) */

/* --- Estilos para el Buscador de Plantillas --- */
.search-container {
    margin-bottom: 20px;
}
.search-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}
.search-container input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1rem;
}
.search-container input[type="text"]:focus {
    outline: none;
    border-color: #adb5bd;
    box-shadow: 0 0 0 3px rgba(173, 181, 189, 0.1);
}
/* --- Fin Estilos para el Buscador de Plantillas --- */

/* Asegurar que el contenedor de acordeones tenga un ID para JS */
.accordion-container {
    /* Tus estilos existentes */
}
/* --- Fin Actualizaciones --- */

/* --- Estilo para el Footer de reflexionhoy.com/mensajes --- */

.footer {
    background-color: #f8f9fa; /* Fondo claro, similar al resto de la página */
    color: #6c757d; /* Color de texto gris, coherente con el existente */
    padding: 30px 20px; /* Espaciado interno */
    text-align: center; /* Centrar el contenido */
    font-size: 0.9rem; /* Tamaño de fuente ligeramente más pequeño */
    border-top: 1px solid #e9ecef; /* Línea superior sutil, como en el original */
    margin-top: 40px; /* Margen superior para separarlo del contenido principal */
}

.footer p {
    margin: 5px 0; /* Menos margen vertical para los párrafos dentro del footer */
}

/* Estilo para los enlaces del footer */
.footer-links a {
    color: #495057; /* Color de enlace, coherente con el header/footer existente */
    text-decoration: none; /* Sin subrayado por defecto */
    margin: 0 10px; /* Espacio horizontal entre enlaces */
    padding: 5px 0; /* Un poco de padding vertical para área de clic */
    transition: color 0.2s ease, text-decoration 0.2s ease; /* Transición suave para hover */
    display: inline-block; /* Asegura que el padding vertical funcione */
}

.footer-links a:hover,
.footer-links a:focus {
    color: #0d6efd; /* Color azul principal al pasar el ratón o enfocar */
    text-decoration: underline; /* Subrayar al pasar el ratón */
}

.footer-links a:active {
    color: #0b5ed7; /* Color ligeramente más oscuro al hacer clic */
}

/* Separador entre enlaces (usando el carácter • del HTML) */
.footer-links a:not(:last-child)::after {
    content: " •"; /* Agrega el punto separador después de cada enlace excepto el último */
    color: #6c757d; /* Color del separador */
    margin-left: 10px; /* Espacio entre el enlace y el separador */
}

/* --- Media Queries para Responsividad --- */
@media (max-width: 768px) {
    .footer {
        padding: 20px 15px; /* Menos padding en móviles */
        font-size: 0.85rem; /* Tamaño de fuente un poco más pequeño */
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px 0; /* Espacio entre líneas de enlaces si se envuelven */
    }

    .footer-links a {
        margin: 0 5px; /* Menos margen horizontal en móviles */
        /* El separador ::after sigue funcionando */
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 15px 10px;
        font-size: 0.8rem;
    }

    .footer-links a {
        margin: 0 3px;
        padding: 3px 0;
    }
}

/* --- Fin Estilo para el Footer --- */