:root {
    --ink: #17364b;
    --muted: #647b8a;
    --blue: #0879a8;
    --blue-dark: #075c82;
    --blue-soft: #eaf5fa;
    --line: #dce7ed;
    --paper: #fff;
    --canvas: #f6f9fb;
    --gold: #d7a74a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: "Segoe UI", Arial, sans-serif; }
a { color: inherit; }
.site-header { height: 82px; padding: 0 clamp(22px, 7vw, 112px); display: flex; align-items: center; justify-content: space-between; gap: 40px; background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.brand { display: flex; align-items: center; min-width: 206px; }
.brand img { display: block; width: 176px; max-height: 58px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: clamp(22px, 4vw, 56px); height: 100%; }
.main-nav a { color: #476071; font-size: 14px; font-weight: 600; text-decoration: none; transition: color .15s ease; }
.main-nav a:hover { color: var(--blue); }
.main-nav .nav-access { border: 1px solid #b7d6e5; padding: 10px 16px; border-radius: 8px; color: var(--blue-dark); background: #f8fcfe; }
.nav-lock { margin-right: 6px; }
.menu-toggle { display: none; border: 0; padding: 8px; background: transparent; }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 5px; background: var(--ink); }

.hero-formacion { position: relative; isolation: isolate; min-height: 376px; overflow: hidden; display: flex; align-items: center; padding: 54px clamp(24px, 10vw, 160px); background: linear-gradient(112deg, #075b7f 0%, #087aa5 55%, #1593b5 100%); color: white; }
.hero-formacion::after { content: ""; position: absolute; z-index: -1; width: 740px; height: 740px; right: -180px; top: -420px; border-radius: 50%; background: #ffffff09; }
.hero-copy { z-index: 1; width: min(650px, 68%); }
.eyebrow { display: inline-block; color: #d8edf5; font: 700 11px/1.3 Manrope, sans-serif; letter-spacing: 1.5px; }
.eyebrow-blue { color: var(--blue); }
.hero-copy h1 { margin: 15px 0 13px; color: #fff; font: 700 clamp(38px, 5vw, 58px)/1.07 "Segoe UI", Arial, sans-serif; letter-spacing: -2px; }
.hero-copy h1 em { color: #b8e2ef; font-style: normal; }
.hero-copy p { max-width: 510px; margin: 0; color: #e3f2f7; font-size: 17px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 0 18px; border-radius: 7px; font: 700 14px "Segoe UI", Arial, sans-serif; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { border: 1px solid var(--blue); background: var(--blue); color: white; }
.button-primary:hover { background: var(--blue-dark); color: white; }
.button-secondary { border: 1px solid var(--line); background: white; color: var(--ink); cursor: pointer; }
.hero-formacion .button-primary { border-color: white; background: white; color: var(--blue-dark); }
.hero-formacion .button-primary:hover { background: #eaf5fa; }
.button-light { border: 1px solid #ffffff77; background: #ffffff12; color: white; }
.hero-mark { position: absolute; right: clamp(8%, 16vw, 245px); top: 50%; transform: translateY(-50%) rotate(-8deg); width: 205px; height: 205px; opacity: .9; }
.mark-ring { position: absolute; left: 0; top: 4px; width: 105px; height: 105px; border: 20px solid #d7a74a; border-radius: 50%; display: grid; place-items: center; }
.mark-ring span { width: 25px; height: 25px; border-radius: 50%; background: white; }
.mark-lines { position: absolute; right: 2px; top: 16px; display: flex; gap: 12px; align-items: start; }
.mark-lines i { display: block; width: 36px; height: 24px; background: white; transform: skew(-14deg); }
.mark-lines i:nth-child(2) { height: 31px; }
.mark-caption { position: absolute; left: 27px; top: 122px; color: #e5f5fa; font: 800 16px/1.4 "Segoe UI", Arial, sans-serif; letter-spacing: 1.7px; }
.hero-orbit { position: absolute; z-index: -1; border: 1px solid #ffffff23; border-radius: 50%; }
.orbit-one { width: 450px; height: 450px; right: 4%; top: -38px; }
.orbit-two { width: 560px; height: 560px; right: 0; top: -95px; }

.offer-section { max-width: 1220px; margin: 0 auto; padding: 58px 28px 68px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 26px; }
.section-heading h2, .access-band h2 { margin: 9px 0 5px; color: var(--ink); font: 700 27px/1.2 Manrope, sans-serif; letter-spacing: -.5px; }
.section-heading p, .access-band p { margin: 0; color: var(--muted); font-size: 15px; }
.search-box { display: flex; align-items: center; gap: 9px; width: min(290px, 100%); min-height: 43px; padding: 0 13px; border: 1px solid #cbdbe4; border-radius: 7px; background: white; color: var(--muted); }
.search-box span { font-size: 23px; line-height: 1; }
.search-box input { width: 100%; border: 0; outline: none; color: var(--ink); background: transparent; font: 14px "Segoe UI", Arial, sans-serif; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.course-card { min-height: 260px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 5px 18px #17364b08; display: flex; flex-direction: column; }
.course-card[hidden] { display: none; }
.course-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.course-tag { padding: 5px 9px; border-radius: 20px; color: var(--blue-dark); background: var(--blue-soft); font-size: 11px; font-weight: 700; text-transform: capitalize; }
.course-hours { color: var(--muted); font-size: 12px; font-weight: 600; }
.course-card h3 { margin: 18px 0 5px; color: var(--ink); font: 700 18px/1.35 "Segoe UI", Arial, sans-serif; }
.course-call { margin: 0 0 8px; color: var(--blue); font-size: 13px; font-weight: 600; }
.course-description { margin: 7px 0 16px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.course-meta { display: grid; gap: 7px; margin-top: auto; padding: 13px 0; border-top: 1px solid #edf2f5; color: #526d7d; font-size: 12px; }
.course-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #80929d; font-size: 11px; }
.course-card-footer a { color: var(--blue); font-size: 12px; font-weight: 700; text-decoration: none; }
.course-card-footer a:hover { color: var(--blue-dark); }
.empty-state { grid-column: 1 / -1; min-height: 220px; display: grid; justify-items: center; align-content: center; padding: 28px; border: 1px dashed #c6d9e3; border-radius: 12px; background: #fbfdfe; text-align: center; }
.empty-icon { width: 42px; height: 42px; margin-bottom: 10px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: var(--blue-soft); font-size: 21px; }
.empty-state h3 { margin: 0 0 5px; color: var(--ink); font: 700 17px "Segoe UI", Arial, sans-serif; }
.empty-state p { max-width: 530px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.search-empty { grid-column: 1 / -1; margin: 0; padding: 22px; border-radius: 10px; background: white; color: var(--muted); text-align: center; }
.access-band { max-width: 1164px; margin: 0 auto 65px; padding: 25px 28px; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 19px; border: 1px solid #d4e6ee; border-radius: 12px; background: linear-gradient(105deg, #edf7fb, #fff); }
.access-band h2 { margin: 5px 0; font-size: 19px; }
.access-band p { max-width: 720px; font-size: 13px; line-height: 1.55; }
.access-band .button:disabled { border-color: #aacbd9; background: #aacbd9; color: white; cursor: not-allowed; }
.access-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: #d8eef6; color: var(--blue); font-size: 21px; font-weight: 700; }
.login-notice { max-width: 1164px; margin: 18px auto 0; padding: 13px 46px 13px 16px; position: relative; border: 1px solid #e8b4b4; border-radius: 8px; background: #fff1f0; color: #842029; font-size: 14px; }
.notice-close { position: absolute; top: 7px; right: 13px; color: inherit; font-size: 23px; line-height: 1; text-decoration: none; }
.account-band { margin-top: 44px; }
.account-band h1 { margin: 5px 0; color: var(--ink); font: 700 25px/1.2 Manrope, sans-serif; }
.account-empty { max-width: 1164px; min-height: 270px; margin: 0 auto 65px; }
.account-empty h2 { margin: 0 0 6px; color: var(--ink); font: 700 21px Manrope, sans-serif; }
.account-empty .button { margin-top: 18px; }
.my-courses-section, .history-section { max-width: 1164px; margin: 0 auto 48px; }
.my-courses-section .section-heading, .history-section .section-heading { margin-bottom: 20px; }
.my-courses-section .section-heading .button-light { color: var(--blue); border-color: var(--line); background: white; }
.account-course-footer { margin-top: 16px; padding-top: 14px; border-top: 1px solid #edf2f5; }
.account-course-footer form { margin-left: auto; }
.account-course-footer .button { min-height: 38px; padding: 0 14px; font-size: 12px; cursor: pointer; }
.request-state, .history-status { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; background: #edf5fa; color: #38576c; font-size: 11px; font-weight: 700; text-transform: capitalize; }
.request-closed { color: #8c5b16; font-size: 12px; font-weight: 700; }
.formacion-alert { max-width: 1164px; margin: 0 auto 20px; padding: 13px 16px; border: 1px solid; border-radius: 8px; font-size: 14px; }
.formacion-alert.success { border-color: #a9d9c2; background: #effaf4; color: #17613c; }
.formacion-alert.error { border-color: #e8b4b4; background: #fff1f0; color: #842029; }
.history-empty { padding: 18px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); }
.history-list { border: 1px solid var(--line); border-radius: 10px; background: white; }
.history-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; }
.history-row + .history-row { border-top: 1px solid var(--line); }
.history-row div { display: grid; gap: 4px; }
.history-row strong { color: var(--ink); }
.history-row span:not(.history-status), .history-row small { color: var(--muted); font-size: 12px; }
.registration-card { padding: clamp(20px, 4vw, 38px); border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 14px 38px #17364b0d; }
.certificate-identity { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 20px 0; padding: 15px 18px; border: 1px solid var(--line); border-radius: 9px; background: #f5f9fc; }
.certificate-identity div { display: grid; gap: 4px; }
.certificate-identity span, .form-help, .registration-form small { color: var(--muted); font-size: 13px; }
.certificate-identity strong { color: var(--ink); }
.registration-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.registration-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.registration-form .certificate-identity, .registration-form .form-help, .registration-form .registration-actions { grid-column: 1 / -1; }
.form-field { display: grid; align-content: start; align-self: start; gap: 7px; }
.form-field label { color: var(--ink); font-size: 13px; font-weight: 700; }
.form-field label span { color: #b33636; }
.form-field input { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: white; }
.form-field input:focus { border-color: var(--blue); outline: 3px solid #1494c51c; }
.form-field input[readonly] { background: #f5f9fc; }
.site-footer { min-height: 66px; padding: 18px clamp(22px, 7vw, 112px); display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); background: white; color: #738794; font-size: 12px; }

@media (max-width: 850px) {
    .site-header { height: 72px; padding: 0 22px; }
    .menu-toggle { display: block; }
    .main-nav { display: none; position: absolute; top: 71px; right: 0; left: 0; height: auto; padding: 14px 22px 20px; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); background: white; box-shadow: 0 12px 20px #17364b12; }
    .main-nav a { padding: 13px 4px; }
    .main-nav .nav-access { margin-top: 8px; text-align: center; }
    .menu-open .main-nav { display: flex; }
    .hero-formacion { min-height: 350px; padding: 42px 30px; }
    .hero-copy { width: 75%; }
    .hero-mark { right: 3%; opacity: .25; }
    .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .access-band { margin-right: 24px; margin-left: 24px; }
}
@media (max-width: 600px) {
    .hero-formacion { min-height: 385px; padding: 40px 23px; }
    .hero-copy { width: 100%; }
    .hero-copy h1 { font-size: 42px; }
    .hero-copy p { font-size: 15px; }
    .hero-mark { right: -65px; top: 76%; transform: translateY(-50%) scale(.72) rotate(-8deg); opacity: .16; }
    .section-heading { align-items: stretch; flex-direction: column; gap: 19px; }
    .search-box { width: 100%; }
    .offer-section { padding: 42px 20px 48px; }
    .course-grid { grid-template-columns: 1fr; }
    .registration-form { grid-template-columns: 1fr; }
    .access-band { grid-template-columns: 42px 1fr; margin: 0 20px 42px; padding: 20px; gap: 13px; }
    .access-icon { width: 40px; height: 40px; }
    .access-band .button { grid-column: 1 / -1; }
    .site-footer { align-items: flex-start; flex-direction: column; padding: 18px 22px; }
}
