 /* Your existing styles from styles.css will be included here */
 :root {
    --background-color: #e0f7fa;
    --text-color: #004d40;
    --heading-color: #f2fffd;
    --accent-color: #00796b;
    --light-green: #b2dfdb;
    --lighter-green: #e0f2f1;
    --button-color: #26a69a;
    --button-hover-color: #00897b;
    --border-color: #80cbc4;
    --highlight-color: #c8e6c9;
}

/* Base Styles */
body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 0.9em;
    font-family: sans-serif;
    line-height: 1.6;
}

h1 {
    color: var(--heading-color);
    font-weight: bold;
    font-style: italic;
}

h2 {
    color: var(--accent-color);
}

a {
    color: var(--text-color);
    text-decoration: none;
}

/* Box Styles */
.light-blue-box {
    background-color: var(--light-green);
    padding: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

.light-green-box {
    background-color: var(--lighter-green);
    padding: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

/* Button Styles */
.resume-button {
    background-color: var(--button-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.resume-button:hover {
    background-color: var(--button-hover-color);
}

/* Highlight Style */
.highlight {
    background-color: var(--highlight-color);
    padding: 2px 5px;
    border-radius: 3px;
}

/* Image Styles */
.img-circle {
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

/* Contact Card Color */
.card.dark-green {
    background-color: #083f3f;
    color: white;
}

.col-md-4 .education-card {
    background-color: #c2eabd;
    color: black;
}

/* Main Info Styles */
#maininfo {
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 1.2em;
    padding: 30px;
    width: 100%;
    text-align: justify;
}

/* Centered row style */
.centered-row {
    display: flex;
    justify-content: center;
}
#work-experience-section {
    background-color: azure; /* Match maininfo background */
    padding: 30px;
}

#work-experience-section img {
    width: 380px; /* Match maininfo image width */
    height: 380px; /* Match maininfo image height */
}

#work-experience-text p {
    font-size: 1rem; /* Match maininfo text size */
    text-align: justify; /* Match maininfo text alignment */
}

#work-experience-text h2{
    text-align: center;
    font-weight:bold;

}
#work-experience-text h4{
    font-weight:bold;
    text-align:center;
}
#work-experience-text p{
    text-align:justify;
}


/* Styles for Extracurricular Sections */
.extracurricular-card {
    background-color: #b8e0e0;
    color: black;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.extracurricular-card:hover {
    transform: scale(1.02);
}

.extracurricular-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.extracurricular-card h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.extracurricular-card p {
    font-size: 1rem;
    margin-bottom: 0;
}

.extracurricular-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}


/* Override Bootstrap's column styling on the direct children of the grid */
.extracurricular-grid-container > .col-md-4 {
    width: auto; /* Allow grid to control width */
    padding: 0; /* Remove padding */
}

/* Move the existing row classes to the grid container */
.extracurricular-cards-section .row {
   margin-top: 0; /* Override the default margin */
}

.extracurricular-cards-section {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    width: 100%; /* Ensure it takes full width */
}

.extracurricular-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
    max-width: 800px;
    width: 100%;
}

.extracurricular-cards-container {
    display: flex;
    flex-direction: column; /* Para que las filas se apilen verticalmente */
    align-items: center; /* Centra las filas horizontalmente */
}

.extracurricular-cards-container .row.mt-5 {
    display: flex;
    justify-content: center;
    width: 100%;
}

.extracurricular-cards-container .row.mt-5 > .col-md-4 {
    flex: 0 0 auto;
    width: auto;
}

/* ... (Tu CSS existente) ... */
/* Styles for Extracurricular Sections */
.extracurricular-card {
    background-color: #b8e0e0;
    color: black;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.extracurricular-card:hover {
    transform: scale(1.02);
}

.extracurricular-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.extracurricular-card h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.extracurricular-card p {
    font-size: 1rem;
    margin-bottom: 0;
}

.extracurricular-card img {
    border: 5px solid rgb(3, 90, 101); /* Agrega un borde rojo a las imágenes */
    max-height:300px;
    max-width:300px;
    object-fit: cover;
    margin-bottom:15px;
    border-radius:5px;

}

.extracurricular-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}