/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #ffffff;
}

/* Skip link para accesibilidad */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* Header */
.header {
    background-color: #dd2341;
    height: 80px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.logo {

    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #dd2341;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.logo-img {
    height: 56px;
    width: 200px;
    object-fit: contain;
}

.logo:hover {
    transform: scale(1.05);
}

.logo:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Main content */
.main-content {
    min-height: calc(100vh - 300px);
    padding: 60px 40px;
    background-color: #f9f9f8;
}

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

/* Hero section */
.hero {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 3rem);
    font-weight: 300;
    color: #000;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    line-height: 1;
    text-align: left;
    border-bottom: 2px solid #dd2341;
    padding-bottom: 20px;
    width: 33%;
}

.hero-title strong {
    font-weight: 500;
    color: #dd2341;
}

/* Call to action section */
.cta-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    padding: 0px 20px;
}

.cta-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.cta-card-link:focus {
    outline: 2px solid #dd2341;
    outline-offset: 2px;
    border-radius: 4px;
}

.cta-card {
    background-color: #f1f0ed;
    padding: 40px 30px;
    text-align: left;
    height: 100%;
    cursor: pointer;
}

.cta-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    display: block;
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 15px;
}

.cta-description {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.cta-button {
    display: inline-block;
    background-color: transparent;
    color: #000;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 0;
    font-weight: 500;
    transition: color 0.3s ease, border-color 0.3s ease;
    border: none;
    border-bottom: 2px solid #dd2341;
    cursor: pointer;
    pointer-events: none;
}

.cta-card-link:hover .cta-button {
    color: #dd2341;
}

/* Footer */
.footer {
    background-color: #fff;
    padding: 40px 0 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
}

.footer-left {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: inline-block;
    text-decoration: none;
    margin-bottom: 15px;
}

.footer-logo:focus {
    outline: 2px solid #dd2341;
    outline-offset: 2px;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.footer-separator {
    width: 60px;
    height: 2px;
    background-color: #dd2341;
    margin-bottom: 10px;
}

.footer-vicerrectorado {
    font-size: 0.75rem;
    color: #dd2341;
    line-height: 1.3;
    margin-bottom: 15px;
    font-weight: 500;
}

.footer-text {
    font-size: 0.85rem;
    color: #000;
    line-height: 1.4;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-links {
    list-style: none;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #000;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #dd2341;
    text-decoration: underline;
}

.footer-links a:focus {
    outline: 2px solid #dd2341;
    outline-offset: 1px;
    border-radius: 2px;
}

.copyright {
    grid-column: 1 / -1;
    text-align: left;
    font-size: 0.8rem;
    color: #000;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Clase para lectores de pantalla */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .header {
        height: 70px;
    }

    .header-container {
        padding: 0 15px;
    }

    .logo {
        height: 40px;
        font-size: 0.9rem;
    }

    .logo-img {
        height: 100%;
    }

    .main-content {
        padding: 40px 15px;
    }

    .hero-title {
        margin-bottom: 40px;
    }

    .cta-section {
        gap: 20px;
        margin-bottom: 40px;
    }

    .cta-card {
        padding: 30px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-right {
        align-items: flex-start;
    }

    .footer {
        padding: 30px 0 15px;
    }

    .footer-content {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .cta-section {
        grid-template-columns: 1fr;
    }
}

/* Estados de focus mejorados para accesibilidad */
*:focus {
    outline: 2px solid #dd2341;
    outline-offset: 2px;
}

/* Mejoras de contraste */
@media (prefers-contrast: high) {
    .cta-card {
        border: 2px solid #333;
    }
}

/* Respeto por las preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
