    @import 'variables.css';
    /* 1. CONFIGURACIÓN GLOBAL */
    
    .buscar-section {
        background: var(--bg-gradient5);
    }
    /* ==================== buscar header ==================== */
    
    .buscar-header-content {
        /* background-color: var(--primary-color);
        background-image: url('/images/home/Elipse.webp');
        background-repeat: no-repeat;
        background-position: center calc(100% + 500px);
        background-size: 100% auto;
         */
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5rem 5rem 3rem 5rem;
        color: white;
        min-height: 100vh;
    }
    
    
    .container {
        max-width: 1280px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 1rem;
        padding-right: 1rem;
        margin-top: 6rem;
    }
    
    .container--center {
        color: white; /* Asegurar que el texto sea visible */
    }
    /* 2. ESTILOS DE LA CABECERA (Header) */
    
    .header-main {
        background: var(--bg-gradient);
        color: white;
        text-align: center;
        padding-top: 1rem;
        padding-bottom: 0rem;
    }
    
    .img-container {
        display: flex;
        justify-content: center;
    }
    
    .header_img {
        width: auto;
        height: 8rem;
    }
    
    .header-main__title_ligth {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    color: white;
    }
    /* 3. ESTILOS DE BÚSQUEDA (Ajustado a más grande y responsive) */
    
    .search-module {
        margin-top: 1.5rem;
        max-width: 30rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    .search-field__wrapper {
        position: relative;
    }
    
    .search-field__icon {
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        color: #9CA3AF;
        /* gray-400 */
        z-index: 10;
    }
    
    .search-field__input {
        padding-left: 1.5rem;
        /* Se mantiene un padding izquierdo estándar */
        padding-right: 4rem;
        /* Nuevo padding para el icono a la derecha */
        width: 100%;
        height: 4rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
        border-radius: 1rem;
        color: #1F2937;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        outline: none;
        transition: box-shadow 0.3s ease;
        font-size: 1rem;
        background: var(--panel-background);
    }
    
    .search-field__input:focus {
        box-shadow: var(--tertiary-color2) 0 0 0 5px, 0 10px 15px -3px rgba(255, 145, 1, 0.281), 0 4px 6px -2px rgba(255, 158, 12, 0.932);
    }
    /*============================*/
    /* ======================================================= */
    /* VARIABLES DE DISEÑO */
    /* ======================================================= */
    
     :root {
        --card-width: 280px;
        --image-overlap: 50px;
        /* Cuánto sobresale la imagen por encima */
        --hover-duration: 0.4s;
        --dark-overlay: rgba(0, 0, 0, 0.75);
        /* Oscuridad del fondo al hacer hover */
        --base-color: #F7F7F7;
        /* Color de fondo base de la tarjeta */
        --text-color: #333333;
    }
    /* ======================================================= */
    /* 1. TARJETA BASE Y IMAGEN QUE SOBRESALE */
    /* ======================================================= */
    
    .card-filtro {
        /* CLAVE: Quita el ancho fijo para que la tarjeta se ajuste al ancho de la columna del Grid */
        /* width: var(--card-width);  <-- ¡QUITADO! */
        width: 100%;
        /* Ocupa todo el ancho disponible de la celda */
        max-width: 270px;
        /* Establece un límite máximo para que no se vean gigantes en pantallas muy grandes */
        border-radius: 12px;
        background: var(--bg-gradient2);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        position: relative;
        overflow: visible;
        cursor: pointer;
        transition: box-shadow 0.3s ease;
    }
    /* Contenedor de la imagen (solo para posicionamiento) */
    
    .card-filtro__image-container {
        /* Posicionamiento para que la imagen inicie más alta que el div */
        margin-top: calc(-1 * var(--image-overlap));
        text-align: center;
        position: relative;
        z-index: 2;
        /* Asegura que la imagen esté sobre el contenido */
    }
    
    .card-filtro__image {
        width: 150px;
        height: auto;
        transition: transform var(--hover-duration) ease-out;
    }
    /* ======================================================= */
    /* 2. CONTENIDO DE TEXTO Y DETALLES */
    /* ======================================================= */
    
    .card-filtro__content {
        /* padding: 0.5rem 1rem 1rem; */
        padding: 0 1.25rem 1.25rem;
        position: relative;
        z-index: 1;
        color: white;
    }
    
    .card-filtro__title {
        font-size: 1.25rem;
        font-weight: 700;
        margin-top: 0.5rem;
        margin-bottom: 0.75rem;
        text-align: center;
        text-transform: uppercase;
    }
    /* Contenedor de los detalles (el elemento que se animará) */
    
    .card-filtro__details {
        /* Se posiciona de forma absoluta dentro de content (relativo) */
        position: absolute;
        display: none;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 1.25rem;
        box-sizing: border-box;
        /* Estilo del fondo oscuro inicial (transparente) */
        background-color: rgba(0, 0, 0, 0);
        color: var(--text-color);
        /* Configuración de la animación */
        transform: translateY(0);
        transition: transform var(--hover-duration) ease-out, background-color var(--hover-duration) ease-out;
    }
    
    .card-filtro__description {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        font-weight: 600;
    }
    
    .card-filtro__topics {
        list-style: none;
        padding-left: 0;
        font-size: 0.85rem;
    }
    
    .card-filtro__topics li {
        line-height: 1.4;
    }
    /* ======================================================= */
    /* 3. EFECTOS AL HACER HOVER (INTERACCIÓN) */
    /* ======================================================= */
    
    .card-filtro:hover {
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
        background: var(--bg-gradient3);
    }
    /* Efecto 1: La imagen se mueve ligeramente hacia arriba */
    
    .card-filtro:hover .card-filtro__image,
    .card-filtro:focus {
        transform: translateY(-8px);
    }
    
    .course-grid {
        display: grid;
        gap: 1.5rem;
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
        /* CLAVE: MÓVILES (Por defecto) - Dos columnas */
        /* Crea dos columnas de igual tamaño (1fr) */
        grid-template-columns: repeat(2, 1fr);
        /* Centrar las tarjetas dentro de sus celdas si no ocupan todo el ancho */
        justify-items: center;
        padding-top: 4rem;
    }
    /*============================*/
    /* 4. ESTILOS DE FILTROS (Botones más grandes y responsive) */
    
    .filter-controls__list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
        margin-bottom: 2rem;
        padding: 2rem 5rem;
    }
    
    .filter-btn {
        padding: 0.75rem 1.5rem;
        /* Aumentado: botones más grandes */
        background-color: white;
        border-radius: 9999px;
        font-weight: 600;
        color: #374151;
        /* gray-700 */
        transition: all 0.3s ease;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
        font-size: 1rem;
        /* Aumentado el tamaño de fuente */
        white-space: nowrap;
        border: none;
        cursor: pointer;
    }
    
    .filter-btn:hover {
        background-color: var(--secundary-color);
        /* blue-500 */
        color: white;
    }
    
    .filter-btn--active {
        background-color: var(--primary-color);
        /* blue-500 */
        color: white;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    }
    /* 5. ESTILOS DE LA CUADRÍCULA Y TARJETAS */
    
    .main-border {
        border-top-left-radius: 5rem;
        border-top-right-radius: 5rem;
        background: var(--secundary-color);
        padding-top: 1.2rem;
        display: block;
    }
    
    .main-content {
        padding-bottom: 5rem;
        display: block;
        background: var(--panel-background);
        border-top-left-radius: 5rem;
        border-top-right-radius: 5rem;
    }
    
    .tutor-grid-buscar {
        display: grid;
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 1rem;
        padding: 0 9rem 3rem 9em;
    }
    
    
    .loading-indicator {
        max-width: 1200px;
        height: 30vh;
        display: none;
        align-items: center;
        justify-content: center;
        /* opcional: fondo semitransparente */
    }
    
    .loader {
        width: 48px;
        height: 48px;
        border: 5px solid #FFF;
        border-bottom-color: var(--tertiary-color2);
        border-radius: 50%;
        display: inline-block;
        box-sizing: border-box;
        animation: rotation 1s linear infinite;
    }
    
    @keyframes rotation {
        0% {
            transform: rotate(0deg);
        }
        100% {
            transform: rotate(360deg);
        }
    }
    /*=======================================================*/
    /* Colores usados (Hexadecimales) */
    /* #2563EB = blue-600 */
    /* #3B82F6 = blue-500 */
    /* #93C5FD = blue-300 (Transparente en panel detallado) */
    /* #DBEAFE = blue-100 */
    /* #1E40AF = blue-800 */
    /* #374151 = gray-700 */
    /* #4B5563 = gray-600 */
    /* #6B7280 = gray-500 */
    /* #F9FAFB = gray-50 */
    /* #10B981 = green-600 */
    /* #D1FAE5 = green-100 */
    /* #065F46 = green-800 (ajustado para legibilidad) */
    /* #F59E0B = yellow-500 (icono estrella) */
    /* ======================================================= */
    /* ESTILOS DE LA CARD MODIFICADA */
    /* ======================================================= */
    
    .card-tutor {
        /* Manteniendo estilos base */
        background-color: #FFFFFF;
        border-radius: 0.75rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        overflow: hidden;
        transform: scale(1);
        transition: transform 0.3s ease-in-out;
        position: relative;
        /* ¡CLAVE para el panel absoluto! */
    }
    
    .card-tutor:hover {
        transform: scale(1.05);
    }
    
    .card-tutor__content {
        padding: 1.5rem;
        /* p-6 */
    }
    
    .card-tutor__price {
        text-align: end;
        font-size: 1rem;
        font-weight: 600;
        color: var(--primary-color);
        min-height: 1.5rem; /* Asegurar espacio mínimo */
    }
    
    .card-tutor__price-duration {
        font-size: 0.875rem;
        /* text-sm */
        font-weight: 400;
        /* font-normal */
        color: #6B7280;
        /* text-gray-500 */
    }
    /* ------------------------------------------------ */
    /* ESTILOS DEL TRUNCAMIENTO Y "VER MÁS" */
    /* ------------------------------------------------ */
    
    .card-tutor__tags-wrapper {
        /* Contenedor que recorta para mostrar SOLO la primera materia y simular carrusel */
        display: flex;
        align-items: center;
        position: relative;
        overflow: hidden;
        width: 299px; /* antes 100%: hacía que se vieran todas; ajustado para truncar */
        max-width: 100%;
        flex-shrink: 0;
        padding-right: 14px; /* espacio para el fade */
        min-height: 2rem; /* Asegurar espacio mínimo para los tags */
    }

    /* Fade al final para que el corte sea suave */
    .card-tutor__tags-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 28px;
        height: 100%;
        pointer-events: none;
        background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, white 75%);
    }
    
    /* Efecto carrusel para los tags con fondo */
    .card-tutor__tags {
        display: flex;
        align-items: center;
        white-space: nowrap;
        animation: scroll-tags-carousel 12s linear infinite;
        animation-play-state: paused;
        transition: transform 0.3s ease;
        will-change: transform;
        /* Evitar que se estire ocupando el ancho total del wrapper */
        flex: 0 0 auto;
    }
    
    /* Activar animación al hacer hover en la card */
    .card-tutor:hover .card-tutor__tags {
        animation-play-state: running;
    }
    
    @keyframes scroll-tags-carousel {
    0% {
        transform: translateX(0);
    }
    10% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-120px); /* Desplazar para mostrar los siguientes 3 tags */
    }
    75% {
        transform: translateX(-120px);
    }
    100% {
        transform: translateX(0);
    }
}

    .tag {
        /* Asegura que los tags tengan espacio entre sí */
        margin-right: 0.25rem;
        /* ml-1 convertido a margin-right */
        white-space: nowrap;
        /* Evita que el texto del tag se rompa */
        flex-shrink: 0;
        /* Evita que los tags se compriman */
        min-width: 80px;
        /* Ancho mínimo para consistencia */
        text-align: center;
    }
    
    .tag--blue {
        background-color: #DBEAFE;
        /* bg-blue-100 */
        color: #1E40AF;
        /* text-blue-800 */
        border-radius: 9999px;
        /* rounded-full */
        padding: 0.25rem 0.5rem;
        /* px-2 py-1 */
        display: inline-block;
    }
    
    .tag--green {
        background-color: #D1FAE5;
        /* bg-green-100 */
        color: #065F46;
        /* text-green-800 */
        border-radius: 9999px;
        padding: 0.25rem 0.5rem;
        display: inline-block;
    }
    /* ------------------------------------------------ */
    /* ESTILOS DEL PANEL DETALLADO (Overlay) */
    /* ------------------------------------------------ */
    
    .card-tutor__detail-panel {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: var(--bg-gradient4);
        /* blue-600 */
        color: white;
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        /* CLAVE 1: Asegura que el panel esté por encima del contenido normal */
        z-index: 20;
    }
    
    .detail-panel__header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    .detail-panel__title {
        /* text-xl font-bold mb-2 */
        font-size: 1.25rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }
    
    .detail-panel__close-btn {
        background: none;
        border: none;
        cursor: pointer;
        color: #BFDBFE;
        /* blue-200 */
        transition: color 0.2s ease;
        padding: 0;
    }
    
    .detail-panel__close-btn svg {
        width: 1.5rem;
        /* Equivalente a w-6 */
        height: 1.5rem;
        /* Equivalente a h-6 */
        display: block;
        /* Asegura que no haya espacio extra debajo */
    }
    
    .detail-panel__close-btn:hover {
        color: white;
    }
    
    .detail-panel__subtitle {
        /* text-sm font-semibold text-blue-200 mb-2 */
        font-size: 0.875rem;
        font-weight: 600;
        color: #BFDBFE;
        /* blue-200 */
        margin-bottom: 0.5rem;
    }
    
    .detail-panel__tags-container {
        /* flex-grow h-32 pr-2 overflow-y-auto hide-scrollbar flex flex-wrap gap-2 text-xs mb-4 content-start */
        flex-grow: 1;
        height: 8rem;
        /* h-32 */
        padding-right: 0.5rem;
        /* pr-2 */
        overflow-y: auto;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        /* gap-2 */
        font-size: 0.75rem;
        /* text-xs */
        margin-bottom: 1rem;
        /* mb-4 */
        align-content: flex-start;
        /* content-start */
    }
    
    .detail-panel__tags-container::-webkit-scrollbar {
        /* Ocultar scrollbar (hide-scrollbar) */
        display: none;
    }
    
    .tag--detail {
        /* bg-white/20 rounded-full px-3 py-1 */
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 9999px;
        padding: 0.25rem 0.75rem;
        display: inline-block;
        white-space: nowrap;
    }
    
    /* ======================================================= */
/* VARIABLES DE DISEÑO */
/* ======================================================= */
:root {
    --color-white: #FFFFFF;
    --color-yellow-400: #FBBF24;
    --color-text: #1F2937; /* Asumiendo un color oscuro para el texto */
}

/* ======================================================= */
/* I. WRAPPER Y POSICIONAMIENTO */
/* ======================================================= */

.rating-info-wrapper {
    /* mt-auto pt-2 (Se asume que va dentro de un flex container vertical) */
    margin-top: auto; /* Empuja el elemento hacia abajo */
    
}

/* ======================================================= */
/* II. BLOQUE PRINCIPAL DE RATING */
/* ======================================================= */

.rating-info {
    /* bg-white/10 rounded-lg p-2 text-center */
    
    /* bg-white/10 (Fondo blanco con 10% de opacidad) */
    background-color: rgba(255, 255, 255, 0.1); 
    
    border-radius: 0.5rem; /* rounded-lg */
    padding: 0.5rem; /* p-2 */
    text-align: center; /* text-center */
    
    /* Color de texto por defecto (asumimos que está sobre un fondo oscuro, por eso el texto no se especificó y usaremos blanco para que contraste con el fondo base del contenedor) */
    color: var(--color-white); 
}

.rating-info__content {
    /* flex items-center justify-center text-sm font-semibold */
    display: flex;
    align-items: center; /* items-center */
    justify-content: center; /* justify-center */
    
    font-size: 0.875rem; /* text-sm */
    font-weight: 600; /* font-semibold */
}

/* ======================================================= */
/* III. ESTRELLA Y TEXTO */
/* ======================================================= */

.rating-info__star {
    /* w-5 h-5 text-yellow-400 mr-1 */
    width: 1.25rem; /* w-5 */
    height: 1.25rem; /* h-5 */
    color: var(--color-yellow-400); /* text-yellow-400 */
    margin-right: 0.25rem; /* mr-1 */
    
    /* Asegurar que el SVG se muestre correctamente */
    flex-shrink: 0;
}

.rating-info__text {
    /* Asegurar que el texto sea blanco o un color claro para el contraste */
    color: inherit; /* Hereda el color del padre (que se definió como blanco en .rating-info) */
}
    /*=======================================================*/
    /*---- Card tutor-----*/
    
    .card-tutor {
        background-color: white;
        /* Tarjetas blancas */
        border-radius: 0.75rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        overflow: hidden;
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    }
    
    .card-tutor:hover {
        transform: scale(1.05);
    }
    
    .card-tutor.is-hidden {
        opacity: 0;
        transform: scale(0.95);
        display: none;
    }
    
    .card-tutor__content {
        padding: 1.5rem;
    }
    
    .card-tutor__header {
        display: flex;
        align-items: center;
        gap: 1rem;
        justify-content: space-between  ;
    }
    
    .card-tutor__avatar {
        height: 4rem;
        width: 4rem;
        border-radius: 9999px;
    }
    
    .card-tutor__name {
        text-align: end;
        font-size: 1.3rem;
        font-weight: 700;
        line-height: 24px;
        color: #1F2937; /* gray-900 - Color oscuro para visibilidad */
    }
    
    .card-tutor__review-count {
        color: #4B5563;
        /* gray-600 */
        font-size: 0.875rem;
        margin-left: 0.25rem;
    }
    
    .card-tutor__tags {
        /* gray-500 */
        margin-top: 1rem;
        font-size: 0.70rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        white-space: nowrap;
        animation: scroll-tags-carousel 12s linear infinite;
        animation-play-state: paused;
        transition: transform 0.3s ease;
        /* quitar justify-content: center para que el primer tag quede al inicio y el overflow recorte el resto */
    }

    .tag {
        display: inline-block;
        border-radius: 9999px;
        padding: 0.125rem 0.5rem;
        margin-right: 0.25rem;
    }
    
    .tag--blue {
        background-color: #DBEAFE;
        /* blue-100 */
        color: #1E40AF;
        /* blue-800, ajustado para contraste */
    }
    
    .tag--green {
        background-color: #D1FAE5;
        /* green-100 */
        color: #065F46;
        /* green-800 */
    }
    
    .card-tutor__description {
        color: #374151;
        /* gray-700 */
        margin-top: 0.75rem;
        font-size: 0.875rem;
        line-height: 1.3rem;
        min-height: 2.45rem;
        text-align: center;
    }
    
    .card-tutor__footer {
        background-color: #F9FAFB;
        /* gray-50 */
        padding: 0.75rem 1.5rem;
        display: flex;
        flex-flow: row nowrap;
    }
    
    .card-tutor__button{
        width: 100%;
        background: var(--primary-color);
        /* blue-500 */
        color: white;
        font-weight: 700;
        padding: 0.625rem 1rem;
        border-radius: 0.5rem;
        transition: background-color 0.2s ease;
        font-size: 1rem;
        border: none;
        cursor: pointer;
    }
    .card-tutor__button-materias{
        width: 100%;
        /* blue-500 */
        color: var(--primary-color);
        font-weight: 700;
        padding: 0.625rem 1rem;
        border-radius: 0.5rem;
        transition: background-color 0.2s ease;
        font-size: 1rem;
        border: none;
        cursor: pointer;

    }
    
    
    .card-tutor__button:hover {
        background: var(--secundary-color);
        /* blue-600 */
    }
    
    .filter-controls__list {
        margin-top: 1.4rem;
    }
    /* ======================================================= */
    /* VARIABLES (Opcional, pero recomendado) */
    /* ======================================================= */
    
     :root {
        --primary-color: #2563EB;
        /* Azul de Tailwind blue-600 */
        --text-white: #FFFFFF;
        --text-dark: #1F2937;
        /* gray-900 */
        --text-light: #D1D5DB;
        /* gray-300 */
        --text-note: #9CA3AF;
        /* gray-400 */
        --bg-light-hover: #F3F4F6;
        /* gray-100 */
    }
    /* ======================================================= */
    /* 1. WRAPPER Y RESPONSIVIDAD (w-full max-w-6xl mx-auto) */
    /* ======================================================= */
    
    .cta-section-wrapper {
        display: block;
        /* w-full */
        width: 100%;
        /* max-w-6xl: max-width: 72rem; (1152px) */
        /* mx-auto */
        margin-left: auto;
        margin-right: auto;
        /* px-4 py-16 */
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
        box-sizing: border-box;
    }
    /* ======================================================= */
    /* 2. CARD PRINCIPAL (pattern-background rounded-2xl shadow-2xl) */
    /* ======================================================= */
    
    .cta-card {
        /* rounded-2xl: border-radius: 1rem; */
        border-radius: 1rem;
        /* shadow-2xl */
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        /* overflow-hidden */
        overflow: hidden;
        /* Simulación de fondo con patrón (reemplaza 'pattern-background' con tu estilo real) */
        background: var(--bg-gradient2);
    }
    /* Contenido Interno (text-center px-8 py-20 md:py-28) */
    
    .cta-card__content {
        text-align: center;
        padding-left: 2rem;
        padding-right: 2rem;
        padding-top: 1rem;
        /* py-20 */
        padding-bottom: 1rem;
        /* py-20 */
    }
    /* MEDIA QUERY: md:py-28 */
    /* ======================================================= */
    /* 3. TIPOGRAFÍA */
    /* ======================================================= */
    
    .cta-card__title {
        /* text-4xl font-extrabold text-white tracking-tight */
        font-size: 2.25rem;
        /* text-4xl */
        font-weight: 800;
        /* font-extrabold */
        color: var(--text-white);
        letter-spacing: -0.025em;
        /* tracking-tight */
    }
    /* MEDIA QUERY: md:text-5xl */
    
    .cta-card__subtitle {
        /* mt-6 max-w-2xl mx-auto text-lg text-gray-300 */
        margin-top: 1.5rem;
        max-width: 42rem;
        /* max-w-2xl */
        margin-left: auto;
        margin-right: auto;
        font-size: 1.125rem;
        /* text-lg */
        color: var(--text-light);
    }
    /* MEDIA QUERY: md:text-xl */
    /* ======================================================= */
    /* 4. BOTÓN (cta-card__button) */
    /* ======================================================= */
    
    .cta-card__action {
        /* mt-10 */
        margin-top: 2.5rem;
    }
    
    .cta-card__button {
        /* inline-block bg-white text-gray-900 font-bold text-lg */
        display: inline-block;
        background-color: var(--text-white);
        color: var(--text-dark);
        font-weight: 700;
        font-size: 1.125rem;
        /* text-lg */
        text-decoration: none;
        /* px-8 py-4 rounded-lg shadow-lg */
        padding: 1rem 2rem;
        border-radius: 0.5rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
        border: none;
        cursor: pointer;
        /* transform transition-transform duration-300 */
        transform: scale(1);
        /* Base scale */
        transition: all 0.3s ease;
    }
    /* Efectos de Hover y Focus */
    
    .cta-card__button:hover {
        /* hover:scale-105 hover:bg-gray-100 */
        transform: scale(1.05);
        background-color: var(--bg-light-hover);
    }
    
    .cta-card__button:focus {
        /* focus:outline-none focus:ring-4 focus:ring-blue-300 */
        outline: none;
        box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.7);
        /* Simula el ring-4 con color azul */
    }
    /* ======================================================= */
    /* 5. NOTA ADICIONAL */
    /* ======================================================= */
    
    .cta-card__note {
        /* mt-6 text-sm text-gray-400 */
        margin-top: 1.5rem;
        font-size: 0.875rem;
        /* text-sm */
        color: var(--text-note);
    }
    /* ======================================================= */
    /* 6. MEDIA QUERIES PARA RESPONSIVIDAD (Tablet y Desktop) */
    /* ======================================================= */
    /* Vista de 600px y superior */
    
    @media (max-width: 600px) {
        .course-grid {
            grid-template-columns: repeat(3, 1fr);
        }
        .buscar-header-content {
            padding: 1rem;
            min-height: 100vh;
            background: var(--bg-gradient2);
            color: white; /* Asegurar texto blanco sobre fondo oscuro */
        }
        
        /* Asegurar que todos los textos del header sean visibles en móvil 
        .header-main__title {
            color: white !important;
            font-size: 1.75rem;
            line-height: 2.25rem;
        }*/
        
        /* .header-main__subtitle {
            color: white !important;
            font-size: 0.95rem;
            line-height: 1.5rem;
        } */
        
        .main-border {
            border-top-left-radius: 2rem;
            border-top-right-radius: 2rem;
            padding-top: 1rem;
            margin-top: -21px;
        }
        .main-content {
            border-top-left-radius: 2rem;
            border-top-right-radius: 2rem;
        }
        .filter-controls__list {
            display: flex;
            flex-flow: row nowrap;
            overflow-x: auto;
            width: 100%;
            padding: 0.5rem 0.25rem;
            white-space: nowrap;
            gap: 0.5rem;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            justify-content: flex-start;
            margin-top: 1.5rem;
        }
        .filter-controls__list .filter-btn:first-child {
            margin-left: 0.25rem;
        }
        .filter-controls__list .filter-btn:last-child {
            margin-right: 0.25rem;
        }
        .cta-card__title {
            line-height: 40px;
            padding-top: 2rem;
            color: white;
        }
        .tutor-grid-buscar {
            padding: 0 1rem 3rem 1rem;
            gap: 2rem;
        }
        .card-tutor__header{
            justify-content: space-between;
            gap: 0.5rem;
        }
        .card-tutor__name {
            text-align: end;
            font-size: 1.1rem;
            color: #1F2937;
            line-height: 1.4rem;
        }
        
        .card-tutor__price {
            font-size: 0.9rem;
            color: var(--primary-color);
        }
        
        .card-tutor__price-duration {
            font-size: 0.75rem;
            color: #6B7280;
        }
        
        .card-tutor__description {
            font-size: 0.8rem;
            color: #374151;
            line-height: 1.2rem;
        }
        
        .card-tutor__tags {
            font-size: 0.65rem;
        }
        
        /* Asegurar que los botones sean visibles y táctiles */
        .card-tutor__button,
        .card-tutor__button-materias {
            font-size: 0.9rem;
            padding: 0.75rem 1rem;
            min-height: 44px; /* Tamaño mínimo táctil */
        }
        
        /* Asegurar visibilidad del avatar */
        .card-tutor__avatar {
            width: 3.5rem;
            height: 3.5rem;
        }
    }
    /* Vista de Móvil Grande / Tablet Pequeña (sm: ~ 640px) */
    
    @media (min-width: 640px) {
        .cta-section-wrapper {
            padding-left: 1.5rem;
            /* sm:px-6 */
            padding-right: 1.5rem;
            /* sm:px-6 */
        }
        .tutor-grid-buscar {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 2rem;
        }
        
    }
    /* Vista de Tablet (md: ~ 768px) */
    
    @media (min-width: 768px) {
        
        .cta-card__content {
            padding-top: 2rem;
            /* md:py-28 */
            padding-bottom: 2rem;
            /* md:py-28 */
        }
        .cta-card__subtitle {
            font-size: 1.25rem;
            /* md:text-xl */
        }
        .cta-card__title {
            font-size: 3rem;
            /* md:text-5xl */
        }
        .header-main {
            padding-top: 5rem;
            padding-bottom: 2rem;
        }
        
        .header-main__subtitle {
            font-size: 1.25rem;
        }
        .search-module {
            margin-top: 2.5rem;
        }
        .filter-controls__list {
            gap: 1rem;
        }
        .tutor-grid-buscar {
            gap: 2rem;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            /* 3 columnas en tablet */
        }
    }
    /* MEDIA QUERY: Pantallas de 900px+ */
    
    @media (min-width: 900px) {
        .course-grid {
            grid-template-columns: repeat(4, 1fr);
        }
    }
    /* Vista de Desktop (lg: ~ 1024px) */
    
    @media (min-width: 1024px) {
        .cta-section-wrapper {
            padding-left: 2rem;
            /* lg:px-8 */
            padding-right: 2rem;
            /* lg:px-8 */
        }
        .tutor-grid-buscar {
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 2.4rem;
            padding: 0 4rem 3rem 4em;
            /* 4 columnas en desktop */
        }
    }

    @media(min-width: 1920px){
        .tutor-grid-buscar{
            padding: 2rem 25rem;
        }
        .filter-controls__list{
            padding: 2rem 10rem;
        }
    }

    /* Mejoras para animaciones en mobile */
@media (max-width: 768px) {
    .card-tutor--interactive {
        transform-style: preserve-3d;
        backface-visibility: hidden;
    }
    
    .card-tutor__primary-content,
    .card-tutor__detail-panel {
        transform: translateZ(0);
        will-change: transform, opacity;
        -webkit-transform: translateZ(0);
        -webkit-backface-visibility: hidden;
    }
    
    .tags-more-btn,
    .detail-panel__close-btn {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        min-height: 48px;
        min-width: 48px;
        cursor: pointer;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        position: relative;
        z-index: 10;
        transition: all 0.2s ease;
    }
    
    .tags-more-btn:active,
    .detail-panel__close-btn:active {
        transform: scale(0.95);
    }
    
    .card-tutor__detail-panel {
        position: relative;
        z-index: 5;
        overflow: hidden;
    }
    
    /* Fuerza aceleración por hardware */
    .card-tutor--interactive * {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}


    /* Animaciones más suaves globalmente */
    .transition-all {
        transition-property: all;
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }

    .ease-out {
        transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }

    .ease-in {
        transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
    }

    .duration-300 {
        transition-duration: 300ms;
    }

    .duration-200 {
        transition-duration: 200ms;
    }

    .transform {
        --tw-translate-x: 0;
        --tw-translate-y: 0;
        --tw-rotate: 0;
        --tw-skew-x: 0;
        --tw-skew-y: 0;
        --tw-scale-x: 1;
        --tw-scale-y: 1;
        transform: translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
    }

    .translate-y-4 {
        --tw-translate-y: 1rem;
    }

    .translate-y-0 {
        --tw-translate-y: 0px;
    }

    .scale-95 {
        --tw-scale-x: .95;
        --tw-scale-y: .95;
    }

    .scale-100 {
        --tw-scale-x: 1;
        --tw-scale-y: 1;
    }