 :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;
    }
    
    .tabs {
        display: flex;
        margin-bottom: 1.5rem;
        border-bottom: 2px solid #eee;
    }
    
    .tab {
        flex: 1;
        text-align: center;
        padding: 1rem;
        cursor: pointer;
        transition: all 0.3s;
        font-weight: 600;
    }
    
    .tab.active {
        color: var(--primary);
        border-bottom: 3px solid var(--primary);
    }
    
    .tab-content {
        display: none;
    }
    
    .tab-content.active {
        display: block;
    }
    
    .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);
    }
    
    .btn-secondary {
        background: linear-gradient(135deg, #6c757d 0%, #5a6268 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;
        margin-top: 1rem;
    }
    
    .btn-secondary:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
    }
    
    .social-login {
        text-align: center;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid #eee;
    }
    
    .social-buttons {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .social-btn {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.2rem;
        cursor: pointer;
        transition: all 0.3s;
    }
    
    .social-btn.facebook {
        background-color: #3b5998;
    }
    
    .social-btn.google {
        background-color: #db4437;
    }
    
    .social-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    
    .forgot-password {
        text-align: center;
        margin-top: 1rem;
    }
    
    .forgot-password a {
        color: var(--primary);
        text-decoration: none;
    }
    
    .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;
    }


  .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;
    }
    
.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;
    }

     .icon-square {
        display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 55px;
            height: 55px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 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;
        }
    .square-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    }
    
    .square-card-content {
        position: relative;
        z-index: 2;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .card-hover:hover {
        transform: translateY(-5px);
    }
    
    
    
    .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);
    }
    
   

         .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: white;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }
         .course-badge-compact {
            position: absolute;
            top: 12px;
            right: 12px;
            background: var(--accent);
            color: white;
            padding: 4px 8px;
            border-radius: 5px;
            font-size: 0.7rem;
            font-weight: bold;
            z-index: 10;
        }

    .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);
        }
        
        .course-title-compact {
            min-height: 45px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 0.7rem;
        }
         .course-title-compact .title {
            font-size: 1.1rem;
            line-height: 1.3;
        }
    
   .schedule-subtitle {
            font-size: 0.8rem;
            margin-bottom: 0.4rem;
            color: #e0e0e0 !important;
        }

    
    .square-card:hover .icon-square {
        transform: scale(1.1);
        background: rgba(255, 255, 255, 0.3);
    }
    
    .course-title-compact {
        font-weight: bold;
        margin-bottom: 1rem;
        transition: all 0.3s ease;
    }
    
    .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;
    }
    
    .cost-info-compact {
      background: rgba(0, 0, 0, 0.1);
            padding: 0.7rem;
            border-radius: 8px;
            margin-top: auto;
            font-size: 0.85rem;
    }
    
    .age-tag-compact {
        background: rgba(255, 255, 255, 0.2);
        padding: 0.3rem 0.8rem;
        border-radius: 15px;
        display: inline-block;
        font-size: 0.8rem;
        margin: 0.5rem 0;
        transition: all 0.3s ease;
    }
    
    .square-card:hover .age-tag-compact {
        background: rgba(255, 255, 255, 0.3);
    }
    
    .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: white;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
      /* 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; /* Más espacio interno entre columnas */
        }
    
    @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;
            }
        }
        
         /* 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: #47463e;
        font-size: 2rem;
    }

    .titulo p {
        font-size: 1.1rem;
        color: #555;
        max-width: 800px;
        margin: 0 auto;
        line-height: 1.6;
    }
        /* Mejoras  */
        .content.has-text-white p {
            margin-bottom: 0.5rem;
        }
        
        .cost-info-compact p {
            margin-bottom: 0.3rem;
        }
        
        .cost-info-compact p:last-child {
            margin-bottom: 0;
        }
        
