body {
    font-family: sans-serif;
    background: #f9fafb;
    box-sizing: border-box;
    overflow-x: hidden;
    width: 100%;
}

main {
    max-width: 100%;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

header {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    box-sizing: border-box;
    position: relative;
    z-index: 5000 !important;
}

@media (max-width: 768px) {
    header .w-full {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    header .flex.items-center.space-x-4 {
        gap: 0.75rem;
        flex-wrap: nowrap;
    }
    header .bg-white {
        padding: 0.25rem;
        border-radius: 0.5rem;
    }
    header img.h-24 {
        height: 4.2rem;
        width: auto;
        max-width: 4.2rem;
    }
    header h1 {
        font-size: 1.05rem;
        line-height: 1.1;
    }
    header p {
        font-size: 0.75rem;
        line-height: 1.1;
        margin-top: 2px;
    }
    nav.md\:flex {
        display: none !important;
    }
    #mobile-menu {
        display: none;
    }
    #mobile-menu.show {
        display: flex !important;
    }
    #menu-btn {
        display: block !important;
        font-size: 2rem;
    }
}

.orientaciones-section {
    padding: 3rem 1rem;
    background: #eef2ff;
    border-radius: 1rem;
}

.orientaciones-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1e40af;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 2px 8px #c7d2fe;
}

.orientacion-box {
    max-width: 1150px;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.tabs-btn-group {
    display: flex;
    border-radius: .5rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.tab-button {
    padding: .75rem 1.5rem;
    background: #e5e7eb;
    color: #1e293b;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
}

.tab-button-active {
    background: #1e40af;
    color: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-flex-row {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .tab-flex-row {
        flex-direction: row;
    }
}

.tab-img-col {
    flex: 1;
}

.tab-info-col {
    flex: 1;
}

.tab-img {
    width: 100%;
    border-radius: .75rem;
    box-shadow: 0 4px 24px rgba(30, 64, 175, 0.1);
}

.tab-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1e40af;
    margin-bottom: 1rem;
}

.tab-desc {
    color: #334155;
    margin-bottom: 1.5rem;
}

.tab-plan-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: .5rem;
}

.tab-plan-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tab-plan-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: .5rem;
}

.tab-plan-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #22c55e;
    margin-right: .5rem;
}

.tab-accordion {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 1rem;
    margin-top: 2rem;
    border-radius: .75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tab-accordion-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1rem;
    background: #f1f5f9;
    border: none;
    border-radius: .5rem;
    cursor: pointer;
    transition: .2s;
}

.tab-accordion-btn:hover {
    background: #e2e8f0;
}

.tab-accordion-title {
    font-size: 1rem;
    color: #1e293b;
}

.tab-accordion-arrow {
    font-size: 1rem;
    color: #475569;
}

.tab-accordion-content {
    display: none;
    padding-left: 1rem;
}

.tab-accordion-content.active {
    display: block;
}

.tab-lab-icon,
.tab-gov-pc-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #2563eb;
    margin-right: .75rem;
}

.carousel-modal-overlay {
    display: none;
    position: fixed;
    z-index: 3999;
    inset: 0;
    justify-content: center;
    align-items: center;
}

.carousel-modal-content {
    background: white;
    padding: 1rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.carousel-modal-close {
    position: absolute;
    top: .5rem;
    right: .75rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.carousel-modal-img-wrapper {
    width: 100%;
    max-height: 65vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-modal-img {
    width: 100%;
    height: auto;
    border-radius: .75rem;
    display: none;
}

.carousel-modal-img.active {
    display: block;
}

.carousel-modal-caption {
    margin-top: .75rem;
    font-size: .95rem;
    color: #334155;
    text-align: center;
}

.carousel-modal-arrow {
    background: #1e40af;
    color: white;
    padding: .5rem .75rem;
    border-radius: .5rem;
    font-size: 1.25rem;
    cursor: pointer;
    border: none;
    transition: .2s;
}

.carousel-modal-arrow:hover {
    background: #1e3a8a;
}

.tab-accordion-btn.active {
    background: #dbeafe;
}

.tab-accordion-content.active h4 {
    color: #1e40af;
    font-weight: 600;
}

.tab-lab-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: .25rem;
    color: #1e293b;
}

.tab-lab-desc {
    font-size: .95rem;
    color: #475569;
}

@media (max-width: 768px) {
    .sobre-nosotros-box {
        padding: 1.5rem;
    }
    .tab-flex-row {
        flex-direction: column;
    }
    .tab-img {
        border-radius: .5rem;
    }
    .tab-title {
        font-size: 1.3rem;
    }
    .tab-desc {
        font-size: .95rem;
    }
    .tab-plan-title {
        font-size: 1rem;
    }
    .tab-plan-item span {
        font-size: .9rem;
    }
    .tab-accordion-btn {
        padding: .65rem .75rem;
    }
    .carousel-modal-content {
        width: 92%;
        padding: .75rem;
    }
    .carousel-modal-img {
        border-radius: .5rem;
    }
    .carousel-modal-caption {
        font-size: .85rem;
    }
}

.footer {
    background: #1e3a8a;
    color: white;
    padding: 2.5rem 0 1rem;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo-img {
    width: 60px;
    height: auto;
}

.footer-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
}

.footer-desc {
    margin-top: .5rem;
    font-size: .9rem;
    color: #dbeafe;
}

.footer-section-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: .5rem;
}

.footer-list {
    list-style: none;
    padding: 0;
}

.footer-link {
    color: #dbeafe;
    text-decoration: none;
    font-size: .9rem;
    transition: .25s;
}

.footer-link:hover {
    color: #93c5fd;
}

.footer-social-icon {
    width: 1rem;
    height: 1rem;
    margin-right: .4rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    font-size: .85rem;
    color: #cbd5e1;
}

.contact-info-map iframe {
    width: 100%;
    height: 300px;
    border-radius: .75rem;
    border: none;
}

.contact-form-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.contact-form-group {
    margin-bottom: 1rem;
}

.contact-form-label {
    font-size: .9rem;
    font-weight: 600;
    color: #1e293b;
}

.contact-form-input {
    margin-top: .25rem;
    width: 100%;
    padding: .65rem .75rem;
    border-radius: .5rem;
    border: 1px solid #cbd5e1;
}

.contact-form-btn {
    background: #1e40af;
    padding: .75rem 1rem;
    color: white;
    border-radius: .5rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: .25s;
}

.contact-form-btn:hover {
    background: #1e3a8a;
}

.ciclo-orientaciones-wrapper {
    background: linear-gradient(to bottom, #d5f7e9, #c9e8ff);
    padding: 3rem 1rem;
    border-radius: 1rem;
    margin-bottom: 3rem;
}

.ciclo-orientaciones-container {
    background: rgba(255, 255, 255, 0.0);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.ciclo-orientaciones-container .orientaciones-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: #1e40af;
    margin-bottom: 1.5rem;
}

.ciclo-orientaciones-box {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2.5rem 1.5rem;
    max-width: 1350px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
}

.ciclo-orientaciones-box .orientaciones-title {
    color: #1e3a8a;
    text-align: center;
    margin-bottom: 1.5rem;
}

.ciclo-orientaciones-box .tabs-nav {
    justify-content: center;
    margin-bottom: 2rem;
}

.ciclo-orientaciones-box .tab-img {
    border-radius: .75rem;
    max-height: 300px;
    object-fit: cover;
}

.ciclo-orientaciones-box .tab-flex-row {
    gap: 2rem;
}

.ciclo-orientaciones-box .tab-accordion {
    background: #f9fafc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 1rem;
    border-radius: .75rem;
}

.tabs-btn-group {
    background: white;
    border-radius: .5rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.tab-button {
    background: #e5e7eb;
    color: #1e293b;
}

.tab-button-active {
    background: #1e40af;
    color: white;
}

.ciclo-content-wrapper {
    background: rgba(255, 255, 255, 0.3);
    padding: 2rem;
    border-radius: 1rem;
    backdrop-filter: blur(1px);
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.15);
}

.tab-plan-item span {
    color: #475569;
}

.tab-plan-list {
    color: #475569;
}

.ciclo-card.plan-estudios-card {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.ciclo-card.plan-estudios-card h2,
.ciclo-card.plan-estudios-card .ciclo-subtitle {
    font-size: 1.45rem;
    margin-bottom: 1.75rem;
    text-align: center;
}

.ciclo-card.plan-estudios-card table {
    width: 100%;
    font-size: 0.98rem;
}

.ciclo-card.plan-estudios-card .curricular-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 1.75rem;
}

.ciclo-card.plan-estudios-card .curricular-box {
    background: #fff;
    padding: 1.75rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.ciclo-plan-wrapper {
    background: #f3f6fb;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.ciclo-plan-title {
    text-align: center;
    color: #1e3a8a;
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.ciclo-plan-table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.ciclo-plan-table-wrapper th {
    background: #dbeafe;
    padding: 0.75rem;
    text-align: left;
}

.ciclo-plan-table-wrapper td {
    padding: 0.6rem;
    border-bottom: 1px solid #e5e7eb;
}

.ciclo-plan-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.ciclo-plan-card {
    background: #ffffff;
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.curricular-btn {
    display: inline-block;
    margin-top: 1rem;
    background: #1e40af;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
}

.curricular-btn:hover {
    background: #1d4ed8;
}

.ciclo-plan-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #ffffff;
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    border: 1px solid #d1d5db;
}

.ciclo-plan-card h4,
.ciclo-plan-card h3 {
    margin-bottom: 0.75rem;
}

.ciclo-plan-card p {
    margin-bottom: 1rem;
    color: #475569;
    max-width: 350px;
}

.ciclo-plan-card a {
    margin-top: auto;
}

.ciclo-orientaciones-wrapper {
    padding: 1.5rem 0.8rem !important;
    margin-bottom: 2rem !important;
}

.ciclo-orientaciones-container {
    padding: 0.3rem 0 !important;
}

.orientaciones-title {
    font-size: 1.6rem !important;
    margin-bottom: 0.8rem !important;
}

.tabs-nav {
    margin-bottom: 1rem !important;
}

.tabs-btn-group button {
    padding: 0.45rem 0.9rem !important;
    font-size: 0.9rem !important;
}

.ciclo-content-wrapper {
    padding: 1.2rem 1rem !important;
    border-radius: 10px !important;
}

.tab-flex-row {
    gap: 1rem !important;
}

.tab-img {
    max-width: 290px !important;
    max-height: 180px !important;
    margin-bottom: 0.5rem !important;
}

.tab-info-col {
    padding-left: 0.3rem !important;
}

.tab-desc {
    font-size: 0.9rem !important;
    margin-bottom: 0.7rem !important;
    line-height: 1.35 !important;
}

.tab-plan-title {
    margin-top: 0.6rem !important;
    margin-bottom: 0.4rem !important;
    font-size: 1rem !important;
}

.tab-plan-item {
    margin-bottom: 0.28rem !important;
    font-size: 0.9rem !important;
}

.tab-accordion {
    margin-top: 1rem !important;
    padding: 0.55rem 0.7rem !important;
}

.tab-accordion-btn {
    padding: 0.5rem 0.6rem !important;
    font-size: 0.9rem !important;
}

.tab-accordion-content {
    padding-left: 1.1rem !important;
    margin-top: 0.4rem !important;
    font-size: 0.88rem !important;
}

.ciclo-orientaciones-container,
.ciclo-content-wrapper {
    max-width: 1400px !important;
    width: 100% !important;
    margin: 0 auto !important;
}

.orientacion-imagen {
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

.columna-imagen {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ciclo-offset {
    margin-top: 140px;
}

@media (max-width: 768px) {
    .ciclo-offset {
        margin-top: 100px;
    }
}

.ciclo-offset-superior {
    height: 100px;
}

@media (max-width: 768px) {
    .tab-flex-row {
        flex-direction: column !important;
    }
    .orientacion-imagen {
        max-height: 220px !important;
        width: 100% !important;
        object-fit: contain !important;
    }
    .tab-info-col {
        padding: 0 !important;
    }
    .ciclo-content-wrapper {
        padding: 1rem !important;
    }
    .tabs-btn-group button {
        padding: 0.7rem 1rem !important;
        font-size: 1rem !important;
    }
    .tab-accordion-btn {
        padding: 0.7rem !important;
        font-size: 0.95rem !important;
    }
    .tab-accordion-content {
        font-size: 0.9rem !important;
    }
    #panel-content {
        width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
    }
    #panel-img {
        object-fit: contain !important;
        height: 50vh !important;
    }
    #panel-title {
        font-size: 1.4rem !important;
    }
}

.ciclo-plan-table-wrapper {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    margin-top: 1rem;
    border-radius: 12px;
}

.ciclo-plan-table-wrapper table {
    width: 100%;
    min-width: 750px;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.ciclo-plan-table-wrapper th,
.ciclo-plan-table-wrapper td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.95rem;
    color: #1e293b;
}

.ciclo-plan-table-wrapper th {
    background: #dbeafe;
    font-weight: 700;
    color: #1e3a8a;
}

.ciclo-plan-table-wrapper tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .ciclo-plan-table-wrapper table {
        font-size: 0.85rem;
        min-width: 500px;
    }
    .ciclo-plan-table-wrapper th,
    .ciclo-plan-table-wrapper td {
        padding: 0.55rem;
    }
}

@media (max-width: 768px) {
    .ciclo-plan-title {
        font-size: 1.2rem !important;
        margin-bottom: 1rem !important;
    }
    .ciclo-plan-table-wrapper table {
        font-size: 0.85rem !important;
        min-width: 650px !important;
    }
    .ciclo-plan-table-wrapper th,
    .ciclo-plan-table-wrapper td {
        padding: 0.55rem !important;
    }
    .ciclo-plan-card {
        padding: 1.2rem !important;
    }
    .ciclo-plan-cards {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

footer.footer {
    background: #1f2937;
    color: white;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-container {
    max-width: 1600px;
    margin: auto;
    padding: 0 2rem;
}

.footer-main {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.footer-logo {
    display: flex;
    gap: 0.7rem;
    align-items: center;
}

.footer-logo-img {
    width: 60px;
    height: auto;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-desc {
    font-size: 0.9rem;
    opacity: 0.85;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    text-align: left;
}

.footer-section-title {
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    color: #d1d5db;
}

.footer-social-icon {
    width: 1.1rem;
    height: 1.1rem;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    footer.footer {
        padding: 1.5rem 0 !important;
    }
    .footer-container {
        padding: 0.5rem 1rem !important;
    }
    .footer-main {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 1.2rem !important;
        align-items: start !important;
    }
    .footer-info {
        text-align: left !important;
    }
    .footer-logo-img {
        width: 45px !important;
    }
    .footer-title {
        font-size: 0.95rem !important;
        font-weight: 700 !important;
    }
    .footer-desc {
        font-size: 0.75rem !important;
        opacity: 0.85 !important;
    }
    .footer-links-grid {
        justify-self: center !important;
        text-align: left !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }
    .footer-list {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }
    .footer-link {
        display: flex !important;
        align-items: center !important;
        gap: 0.35rem !important;
    }
    .footer-section-title {
        font-size: 0.9rem !important;
        margin-bottom: 0.2rem !important;
    }
    .footer-link {
        font-size: 0.82rem !important;
        opacity: 0.9;
    }
    .footer-social-icon {
        width: 0.9rem !important;
        height: 0.9rem !important;
    }
    .footer-bottom {
        grid-column: span 2 !important;
        text-align: center !important;
        margin-top: 1rem !important;
        padding-top: 0.6rem !important;
        border-top: 1px solid #374151 !important;
        font-size: 0.7rem !important;
        opacity: 0.6;
    }
}

.contact-modal-msg {
    position: fixed;
    top: 120px;
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    background: white;
    padding: 28px 38px;
    border-radius: 22px;
    border: 3px solid #ef4444;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.35s ease;
    z-index: 9999;
    text-align: center;
    max-width: 380px;
}

.contact-modal-msg.show {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.contact-modal-icon {
    font-size: 42px;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.contact-modal-icon.success {
    color: #22c55e;
}

.contact-modal-icon.error {
    color: #ef4444;
}

.contact-modal-text {
    font-size: 18px;
    color: #333;
    line-height: 1.4;
}