:root {
        --primary: #9D2449;
        --primary-dark: #7a1c3a;
        --accent: #BC955B;
        --text-dark: #285C4D;
        --light-bg: #f5f7fa;
    }

    body {
        background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
        min-height: 100vh;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        padding-bottom: 2rem;
    }

    /* Modal Styles */
    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        align-items: center;
        justify-content: center;
    }

    .modal-content {
        background-color: #fefefe;
        margin: auto;
        padding: 0;
        border-radius: 12px;
        width: 90%;
        max-width: 500px;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
        animation: modalFadeIn 0.3s;
        overflow: hidden;
    }

    @keyframes modalFadeIn {
        from {
            opacity: 0;
            transform: translateY(-50px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .modal-header {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        color: white;
        padding: 1.5rem;
        text-align: center;
        position: relative;
    }

    .modal-header h2 {
        font-size: 1.5rem;
        margin: 0;
    }

    .close {
        position: absolute;
        top: 15px;
        right: 15px;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .modal-body {
        padding: 2rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
        color: #555;
    }

    .form-group input {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 1rem;
        transition: border-color 0.3s;
    }

    .form-group input:focus {
        border-color: var(--primary);
        outline: none;
        box-shadow: 0 0 0 3px rgba(157, 36, 73, 0.2);
    }

    .btn-primary {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        color: white;
        border: none;
        padding: 0.75rem 1.5rem;
        border-radius: 6px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        width: 100%;
        transition: all 0.3s;
    }

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(157, 36, 73, 0.3);
    }

    .alert {
        padding: 0.75rem 1rem;
        border-radius: 6px;
        margin-bottom: 1rem;
        display: none;
    }

    .alert-success {
        background-color: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }

    .alert-error {
        background-color: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }

    .register-link {
        text-align: center;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid #eee;
    }

    .register-link a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 600;
    }

    .register-link a:hover {
        text-decoration: underline;
    }

    .forgot-password {
        text-align: center;
        margin-top: 1rem;
    }

    .forgot-password a {
        color: var(--primary);
        text-decoration: none;
    }

    /* Estilos para las tarjetas de cursos */
    .square-card {
border-radius: 10px;
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            height: 100%;
            border: none;
            display: flex;
            flex-direction: column;
            margin-bottom: 2rem; /* Más espacio inferior */
            aspect-ratio: 1/1.2;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
             background: linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 100%);
    }

    .square-card-content {
           flex-grow: 1;
            display: flex;
            flex-direction: column;
            padding: 1.2rem;
    }

    .card-hover:hover {
         transform: translateY(-8px);
            box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    }

    .square-card::before {
     content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-size: cover;
        background-position: center;
        opacity: 0;
        transition: opacity 0.5s ease;
        z-index: 1;
    }

    .square-card:hover::before {
        opacity: 0.3;
    }

    .curso-imagen {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-size: cover;
        background-position: center;
        opacity: 0;
        transition: opacity 0.5s ease;
        z-index: 1;
    }

    .square-card:hover .curso-imagen {
        opacity: 0.3;
    }

    .card-hover-content {
        display: none;
        margin-top: 15px;
    }

    .square-card:hover .card-hover-content {
        display: block;
    }

    .course-badge-compact {
        position: absolute;
        top: 10px;
        right: 10px;
        background: var(--accent);
        color: white;
        padding: 0.3rem 0.8rem;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: bold;
    }

    .badge-activo {
        background: var(--accent);
        box-shadow: 0 2px 4px rgba(188, 149, 91, 0.3);
    }

    .badge-espera {
        background: #6c757d;
        box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
    }

    .badge-inactivo {
        background: #dc3545;
        box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
    }

    .icon-square {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 55px;
        height: 55px;
        border-radius: 10px;
        background: rgba(219, 213, 213, 0.25);
        margin-bottom: 1rem;
    }

    .icon-square i {
        font-size: 1.4rem;
    }

    .compact-info {
        margin-bottom: 1rem;
        flex-grow: 1;
    }

    .compact-info li {
        margin-bottom: 0.4rem;
        display: flex;
        align-items: center;
        font-size: 0.85rem;
    }

    .cost-info-compact {
        background: rgba(0, 0, 0, 0.1);
        padding: 0.7rem;
        border-radius: 8px;
        margin-top: auto;
        font-size: 0.85rem;
    }

    .info-button-compact {
        background-color: var(--accent);
        color: white;
        border: none;
        border-radius: 8px;
        padding: 0.6rem;
        font-weight: 600;
        transition: all 0.3s;
        margin-top: 1rem;
        display: inline-block;
        width: 100%;
        text-align: center;
        font-size: 0.9rem;
    }

    .info-button-compact:hover {
        background-color: #a57c4a;
        transform: translateY(-2px);
        color: #eee;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .square-card-content {
        position: relative;
        z-index: 2;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .age-tag-compact {
        display: inline-block;
        background: rgba(188, 149, 91, 0.25);
        color: #eee;
        padding: 3px 8px;
        border-radius: 5px;
        font-size: 0.75rem;
        margin-top: 0.7rem;
        border: 1px solid var(--accent);
    }

    .square-card:hover .age-tag-compact {
        background: rgba(255, 255, 255, 0.3);
    }

    .course-title-compact {
        font-weight: bold;
        margin-bottom: 1rem;
        transition: all 0.3s ease;
    }

    .course-title-compact .title {
        font-size: 1.1rem;
        line-height: 1.3;
    }

    .square-card:hover .course-title-compact {
        transform: translateY(-2px);
    }

    .schedule-subtitle {
        font-size: 0.9rem;
        opacity: 0.9;
        margin-bottom: 0.5rem;
        transition: all 0.3s ease;
    }

    .square-card:hover .icon-square {
        transform: scale(1.1);
        background: rgba(255, 255, 255, 0.3);
    }

    /* ESPACIADO MEJORADO ENTRE CAJAS */
    .columns.is-multiline {
        margin-top: 1.5rem;
        margin-left: -0.75rem;
        margin-right: -0.75rem;
    }

    .column.is-3-widescreen {
        padding: 1rem;
    }

    @media (max-width: 1024px) {
        .column.is-3-widescreen {
            width: 50%;
            flex: none;
        }

        .columns.is-multiline {
            margin-left: -0.5rem;
            margin-right: -0.5rem;
        }

        .column.is-3-widescreen {
            padding: 0.75rem;
        }
    }

    @media (max-width: 768px) {
         .square-card-content {
                padding: 1rem;
            }
            
            .icon-square {
                width: 50px;
                height: 50px;
            }
            
            .icon-square i {
                font-size: 1.2rem;
            }
            
            .column.is-3-widescreen {
                width: 100%;
                flex: none;
                padding: 0.5rem;
            }
            
            .course-title-compact {
                min-height: auto;
            }
            
            .course-image {
                height: 130px;
            }
            
            .columns.is-multiline {
                margin-left: -0.25rem;
                margin-right: -0.25rem;
            }
        
    }

    /* Mejoras de visibilidad */
    .content.has-text-white p {
        margin-bottom: 0.5rem;
    }

    .cost-info-compact {
        background: rgba(0, 0, 0, 0.1);
        padding: 0.7rem;
        border-radius: 8px;
        margin-top: auto;
        font-size: 0.85rem;
    }

    .cost-info-compact p:last-child {
        margin-bottom: 0;
    }

    /* Banner */
  

    /* Subtítulo */
    .subtitle {
        font-size: 1.4rem;
        line-height: 1.6;
        color: #444;
        text-align: center;
        margin: 2rem auto;
        max-width: 800px;
        padding: 0 1rem;
    }

    .highlight {
        background: linear-gradient(120deg, rgba(157, 36, 73, 0.1) 0%, rgba(188, 149, 91, 0.1) 100%);
        padding: 0.2rem 0.5rem;
        border-radius: 6px;
        font-weight: 500;
        color: #9D2449;
    }

    /* Estilos para los círculos */
    .circle-container {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 25px;
        margin: 40px 0;
        padding: 20px;
    }

    .circle {
        width: 150px;
        height: 150px;
        border-radius: 50%;
        background: white;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
        transition: all 0.4s ease;
        position: relative;
        overflow: hidden;
        cursor: pointer;
    }

    .circle::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(157, 36, 73, 0.05) 0%, rgba(188, 149, 91, 0.05) 100%);
        z-index: 1;
    }

    .circle:hover {
        transform: translateY(-8px) scale(1.05);
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    }

    .circle-icon {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: linear-gradient(135deg, #9D2449 0%, #7a1c3a 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 12px;
        font-size: 20px;
        color: white;
        z-index: 2;
        transition: all 0.3s ease;
    }

    .circle:hover .circle-icon {
        transform: scale(1.1);
        background: linear-gradient(135deg, #7a1c3a 0%, #9D2449 100%);
    }

    .circle-content {
        z-index: 2;
    }

    .circle-number {
        font-size: 1.8rem;
        font-weight: 700;
        color: #9D2449;
        line-height: 1;
        margin-bottom: 5px;
        transition: all 0.3s ease;
    }

    .circle:hover .circle-number {
        color: #7a1c3a;
        transform: scale(1.1);
    }

    .circle-text {
        font-size: 0.85rem;
        color: #555;
        font-weight: 500;
        padding: 0 10px;
        line-height: 1.3;
        transition: all 0.3s ease;
    }

    .circle:hover .circle-text {
        color: #333;
    }

    .circle-description {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(157, 36, 73, 0.9);
        color: white;
        padding: 8px;
        font-size: 0.75rem;
        transform: translateY(100%);
        transition: all 0.3s ease;
        z-index: 3;
        border-radius: 0 0 50% 50%;
        text-align: center;
    }

    .circle:hover .circle-description {
        transform: translateY(0);
    }

    /* Info container */
    .info-container {
        background: white;
        border-radius: 15px;
        padding: 25px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        margin: 30px auto;
        max-width: 800px;
    }

    .info-title {
        font-size: 1.4rem;
        color: #9D2449;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .info-title i {
        margin-right: 10px;
    }

    .info-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .info-item {
        display: flex;
        align-items: center;
        background: #f8f9fa;
        padding: 12px;
        border-radius: 8px;
        flex: 1;
        min-width: 180px;
    }

    .info-item i {
        margin-right: 8px;
        color: #9D2449;
        font-size: 1.1rem;
    }

    /* Título centrado */
    .titulo {
        margin: 40px 0;
        padding: 20px;
        text-align: center;
    }

    .titulo h1 {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 2.2rem;
        color: #9D2449;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .titulo h1 i {
        margin-right: 15px;
        color: #FFD700;
        font-size: 2rem;
    }

    .titulo p {
        font-size: 1.1rem;
        color: #555;
        max-width: 800px;
        margin: 0 auto;
        line-height: 1.6;
    }

    /* Responsive para círculos */
    @media (max-width: 768px) {
        .circle-container {
            gap: 20px;
        }

        .circle {
            width: 130px;
            height: 130px;
        }

        .circle-icon {
            width: 45px;
            height: 45px;
            font-size: 18px;
            margin-bottom: 10px;
        }

        .circle-number {
            font-size: 1.6rem;
        }

        .circle-text {
            font-size: 0.8rem;
        }

        .titulo h1 {
            font-size: 1.8rem;
        }
    }

    @media (max-width: 480px) {
        .circle {
            width: 110px;
            height: 110px;
        }

        .circle-icon {
            width: 40px;
            height: 40px;
            font-size: 16px;
            margin-bottom: 8px;
        }

        .circle-number {
            font-size: 1.4rem;
        }

        .circle-text {
            font-size: 0.75rem;
        }

        .circle-description {
            font-size: 0.7rem;
            padding: 6px;
        }
    }

    /* Efectos de animación */
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(20px) scale(0.9);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    .circle {
        animation: fadeIn 0.6s ease forwards;
    }

    .circle:nth-child(1) {
        animation-delay: 0.1s;
    }

    .circle:nth-child(2) {
        animation-delay: 0.2s;
    }

    .circle:nth-child(3) {
        animation-delay: 0.3s;
    }

    .circle:nth-child(4) {
        animation-delay: 0.4s;
    }