:root {
    --color-dark-gray: #23272f;
    --color-red: #e63946;
    --color-red-dark: #b71c1c;
    --color-red-light: #ffdde1;
    --color-white: #ffffff;
    --color-bg: #f9f9f9;
    --color-gray-dark: #666666;
    --color-gray: #bdbdbd;
    --color-shadow: rgba(0,0,0,0.07);
    --font-headers: 'Montserrat', 'Manrope', Arial, sans-serif;
    --font-body: 'Inter', 'Open Sans', Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-dark-gray);
    font-size: 1.08rem;
    letter-spacing: 0.01em;
}

header {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1024px;
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%;
    box-sizing: border-box;
}

.header-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.header-title h1 {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 600;
    color: var(--color-dark-gray);
}

.header-title h2 {
    font-size: 1.2rem;
    margin: 0.5rem 0 0 0;
    font-weight: 400;
    color: var(--color-gray-dark);
}

.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.social-link.linkedin {
    background-color: #0077b5;
    color: white;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-link.twitter {
    background-color: #000000;
    color: white;
}

.slider {
    background-color: var(--color-red);
    width: 100%;
}

.slider-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.slide-content {
    display: flex;
    gap: 2rem;
    align-items: center;
    padding: 2rem 0;
}

.slide-text-column {
    flex: 1;
    order: -1; /* Asegura que el texto esté a la izquierda */
}

.slide-text {
    color: var(--color-white);
    font-size: 1.2rem;
    line-height: 1.4;
    font-weight: 400;
}

.slide-image-column {
    flex: 1;
}

.slide-image-column img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .slide-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .slide-text-column {
        order: 1; /* En móvil, el texto va después de la imagen */
        width: 100%;
    }

    .slide-image-column {
        order: 0; /* En móvil, la imagen va primero */
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .slide-text {
        color: var(--color-white);
        font-size: 1rem;
        line-height: 1.4;
        font-weight: 400;
    }
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    background-color: var(--color-white);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 5px;
}

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

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

.form-group label {
    font-family: var(--font-headers);
    font-weight: 600;
}

.form-group input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.error-message {
    background-color: #ffe6e6;
    color: #ff0000;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 1rem;
}

button[type="submit"] {
    background-color: var(--color-red);
    color: var(--color-white);
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-headers);
    font-weight: 600;
}

button[type="submit"]:hover {
    background-color: #cc0000;
}

/* Contenedor principal */
.main-content {
    padding: 2rem 0;
}

.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    gap: 2rem;
    box-sizing: border-box;
}

.column-left {
    flex: 2;
}

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

.cv-download, .other-activities {
    background-color: var(--color-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cv-download {
    background-color: var(--color-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cv-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--color-red);
    color: var(--color-white);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.cv-download-btn:hover {
    background-color: #cc0000;
}

.cv-download-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.other-activities {
    margin-top: 0;
}

.other-activities h2 {
    color: var(--color-dark-gray);
    font-size: 1.3rem;
    margin-top: 0.3rem;
    margin-bottom: 0.8rem;
}

.other-activities p {
    color: var(--color-text);
    line-height: 1.4;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}

.radio-programs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-program {
    display: block;
    transition: transform 0.3s ease;
}

.radio-program:hover {
    transform: translateY(-2px);
}

.radio-program-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tabs {
    width: 100%;
}

.tab-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    font-family: var(--font-headers);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    color: var(--color-dark-gray);
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--color-red);
}

.tab-btn.active {
    color: var(--color-red);
    border-bottom-color: var(--color-red);
}

.tab-panel {
    display: none;
    padding: 1rem 0;
}

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

/* Sidebar buttons */
.sidebar-buttons {
    padding: 1rem 0;
}

.admin-button {
    display: inline-block;
    background-color: var(--color-red);
    color: var(--color-white);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.admin-button:hover {
    background-color: #cc0000;
}

/* Footer */
.footer {
    background-color: var(--color-dark-gray);
    color: var(--color-white);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 20px;
}

.login-button {
    background-color: #cc0000;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
    margin-left: auto;
}

.login-button:hover {
    background-color: #990000;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Estilos para experiencia laboral y educación */
.experiencia-item h4,
.educacion-item h3 {
    color: #cc0000;
    font-size: 1.05em;
    margin: 5px 0 2px 0;
    font-weight: 600;
}

.experiencia-item h3,
.educacion-item h4 {
    font-size: 1.1em;
    margin: 5px 0 2px 0;
    color: #333;
    font-weight: 600;
}

.experiencia-item:first-child h4,
.experiencia-item:first-child h3,
.educacion-item:first-child h3,
.educacion-item:first-child h4 {
    margin-top: 0;
}

.experiencia-item .fecha,
.educacion-item .fecha {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.experiencia-item .descripcion,
.experiencia-item .info-adicional {
    margin-top: 5px;
    line-height: 1.4;
}

.experiencia-item .descripcion {
    margin-bottom: 5px;
}

.experiencia-item,
.educacion-item {
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.experiencia-item:last-child,
.educacion-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Estilos para el botón Ver más y contenido adicional */
.info-adicional-container {
    margin-top: 5px;
}

.ver-mas-btn {
    background: none;
    border: none;
    color: #cc0000;
    cursor: pointer;
    font-size: 0.9em;
    padding: 0;
    transition: color 0.3s ease;
}

.ver-mas-btn:hover {
    color: #990000;
}

.info-adicional-content {
    margin-top: 8px;
    transition: max-height 0.3s ease-out;
    overflow: hidden;
}

.info-adicional-content.hidden {
    display: none;
}

.info-adicional {
    margin: 0;
    color: #666;
    line-height: 1.4;
	font-size: 0.8rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .container {
        width: 100%;
        max-width: 95%;
        margin: 0 auto;
        padding: 1rem;
    }

    .column-left {
        width: calc(70% - 1rem);
    }

    .column-right {
        width: calc(30% - 1rem);
    }
}

@media (max-width: 768px) {
    .slider-content {
        flex-direction: column;
    }

    .slider-image {
        width: 100%;
        margin-bottom: 1rem;
    }

    .slider-text {
        width: 100%;
        padding-left: 0;
    }

    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }

    .header-title {
        align-items: center;
    }

    .header-title h1 {
        font-size: 2rem;
        text-align: center;
    }

    .header-title h2 {
        font-size: 1rem;
        text-align: center;
    }

    .container {
        flex-direction: column;
        padding: 1rem;
    }
    
    .column-left,
    .column-right {
        width: 100%;
        padding: 0;
    }

    .column-right {
        margin-top: 2rem;
    }

    .cv-download {
        max-width: 400px;
        margin: 0 auto;
    }

    .slide-text-column,
    .slide-image-column {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .footer-content {
        padding: 0 1rem;
    }

    .experiencia-item,
    .educacion-item {
        padding: 0.8rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .header-title h1 {
        font-size: 1.6rem;
    }

    .header-title h2 {
        font-size: 0.9rem;
    }

    .container {
        padding: 0.5rem;
    }

    .column-left,
    .column-right {
        padding: 0.8rem;
    }

    .tab-buttons {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .tab-btn {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
        width: calc(50% - 0.5rem);
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .experiencia-item h3,
    .educacion-item h3,
    .experiencia-item h4,
    .educacion-item h4 {
        font-size: 1em;
    }

    .fecha {
        font-size: 0.85em;
    }

    .descripcion,
    .info-adicional {
        font-size: 0.9em;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .login-button {
        margin: 0 auto;
    }
}

/* Ajustes para dispositivos muy pequeños */
@media (max-width: 320px) {
    .header-title h1 {
        font-size: 1.4rem;
    }

    .tab-btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-height: 480px) and (orientation: landscape) {
    header {
        padding: 1rem 0;
    }

    .header-title h1 {
        font-size: 1.8rem;
    }

    .container {
        margin-top: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .container {
        max-width: 90%;
    }

    .column-left {
        flex: 0 0 65%;
    }

    .column-right {
        flex: 0 0 35%;
    }
}