* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.box-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 20px;
    max-width: 1200px;
    width: 100%;
}

.box-item {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.box-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.profile {
    grid-column: span 2;
    grid-row: span 2;
}

.profile img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.theme-switch {
    position: relative;
    align-self: flex-start;
    border: none;
    background-color: transparent;
    color: #333;
    font-size: 1.8rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.theme-switch:hover {
    color: #007bff;
}

.skills {
    grid-column: span 2;
}

.skill-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.skill-icons i {
    font-size: 3rem;
    color: #333;
    transition: color 0.3s ease;
}

.projectspage-icons i {
    font-size: 4rem;
    color: #333;
    transition: color 0.3s ease;
}

.skill-icons i:hover {
    color: #007bff;
}

#html-css-link:hover i {
    color: #007bff;
}

.projects {
    grid-column: span 2;
}

.project-list {
    display: flex;
    gap: 10px;
}

.project {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.project i {
    margin-right: 5px;
}

.contact {
    grid-column: span 1;
}

.languages {
    grid-column: span 1;
}

.contact-links {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.social-link {
    color: #333;
    font-size: 1.8rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #007bff;
}

.popup {
    display: none;
    position: absolute;
    background-color: #333;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup.show {
    display: block;
    opacity: 1;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hability-link {
    color: #333;
    font-size: 1.8rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hability-link:hover {
    color: #007bff;
}

.project-link {
    color: #333;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
    padding-left: 1rem;
}

.project-link:hover {
    color: #007bff;
}

.between-project-link {
    color: #333;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
    padding-left: 1rem;
}

.language-link {
    text-decoration: none;
    transition: color 0.3s ease;
}

.education-link {
    color: #333;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
    padding-left: 1rem;
}

.education-link:hover {
    color: #007bff;
}

.between-education-link {
    color: #333;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
    padding-left: 1rem;
}


.about {
    grid-column: span 2;
    grid-row: span 2;
}

.about p{
    text-align: justify;
}

.about i {
   color: #007bff;
}

.education {
    grid-column: span 2;
}

.education-details {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.education-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.education-item:hover {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    ;
}

.education-item i {
    font-size: 1.5rem;
    color: #333;
}

/* Iconos de banderas */

.language-list {
    list-style: none;
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding: 0;
}

.language-link {
    text-decoration: none;
    transition: transform 0.3s ease;
    display: block;
}

.language-link:hover {
    transform: scale(1.2);
}

.fi {
    font-size: 1rem;
    display: inline-block;
    width: 2em;
    height: 2em;
    background-size: cover;
    border-radius: 50%;
    overflow: hidden;
}

.circle-flags--es {
    display: inline-block;
    width: 2em;
    height: 2em;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cmask id='circleFlagsEs0'%3E%3Ccircle cx='256' cy='256' r='256' fill='%23fff'/%3E%3C/mask%3E%3Cg mask='url(%23circleFlagsEs0)'%3E%3Cpath fill='%23ffda44' d='m0 128l256-32l256 32v256l-256 32L0 384Z'/%3E%3Cpath fill='%23d80027' d='M0 0h512v128H0zm0 384h512v128H0z'/%3E%3Cg fill='%23eee'%3E%3Cpath d='M144 304h-16v-80h16zm128 0h16v-80h-16z'/%3E%3Cellipse cx='208' cy='296' rx='48' ry='32'/%3E%3C/g%3E%3Cg fill='%23d80027'%3E%3Crect width='16' height='24' x='128' y='192' rx='8'/%3E%3Crect width='16' height='24' x='272' y='192' rx='8'/%3E%3Cpath d='M208 272v24a24 24 0 0 0 24 24a24 24 0 0 0 24-24v-24h-24z'/%3E%3C/g%3E%3Crect width='32' height='16' x='120' y='208' fill='%23ff9811' ry='8'/%3E%3Crect width='32' height='16' x='264' y='208' fill='%23ff9811' ry='8'/%3E%3Crect width='32' height='16' x='120' y='304' fill='%23ff9811' rx='8'/%3E%3Crect width='32' height='16' x='264' y='304' fill='%23ff9811' rx='8'/%3E%3Cpath fill='%23ff9811' d='M160 272v24c0 8 4 14 9 19l5-6l5 10a21 21 0 0 0 10 0l5-10l5 6c6-5 9-11 9-19v-24h-9l-5 8l-5-8h-10l-5 8l-5-8z'/%3E%3Cpath fill='%23d80027' d='M122 248a4 4 0 0 0-4 4a4 4 0 0 0 4 4h172a4 4 0 0 0 4-4a4 4 0 0 0-4-4zm0 24a4 4 0 0 0-4 4a4 4 0 0 0 4 4h28a4 4 0 0 0 4-4a4 4 0 0 0-4-4zm144 0a4 4 0 0 0-4 4a4 4 0 0 0 4 4h28a4 4 0 0 0 4-4a4 4 0 0 0-4-4z'/%3E%3Cpath fill='%23eee' d='M196 168c-7 0-13 5-15 11l-5-1c-9 0-16 7-16 16s7 16 16 16c7 0 13-4 15-11a16 16 0 0 0 17-4a16 16 0 0 0 17 4a16 16 0 1 0 10-20a16 16 0 0 0-27-5q-4.5-6-12-6m0 8c5 0 8 4 8 8c0 5-3 8-8 8c-4 0-8-3-8-8c0-4 4-8 8-8m24 0c5 0 8 4 8 8c0 5-3 8-8 8c-4 0-8-3-8-8c0-4 4-8 8-8m-44 10l4 1l4 8c0 4-4 7-8 7s-8-3-8-8c0-4 4-8 8-8m64 0c5 0 8 4 8 8c0 5-3 8-8 8c-4 0-8-3-8-7l4-8z'/%3E%3Cpath fill='none' d='M220 284v12c0 7 5 12 12 12s12-5 12-12v-12z'/%3E%3Cpath fill='%23ff9811' d='M200 160h16v32h-16z'/%3E%3Cpath fill='%23eee' d='M208 224h48v48h-48z'/%3E%3Cpath fill='%23d80027' d='m248 208l-8 8h-64l-8-8c0-13 18-24 40-24s40 11 40 24m-88 16h48v48h-48z'/%3E%3Crect width='20' height='32' x='222' y='232' fill='%23d80027' rx='10' ry='10'/%3E%3Cpath fill='%23ff9811' d='M168 232v8h8v16h-8v8h32v-8h-8v-16h8v-8zm8-16h64v8h-64z'/%3E%3Cg fill='%23ffda44'%3E%3Ccircle cx='186' cy='202' r='6'/%3E%3Ccircle cx='208' cy='202' r='6'/%3E%3Ccircle cx='230' cy='202' r='6'/%3E%3C/g%3E%3Cpath fill='%23d80027' d='M169 272v43a24 24 0 0 0 10 4v-47zm20 0v47a24 24 0 0 0 10-4v-43z'/%3E%3Cg fill='%23338af3'%3E%3Ccircle cx='208' cy='272' r='16'/%3E%3Crect width='32' height='16' x='264' y='320' ry='8'/%3E%3Crect width='32' height='16' x='120' y='320' ry='8'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.circle-flags--fx:hover {
    display: inline-block;
    width: 1.8em;
    height: 1.8em;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cmask id='circleFlagsFx0'%3E%3Ccircle cx='256' cy='256' r='256' fill='%23fff'/%3E%3C/mask%3E%3Cg mask='url(%23circleFlagsFx0)'%3E%3Cpath fill='%23eee' d='M167 0h178l25.9 252.3L345 512H167l-29.8-253.4z'/%3E%3Cpath fill='%230052b4' d='M0 0h167v512H0z'/%3E%3Cpath fill='%23d80027' d='M345 0h167v512H345z'/%3E%3C/g%3E%3C/svg%3E");
}

.circle-flags--us:hover {
    display: inline-block;
    width: 1.8em;
    height: 1.8em;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cmask id='circleFlagsUs0'%3E%3Ccircle cx='256' cy='256' r='256' fill='%23fff'/%3E%3C/mask%3E%3Cg mask='url(%23circleFlagsUs0)'%3E%3Cpath fill='%23eee' d='M256 0h256v64l-32 32l32 32v64l-32 32l32 32v64l-32 32l32 32v64l-256 32L0 448v-64l32-32l-32-32v-64z'/%3E%3Cpath fill='%23d80027' d='M224 64h288v64H224Zm0 128h288v64H256ZM0 320h512v64H0Zm0 128h512v64H0Z'/%3E%3Cpath fill='%230052b4' d='M0 0h256v256H0Z'/%3E%3Cpath fill='%23eee' d='m187 243l57-41h-70l57 41l-22-67zm-81 0l57-41H93l57 41l-22-67zm-81 0l57-41H12l57 41l-22-67zm162-81l57-41h-70l57 41l-22-67zm-81 0l57-41H93l57 41l-22-67zm-81 0l57-41H12l57 41l-22-67Zm162-82l57-41h-70l57 41l-22-67Zm-81 0l57-41H93l57 41l-22-67zm-81 0l57-41H12l57 41l-22-67Z'/%3E%3C/g%3E%3C/svg%3E");
}

.circle-flags--es:hover {
    display: inline-block;
    width: 1.8em;
    height: 1.8em;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cmask id='circleFlagsEs0'%3E%3Ccircle cx='256' cy='256' r='256' fill='%23fff'/%3E%3C/mask%3E%3Cg mask='url(%23circleFlagsEs0)'%3E%3Cpath fill='%23ffda44' d='m0 128l256-32l256 32v256l-256 32L0 384Z'/%3E%3Cpath fill='%23d80027' d='M0 0h512v128H0zm0 384h512v128H0z'/%3E%3Cg fill='%23eee'%3E%3Cpath d='M144 304h-16v-80h16zm128 0h16v-80h-16z'/%3E%3Cellipse cx='208' cy='296' rx='48' ry='32'/%3E%3C/g%3E%3Cg fill='%23d80027'%3E%3Crect width='16' height='24' x='128' y='192' rx='8'/%3E%3Crect width='16' height='24' x='272' y='192' rx='8'/%3E%3Cpath d='M208 272v24a24 24 0 0 0 24 24a24 24 0 0 0 24-24v-24h-24z'/%3E%3C/g%3E%3Crect width='32' height='16' x='120' y='208' fill='%23ff9811' ry='8'/%3E%3Crect width='32' height='16' x='264' y='208' fill='%23ff9811' ry='8'/%3E%3Crect width='32' height='16' x='120' y='304' fill='%23ff9811' rx='8'/%3E%3Crect width='32' height='16' x='264' y='304' fill='%23ff9811' rx='8'/%3E%3Cpath fill='%23ff9811' d='M160 272v24c0 8 4 14 9 19l5-6l5 10a21 21 0 0 0 10 0l5-10l5 6c6-5 9-11 9-19v-24h-9l-5 8l-5-8h-10l-5 8l-5-8z'/%3E%3Cpath fill='%23d80027' d='M122 248a4 4 0 0 0-4 4a4 4 0 0 0 4 4h172a4 4 0 0 0 4-4a4 4 0 0 0-4-4zm0 24a4 4 0 0 0-4 4a4 4 0 0 0 4 4h28a4 4 0 0 0 4-4a4 4 0 0 0-4-4zm144 0a4 4 0 0 0-4 4a4 4 0 0 0 4 4h28a4 4 0 0 0 4-4a4 4 0 0 0-4-4z'/%3E%3Cpath fill='%23eee' d='M196 168c-7 0-13 5-15 11l-5-1c-9 0-16 7-16 16s7 16 16 16c7 0 13-4 15-11a16 16 0 0 0 17-4a16 16 0 0 0 17 4a16 16 0 1 0 10-20a16 16 0 0 0-27-5q-4.5-6-12-6m0 8c5 0 8 4 8 8c0 5-3 8-8 8c-4 0-8-3-8-8c0-4 4-8 8-8m24 0c5 0 8 4 8 8c0 5-3 8-8 8c-4 0-8-3-8-8c0-4 4-8 8-8m-44 10l4 1l4 8c0 4-4 7-8 7s-8-3-8-8c0-4 4-8 8-8m64 0c5 0 8 4 8 8c0 5-3 8-8 8c-4 0-8-3-8-7l4-8z'/%3E%3Cpath fill='none' d='M220 284v12c0 7 5 12 12 12s12-5 12-12v-12z'/%3E%3Cpath fill='%23ff9811' d='M200 160h16v32h-16z'/%3E%3Cpath fill='%23eee' d='M208 224h48v48h-48z'/%3E%3Cpath fill='%23d80027' d='m248 208l-8 8h-64l-8-8c0-13 18-24 40-24s40 11 40 24m-88 16h48v48h-48z'/%3E%3Crect width='20' height='32' x='222' y='232' fill='%23d80027' rx='10' ry='10'/%3E%3Cpath fill='%23ff9811' d='M168 232v8h8v16h-8v8h32v-8h-8v-16h8v-8zm8-16h64v8h-64z'/%3E%3Cg fill='%23ffda44'%3E%3Ccircle cx='186' cy='202' r='6'/%3E%3Ccircle cx='208' cy='202' r='6'/%3E%3Ccircle cx='230' cy='202' r='6'/%3E%3C/g%3E%3Cpath fill='%23d80027' d='M169 272v43a24 24 0 0 0 10 4v-47zm20 0v47a24 24 0 0 0 10-4v-43z'/%3E%3Cg fill='%23338af3'%3E%3Ccircle cx='208' cy='272' r='16'/%3E%3Crect width='32' height='16' x='264' y='320' ry='8'/%3E%3Crect width='32' height='16' x='120' y='320' ry='8'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.circle-flags--fx:hover {
    display: inline-block;
    width: 1.8em;
    height: 1.8em;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cmask id='circleFlagsFx0'%3E%3Ccircle cx='256' cy='256' r='256' fill='%23fff'/%3E%3C/mask%3E%3Cg mask='url(%23circleFlagsFx0)'%3E%3Cpath fill='%23eee' d='M167 0h178l25.9 252.3L345 512H167l-29.8-253.4z'/%3E%3Cpath fill='%230052b4' d='M0 0h167v512H0z'/%3E%3Cpath fill='%23d80027' d='M345 0h167v512H345z'/%3E%3C/g%3E%3C/svg%3E");
}

.circle-flags--us:hover {
    display: inline-block;
    width: 1.8em;
    height: 1.8em;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cmask id='circleFlagsUs0'%3E%3Ccircle cx='256' cy='256' r='256' fill='%23fff'/%3E%3C/mask%3E%3Cg mask='url(%23circleFlagsUs0)'%3E%3Cpath fill='%23eee' d='M256 0h256v64l-32 32l32 32v64l-32 32l32 32v64l-32 32l32 32v64l-256 32L0 448v-64l32-32l-32-32v-64z'/%3E%3Cpath fill='%23d80027' d='M224 64h288v64H224Zm0 128h288v64H256ZM0 320h512v64H0Zm0 128h512v64H0Z'/%3E%3Cpath fill='%230052b4' d='M0 0h256v256H0Z'/%3E%3Cpath fill='%23eee' d='m187 243l57-41h-70l57 41l-22-67zm-81 0l57-41H93l57 41l-22-67zm-81 0l57-41H12l57 41l-22-67zm162-81l57-41h-70l57 41l-22-67zm-81 0l57-41H93l57 41l-22-67zm-81 0l57-41H12l57 41l-22-67Zm162-82l57-41h-70l57 41l-22-67Zm-81 0l57-41H93l57 41l-22-67zm-81 0l57-41H12l57 41l-22-67Z'/%3E%3C/g%3E%3C/svg%3E");
}

.app-logo {
    width: 80px;
    height: 80px;
    background-color: #f8f9fa;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.app-logo img {
    width: 140px;
    height: 140px;
    border-radius: 20px;
}

.app-description p {
    margin-top: 15px;
    line-height: 1.6;
}

.app-store-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    padding: 10px 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.app-store-link:hover {
    background-color: #007bff;
    color: white;
}

.screenshot-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.app-screenshot {
    width: 25%;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.app-recuerdo {
    width: 75%;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.education-container {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    padding: 20px;
}

.education-title {
    grid-row: 1;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

.education-grid {
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.education-item {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: all 0.3s ease;
}

.education-item:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.education-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.institution-logo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: contain;
    margin-right: 15px;
}

.institution-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

body.dark-theme .institution-name {
    color: #e0e0e0;
}

.education-details {
    margin-top: 10px;
    color: #666;
}

body.dark-theme .education-details {
    color: #b0b0b0;
}

.education-period {
    font-style: italic;
    color: #888;
    margin-top: 5px;
}

body.dark-theme .education-period {
    color: #a0a0a0;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .box-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile {
        grid-column: span 2;
    }
}

@media screen and (max-width: 600px) {

    .box-container {
        grid-template-columns: 1fr;
    }

    .box-item {
        grid-column: span 1 !important;
    }

    .box-container {
        grid-template-columns: 1fr;
    }

    .box-item {
        grid-column: span 1 !important;
    }

    
    .skill-icons i {
        font-size: 2rem;
    }
    .box-container {
        grid-template-columns: 1fr;
        margin-top: 60px;
    }

    .skill-icons i {
        font-size: 2rem;
    }
}

/* Estilos para el tema oscuro */
body.dark-theme {
    background-color: #121212;
    color: #ffffff;
}

body.dark-theme .box-container {
    background-color: #121212;
}

body.dark-theme .box-item,
body.dark-theme .education-item {
    background-color: #2c2c2c;
    color: #e0e0e0;
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
}

body.dark-theme a {
    color: #4CAF50;
} 

body.dark-theme i {
    color: #4CAF50;
}

body.dark-theme .theme-switch {
    color: #ffffff;
}

/* Estilos específicos para la página de habilidades HTML/CSS */
.profile .html-css-icons {

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-grow: 1;
    width: 100%;
    text-align: justify;
}

.profile .html-css-icons i {
    font-size: 8rem;
}

.hability-project-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    padding-left: 20px;
}

.hability-project-list a {
    position: relative;
    padding-left: 15px;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.hability-project-list a::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #007bff;
    font-weight: bold;
}

.hability-project-list a:hover {
    color: #007bff;
}

.back-link {
    position: relative;
    align-self: flex-start;
    color: #333;
    font-size: 1.8rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #007bff;
}

body.dark-theme .back-link {
    color: #ffffff;
}

/* Estilos para los certificados */
.certificate {
    transition: transform 0.3s ease;
    position: relative;
    cursor: pointer;
}

.cert-preview {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.download-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #0056b3;
}

body.dark-theme .modal-content {
    background: #2c2c2c;
}

body.dark-theme .modal-close {
    color: #fff;
}

body.dark-theme .download-btn {
    background-color: #4CAF50;
}

body.dark-theme .download-btn:hover {
    background-color: #45a049;
}

.certificate h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.certificate p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* Estilos para el tema oscuro */
body.dark-theme .certificate h3 {
    color: #e0e0e0;
}

body.dark-theme .certificate p {
    color: #b0b0b0;
}