/* styles.css - Versión optimizada con máxima accesibilidad */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #0f3b5e;
    --primary-light: #f9c20c;
    --text-dark: #1e293b;
    --text-light: #475569;
    --border-color: #e2e8f0;
    --bg-light: #f9fafb;
}

html {
    scrollbar-gutter: stable;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: #1e293b;
    background-color: #fff;
    font-size: 20px;
    width: 100%;
}

main {
    width: 100%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* TOP BAR */
.top-bar {
    background: #0f3b5e;
    color: #fff;
    padding: 0.8rem 0;
    font-size: 1rem;
}

.top-bar-container {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.contact-info-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.contact-info-top span {
    margin: 0 0.3rem;
    white-space: nowrap;
}

.contact-info-top i {
    margin-right: 5px;
    color: #f9c20c;
}

.contact-info-top .separator {
    opacity: 0.5;
}

.contact-info-top a {
    text-decoration: none;
    color: inherit;
}

.colab-links li {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* HEADER */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05), 0 2px 10px rgba(0,0,0,0.05);
    height: 90px;
    display: flex;
    align-items: center;
    width: 100%;
    left: 0;
    right: 0;
    box-sizing: border-box;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.logo a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-img {
    max-width: 150px;
    height: auto;
    display: block;
    object-fit: contain;
    min-height: 40px;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: #f9c20c;
    border-bottom-color: #f9c20c;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: #0f3b5e;
    margin: 3px 0;
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(11px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-11px);
}

/* SECTIONS */
.section {
    padding: 5rem 0;
    scroll-margin-top: 70px;
}

.bg-light {
    background-color: #f9fafb;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #0f3b5e;
    text-align: center;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: #f9c20c;
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* HERO */
.hero {
    position: relative;
    overflow: hidden;
    background: none;
    padding: 3rem 0;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.hero-text {
    margin-bottom: 2rem;
}

.hero-badge {
    display: inline-block;
    background: #f9c20c;
    color: #0f3b5e;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 4px 10px rgba(0,0,0,0.9), 0 0 25px rgba(0,0,0,0.7);
}

.hero-subhead {
    font-size: 1.5rem;
    color: #f9c20c;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.3px;
    text-shadow: 0 3px 8px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.7);
}

.hero-description {
    font-size: 1.25rem;
    color: #f0f0f0;
    margin-bottom: 1.5rem;
    text-shadow: 0 3px 8px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.7);
}

.hero-sedes {
    margin: 1.5rem 0 3rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sede-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #0f3b5e;
    color: #fff;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    border-radius: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.sede-badge i {
    color: #f9c20c;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-card {
    background: #fff;
    padding: 1.5rem 1rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: #f9c20c;
}

.stat-icon {
    font-size: 2rem;
    color: #f9c20c;
    margin-bottom: 0.5rem;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #0f3b5e;
}

.stat-label {
    font-size: 0.85rem;
    color: #64748b;
}

/* QUIÉNES SOMOS */
.historia-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.fundado-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0f3b5e;
    color: #fff;
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.fundado-badge i {
    color: #f9c20c;
}

.historia-texto h3 {
    color: #f9c20c;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.historia-destacado {
    background: #fff;
    padding: 1.5rem;
    border-left: 4px solid #f9c20c;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.mision-card,
.expansion-card {
    background: #fff;
    padding: 2rem 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.mision-icon,
.expansion-icon {
    font-size: 2.2rem;
    color: #f9c20c;
    margin-bottom: 1rem;
}

.mision-card h4,
.expansion-card h4 {
    color: #0f3b5e;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.mision-card p,
.expansion-card p {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* CURSOS */
.subsection-title {
    font-size: 2rem;
    font-weight: 600;
    color: #0f3b5e;
    margin: 2.5rem 0 1.5rem;
    text-align: center;
}

.subsection-title i {
    color: #f9c20c;
    margin-right: 10px;
}

.cursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}

.curso-card {
    background: #fff;
    padding: 2rem 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.curso-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: #f9c20c;
}

.curso-icon {
    font-size: 2.2rem;
    color: #f9c20c;
    margin-bottom: 1rem;
}

.curso-card h4 {
    color: #0f3b5e;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.curso-duracion {
    color: #f9c20c;
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.curso-descripcion {
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.curso-sede {
    font-size: 0.95rem;
    color: #64748b;
}

.curso-sede i {
    color: #f9c20c;
    margin-right: 4px;
}

.cursos-palma-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.palma-tag {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #0f3b5e;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.palma-tag:hover {
    background: #f9c20c;
    color: #0f3b5e;
    border-color: #f9c20c;
}

/* COMPROMISO */
.compromiso-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
}

.compromiso-item {
    background: #fff;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    transition: background 0.2s;
}

.compromiso-item:hover {
    background: #f8fafc;
}

.compromiso-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #f9c20c;
    color: #0f3b5e;
    border-radius: 50%;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.compromiso-item p {
    color: #1e293b;
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

/* COLABORADORES */
.colaboradores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.colaborador-categoria {
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    border: 1px solid #e2e8f0;
}

.colaborador-categoria h4 {
    color: #0f3b5e;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f9c20c;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.colaborador-categoria h4 i {
    color: #f9c20c;
}

.colab-links {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
}

.colab-links li {
    color: #475569;
    font-size: 1rem;
    margin-bottom: 0;
    padding-left: 1.2rem;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

.colab-links li::before {
    content: "•";
    color: #f9c20c;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* QUOTE */
.quote-section {
    background: #0f3b5e;
    color: #fff;
    text-align: center;
    padding: 4rem 0;
    position: relative;
}

.quote-section blockquote p {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.4;
    max-width: 800px;
    margin: 0 auto;
    quotes: """ """;
    font-style: italic;
}

.quote-section blockquote p::before {
    content: "\201C";
    color: #f9c20c;
    font-size: 3rem;
    line-height: 1;
    vertical-align: middle;
    margin-right: 5px;
}

.quote-section blockquote p::after {
    content: "\201D";
    color: #f9c20c;
    font-size: 3rem;
    line-height: 1;
    vertical-align: middle;
    margin-left: 5px;
}

/* CONTACTO */
.contact-subtitle {
    text-align: center;
    color: #f9c20c;
    font-weight: 500;
    margin-bottom: 3rem;
    font-size: 1.3rem;
}

.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 2rem;
}

.contact-form-section {
    background: #fff;
    padding: 2.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.form-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #0f3b5e;
    margin-bottom: 1.5rem;
}

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

.form-row {
    display: flex;
    flex-direction: column;
}

.form-row input,
.form-row textarea {
    padding: 0.9rem 1.2rem;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #f9c20c;
    box-shadow: 0 0 0 4px rgba(249,194,12,0.15);
}

.checkbox-row {
    margin: 0.5rem 0;
}

.checkbox-row label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    color: #475569;
    cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #f9c20c;
}

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

.contact-info-card {
    background: #fff;
    padding: 1.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.2s;
}

.contact-info-card:hover {
    transform: translateY(-3px);
    border-color: #f9c20c;
}

.contact-icon {
    font-size: 1.5rem;
    color: #f9c20c;
    margin-bottom: 0.75rem;
}

.contact-info-card h3 {
    color: #0f3b5e;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: 0.3px;
}

.contact-info-card p {
    color: #475569;
    font-size: 1rem;
    margin: 0.2rem 0;
}

.contact-info-card a {
    text-decoration: none;
    color: inherit;
}

.contact-info-card a:hover {
    text-decoration: underline;
    color: #f9c20c;
}

/* MAPA */
.map-container {
    width: 100%;
    height: 350px;
    background: #e2e8f0;
    border: 2px solid #cbd5e1;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    margin-top: 1.5rem;
}

.map-container:hover {
    transform: translateY(-3px);
    border: 2px solid #f9c20c;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* BOTONES */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: 2px solid #f9c20c;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    color: #f9c20c;
    text-align: center;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn-primary {
    background: #f9c20c;
    color: #0f3b5e;
    border: 2px solid #f9c20c;
}

.btn-primary:hover {
    background: #e0ae0a;
    border-color: #e0ae0a;
}

.btn-block {
    width: 100%;
}

.btn i {
    font-size: 1rem;
}

/* SCROLL TOP */
.scroll-top-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f9c20c;
    color: #0f3b5e;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, background 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: #e0ae0a;
}

/* FOOTER */
.site-footer {
    background: #0f3b5e;
    color: #e2e8f0;
    padding: 2rem 0;
    text-align: center;
}

.footer-copyright p {
    margin: 0.3rem 0;
    font-size: 1rem;
}

.footer-credits {
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.footer-link {
    color: #e2e8f0;
    text-decoration: none;
    margin: 0 0.3rem;
    font-size: 1rem;
}

.footer-link:hover {
    color: #f9c20c;
}

/* ANIMACIONES */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* SECTION BANNER */
.section-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    background: transparent;
    border-radius: 20px;
    margin: 2rem 0;
    overflow: hidden;
}

.banner-logo {
    max-width: 100%;
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    box-shadow: none;
    border-radius: 20px;
}

#cursos .section-banner .banner-logo {
    object-position: center 15%;
    height: 350px;
}

#compromiso .section-banner .banner-logo {
    object-position: center 35%;
    height: 350px;
}

#colaboradores .section-banner .banner-logo {
    object-position: center 50%;
    height: 350px;
}

/* RESPONSIVE */

/* Desktop (1025px+) */
@media (min-width: 1025px) {
    body {
        font-size: 18px;
    }

    .section {
        padding: 6rem 0;
    }

    .section-title {
        font-size: 2.8rem;
        margin-bottom: 3.5rem;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .hero-subhead {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1.25rem;
    }

    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }

    .stat-card {
        padding: 2rem 1.5rem;
    }

    .historia-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .mision-vision {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .cursos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .curso-card {
        padding: 2.5rem 2rem;
    }

    .colaboradores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .compromiso-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .contact-wrapper {
        flex-direction: row;
        gap: 4rem;
    }

    .contact-form-section {
        flex: 1;
    }

    .contact-info-section {
        flex: 1;
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-info-card {
        padding: 2rem 1rem;
    }

    .contact-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .contact-info-card h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .contact-info-card p {
        font-size: 0.9rem;
        margin: 0.2rem 0;
    }

    .quote-section blockquote p {
        font-size: 2.2rem;
    }
}

/* iPad mini (769px - 850px) */
@media (min-width: 769px) and (max-width: 850px) {
    .logo-img {
        max-width: 160px;
    }

    .nav-link {
        font-size: 1rem;
        gap: 1.5rem;
    }

    .section {
        padding: 5rem 0;
    }

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

    .section-title::after {
        width: 80px;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-badge {
        font-size: 0.85rem;
        padding: 0.35rem 1rem;
    }

    .hero-subhead {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem 1rem;
    }

    .stat-icon {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .fundado-badge {
        font-size: 0.95rem;
    }

    .historia-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .subsection-title {
        font-size: 1.95rem;
        margin: 2.5rem 0 1.5rem;
    }

    .mision-vision {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .mision-card h4,
    .expansion-card h4 {
        font-size: 1.2rem;
    }

    .cursos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }

    .curso-card {
        padding: 2rem 1.5rem;
    }

    .curso-card h4 {
        font-size: 1.3rem;
    }

    .palma-tag {
        padding: 0.55rem 1.2rem;
        font-size: 0.95rem;
    }

    .colaboradores-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .colaborador-categoria h4 {
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }

    .compromiso-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .contact-wrapper {
        flex-direction: column;
        gap: 2.5rem;
    }

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

    .contact-info-card {
        padding: 1.5rem 1rem;
    }

    .contact-icon {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }

    .contact-info-card h3 {
        font-size: 1.1rem;
    }

    .quote-section blockquote p {
        font-size: 1.8rem;
    }

    .map-container {
        height: 300px;
    }
}

/* iPad Air, iPad Pro, Surface (851px - 1024px) - TAMAÑOS AUMENTADOS */
@media (min-width: 851px) and (max-width: 1024px) {
    body {
        font-size: 22px;
    }

    .section {
        padding: 5.5rem 0;
    }

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

    .section-title::after {
        width: 90px;
    }

    .hero-text h1 {
        font-size: 3.8rem;
    }

    .hero-badge {
        font-size: 0.9rem;
        padding: 0.4rem 1.2rem;
    }

    .hero-subhead {
        font-size: 1.6rem;
    }

    .hero-description {
        font-size: 1.25rem;
    }

    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.2rem;
    }

    .stat-card {
        padding: 1.8rem 1.2rem;
    }

    .stat-icon {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    .historia-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .fundado-badge {
        font-size: 1.1rem;
        padding: 0.5rem 1.3rem;
    }

    .historia-destacado {
        padding: 1.8rem;
        font-size: 1.2rem;
    }

    .mision-card,
    .expansion-card {
        padding: 2.2rem 1.8rem;
    }

    .mision-icon,
    .expansion-icon {
        font-size: 2.5rem;
    }

    .mision-card h4,
    .expansion-card h4 {
        font-size: 1.5rem;
    }

    .mision-card p,
    .expansion-card p {
        font-size: 1.2rem;
    }

    .subsection-title {
        font-size: 2.3rem;
        margin: 2.5rem 0 1.5rem;
    }

    .subsection-title i {
        margin-right: 12px;
    }

    .cursos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .curso-card {
        padding: 2.2rem 1.6rem;
    }

    .curso-icon {
        font-size: 2.4rem;
    }

    .curso-card h4 {
        font-size: 1.6rem;
    }

    .curso-duracion {
        font-size: 1.2rem;
    }

    .curso-descripcion {
        font-size: 1.2rem;
    }

    .curso-sede {
        font-size: 1.05rem;
    }

    .palma-tag {
        padding: 0.65rem 1.4rem;
        font-size: 1.1rem;
    }

    .colaboradores-grid {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }

    .colaborador-categoria {
        padding: 2.2rem;
    }

    .colaborador-categoria h4 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .colab-links li {
        font-size: 1.1rem;
    }

    .compromiso-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .compromiso-item {
        padding: 1.8rem;
        gap: 1.3rem;
    }

    .compromiso-check {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .compromiso-item p {
        font-size: 1.1rem;
    }

    .quote-section {
        padding: 4.5rem 0;
    }

    .quote-section blockquote p {
        font-size: 2.2rem;
    }

    .quote-section blockquote p::before,
    .quote-section blockquote p::after {
        font-size: 3.2rem;
    }

    .contact-subtitle {
        font-size: 1.5rem;
    }

    .contact-form-section {
        padding: 2.8rem;
    }

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

    .form-row input,
    .form-row textarea {
        padding: 1rem 1.3rem;
        font-size: 1.1rem;
    }

    .checkbox-row label {
        font-size: 1.15rem;
    }

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

    .contact-info-card {
        padding: 1.8rem 1.1rem;
    }

    .contact-icon {
        font-size: 2.2rem;
        margin-bottom: 0.85rem;
    }

    .contact-info-card h3 {
        font-size: 1.35rem;
    }

    .contact-info-card p {
        font-size: 1.1rem;
    }

    .map-container {
        height: 330px;
    }
}

/* Tablet (768px y menos) */
@media (max-width: 1024px) {
    .site-header {
        height: 80px;
        position: sticky;
        top: 0;
        z-index: 1000;
        width: 100%;
        left: 0;
        right: 0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05), 0 2px 10px rgba(0,0,0,0.05);
    }

    .container {
        width: 95%;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .logo-img {
        max-width: 160px;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid #e2e8f0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 5px 10px rgba(0,0,0,0.05);
    }

    .main-nav.open {
        max-height: 600px;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        display: block;
        padding: 1.2rem;
        width: 100%;
        text-align: center;
        font-size: 1.2rem;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav-link:hover,
    .nav-link.active {
        background: #f9c20c;
        color: #0f3b5e;
        border-bottom-color: transparent;
    }

    .top-bar {
        padding: 0.5rem 0;
        font-size: 0.8rem;
    }

    .contact-info-top span {
        margin: 0 0.2rem;
    }
}

/* Tablet additional styles for smaller resolutions (below 769px) */
@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .hero-grid {
        gap: 2rem;
    }

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

    .hero-subhead {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .stat-card {
        padding: 1rem 0.75rem;
    }

    .stat-icon {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .historia-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cursos-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .curso-card {
        padding: 1.5rem 1rem;
    }

    .quote-section blockquote p {
        font-size: 1.5rem;
    }

    .quote-section blockquote p::before,
    .quote-section blockquote p::after {
        font-size: 2rem;
    }

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

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

    .contact-info-card {
        padding: 1.5rem 0.75rem;
    }

    .contact-info-card h3 {
        font-size: 0.95rem;
    }

    .map-container {
        height: 300px;
    }

    .colaborador-categoria {
        padding: 1.5rem;
    }

    .colaborador-categoria h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .colab-links {
        grid-template-columns: 1fr;
        gap: 0.5rem 0.75rem;
    }

    .colab-links li {
        font-size: 0.85rem;
        margin-bottom: 0;
    }

    .section-banner {
        padding: 1.5rem 0;
        margin: 1.5rem 0;
    }

    .banner-logo {
        height: 250px;
    }

    #cursos .section-banner .banner-logo {
        height: 250px;
    }

    #compromiso .section-banner .banner-logo {
        height: 250px;
    }

    #colaboradores .section-banner .banner-logo {
        height: 250px;
    }

    .compromiso-grid {
        grid-template-columns: 1fr;
    }

    .mision-card,
    .expansion-card {
        margin-bottom: 1rem;
    }
}

/* Mobile (480px y menos) */
@media (max-width: 480px) {
    .site-header {
        height: 70px;
        position: fixed;
        top: 0;
        z-index: 1000;
        width: 100%;
        left: 0;
        right: 0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05), 0 2px 10px rgba(0,0,0,0.05);
    }

    body {
        padding-top: 70px;
        position: relative;
    }

    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: #fff;
        z-index: 999;
    }

    .container {
        width: 100%;
        padding: 0 0.75rem;
    }

    .top-bar {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid #e2e8f0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 5px 10px rgba(0,0,0,0.05);
    }

    .main-nav.open {
        max-height: 400px;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        display: block;
        padding: 0.75rem 1rem;
        width: 100%;
        text-align: center;
        font-size: 0.9rem;
    }

    .nav-link:hover,
    .nav-link.active {
        background: #f9c20c;
        color: #0f3b5e;
        border-bottom-color: transparent;
    }

    .logo-img {
        max-width: 130px;
    }

    .section {
        padding: 2rem 0;
    }

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

    .section-title::after {
        width: 50px;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-grid {
        gap: 1.5rem;
    }

    .hero-text h1 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.8rem;
        margin-bottom: 0.75rem;
    }

    .hero-subhead {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .hero-sedes {
        margin: 1rem 0;
        gap: 0.3rem;
    }

    .sede-badge {
        padding: 0.3rem 0.8rem;
        font-size: 0.75rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .stat-card {
        padding: 0.75rem 0.5rem;
    }

    .stat-icon {
        font-size: 1.2rem;
    }

    .stat-number {
        font-size: 1.1rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .fundado-badge {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .historia-texto h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .historia-destacado {
        padding: 1rem;
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }

    .mision-card,
    .expansion-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }

    .mision-card h4,
    .expansion-card h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .subsection-title {
        font-size: 1.3rem;
        margin: 1.5rem 0 1rem;
    }

    .cursos-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .curso-card {
        padding: 1.25rem 1rem;
    }

    .curso-card h4 {
        font-size: 1.1rem;
    }

    .curso-duracion {
        font-size: 0.85rem;
    }

    .curso-descripcion {
        font-size: 0.85rem;
    }

    .cursos-palma-tags {
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .palma-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .compromiso-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .compromiso-item {
        padding: 1rem;
        gap: 0.75rem;
    }

    .compromiso-check {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }

    .compromiso-item p {
        font-size: 0.9rem;
    }

    .quote-section {
        padding: 2rem 0;
    }

    .quote-section blockquote p {
        font-size: 1.2rem;
        line-height: 1.3;
    }

    .quote-section blockquote p::before,
    .quote-section blockquote p::after {
        font-size: 1.5rem;
        margin: 0 2px;
    }

    .contact-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .contact-wrapper {
        gap: 1.5rem;
        flex-direction: column;
    }

    .contact-form-section {
        padding: 1.25rem;
        order: 1;
    }

    .contact-info-section {
        order: 2;
    }

    .form-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .form-row input,
    .form-row textarea {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

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

    .contact-info-card {
        padding: 1.25rem 0.75rem;
    }

    .contact-icon {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .contact-info-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .contact-info-card p {
        font-size: 0.85rem;
        margin: 0.15rem 0;
    }

    .map-container {
        height: 250px;
        margin-top: 1rem;
    }

    .colaboradores-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .colaborador-categoria {
        padding: 1.25rem;
    }

    .colaborador-categoria h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
        gap: 8px;
    }

    .colab-links {
        grid-template-columns: 1fr;
        gap: 0.4rem 0.5rem;
    }

    .colab-links li {
        font-size: 0.8rem;
        padding-left: 1rem;
    }

    .section-banner {
        padding: 1rem 0;
        margin: 1rem 0;
    }

    .banner-logo {
        height: 200px;
        border-radius: 15px;
    }

    #cursos .section-banner .banner-logo {
        height: 200px;
    }

    #compromiso .section-banner .banner-logo {
        height: 200px;
    }

    #colaboradores .section-banner .banner-logo {
        height: 200px;
    }

    .scroll-top-btn {
        width: 45px;
        height: 45px;
        bottom: 1rem;
        right: 1rem;
        font-size: 1rem;
    }

    .site-footer {
        padding: 1.5rem 0;
    }

    .footer-copyright p {
        font-size: 0.8rem;
        margin: 0.25rem 0;
    }

    .footer-credits {
        font-size: 0.75rem;
    }

    .footer-link {
        font-size: 0.8rem;
        margin: 0 0.15rem;
    }
}

/* Extra pequeño (320px) */
@media (max-width: 320px) {
    .container {
        padding: 0 0.5rem;
    }

    .hero-text h1 {
        font-size: 1.3rem;
    }

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

    .cursos-grid {
        grid-template-columns: 1fr;
    }

    .palma-tag {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
}
.colab-links a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.colab-links a:hover {
    text-decoration: underline;
}