html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*, *:before, *:after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
    margin: 0;
    padding-top: 60px;
}

h2 {
    font-family: 'Darker Grotesque', sans-serif;
    font-weight: 900;
	font-size: 60px;
}

p {
    font-family: 'Darker Grotesque', sans-serif;
    font-size: 22px; /* Tamaño de la fuente */
    font-weight: 800; /* Ultra bold */
    color: #666666; /* Color por defecto para secciones blancas */
}


nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    color: #ddd;
}

header {
    background-color: #263142; /* Fondo azul como las secciones pares */
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    min-height: 100vh; /* Altura mínima del 100% de la altura de la ventana */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

header h1 {
    font-size: 3rem; /* Tamaño de fuente más grande para el h1 */
    margin-bottom: 0.5rem;
    animation: fadeIn 2s ease-in-out;
}

/* Estilos para h2 en el header (antes párrafo) */
header h2 {
    font-size: 1.2rem;
    color: #bbb;
    text-align: center;
    max-width: 80%;
    line-height: 1.5;
    margin-top: 0.5rem;
    animation: fadeIn 2.5s ease-in-out;
}

/* Estilos para la imagen de perfil */
header img {
    width: 150px; /* Ajusta esto según el tamaño deseado */
    height: 150px;
    border-radius: 50%; /* Hace la imagen circular */
    border: 3px solid #fff; /* Borde blanco para la imagen */
    margin-bottom: 1rem;
}

.profile-pic {
    width: 200px; /* Tamaño más grande para la imagen */
    height: 200px;
    border-radius: 50%;
    border: 4px solid #fff; /* Borde más grueso si es necesario */
    margin-bottom: 1rem;
    animation: fadeIn 1.5s ease-in-out;
}

/* Estilos para secciones a pantalla completa */
section {
    min-height: 100vh; /* Altura mínima del 100% de la altura de la ventana */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Contenedor centrado para el contenido de las secciones */
.section-content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    padding: 1rem;
}

/* Cambiar el color de los títulos en secciones oscuras a blanco */
section:nth-of-type(even) h1,
section:nth-of-type(even) h2,
section:nth-of-type(even) h3,
section:nth-of-type(even) h4,
section:nth-of-type(even) h5,
section:nth-of-type(even) h6 {
    color: #ffffff;
}

/* Colores de fondo alternados para las secciones */
section:nth-of-type(odd) {
    background-color: #fff;
}

section:nth-of-type(odd) h2 {
    color: #263142; /* Azul para las secciones blancas */
}

section:nth-of-type(odd) p {
    color: #666666; /* Mantenemos el color #666666 */
}

section:nth-of-type(even) {
    background-color: #263142;
    color: #fff;
}

section:nth-of-type(even) p {
    color: #ffffff; /* Blanco para las secciones azules */
}

.hidden {
    visibility: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: visibility 0s, opacity 0.6s, transform 0.6s;
}

.fade-in {
    visibility: visible;
    opacity: 1;
    transform: none;
}

.about-me-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    text-align: left;
    margin: 1rem 0;
}

.column {
    flex: 1 1 400px;
    max-width: 600px;
    padding: 1rem;
    font-size: 20px;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background-color: #263142;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #3a4a63;
}

.column {
    flex: 1; /* Cada columna toma el mismo espacio */
    padding: 0 1rem; /* Espaciado entre columnas */
    max-width: 50%; /* Máximo ancho para cada columna */
}

.project-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    position: relative;
    background-color: #fff;
    border-radius: 10px;
     padding: 2rem;
    max-width: 420px;
    width: 100%;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background-repeat: no-repeat;
    background-position: 1rem 1rem;
    background-size: 80px;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-logo {
    width: 100px;
    height: auto;
    margin-bottom: 1rem;
    display: block;
}

.project-card h3 {
    font-size: 22px;
    margin-bottom: 0.5rem;
}

.project-card p {
    font-size: 18px;
    color: #444;
    line-height: 1.5;
}

.project-card .btn {
    margin-top: 1rem;
}

/* Estilos específicos por fondo */
.project-card.isla32 {
    background-color: #f5f7fa;
    background-repeat: no-repeat;
    background-position: 1rem 1rem;
    background-size: 80px;
}

.project-card.invited {
    background-color: #fff0f2;
    background-repeat: no-repeat;
    background-position: 1rem 1rem;
    background-size: 80px;
}

.project-card.isla32 p,
.project-card.invited p {
    color: #263142; /* texto oscuro para contraste */
    font-weight: 600;
}

.section-content a.btn {
    margin-top: 1rem;
    background-color: #263142;
    color: #fff;
    font-size: 16px;
}

.section-content a.btn:hover {
    background-color: #0056b3;
}

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

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    font-size: 18px;
    padding: 0.5rem 1rem;
    border: 2px solid #fff;
    border-radius: 30px;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: rgba(255,255,255,0.1);
}

#popup {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    position: relative;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 24px;
}

.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #263142;
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: none; /* Asegurarse de que el círculo no interfiera con otros clics */
    transition: transform 0.1s ease;
    transition: background-color 0.3s ease;
    z-index: 10000; /* Asegurarse de que esté por encima de todo */
}

.cursor-dark {
    border-color: #ffffff; /* Borde blanco para contraste */
    background-color: rgba(255, 255, 255, 0.5); /* Fondo semitransparente blanco */
}

/* Cambiar el estilo del cursor al pasar sobre enlaces */
a:hover ~ .cursor {
    background-color: rgba(38, 49, 66, 0.5);
    transform: translate(-50%, -50%) scale(1.5);
}

footer {
    background-color: #333;
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
    font-size: 14px;
}

footer p {
    margin-bottom: 0.5rem;
    line-height: 1.4;
    font-family: 'Darker Grotesque', sans-serif;
    font-weight: 600;
    color: #fff;
}

footer a {
    color: #fff;
    text-decoration: underline;
    margin: 0 8px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ccc;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translatey(-10px);
    }
    to {
        opacity: 1;
        transform: translatey(0);
    }
}

@media (max-width: 768px) {
    nav ul li {
        display: block;
        margin: 0.5rem 0;
    }
	
	.about-me-content {
        flex-direction: column;
        align-items: center;
    }

    .column {
        max-width: 100%;
        padding: 0;
    }
}
