/* =========================================================
   PROGRAMAS.CSS
   Instituto Técnico
   Asociación Escolar María Goretti

   Sistema de diseño para páginas de programa
   (héroe, tarjetas, plan de estudios, jornadas, etc.).

   Reutiliza los tokens de color/sombra/radio definidos en
   css/style.css (--primary-blue, --gold, --shadow-*, etc.),
   así que este archivo debe enlazarse siempre DESPUÉS de
   css/style.css.
========================================================= */

html {
    scroll-behavior: smooth;
}

/* =========================================
   HERO / PORTADA
========================================= */

.programa-hero {
    min-height: 600px;

    padding: 110px 20px 80px;

    position: relative;
    display: flex;
    align-items: center;

    overflow: hidden;

    background-color: var(--primary-blue);

    /* Imagen sin fondo */
    background-image: url("../ImagenesA/portada.jpg");
    background-repeat: no-repeat;


    background-size: auto 115%;
    background-position: right center;
}

/* Fotografías propias por programa */

.programa-hero-comercial.programa-hero {
    background-image: url("../ImagenesA/asesor-comercial.png");
}

.programa-hero-infancia.programa-hero {
    background-image: url("../ImagenesA/primera-infancia.png");
}

.programa-hero-administrativo.programa-hero {
    background-image: url("../ImagenesA/auxiliar-administrativo.png");
}


.programa-hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(90deg,
            var(--primary-blue) 0%,
            rgba(18, 59, 102, 0.98) 25%,
            rgba(18, 59, 102, 0.80) 40%,
            rgba(18, 59, 102, 0.25) 62%,
            rgba(18, 59, 102, 0) 78%);

    z-index: 1;
}


/* =========================================
   HERO TEMÁTICO (sin foto)

   Para futuros programas que todavía no cuenten
   con una fotografía propia: degradado de marca +
   patrón decorativo de íconos (.hero-icon-pattern).
========================================= */

.programa-hero-tematico.programa-hero {
    background:
        radial-gradient(circle at 82% 24%,
            var(--primary-blue-light) 0%,
            var(--primary-blue) 45%,
            var(--primary-blue-dark) 100%);
}

.hero-icon-pattern {
    position: absolute;
    inset: 0;

    z-index: 1;

    overflow: hidden;

    pointer-events: none;
}

.hero-icon-pattern i {
    position: absolute;

    color: rgba(255, 255, 255, 0.09);
}

.hero-icon-pattern i.icon-acento {
    color: rgba(199, 154, 59, 0.20);
}

.hero-icon-pattern .icon-1 {
    top: 6%;
    right: 6%;

    font-size: clamp(7rem, 13vw, 12rem);

    transform: rotate(-6deg);
}

.hero-icon-pattern .icon-2 {
    top: 60%;
    right: 30%;

    font-size: 5.5rem;

    transform: rotate(10deg);
}

.hero-icon-pattern .icon-3 {
    top: 20%;
    right: 36%;

    font-size: 3.4rem;

    transform: rotate(-14deg);
}

.hero-icon-pattern .icon-4 {
    bottom: 8%;
    right: 12%;

    font-size: 6rem;

    transform: rotate(8deg);
}

.hero-icon-pattern .icon-5 {
    top: 66%;
    right: 5%;

    font-size: 4rem;

    transform: rotate(-10deg);
}

.hero-icon-pattern .icon-6 {
    top: 4%;
    right: 32%;

    font-size: 2.8rem;

    transform: rotate(16deg);
}

.hero-icon-pattern .icon-7 {
    bottom: 24%;
    right: 46%;

    font-size: 2.4rem;

    transform: rotate(-18deg);
}

@media (max-width: 768px) {

    .hero-icon-pattern .icon-1 {
        font-size: 8rem;

        top: 4%;
        right: -2%;
    }

    .hero-icon-pattern .icon-6,
    .hero-icon-pattern .icon-7 {
        display: none;
    }

    .hero-icon-pattern .icon-2,
    .hero-icon-pattern .icon-3,
    .hero-icon-pattern .icon-4,
    .hero-icon-pattern .icon-5 {
        font-size: 3rem;
    }
}

.programa-hero-content {
    position: relative;

    z-index: 2;

    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    text-align: left;

    color: white;

    padding-left: 30px;
}

/* =========================================
   ICONO DEL PROGRAMA
========================================= */

.programa-hero-icon {
    width: 58px;
    height: 58px;

    margin: 0 0 22px;

    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(199, 154, 59, 0.18);

    border: 1px solid rgba(199, 154, 59, 0.55);

    font-size: 26px;

    color: var(--gold);
}

/* =========================================
   TITULO PRINCIPAL
========================================= */

.programa-hero h1 {
    max-width: 650px;

    font-size: clamp(2.4rem, 5vw, 4.2rem);

    font-weight: 800;

    line-height: 1.08;

    margin-bottom: 22px;

    letter-spacing: -1px;

    color: white;

    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.20);
}

/*
   Segunda línea del título
*/

.programa-hero h1 span {
    display: block;

    color: var(--white);

    margin-top: 5px;
}

/* =========================================
   DESCRIPCIÓN DEL HERO
========================================= */

.programa-hero p {
    max-width: 620px;

    margin: 0 0 32px;

    font-size: 1.05rem;

    line-height: 1.7;

    color: rgba(255, 255, 255, 0.92);
}

/* =========================================
   BOTONES
========================================= */

.btn-programa {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 14px 28px;

    border-radius: 50px;

    text-decoration: none;

    font-family: 'Poppins', sans-serif;

    font-weight: 600;

    transition: all 0.3s ease;

    cursor: pointer;
}

/* Botón principal */

.btn-programa-primary {
    background: var(--gold);

    color: black;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-programa-primary:hover {
    background: var(--white);

    color: white;

    transform: translateY(-3px);
}

/* Botón secundario */

.btn-programa-secondary {
    margin-left: 10px;

    border: 2px solid rgba(255, 255, 255, 0.9);

    color: white;

    background: rgba(255, 255, 255, 0.05);
}

.btn-programa-secondary:hover {
    background: white;

    color: var(--primary-blue);

    transform: translateY(-3px);
}

/* =========================================
   SECCIONES
========================================= */

.programa-section {
    padding: 90px 0;
}

.programa-section.bg-light-custom {
    background: var(--background);
}

/* =========================================
   ETIQUETA DE SECCIÓN
========================================= */

.section-label-programa {
    display: inline-block;

    margin-bottom: 12px;

    font-size: 0.8rem;

    font-weight: 700;

    letter-spacing: 2px;

    color: var(--gold);
}

/* =========================================
   TITULOS DE SECCIÓN
========================================= */

.programa-title {
    color: var(--primary-blue);

    font-size: clamp(1.8rem, 4vw, 2.7rem);

    font-weight: 700;

    margin-bottom: 20px;
}

.programa-line {
    width: 65px;

    height: 4px;

    background: var(--gold);

    margin-bottom: 25px;
}

/* =========================================
   TEXTO GENERAL
========================================= */

.programa-text {
    color: #555;

    line-height: 1.8;

    font-size: 1rem;
}

/* =========================================
   TARJETAS DE INFORMACIÓN
========================================= */

.info-programa-card {
    height: 100%;

    padding: 30px 25px;

    background: white;

    border-radius: 15px;

    box-shadow: var(--shadow-sm);

    text-align: center;

    transition: all 0.3s ease;
}

.info-programa-card:hover {
    transform: translateY(-7px);
}

.info-programa-icon {
    width: 65px;
    height: 65px;

    margin: 0 auto 18px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--background-soft);

    color: var(--primary-blue-light);

    font-size: 25px;
}

.info-programa-card h3 {
    font-size: 1.05rem;

    color: var(--primary-blue);

    margin-bottom: 10px;
}

.info-programa-card p {
    margin: 0;

    color: #666;
}

/* =========================================
   PERFIL DE EGRESO
========================================= */

.perfil-box {
    background: var(--primary-blue);

    color: white;

    padding: 45px;

    border-radius: 20px;

    box-shadow: var(--shadow-sm);
}

.perfil-box h2 {
    color: white;
}

.perfil-box p {
    color: rgba(255, 255, 255, 0.88);

    line-height: 1.8;
}

.perfil-list {
    list-style: none;

    padding: 0;

    margin: 25px 0 0;
}

.perfil-list li {
    margin-bottom: 15px;

    display: flex;

    align-items: flex-start;

    gap: 12px;

    color: rgba(255, 255, 255, 0.9);
}

.perfil-list i {
    color: var(--gold);

    margin-top: 4px;
}

/* =========================================
   COMPETENCIAS
========================================= */

.competencia-card {
    height: 100%;

    padding: 30px;

    background: white;

    border-radius: 15px;

    box-shadow: var(--shadow-sm);

    border-top: 4px solid var(--gold);

    transition: all 0.3s ease;
}

.competencia-card:hover {
    transform: translateY(-5px);
}

.competencia-card h3 {
    color: var(--primary-blue);

    font-size: 1.15rem;

    margin-bottom: 15px;
}

.competencia-card h3 i {
    color: var(--gold);

    margin-right: 8px;
}

.competencia-card p {
    color: #666;

    line-height: 1.7;

    margin-bottom: 0;
}

/* =========================================
   PLAN DE ESTUDIOS
========================================= */

.plan-card {
    background: white;

    padding: 35px;

    border-radius: 18px;

    box-shadow: var(--shadow-sm);
}

.semestre-title {
    color: var(--primary-blue);

    font-size: 1.4rem;

    font-weight: 700;

    margin-top: 25px;

    margin-bottom: 10px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    border-bottom: 2px solid var(--gold);

    padding-bottom: 10px;
}

.semestre-title:first-child {
    margin-top: 0;
}

.horas-semestre {
    font-size: 0.9rem;

    background: var(--gold-light);

    color: var(--primary-blue);

    padding: 6px 12px;

    border-radius: 20px;
}

.plan-item {
    display: flex;

    align-items: flex-start;

    gap: 15px;

    padding: 18px 0;

    border-bottom: 1px solid #eeeeee;
}

.plan-item:last-child {
    border-bottom: none;
}

.plan-number {
    min-width: 42px;

    height: 42px;

    border-radius: 50%;

    background: var(--primary-blue);

    color: white;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 700;
}

.plan-item h4 {
    font-size: 1rem;

    color: var(--primary-blue);

    margin-bottom: 5px;
}

.plan-item p {
    margin: 0;

    color: #666;
}

.total-programa {
    margin-top: 25px;

    padding: 18px;

    background: var(--primary-blue);

    color: white;

    border-radius: 12px;

    text-align: center;

    font-family: 'Poppins', sans-serif;

    font-weight: 700;

    font-size: 1.1rem;
}

/* =========================================
   REQUISITOS
========================================= */

.requisitos-card {
    background: var(--background-soft);

    border-radius: 20px;

    padding: 40px;
}

.requisito {
    display: flex;

    gap: 15px;

    margin-bottom: 20px;
}

.requisito:last-child {
    margin-bottom: 0;
}

.requisito i {
    color: var(--primary-blue-light);

    font-size: 20px;

    margin-top: 3px;
}

.requisito p {
    margin: 0;

    line-height: 1.6;
}

/* =========================================
   HORARIOS
========================================= */

.horario-card {
    background: white;

    border-radius: 15px;

    padding: 30px;

    box-shadow: var(--shadow-sm);

    height: 100%;

    border-top: 4px solid var(--gold);
}

.horario-card h3 {
    color: var(--primary-blue);

    font-size: 1.2rem;

    margin-bottom: 18px;
}

.horario-card p {
    margin-bottom: 10px;

    color: #555;

    line-height: 1.6;
}

.horario-card i {
    color: var(--gold);

    margin-right: 8px;
}

/* =========================================
   PERFIL OCUPACIONAL
========================================= */

.ocupacional-card {
    height: 100%;

    padding: 30px;

    background: white;

    border-radius: 15px;

    box-shadow: var(--shadow-sm);

    border-top: 4px solid var(--gold);
}

.ocupacional-card h3 {
    color: var(--primary-blue);

    font-size: 1.15rem;

    margin-bottom: 15px;
}

.ocupacional-card p {
    color: #666;

    line-height: 1.7;

    margin-bottom: 0;
}

/* =========================================
   CTA FINAL
========================================= */

.programa-cta {
    padding: 90px 20px;

    background:
        linear-gradient(135deg,
            var(--primary-blue),
            var(--primary-blue-light));

    text-align: center;

    color: white;
}

.programa-cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);

    font-weight: 700;

    margin-bottom: 20px;
}

.programa-cta p {
    max-width: 750px;

    margin: 0 auto 30px;

    color: rgba(255, 255, 255, 0.9);

    line-height: 1.7;
}

/* =========================================
   BOTÓN VOLVER
========================================= */

.volver-programas {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 30px;

    color: var(--primary-blue-light);

    text-decoration: none;

    font-weight: 600;
}

.volver-programas:hover {
    color: var(--gold);
}

/* =========================================
   RESPONSIVE - TABLET
========================================= */

@media (max-width: 992px) {

    .programa-hero {
        min-height: 620px;

        background-size: auto 105%;

        background-position: right center;
    }

    .programa-hero::before {
        background:
            linear-gradient(90deg,
                var(--primary-blue) 0%,
                rgba(18, 59, 102, 0.97) 32%,
                rgba(18, 59, 102, 0.75) 50%,
                rgba(18, 59, 102, 0.20) 72%,
                rgba(18, 59, 102, 0) 100%);
    }

    .programa-hero-content {
        padding-left: 20px;
    }

    .programa-hero h1 {
        max-width: 570px;
    }

    .programa-hero p {
        max-width: 530px;
    }
}

/* =========================================
   RESPONSIVE - CELULAR
========================================= */

@media (max-width: 768px) {

    .programa-hero {
        min-height: 680px;

        padding: 120px 20px 70px;

        /*
           La imagen baja para que
           el texto quede arriba
        */
        background-size: auto 75%;

        background-position: center bottom;
    }

    .programa-hero::before {
        background:
            linear-gradient(180deg,
                rgba(18, 59, 102, 1) 0%,
                rgba(18, 59, 102, 0.97) 42%,
                rgba(18, 59, 102, 0.55) 70%,
                rgba(18, 59, 102, 0.10) 100%);
    }

    .programa-hero-content {
        padding-left: 10px;

        padding-right: 10px;

        text-align: center;
    }

    .programa-hero-icon {
        margin: 0 auto 20px;
    }

    .programa-hero h1 {
        max-width: 100%;

        font-size: clamp(2rem, 9vw, 3rem);

        line-height: 1.1;

        letter-spacing: -0.5px;
    }

    .programa-hero p {
        max-width: 100%;

        font-size: 0.95rem;

        margin-left: auto;

        margin-right: auto;
    }

    .btn-programa {
        width: 100%;

        margin: 5px 0;
    }

    .btn-programa-secondary {
        margin-left: 0;
    }

    .programa-section {
        padding: 65px 0;
    }

    .perfil-box,
    .requisitos-card {
        padding: 30px 22px;
    }

    .semestre-title {
        flex-direction: column;

        align-items: flex-start;

        gap: 8px;
    }
}

/* =========================================
   RESPONSIVE - CELULARES PEQUEÑOS
========================================= */

@media (max-width: 480px) {

    .programa-hero {
        min-height: 650px;

        padding-top: 105px;

        background-size: auto 65%;
    }

    .programa-hero h1 {
        font-size: 2rem;
    }

    .programa-hero p {
        font-size: 0.9rem;

        line-height: 1.6;
    }

    .programa-hero-icon {
        width: 52px;

        height: 52px;

        font-size: 23px;
    }

    .btn-programa {
        padding: 13px 20px;

        font-size: 0.9rem;
    }

    .programa-section {
        padding: 55px 0;
    }

    .plan-card {
        padding: 25px 20px;
    }

    .competencia-card,
    .ocupacional-card,
    .horario-card {
        padding: 25px 20px;
    }
}
