        /* ===== RESET ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            background: #ffffff;
            color: #1a1a1a;
            line-height: 1.6;
        }

        /* ===== NAVBAR FIJO ===== */
        .navbar-fps {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 9999;
            background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
            padding: 12px 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            transition: all 0.3s ease;
        }

        .navbar-fps .logo {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .navbar-fps .logo img {
            height: 50px;
            width: auto;
        }

        .navbar-fps .logo .fps-text {
            font-size: 1.3rem;
            font-weight: 800;
            color: #dc3545;
            text-shadow: 
                -1px -1px 0 #ffffff,
                1px -1px 0 #ffffff,
                -1px 1px 0 #ffffff,
                1px 1px 0 #ffffff,
                0 0 10px rgba(220, 53, 69, 0.3);
            letter-spacing: 1px;
        }

        .navbar-fps .btn-acceder {
            background: linear-gradient(135deg, #dc3545, #b02a37);
            color: #ffffff;
            padding: 10px 30px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.95rem;
            transition: all 0.3s ease;
            border: 2px solid transparent;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .navbar-fps .btn-acceder:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
            background: linear-gradient(135deg, #b02a37, #8b202a);
        }

        .navbar-fps .btn-acceder i {
            font-size: 1rem;
        }

        .navbar-fps .menu-toggle {
            display: none;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
            padding: 5px;
        }

        .navbar-fps .menu-toggle span {
            width: 28px;
            height: 3px;
            background: #ffffff;
            border-radius: 3px;
            transition: all 0.3s ease;
        }

        .navbar-fps .menu-toggle.active span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 6px);
        }

        .navbar-fps .menu-toggle.active span:nth-child(2) {
            opacity: 0;
        }

        .navbar-fps .menu-toggle.active span:nth-child(3) {
            transform: rotate(-45deg) translate(5px, -6px);
        }

        .navbar-fps .nav-links {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .navbar-fps .nav-links a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
            transition: all 0.3s ease;
            padding: 8px 15px;
            border-radius: 8px;
        }

        .navbar-fps .nav-links a:hover {
            color: #ffffff;
            background: rgba(255, 255, 255, 0.1);
        }

        .navbar-fps .nav-links a i {
            margin-right: 6px;
        }

        .main-content {
            margin-top: 74px;
        }

        /* ===== SECCIONES ===== */
        .section {
            padding: 60px 30px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .section:nth-child(even) {
            background: #f8f9fa;
        }

        .section-title {
            text-align: center;
            font-size: 2.2rem;
            font-weight: 700;
            color: #1a1a1a;
            margin-bottom: 30px;
            position: relative;
        }

        .section-title::after {
            content: '';
            display: block;
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, #dc3545, #1a1a1a);
            margin: 10px auto 0;
            border-radius: 4px;
        }

        .section-title .rojo {
            color: #dc3545;
        }

        .section-title .negro {
            color: #1a1a1a;
        }

        /* ===== BANNER ===== */
        .banner {
            width: 100%;
            height: 550px;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .banner .banner-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: contain;
            z-index: 1;
            background: #1a1a1a;
        }

        .banner::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.55);
            z-index: 2;
        }

        .banner-content {
            position: relative;
            z-index: 3;
            text-align: center;
            color: #ffffff;
            padding: 20px;
            max-width: 800px;
        }

        .banner-content h1 {
            font-size: 3.5rem;
            font-weight: 800;
            margin-bottom: 15px;
            letter-spacing: 2px;
        }

        .banner-content h1 .rojo {
            color: #dc3545;
        }

        .banner-content p {
            font-size: 1.3rem;
            max-width: 700px;
            margin: 0 auto;
            opacity: 0.9;
        }

        .banner-content .btn-banner {
            display: inline-block;
            margin-top: 25px;
            padding: 14px 40px;
            background: #dc3545;
            color: #ffffff;
            text-decoration: none;
            border-radius: 50px;
            font-weight: 600;
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }

        .banner-content .btn-banner:hover {
            background: transparent;
            border-color: #dc3545;
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
        }

        /* ===== LOGO FEDERACIÓN ===== */
        .logo-federacion {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 40px;
            flex-wrap: wrap;
            padding: 20px 0;
        }

        .logo-federacion img {
            max-width: 250;
            height: auto;
            filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.1));
            transition: all 0.3s ease;
        }

        .logo-federacion img:hover {
            transform: scale(1.05);
        }

        /* ===== DIRECTOR ===== */
        .director-card {
            display: flex;
            align-items: center;
            gap: 40px;
            background: rgba(255, 255, 255, 0.85);
            border-radius: 24px;
            padding: 40px;
            box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
            border: 1px solid rgba(0, 0, 0, 0.06);
            max-width: 700px;
            margin: 0 auto;
        }

.director-card .foto {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc3545, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 8px 30px rgba(220, 53, 69, 0.3);
    overflow: hidden; /* ← IMPORTANTE: oculta el exceso de la imagen */
}

.director-card .foto img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ← Ajusta la imagen sin deformarla */
    border-radius: 50%; /* ← Opcional: asegura bordes redondeados */
}

        .director-card .info h3 {
            font-size: 1.3rem;
            font-weight: 700;
            color: #1a1a1a;
            margin-bottom: 5px;
        }

        .director-card .info p {
            color: #6c7a8d;
            font-size: 0.95rem;
            line-height: 1.6;
        }

        .director-card .info .cargo {
            color: #dc3545;
            font-weight: 600;
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* ===== MATERIAS ===== */
        .materias-table {
            width: 100%;
            border-collapse: collapse;
            background: #ffffff;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
        }

        .materias-table thead {
            background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
            color: #ffffff;
        }

        .materias-table thead th {
            padding: 15px 20px;
            text-align: left;
            font-weight: 600;
            font-size: 0.95rem;
            letter-spacing: 0.5px;
        }

        .materias-table tbody td {
            padding: 12px 20px;
            border-bottom: 1px solid #e8edf5;
            font-size: 0.9rem;
            color: #1a1a1a;
        }

        .materias-table tbody tr:hover {
            background: #f8f9fa;
        }

        .materias-table tbody tr:last-child td {
            border-bottom: none;
        }

        .materias-table .sigla {
            font-weight: 700;
            color: #dc3545;
        }

        .materias-table .curso {
            font-weight: 600;
            color: #1a3a6b;
        }

        .materias-table .carga {
            font-weight: 600;
            color: #198754;
        }

        /* ===== PLANTEL DOCENTE ===== */
        .docente-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 15px;
        }

        .docente-item {
            background: #ffffff;
            padding: 15px 20px;
            border-radius: 12px;
            border-left: 4px solid #dc3545;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
            transition: all 0.3s ease;
        }

        .docente-item:hover {
            transform: translateX(5px);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        }

        .docente-item .grado {
            font-weight: 700;
            color: #dc3545;
            font-size: 0.8rem;
            display: block;
        }

        .docente-item .nombre {
            font-weight: 600;
            color: #1a1a1a;
            font-size: 0.95rem;
        }

        /* ===== PROGRAMA FPS ===== */
        .programa-content {
            display: flex;
            gap: 40px;
            align-items: center;
            flex-wrap: wrap;
        }

        .programa-content .texto {
            flex: 2;
            min-width: 300px;
        }

        .programa-content .texto p {
            margin-bottom: 15px;
            font-size: 1.05rem;
            color: #333;
        }

        .programa-content .texto ul {
            list-style: none;
            padding: 0;
        }

        .programa-content .texto ul li {
            padding: 10px 0;
            border-bottom: 1px solid #e8edf5;
            font-size: 0.95rem;
            color: #333;
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }

        .programa-content .texto ul li:last-child {
            border-bottom: none;
        }

        .programa-content .texto ul li i {
            color: #dc3545;
            margin-top: 3px;
            font-size: 1rem;
            min-width: 20px;
        }

        .programa-content .logo-programa {
            flex: 1;
            min-width: 200px;
            text-align: center;
        }

        .programa-content .logo-programa img {
            max-width: 200px;
            height: auto;
            filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.1));
        }

        /* ===== FOOTER ===== */
        .footer-fps {
            background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
            color: rgba(255, 255, 255, 0.8);
            padding: 40px 30px 20px;
            border-top: 3px solid #dc3545;
        }

        .footer-fps .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 40px;
        }

        .footer-fps .footer-content h4 {
            color: #ffffff;
            font-size: 1.1rem;
            margin-bottom: 15px;
            position: relative;
        }

        .footer-fps .footer-content h4::after {
            content: '';
            display: block;
            width: 40px;
            height: 3px;
            background: #dc3545;
            margin-top: 8px;
            border-radius: 3px;
        }

        .footer-fps .footer-content a {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            display: block;
            padding: 5px 0;
            transition: all 0.3s ease;
        }

        .footer-fps .footer-content a:hover {
            color: #dc3545;
            transform: translateX(5px);
        }

        .footer-fps .footer-content i {
            width: 25px;
            color: #dc3545;
        }

        .footer-fps .footer-bottom {
            text-align: center;
            padding-top: 20px;
            margin-top: 30px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.5);
        }

        .footer-fps .footer-bottom .rojo {
            color: #dc3545;
        }

        /* ===== BOTÓN SCROLL ===== */
        #scrollTopBtn {
            position: fixed;
            bottom: 40px;
            right: 40px;
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: linear-gradient(135deg, #dc3545, #b02a37);
            color: #ffffff;
            border: 2px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0 8px 30px rgba(220, 53, 69, 0.5);
            display: none;
            align-items: center;
            justify-content: center;
            font-size: 1.6rem;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            z-index: 9999;
        }

        #scrollTopBtn:hover {
            transform: translateY(-6px) scale(1.08);
            box-shadow: 0 12px 40px rgba(220, 53, 69, 0.7);
            background: linear-gradient(135deg, #b02a37, #8b202a);
        }

        #scrollTopBtn::after {
            content: "Volver arriba";
            position: absolute;
            right: 70px;
            background: rgba(26, 26, 26, 0.95);
            color: #fff;
            padding: 8px 16px;
            border-radius: 8px;
            font-size: 0.8rem;
            font-weight: 500;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }

        #scrollTopBtn:hover::after {
            opacity: 1;
            right: 80px;
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 992px) {
            .navbar-fps .menu-toggle {
                display: flex;
            }

            .navbar-fps .nav-links {
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                flex-direction: column;
                background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
                padding: 20px;
                display: none;
                border-top: 1px solid rgba(255, 255, 255, 0.1);
            }

            .navbar-fps .nav-links.active {
                display: flex;
            }

            .navbar-fps .nav-links a {
                width: 100%;
                padding: 12px 20px;
                text-align: center;
            }

            .navbar-fps .btn-acceder {
                padding: 8px 20px;
                font-size: 0.85rem;
            }

            .banner {
                height: 400px;
            }

            .banner-content h1 {
                font-size: 2.5rem;
            }

            .banner-content p {
                font-size: 1.1rem;
            }

            .director-card {
                flex-direction: column;
                text-align: center;
                padding: 30px;
            }

            .director-card .foto {
                width: 140px;
                height: 140px;
                font-size: 3rem;
            }

            .section {
                padding: 40px 20px;
            }

            .section-title {
                font-size: 1.8rem;
            }

            .programa-content {
                flex-direction: column-reverse;
            }

            .docente-grid {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            }

            .materias-table thead th,
            .materias-table tbody td {
                padding: 10px 12px;
                font-size: 0.8rem;
            }
        }

        @media (max-width: 576px) {
            .navbar-fps {
                padding: 10px 15px;
            }

            .navbar-fps .logo .fps-text {
                font-size: 1rem;
            }

            .navbar-fps .logo img {
                height: 35px;
            }

            .navbar-fps .btn-acceder {
                padding: 6px 15px;
                font-size: 0.75rem;
            }

            .navbar-fps .btn-acceder span {
                display: none;
            }

            .banner {
                height: 320px;
            }

            .banner-content h1 {
                font-size: 1.8rem;
            }

            .banner-content p {
                font-size: 0.95rem;
            }

            .banner-content .btn-banner {
                padding: 10px 25px;
                font-size: 0.85rem;
            }

            .section {
                padding: 30px 15px;
            }

            .section-title {
                font-size: 1.5rem;
            }

            .director-card {
                padding: 20px;
            }

            .director-card .foto {
                width: 110px;
                height: 110px;
                font-size: 2.5rem;
            }

            .docente-grid {
                grid-template-columns: 1fr;
            }

            .footer-fps {
                padding: 30px 15px 15px;
            }

            .footer-fps .footer-content {
                grid-template-columns: 1fr 1fr;
                gap: 20px;
            }

            #scrollTopBtn {
                width: 44px;
                height: 44px;
                bottom: 20px;
                right: 20px;
                font-size: 1.2rem;
            }

            #scrollTopBtn::after {
                display: none;
            }

            .materias-table {
                font-size: 0.7rem;
            }

            .materias-table thead th,
            .materias-table tbody td {
                padding: 6px 8px;
                font-size: 0.7rem;
            }
        }

        @media (max-width: 400px) {
            .footer-fps .footer-content {
                grid-template-columns: 1fr;
            }
        }