
/* =========================================
   PLANIFICACIÓN DE ESTUDIO PAES
   PreparaTuEnsayo
========================================= */

.study-page {
    min-height: 70vh;
    background: #F8FAFC;
    color: #172033;
    font-family: 'Inter', sans-serif;
}

.study-container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

/* HERO */

.study-hero {
    position: relative;
    overflow: hidden;
    padding: 28px 0 76px;
    background: linear-gradient(125deg, #12316B 0%, #1D4ED8 65%, #2563EB 100%);
    color: #FFFFFF;
}

.study-hero::before,
.study-hero::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    pointer-events: none;
}

.study-hero::before {
    width: 420px;
    height: 420px;
    top: -220px;
    right: -110px;
}

.study-hero::after {
    width: 300px;
    height: 300px;
    right: 80px;
    bottom: -230px;
}

.study-breadcrumb {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 48px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.study-breadcrumb a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}

.study-breadcrumb a:hover {
    color: #FFFFFF;
}

.study-breadcrumb span:last-child {
    color: #FFFFFF;
    font-weight: 600;
}

.study-hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.study-hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 23px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.13);
}

.study-hero-icon svg {
    width: 27px;
    height: 27px;
}

.study-eyebrow,
.study-section-label {
    display: inline-block;
    color: #BFDBFE;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.study-hero h1 {
    margin: 12px 0 15px;
    color: #FFFFFF;
    font-size: clamp(30px, 5vw, 45px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
}

.study-hero-content > p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.8;
}

.study-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.study-hero-tags span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 600;
}

.study-hero-tags svg {
    width: 14px;
    height: 14px;
}

/* CONTENIDO */

.study-content {
    padding: 50px 0 75px;
}

.study-heading,
.study-panel-heading,
.study-sessions-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.study-heading {
    margin-bottom: 25px;
}

.study-heading .study-section-label,
.study-panel .study-section-label,
.study-sessions-heading .study-section-label,
.study-tip .study-section-label {
    color: #2563EB;
}

.study-heading h2,
.study-panel-heading h2,
.study-sessions-heading h2 {
    margin: 8px 0;
    color: #172033;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.study-heading p,
.study-panel-heading p,
.study-sessions-heading p {
    margin: 0;
    color: #64748B;
    font-size: 12px;
    line-height: 1.8;
}

.study-heading-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    border: 1px solid #DBEAFE;
    border-radius: 15px;
    background: #EFF6FF;
    color: #2563EB;
}

.study-heading-icon svg {
    width: 25px;
    height: 25px;
}

/* ESTADÍSTICAS */

.study-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.study-stat-card {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 19px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #FFFFFF;
}

.study-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 11px;
}

.study-stat-icon svg {
    width: 20px;
    height: 20px;
}

.study-stat-icon.blue {
    background: #EFF6FF;
    color: #2563EB;
}

.study-stat-icon.violet {
    background: #F5F3FF;
    color: #7C3AED;
}

.study-stat-icon.green {
    background: #ECFDF5;
    color: #059669;
}

.study-stat-card > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.study-stat-card span {
    color: #64748B;
    font-size: 10px;
}

.study-stat-card strong {
    color: #172033;
    font-size: 22px;
    font-weight: 800;
}

/* PANELES */

.study-panel {
    padding: 25px;
    border: 1px solid #E2E8F0;
    border-radius: 13px;
    background: #FFFFFF;
}

.study-panel-heading {
    margin-bottom: 23px;
}

.study-panel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #EFF6FF;
    color: #2563EB;
}

.study-panel-icon svg {
    width: 20px;
    height: 20px;
}

/* FORMULARIO */

.study-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.study-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.study-field-full {
    grid-column: 1 / -1;
}

.study-field label {
    color: #334155;
    font-size: 11px;
    font-weight: 700;
}

.study-field input,
.study-field select,
.study-field textarea {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 12px 13px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    outline: none;
    background: #FFFFFF;
    color: #172033;
    font-family: inherit;
    font-size: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.study-field input,
.study-field select {
    min-height: 43px;
}

.study-field textarea {
    min-height: 76px;
    resize: vertical;
    line-height: 1.6;
}

.study-field input:focus,
.study-field select:focus,
.study-field textarea:focus {
    border-color: #60A5FA;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.13);
}

.study-field input::placeholder,
.study-field textarea::placeholder {
    color: #94A3B8;
}

.study-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 21px;
    padding-top: 18px;
    border-top: 1px solid #F1F5F9;
}

.study-form-footer > p {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: #64748B;
    font-size: 10px;
    line-height: 1.6;
}

.study-form-footer > p svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.study-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    flex-shrink: 0;
    padding: 0 16px;
    border: none;
    border-radius: 8px;
    background: #1D4ED8;
    color: #FFFFFF;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.study-primary-button:hover {
    transform: translateY(-1px);
    background: #12316B;
}

.study-primary-button svg {
    width: 15px;
    height: 15px;
}

.study-form-message {
    min-height: 16px;
    margin: 12px 0 0;
    color: #059669;
    font-size: 11px;
}

.study-form-message.error {
    color: #DC2626;
}

/* DISTRIBUCIÓN */

.study-distribution {
    margin-top: 20px;
}

.study-distribution-list {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.study-muted {
    margin: 0;
    color: #94A3B8;
    font-size: 12px;
}

.study-distribution-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.study-distribution-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #334155;
    font-size: 11px;
}

.study-distribution-info strong {
    color: #172033;
    font-weight: 750;
}

.study-progress-track {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 20px;
    background: #F1F5F9;
}

.study-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: #2563EB;
    transition: width 0.25s ease;
}

/* SESIONES */

.study-sessions-section {
    margin-top: 45px;
}

.study-sessions-heading {
    margin-bottom: 19px;
}

.study-clear-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 11px;
    border: 1px solid #FECACA;
    border-radius: 8px;
    background: #FFFFFF;
    color: #DC2626;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.study-clear-button:hover {
    background: #FEF2F2;
}

.study-clear-button svg {
    width: 14px;
    height: 14px;
}

.study-sessions-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.study-session-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 17px;
    border: 1px solid #E2E8F0;
    border-radius: 11px;
    background: #FFFFFF;
}

.study-session-main {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-width: 0;
}

.study-session-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 51px;
    flex-shrink: 0;
    border-radius: 9px;
    background: #EFF6FF;
    color: #1D4ED8;
}

.study-session-date strong {
    font-size: 19px;
    line-height: 1;
}

.study-session-date span {
    margin-top: 4px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.study-session-details {
    min-width: 0;
}

.study-session-details h3 {
    margin: 1px 0 5px;
    overflow-wrap: anywhere;
    color: #172033;
    font-size: 13px;
    font-weight: 750;
}

.study-session-details p {
    margin: 0;
    overflow-wrap: anywhere;
    color: #64748B;
    font-size: 10px;
    line-height: 1.7;
}

.study-session-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 7px;
}

.study-session-meta span {
    color: #64748B;
    font-size: 10px;
}

.study-session-subject {
    display: inline-block;
    margin-bottom: 5px;
    color: #2563EB;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.study-delete-session {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #FFFFFF;
    color: #94A3B8;
    cursor: pointer;
}

.study-delete-session:hover {
    border-color: #FECACA;
    background: #FEF2F2;
    color: #DC2626;
}

.study-delete-session svg {
    width: 16px;
    height: 16px;
}

/* ESTADO VACÍO */

.study-empty {
    padding: 42px 20px;
    border: 1px dashed #CBD5E1;
    border-radius: 12px;
    background: #FFFFFF;
    text-align: center;
}

.study-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 51px;
    height: 51px;
    margin: 0 auto 14px;
    border-radius: 14px;
    background: #EFF6FF;
    color: #2563EB;
}

.study-empty-icon svg {
    width: 23px;
    height: 23px;
}

.study-empty h3 {
    margin: 0 0 7px;
    color: #172033;
    font-size: 14px;
}

.study-empty p {
    margin: 0;
    color: #64748B;
    font-size: 11px;
}

/* CONSEJO */

.study-tip {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 25px;
    padding: 23px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #FFFFFF;
}

.study-tip-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 11px;
    background: #EFF6FF;
    color: #2563EB;
}

.study-tip-icon svg {
    width: 21px;
    height: 21px;
}

.study-tip h2 {
    margin: 6px 0 7px;
    color: #172033;
    font-size: 15px;
    font-weight: 800;
}

.study-tip p {
    margin: 0;
    color: #64748B;
    font-size: 11px;
    line-height: 1.8;
}

/* PRIVACIDAD Y VOLVER */

.study-privacy-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 17px;
    padding: 14px;
    border: 1px solid #E2E8F0;
    border-radius: 9px;
    background: #F1F5F9;
}

.study-privacy-note svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
    color: #64748B;
}

.study-privacy-note p {
    margin: 0;
    color: #64748B;
    font-size: 10px;
    line-height: 1.7;
}

.study-back-link {
    margin-top: 28px;
}

.study-back-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1D4ED8;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.study-back-link a:hover {
    color: #12316B;
}

.study-back-link svg {
    width: 16px;
    height: 16px;
}

/* RESPONSIVE */

@media (max-width: 760px) {
    .study-hero {
        padding: 23px 0 58px;
    }

    .study-breadcrumb {
        margin-bottom: 35px;
        font-size: 10px;
    }

    .study-content {
        padding: 40px 0 55px;
    }

    .study-stats {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .study-stat-card {
        padding: 14px;
    }

    .study-stat-card strong {
        font-size: 19px;
    }
}

@media (max-width: 520px) {
    .study-container {
        width: min(100% - 30px, 1120px);
    }

    .study-hero h1 {
        font-size: 30px;
        letter-spacing: -1px;
    }

    .study-hero-content > p {
        font-size: 13px;
    }

    .study-heading h2,
    .study-panel-heading h2,
    .study-sessions-heading h2 {
        font-size: 20px;
    }

    .study-heading-icon {
        width: 45px;
        height: 45px;
    }

    .study-panel {
        padding: 18px;
    }

    .study-form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .study-field-full {
        grid-column: auto;
    }

    .study-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .study-primary-button {
        width: 100%;
    }

    .study-sessions-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .study-session-card {
        padding: 13px;
    }

    .study-session-main {
        gap: 10px;
    }

    .study-session-date {
        width: 42px;
        height: 47px;
    }

    .study-tip {
        padding: 17px;
        gap: 11px;
    }
}
