* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
    overflow-x: hidden !important;
}

.screen {
    display: none;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
}

.screen.active {
    display: flex;
}

/* La landing no debe ser fixed si queremos hacer scroll */
#landing.screen {
    position: relative;
    height: auto;
    min-height: 100vh;
}

/* ============================================================================
   BARRA DE NAVEGACIÓN
   ============================================================================ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: #000000;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 10px 20px;
}

.navbar-logo-text {
    display: block;
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    user-select: none;
    margin-left: 1rem;
}

.navbar a {
    text-decoration: none;
}

.navbar-logo-text:hover {
    opacity: 0.7;
    transform: scale(1.05);
}

.logotipo {
    display: block;
    width: 266px;
    height: 80px;
}

.top-nav {
    display: flex;
    align-items: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.navlist {
    text-align: center;
    align-items: center;
    padding: 1em 1em;
    margin: 1em;
    display: flex;
    color: #ffffff;
    float: right;
    font-weight: 500;
    font-size: large;
    border: solid 2px #000000;
    border-top: none;
    border-bottom: none;
    text-decoration: none;
}

.navlist:hover {
    color: #cccccc;
    border: solid 2px #000000;
    border-top: none;
    border-bottom: none;
}

.navlist-especial {
    text-align: center;
    padding: 0.5em 1em;
    margin: auto 1em;
    display: inline;
    float: right;
    color: #000000;
    background-color: #ffffff;
    border-color: #ffffff;
    border: 0.3em;
    border-style: solid;
    border-radius: 0.6em;
    font-size: large;
    font-weight: 600;
    text-decoration: none;
}

.navlist-especial:hover {
    color: #000000;
    background-color: #f5f5f5;
}

.nav-item {
    display: inline;
    list-style-type: none;
}

.hamburger-menu {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: #ffffff;
}

@media (max-width: 767px) {
    .hamburger-menu {
        display: block;
    }

    .top-nav {
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: #000000;
        position: fixed;
        top: 60px;
        left: 0;
        transition: transform 0.3s ease-in-out;
        transform: translateY(-100%);
    }

    .top-nav.show {
        display: flex;
        transform: translateY(0);
        padding: 0;
        margin-top: 0;
    }

    .nav-item {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin: 20px 0;
        width: 100%;
        list-style: none;
        font-size: 1.2em;
        color: #ffffff;
        transition: color 0.3s ease;
    }

    .nav-item a.navlist {
        display: inline-block;
        width: auto;
        text-align: center;
        padding: 0px;
        color: #ffffff;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .nav-item a.navlist:hover {
        color: #cccccc;
    }

    .navlist-especial {
        display: inline-block;
        width: auto;
        text-align: center;
        margin: 0;
        padding: 10px 20px;
        background-color: #ffffff;
        color: #000000;
        text-decoration: none;
        border-radius: 5px;
        transition: background-color 0.3s ease;
    }

    .navlist-especial:hover {
        background-color: #f5f5f5;
    }

    .navbar-logo-text {
        font-size: 1rem;
    }

    .logotipo {
        width: 133px;
        height: 40px;
        margin-top: auto;
        margin-bottom: auto;
        margin-left: auto;
        margin-right: auto;
        background-color: #000000;
    }
}

@media (max-height: 400px) {
    .nav-item {
        margin-top: 0px;
        margin-bottom: 0px;
    }
}

@media (min-width: 768px) and (max-width: 1920px) {
    .navbar-logo-text {
        font-size: 1.1rem;
    }

    .logotipo {
        width: 200px;
        height: 60px;
    }

    .navlist {
        padding: 1em 0.5em;
        margin: 0.5em;
    }
}

@media (min-width: 1921px) {
    .navbar-logo-text {
        font-size: 1.5rem;
    }

    .logotipo {
        width: 400px;
        height: 120px;
    }

    .navlist {
        padding: 1em 1em;
        margin: 1em;
        font-size: xx-large;
    }

    .navlist-especial {
        font-size: xx-large;
    }
}

/* Landing Page */
#landing {
    background-color: #000000;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
    padding-top: calc(2rem + 100px); /* Espacio para la navbar fija */
    min-height: 100vh;
}

/* Sección Ventajas */
.advantages-section {
    background-color: #ffffff;
    padding: 1rem 2rem;
    padding-top: calc(1rem + 100px); /* Espacio para la navbar fija */
}

.advantages-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.advantages-title {
    font-size: 2rem;
    font-weight: 400;
    color: #000000;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.2;
}

.advantages-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.advantage-item {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: flex-start;
    width: 100%;
}

.advantage-number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background-color: #000000;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.125rem;
}

.advantages-section .advantage-content {
    flex: 1;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left;
}

.advantages-section .advantage-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.125rem;
    margin-top: 0;
    line-height: 1.25;
}

.advantages-section .advantage-description {
    font-size: 0.9375rem;
    line-height: 1.3;
    color: #333333;
    margin: 0;
}

/* Responsive para Ventajas */
@media (max-width: 968px) {
    .advantages-section {
        padding: 0.875rem 1.5rem;
        padding-top: calc(0.875rem + 100px);
    }

    .advantages-title {
        font-size: 1.75rem;
        margin-bottom: 0.625rem;
        line-height: 1.2;
    }

    .advantages-list {
        gap: 0.5rem;
    }

    .advantage-item {
        flex-direction: row;
        gap: 0.5rem;
    }

    .advantage-number {
        width: 26px;
        height: 26px;
        font-size: 0.8125rem;
        margin-top: 0.125rem;
    }

    .advantages-section .advantage-title {
        font-size: 1rem;
        margin-bottom: 0.125rem;
        line-height: 1.25;
    }

    .advantages-section .advantage-description {
        font-size: 0.875rem;
        line-height: 1.3;
    }
}

/* Sección ¿Cómo funciona? */
.how-it-works-section {
    background-color: #ffffff;
    padding: 1rem 2rem;
    padding-top: calc(1rem + 100px); /* Espacio para la navbar fija */
}

.how-it-works-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.how-it-works-title {
    font-size: 2rem;
    font-weight: 400;
    color: #000000;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.2;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.step-item {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: flex-start;
    width: 100%;
}

.step-number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background-color: #000000;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.125rem;
}

.how-it-works-section .step-content {
    flex: 1;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left;
}

.how-it-works-section .step-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.125rem;
    margin-top: 0;
    line-height: 1.25;
}

.how-it-works-section .step-description {
    font-size: 0.9375rem;
    line-height: 1.3;
    color: #333333;
    margin: 0;
}

/* Responsive para ¿Cómo funciona? */
@media (max-width: 968px) {
    .how-it-works-section {
        padding: 0.875rem 1.5rem;
        padding-top: calc(0.875rem + 100px);
    }

    .how-it-works-title {
        font-size: 1.75rem;
        margin-bottom: 0.625rem;
        line-height: 1.2;
    }

    .steps-container {
        gap: 0.5rem;
    }

    .step-item {
        flex-direction: row;
        gap: 0.5rem;
    }

    .step-number {
        width: 26px;
        height: 26px;
        font-size: 0.8125rem;
        margin-top: 0.125rem;
    }

    .how-it-works-section .step-title {
        font-size: 1rem;
        margin-bottom: 0.125rem;
        line-height: 1.25;
    }

    .how-it-works-section .step-description {
        font-size: 0.875rem;
        line-height: 1.3;
    }
}

.landing-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    margin: 0 auto;
}

.landing-left {
    flex: 1;
    max-width: 600px;
}

.landing-right {
    flex: 0 0 400px;
}

.logo-global {
    position: fixed;
    top: 1.5rem;
    left: 3rem;
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    z-index: 1000;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    user-select: none;
    margin-left: 1rem;
}

.logo-global:hover {
    opacity: 0.7;
    transform: scale(1.05);
}

.logo-global:active {
    transform: scale(0.95);
}

/* Contador de créditos */
.credits-display {
    position: fixed;
    top: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #f5f5f5;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    z-index: 1000;
    border: 1px solid #e5e5e5;
}

.credits-label {
    color: #666666;
    font-weight: 500;
}

.credits-count {
    color: #000000;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
    background-color: #ffffff;
    border-radius: 0.25rem;
    min-width: 2rem;
    text-align: center;
}

#landing .logo-global {
    color: #ffffff;
}

.screen[id^="step"] .logo-global,
#auth .logo-global {
    color: #000000;
}

.landing-content {
    text-align: center;
    padding: 2rem;
}

.landing-left {
    flex: 1;
    max-width: 600px;
}

.landing-right {
    flex: 0 0 400px;
}

.landing-title {
    color: #ffffff;
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-align: left;
    letter-spacing: -0.02em;
}

.landing-subtitle {
    color: #cccccc;
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.5;
    text-align: left;
}

.auth-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
}

.auth-card .auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 0.5rem;
}

.auth-card .auth-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #666666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.auth-card .auth-tab.active {
    color: #000000;
    border-bottom-color: #000000;
}

.auth-card .auth-tab:hover {
    color: #000000;
}

.auth-card .auth-form {
    display: none;
}

.auth-card .auth-form.active {
    display: block;
}

.auth-card .form-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.auth-card .form-group {
    width: 100%;
}

.auth-card .form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background-color: #ffffff;
    transition: border-color 0.2s ease;
}

.auth-card .form-input:focus {
    outline: none;
    border-color: #000000;
}

.auth-card .auth-button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-card .auth-button.primary {
    background-color: #000000;
    color: #ffffff;
}

.auth-card .auth-button.primary:hover {
    background-color: #333333;
}

.auth-card .auth-button.primary:active {
    transform: scale(0.98);
}

.auth-card .auth-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    text-align: center;
}

.start-button {
    background-color: #e0e0e0;
    color: #000000;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.125rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-left: 2rem;
}

.start-button:hover {
    background-color: #d0d0d0;
}

.start-button:active {
    background-color: #c0c0c0;
}

/* Steps/Formularios */
.screen[id^="step"] {
    background-color: #1a1a1a;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding-top: 5rem;
    padding-bottom: 3rem;
}

.step-content {
    max-width: 600px;
    width: 90%;
    padding: 2rem;
}

.step-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #000000;
}

.step-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: #333333;
}

/* Contact Form - Paso 2 */
.contact-form-container {
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
    padding: 2rem;
}

.form-header {
    margin-bottom: 3rem;
    text-align: center;
}

.form-title {
    font-size: 2rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.form-subtitle {
    font-size: 1rem;
    color: #666666;
    font-weight: 400;
    line-height: 1.5;
}

.recommendation-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    color: #cccccc;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.recommendation-banner svg {
    flex-shrink: 0;
    color: #999999;
}

.recommendation-banner strong {
    font-weight: 600;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Form Fields */
.form-fields {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #000000;
    letter-spacing: 0.01em;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: #000000;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-input::placeholder {
    color: #999999;
}

/* Optional Fields */
.optional-fields-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.optional-fields-container .form-group {
    width: 100%;
}

.optional-field {
    animation: slideIn 0.3s ease;
}

.optional-field .input-wrapper {
    position: relative;
}

.field-remove {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999999;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.field-remove:hover {
    color: #ef4444;
    background-color: #fee2e2;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.optional-section {
    position: relative;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.optional-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: #666666;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: -0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.optional-toggle:hover {
    color: #000000;
    background-color: #f5f5f5;
}

.optional-toggle svg {
    transition: transform 0.2s ease;
}

.optional-toggle.active svg {
    transform: rotate(45deg);
}

.optional-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.optional-menu.active {
    max-height: 500px;
    opacity: 1;
}

.optional-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #666666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.optional-pill:hover {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
}

.optional-pill.added {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
    cursor: default;
}

.optional-pill svg {
    flex-shrink: 0;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #f0f0f0;
}

.next-button,
.prev-button {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-right: 1rem;
}

.next-button {
    background-color: #000000;
    color: #ffffff;
}

.next-button:hover {
    background-color: #333333;
}

.prev-button {
    background-color: #f0f0f0;
    color: #000000;
}

.prev-button:hover {
    background-color: #e0e0e0;
}

/* Education Form - Paso 2 */
.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    gap: 2rem;
}

.header-content {
    flex: 1;
}

/* Period Section */
.period-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.period-label {
    margin-bottom: 0;
}

.period-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.period-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
}

.period-sublabel {
    font-size: 0.75rem;
    color: #666666;
    font-weight: 500;
    margin: 0;
}

.date-selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: #000000;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23999999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.form-select:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

#fecha-fin-group.disabled {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Checkbox */
.checkbox-group {
    padding: 0.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    width: 1.25rem;
    height: 1.25rem;
    border: 1px solid #e5e5e5;
    border-radius: 0.25rem;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-input:checked + .checkbox-custom {
    background-color: #000000;
    border-color: #000000;
}

.checkbox-input:checked + .checkbox-custom::after {
    content: '';
    width: 0.375rem;
    height: 0.625rem;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-input:focus + .checkbox-custom {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.checkbox-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #000000;
}

/* Description Section */
.description-section {
    margin-top: 0.5rem;
}

.description-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: #666666;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: -0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.description-toggle:hover {
    color: #000000;
    background-color: #f5f5f5;
}

.description-toggle svg {
    transition: transform 0.2s ease;
}

.description-toggle.active svg {
    transform: rotate(45deg);
}

.description-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    margin-top: 0;
}

.description-content.active {
    max-height: 500px;
    opacity: 1;
    margin-top: 1.5rem;
}

.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: #000000;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-family: inherit;
    resize: vertical;
    line-height: 1.5;
}

.form-textarea:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-textarea::placeholder {
    color: #999999;
}

/* Education Entries Container */
.educations-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.education-entry {
    position: relative;
    padding-top: 0.5rem;
    padding-bottom: 3rem;
    animation: fadeIn 0.3s ease;
}

.education-entry:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
}

.education-entry.remove-animation {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }
}

.education-delete-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    color: #999999;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    z-index: 10;
}

.education-delete-btn:hover {
    color: #ef4444;
    background-color: #fee2e2;
}

.education-delete-btn svg {
    width: 16px;
    height: 16px;
}

/* Add Education Button */
.add-education-section {
    margin: 2rem 0;
    padding-top: 2rem;
    border-top: 1px solid #f0f0f0;
}

.add-education-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: #000000;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.add-education-btn:hover {
    background-color: #f5f5f5;
    color: #000000;
}

.add-education-btn svg {
    flex-shrink: 0;
}

/* Skills Form - Paso 4 */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skills-suggestions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.suggestions-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #666666;
    margin: 0;
}

.skills-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #666666;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.skill-chip:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: #000000;
    color: #000000;
}

.skill-chip:active {
    transform: scale(0.98);
}

.skill-chip.added {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
}

.skills-textarea-container {
    width: 100%;
}

.skills-textarea {
    width: 100%;
    min-height: 200px;
    padding: 1.5rem;
    font-size: 1rem;
    color: #000000;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-family: inherit;
    resize: vertical;
    line-height: 1.6;
}

.skills-textarea:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.skills-textarea::placeholder {
    color: #999999;
}

/* Responsive para Landing */
@media (max-width: 968px) {
    .landing-container {
        flex-direction: column;
        gap: 2rem;
        padding: 1rem;
    }
    
    .landing-left {
        max-width: 100%;
        text-align: center;
    }
    
    .landing-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .landing-subtitle {
        text-align: center;
    }
    
    .landing-right {
        flex: 1;
        width: 100%;
        max-width: 400px;
    }
    
    .auth-card {
        max-width: 100%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .landing-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }

    .start-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .logo-global {
        top: 1.25rem;
        left: 2rem;
        font-size: 1.125rem;
        margin-left: 0.75rem;
    }
    
    .logo-global:hover {
        transform: scale(1.05);
    }
    
    .logo-global:active {
        transform: scale(0.95);
    }

    .contact-form-container {
        padding: 1.5rem;
    }

    .form-title {
        font-size: 1.75rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .optional-menu {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .prev-button,
    .form-actions .next-button {
        width: 100%;
    }

    .education-header {
        flex-direction: column;
        gap: 1.5rem;
    }

    .period-row {
        grid-template-columns: 1fr;
    }

    .skills-chips {
        gap: 0.5rem;
    }

    .skill-chip {
        font-size: 0.8125rem;
        padding: 0.5rem 1rem;
    }

    .recommendation-banner {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
        gap: 0.625rem;
    }

    .recommendation-banner svg {
        width: 18px;
        height: 18px;
    }

    .skills-textarea {
        min-height: 180px;
        padding: 1.25rem;
    }
}

/* Languages Form - Paso 5 */
.languages-native-section {
    margin-bottom: 3rem;
}

.native-languages-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.native-language-item {
    max-width: 400px;
}

.add-native-link {
    margin-top: 0.75rem;
    background: none;
    border: none;
    color: #666666;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0;
    text-align: left;
    transition: color 0.2s ease;
}

.add-native-link:hover {
    color: #000000;
}

.languages-foreign-section {
    margin-top: 3rem;
}

.foreign-languages-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.foreign-language-entry {
    position: relative;
    background-color: #fafafa;
    padding: 2rem;
    border-radius: 0.5rem;
    animation: fadeIn 0.3s ease;
}

.foreign-language-entry.remove-animation {
    animation: fadeOut 0.3s ease forwards;
}

.foreign-language-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: flex-start;
}

.foreign-language-select-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.language-level-selector-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.level-buttons-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.level-button {
    min-width: 60px;
    height: 44px;
    padding: 0 1rem;
    background-color: transparent;
    border: 1px solid #e5e5e5;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #666666;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.level-button:hover {
    border-color: #000000;
    color: #000000;
    background-color: rgba(0, 0, 0, 0.02);
}

.level-button.active {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
}

.level-description-container {
    min-height: 4rem;
    padding-top: 1rem;
}

.level-description-title {
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
    display: none;
}

.level-description-text {
    font-size: 0.875rem;
    color: #666666;
    line-height: 1.6;
    display: none;
}

.level-description-empty {
    font-size: 0.875rem;
    color: #999999;
    font-style: italic;
}

.foreign-language-delete-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #999999;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    z-index: 10;
}

.foreign-language-delete-btn:hover {
    color: #ef4444;
    background-color: #fee2e2;
}

.foreign-language-delete-btn svg {
    width: 16px;
    height: 16px;
}

.add-language-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #f0f0f0;
}

/* Responsive para Languages */
@media (max-width: 768px) {
    .foreign-language-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .level-button {
        min-width: 50px;
        height: 40px;
        padding: 0 0.875rem;
        font-size: 0.8125rem;
    }

    .level-description-container {
        min-height: 3.5rem;
    }

    .level-description-title {
        font-size: 0.9375rem;
    }

    .level-description-text {
        font-size: 0.8125rem;
    }

    .foreign-language-entry {
        padding: 1.5rem;
    }
}

/* Review Step - Paso 6 */
.review-container {
    max-width: 56rem;
    width: 90%;
    margin: 0 auto;
    padding: 2rem;
    background-color: transparent;
}

.review-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 3rem 0;
}

.review-section-card {
    background-color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: none;
}

.review-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.review-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #000000;
}

.review-edit-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: #666666;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.review-edit-button:hover {
    color: #000000;
    background-color: #f0f0f0;
}

.review-edit-button svg {
    width: 16px;
    height: 16px;
}

.review-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Contact Review */

.review-contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.review-contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.review-contact-label {
    font-size: 0.75rem;
    color: #666666;
    font-weight: 500;
}

.review-contact-value {
    font-size: 0.875rem;
    color: #000000;
}

/* Education/Experience Review */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-list-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.review-item-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.25rem;
}

.review-item-subtitle {
    font-size: 0.875rem;
    color: #666666;
    margin-bottom: 0.25rem;
}

.review-item-period {
    font-size: 0.8125rem;
    color: #999999;
}

/* Skills Review */
.review-skills-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.review-skill-chip {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 1rem;
    font-size: 0.875rem;
    color: #000000;
}

/* Languages Review */
.review-languages-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.review-language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.review-language-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #000000;
}

.review-language-level {
    font-size: 0.875rem;
    color: #666666;
}

/* Create CV Button */
.review-actions {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.create-cv-button {
    width: 100%;
    height: 3.5rem;
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.create-cv-button:hover {
    background-color: #333333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.create-cv-button:active {
    transform: translateY(0);
}

.create-cv-button svg {
    flex-shrink: 0;
}

.create-cv-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.create-cv-button:disabled:hover {
    background-color: #000000;
    transform: none;
    box-shadow: none;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.create-cv-button svg.spinning {
    animation: spin 1s linear infinite;
}

.download-cv-button {
    background-color: #10b981 !important; /* Verde brillante */
}

.download-cv-button:hover {
    background-color: #059669 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.download-cv-button:active {
    transform: translateY(0);
}

/* Responsive Review */
@media (max-width: 768px) {
    .review-container {
        padding: 1.5rem;
    }

    .review-section-card {
        padding: 1.5rem;
    }

    .review-contact-info {
        grid-template-columns: 1fr;
    }

    .create-cv-button {
        height: 3rem;
        font-size: 1rem;
    }
}

/* ============================================================================
   PANTALLA DE AUTENTICACIÓN
   ============================================================================ */

#auth {
    background-color: #ffffff;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 2rem;
}

#auth .logo-global {
    color: #000000;
}

.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e5e5e5;
}

.auth-tab {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #666666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.auth-tab:hover {
    color: #000000;
}

.auth-tab.active {
    color: #000000;
    border-bottom-color: #000000;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    text-align: center;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive para auth */
@media (max-width: 768px) {
    #auth {
        padding: 1rem;
    }
    
    .auth-tabs {
        margin-bottom: 1.5rem;
    }
    
    .auth-tab {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* ============================================================================
   DASHBOARD
   ============================================================================ */

#dashboard {
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}


.dashboard-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Sidebar */
.dashboard-sidebar {
    width: 280px;
    background-color: #2a2a2a;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #3a3a3a;
    flex-shrink: 0;
    position: relative;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid #3a3a3a;
    position: relative;
}

.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease;
    z-index: 10;
}

.sidebar-close-btn:hover {
    background-color: #3a3a3a;
}

.sidebar-close-btn svg {
    width: 20px;
    height: 20px;
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.05em;
}

.sidebar-user {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #3a3a3a;
}

.sidebar-credits {
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: #cccccc;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    position: relative;
}

.sidebar-nav-item:hover {
    background-color: #333333;
    color: #ffffff;
}

.sidebar-nav-item.active {
    background-color: #3a3a3a;
    color: #ffffff;
}

.sidebar-nav-item svg:first-child {
    flex-shrink: 0;
}

.sidebar-nav-item span {
    flex: 1;
}

.dropdown-arrow {
    margin-left: auto;
    opacity: 0.5;
}

.sidebar-footer {
    padding: 1rem 0;
    border-top: 1px solid #3a3a3a;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-logout-btn {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    color: #ff4444;
    cursor: pointer;
}

.sidebar-logout-btn:hover {
    background-color: #3a1a1a;
    color: #ff6666;
}

/* Main Content */
.dashboard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #1a1a1a;
    overflow-y: auto;
}

.dashboard-header {
    padding: 1rem 2rem;
    border-bottom: 1px solid #3a3a3a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #222222;
    position: relative;
    gap: 1rem;
    width: 100%;
}

.hamburger-menu-dashboard {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: #ffffff;
    margin-right: auto;
    user-select: none;
    padding: 0.5rem;
    transition: opacity 0.2s ease;
    z-index: 1001;
    line-height: 1;
}

.hamburger-menu-dashboard:hover {
    opacity: 0.7;
}

.header-logo {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #ffffff;
    cursor: pointer;
    transition: opacity 0.2s ease;
    user-select: none;
    white-space: nowrap;
}

.header-logo:hover {
    opacity: 0.7;
}

.header-credits {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-size: 0.9375rem;
    padding: 0.5rem 1rem;
    background-color: #2a2a2a;
    border-radius: 0.5rem;
}

.header-credits svg {
    opacity: 0.7;
}


.dashboard-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.dashboard-section {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: #999999;
    margin-bottom: 2rem;
}

/* Sección Créditos */
.credits-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.credits-card {
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 0.75rem;
    padding: 2rem;
}

.credits-card h3 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.credits-amount {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin: 1rem 0;
}

.credits-card p {
    color: #999999;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.buy-credits-btn {
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #ffffff;
    color: #000000;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.buy-credits-btn:hover:not(:disabled) {
    background-color: #e0e0e0;
}

.buy-credits-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Formulario dentro del dashboard */
.dashboard-form-step {
    display: none;
    width: 100%;
    background: transparent;
    padding: 0;
    margin: 0;
    position: relative;
}

.dashboard-form-step:first-child {
    display: block;
}

#section-crear-cv .contact-form-container {
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

#section-crear-cv .form-title {
    color: #ffffff;
}

#section-crear-cv .form-subtitle {
    color: #999999;
}

#section-crear-cv .form-label {
    color: #cccccc;
}

#section-crear-cv .form-input,
#section-crear-cv .form-select,
#section-crear-cv .form-textarea {
    background-color: #1a1a1a;
    border-color: #3a3a3a;
    color: #ffffff;
}

#section-crear-cv .form-input:focus,
#section-crear-cv .form-select:focus,
#section-crear-cv .form-textarea:focus {
    border-color: #ffffff;
    outline: none;
}

#section-crear-cv .next-button,
#section-crear-cv .prev-button {
    background-color: #ffffff;
    color: #000000;
}

#section-crear-cv .next-button:hover {
    background-color: #e0e0e0;
}

/* Overlay para móviles */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Responsive - Tablets y Móviles */
@media (max-width: 1024px) {
    /* Ocultar sidebar por defecto en tablets y móviles */
    .dashboard-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
        z-index: 1000;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
    }

    /* Mostrar sidebar cuando tiene la clase active */
    .dashboard-sidebar.active {
        transform: translateX(0);
    }

    /* Ajustar header para mostrar hamburger menu */
    .dashboard-header {
        justify-content: space-between;
        padding: 1rem;
        position: relative;
    }

    /* Ajustar tamaño del logo en header para móviles/tablets */
    .header-logo {
        font-size: 0.875rem;
        margin-right: 0.5rem;
    }

    /* Mostrar botón hamburguesa en tablets y móviles - IGUAL QUE EN LANDING */
    #dashboard .hamburger-menu-dashboard,
    .dashboard-header .hamburger-menu-dashboard,
    .hamburger-menu-dashboard {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-right: auto;
    }

    /* Mostrar botón cerrar en sidebar móvil */
    .sidebar-close-btn {
        display: block;
    }

    /* Ajustar contenido principal cuando sidebar está oculto */
    .dashboard-main {
        width: 100%;
    }

    /* Ajustar padding del contenido */
    .dashboard-content {
        padding: 1.5rem;
    }

    /* Ajustar grid de créditos */
    .credits-info {
        grid-template-columns: 1fr;
    }
}

/* Responsive - Móviles */
@media (max-width: 768px) {
    .dashboard-sidebar {
        width: 280px;
        max-width: 85vw;
    }

    .dashboard-header {
        padding: 1rem;
        gap: 0.75rem;
    }

    /* Asegurar que el hamburger menu se muestre en móviles */
    .hamburger-menu-dashboard {
        display: block !important;
    }

    /* Mostrar logo en header en móviles */
    .header-logo {
        display: block !important;
        font-size: 0.875rem;
    }

    /* Ajustar créditos en móviles */
    .header-credits {
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
    }

    .header-credits > span {
        display: none; /* Ocultar texto "Créditos:" en móviles, solo mostrar el número */
    }

    .header-credits svg {
        width: 16px;
        height: 16px;
    }


    .dashboard-content {
        padding: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .section-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
    }

    /* Ajustar cards de créditos */
    .credits-info {
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .credits-card {
        padding: 1.5rem;
    }

    .credits-card h3 {
        font-size: 1.125rem;
    }

    .credits-amount {
        font-size: 2.5rem;
    }

    .credits-card p {
        font-size: 0.875rem;
    }

    .buy-credits-btn {
        width: 100%;
        margin-top: 1rem;
    }

    /* Ajustar formularios dentro del dashboard */
    #section-crear-cv .contact-form-container {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    /* Ajustar padding del sidebar en móviles */
    .sidebar-header {
        padding: 1.5rem 1rem;
    }

    .sidebar-user {
        padding: 1rem;
    }

    .sidebar-credits {
        font-size: 0.8125rem;
    }

    .sidebar-nav {
        padding: 0.5rem 0;
    }

    .sidebar-nav-item {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .sidebar-nav-item svg {
        width: 18px;
        height: 18px;
    }

    .sidebar-footer {
        padding: 0.5rem 0;
    }

}

/* Responsive - Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .dashboard-sidebar {
        width: 260px;
    }

    .dashboard-header {
        padding: 1.25rem 1.5rem;
    }

    /* Asegurar que el hamburger menu se muestre en tablets */
    .hamburger-menu-dashboard {
        display: block !important;
    }

    .dashboard-content {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .credits-info {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .sidebar-nav-item {
        padding: 0.75rem 1.25rem;
    }
}

