        :root {
            --uaz-blue: #004a87; /* Azul institucional */
            --uaz-gold: #d4a017;
            --light-gray: #f4f4f4;
            --text-color: #333;
            --semi-color: #2c3e50; /* Color diferenciador para semiescolarizada */
            --whatsapp-green: #25D366; /* Color oficial 
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 0;
            padding: 0;
            color: var(--text-color);
            background-color: #fff;
            line-height: 1.6;
        }

        /* --- HEADER (Fondo Blanco) --- */
        header {
            background-color: white;
            color: var(--text-color);
            padding: 1.5rem 0;
            border-bottom: 5px solid var(--uaz-blue);
            position: relative;
        }

        header::after {
            content: '';
            display: block;
            height: 4px;
            background-color: var(--uaz-gold);
            width: 100%;
            position: absolute;
            bottom: -9px;
            left: 0;
        }

        .header-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            padding: 0 20px;
            flex-wrap: wrap;
        }

        .logo-box {
            flex: 0 0 auto;
            margin-right: 30px;
        }

        .logo-box img {
            height: 110px;
            display: block; 
        }

        .header-text {
            flex: 1;
        }

        .header-text h1 {
            margin: 0;
            font-size: 1.5rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--uaz-blue);
        }

        .header-text h2 {
            margin: 2px 0 0;
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--uaz-gold);
        }

        .header-description {
            margin-top: 10px;
            font-size: 0.95rem;
            color: #555;
            max-width: 800px;
        }

        .imgsmall {
          max-width: 50pt; /* Ensures the image scales down if needed */
          height: auto;    /* Maintains the original aspect ratio */
        }

        /* --- NAV --- */
        nav {
            background-color: #003366;
            position: sticky;
            top: 0;
            z-index: 100;
            margin-top: 10px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

        nav ul {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
        }

        nav ul li a {
            display: block;
            padding: 15px 25px;
            color: white;
            text-decoration: none;
            font-weight: bold;
            transition: background 0.3s;
            border-right: 1px solid rgba(255,255,255,0.1);
        }

        nav ul li a:hover {
            background-color: var(--uaz-gold);
            color: var(--uaz-blue);
        }

        /* --- CONTENT --- */
        .container {
            max-width: 1100px;
            margin: 50px auto;
            padding: 0 20px;
        }

        section {
            margin-bottom: 70px;
            scroll-margin-top: 100px;
        }

        h2.section-title {
            color: var(--uaz-blue);
            border-bottom: 3px solid var(--uaz-gold);
            padding-bottom: 10px;
            margin-bottom: 30px;
            font-size: 2rem;
        }

        /* --- MODALIDADES CARDS --- */
        .modalidades-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }

        .modalidad-card {
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 25px;
            background: #fff;
            box-shadow: 0 4px 10px rgba(0,0,0,0.05);
            transition: transform 0.3s;
        }

        .modalidad-card:hover {
            transform: translateY(-5px);
        }

        .modalidad-card h3 {
            margin-top: 0;
            font-size: 1.5rem;
            color: var(--uaz-blue);
            border-bottom: 2px solid #eee;
            padding-bottom: 15px;
        }

        .modalidad-card.semi h3 {
            color: var(--semi-color);
        }

        .schedule-badge {
            display: inline-block;
            background-color: #e3f2fd;
            color: var(--uaz-blue);
            padding: 5px 10px;
            border-radius: 4px;
            font-weight: bold;
            font-size: 0.9rem;
            margin-bottom: 15px;
        }
        
        .modalidad-card.semi .schedule-badge {
            background-color: #eceff1;
            color: var(--semi-color);
        }

        /* --- STEPS (Timeline) --- */
        .step {
            display: flex;
            margin-bottom: 25px;
            background: var(--light-gray);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            border-left: 5px solid var(--uaz-blue);
        }

        .step-number {
            background-color: white;
            color: var(--uaz-blue);
            font-size: 2rem;
            font-weight: bold;
            padding: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 60px;
            border-right: 1px solid #ddd;
        }

        .step-content {
            padding: 20px;
            flex: 1;
        }

        .step-content h3 {
            margin-top: 0;
            color: var(--uaz-blue);
        }

        /* --- FORM GUIDE (Inside Step 1) --- */
        .form-guide-container {
            margin-top: 15px;
            border: 1px solid #cce5ff;
            background-color: #fff;
            border-radius: 5px;
        }

        .form-guide-summary {
            padding: 10px 15px;
            cursor: pointer;
            background-color: #e8f4fd;
            color: var(--uaz-blue);
            font-weight: bold;
            outline: none;
        }

        .form-guide-content {
            padding: 15px;
        }

        .guide-list {
            margin: 0;
            padding-left: 20px;
        }

        .guide-list li {
            margin-bottom: 8px;
        }

        .important-note {
            background-color: #fff3cd;
            color: #856404;
            padding: 8px;
            border-radius: 4px;
            font-size: 0.9rem;
            margin-top: 10px;
            border-left: 4px solid #ffeeba;
        }

        .btn {
            display: inline-block;
            background-color: var(--uaz-blue);
            color: white;
            padding: 10px 25px;
            text-decoration: none;
            border-radius: 5px;
            font-weight: bold;
            margin-top: 15px;
            transition: all 0.2s;
        }

        .btn:hover {
            background-color: var(--uaz-gold);
            color: var(--uaz-blue);
            transform: translateY(-2px);
        }

        /* --- COSTS TABLE --- */
        .costs-table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 20px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }

        .costs-table th, .costs-table td {
            border: 1px solid #ddd;
            padding: 15px;
            text-align: left;
        }

        .costs-table th {
            background-color: var(--uaz-blue);
            color: white;
            font-weight: 600;
        }

        .costs-table tr:nth-child(even) {
            background-color: #f9f9f9;
        }

        /* --- CURRICULUM (Reticula) --- */
        .curriculum-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
        }

        .semester-card {
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            padding: 0;
            background: white;
            box-shadow: 0 4px 6px rgba(0,0,0,0.04);
            transition: transform 0.2s;
        }

        .semester-card:hover {
            transform: translateY(-5px);
        }

        .semester-card h4 {
            background-color: var(--uaz-blue);
            color: white;
            margin: 0;
            padding: 15px;
            text-align: center;
            border-radius: 8px 8px 0 0;
            font-size: 1.1rem;
        }

        .semester-card ul {
            padding: 20px 20px 20px 35px;
            margin: 0;
        }

        .semester-card li {
            margin-bottom: 8px;
            font-size: 0.9rem;
            color: #444;
        }

        /* --- CONTACTO --- */
        .contact-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 10px;
        }
        
        .contact-card {
            background: #fff;
            padding: 15px;
            border-radius: 8px;
            border: 1px solid #eee;
            text-align: center;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }

        .contact-icon {
            font-size: 2.5rem;
            margin-bottom: 15px;
            display: block;
        }

        .btn-whatsapp {
            background-color: var(--whatsapp-green);
            color: white;
        }
        
        .btn-whatsapp:hover {
            background-color: #128C7E;
            color: white;
        }

        .btn-call {
            background-color: var(--uaz-blue);
            color: white;
        }
        
        .btn-call:hover {
            background-color: var(--uaz-blue);
            color: white;
        }

        /* --- FOOTER --- */
        footer {
            /*background-color: #222;
            color: #ccc;*/
            background-color: #003366;
            color: white;
            text-align: center;
            padding: 20px 0;
            margin-top: 20px;
            border-top: 5px solid var(--uaz-gold);
        }

        .alert-box {
            background-color: #e3f2fd;
            color: var(--uaz-blue);
            border-left: 5px solid var(--uaz-gold);
            padding: 20px;
            border-radius: 4px;
            margin-bottom: 40px;
        }

        @media (max-width: 768px) {
            .header-container {
                flex-direction: column;
                text-align: center;
            }
            .logo-box {
                margin: 0 0 10px 0;
            }
            .step {
                flex-direction: column;
            }
            .step-number {
                width: 100%;
                padding: 10px;
                border-right: none;
                border-bottom: 1px solid #ddd;
            }
        }