body {
    font-family: Arial, sans-serif;
    background-color: #ddd8d8;
    margin: 0;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 120px; /* Ajuste según el tamaño de la barra fija */
}

h1, h2, h4 {
    margin: 0;
}

h2 {
    font-weight: bold;
}

/* ========================
   ESTILO PANTALLA INICIAL
======================== */
#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 2s ease, transform 2s ease;
}

#intro-screen.hidden {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.intro-title {
    font-size: 6vw;
    font-weight: bold;
    text-align: center;
}

.intro-subtitle {
    font-size: 3vw;
    margin: 10px 0;
    text-align: center;
}

.intro-scroll {
    font-size: 1.5vw;
    margin-top: 20px;
    animation: bounce 2s infinite;
    text-align: center;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

@media (max-width: 768px) {
    .intro-title {
        font-size: 8vw;
    }
    .intro-subtitle {
        font-size: 5vw;
    }
    .intro-scroll {
        font-size: 2vw;
    }
}

@media (max-width: 480px) {
    .intro-title {
        font-size: 10vw;
    }
    .intro-subtitle {
        font-size: 6vw;
    }
    .intro-scroll {
        font-size: 3vw;
    }
}

/* ==========================
   ESTILO BARRA SUPERIOR FIJA
========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    background-color: #343a40;
}

.branding h2 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.branding h5 {
    font-size: 1.2rem;
    margin: 0;
}

.nav-link {
    font-size: 1rem;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 25px;
    border: 1px solid #fff;
    transition: all 0.3s ease;
    text-align: center;
}

.nav-link:hover {
    background-color: white; /* Fondo blanco al hacer hover */
    color: black !important; /* Texto negro */
    text-decoration: none; /* Elimina el subrayado */
    transform: scale(1.05); /* Efecto de aumento leve */
}

@media (max-width: 768px) {
    .nav-link {
        font-size: 0.9rem;
        padding: 8px 15px;
    }

    .branding h2 {
        font-size: 1.8rem;
    }

    .branding h5 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-link {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .branding h2 {
        font-size: 1.5rem;
    }

    .branding h5 {
        font-size: 0.9rem;
    }
}

/* ==========================
   ESTILOS SECCIONES GENERALES
========================== */
.section {
    background-color: #f9f9f9;
    color: #333;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #343a40;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.section-divider {
    width: 100%;
    height: 2px;
    background-color: #343a40;
    margin: 0 auto;
    max-width: 300px;
}

/* ==========================
   ESTILOS PARA "FORMATION"
========================== */
#formation table {
    border: 1px solid #ddd;
    margin-top: 20px;
}

#formation table th {
    background-color: #343a40;
    color: white;
    text-align: center;
}

#formation table td {
    text-align: center;
    padding: 10px;
}

#toggleButton, #toggleButton2 {
    margin-top: 10px;
    cursor: pointer;
}

.hidden {
    display: none;
}

/* ==========================
   ESTILOS PROYECTOS Y CONTACTO
========================== */
.project-title {
    font-size: 2rem;
    font-weight: bold;
    margin-top: 20px;
}

.project-img {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    object-fit: cover;
}

.section-subtitle {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.btn-outline-dark {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background-color: #343a40;
    color: white;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: #343a40;
    border-radius: 50%;
    padding: 10px;
}

/* ==========================
   PIE DE PÁGINA
========================== */
footer {
    background-color: #333;
    color: white;
    padding: 1em 0;
}

footer p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: #ddd;
    text-decoration: underline;
}


#contact {
    background-color: #f9f9f9 !important;
}
#contact {
    box-shadow: none !important;
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 1rem;
}

.tech-table th, .tech-table td {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid #ccc;
}

.tech-table th {
    background-color: #f4f4f4;
    font-weight: bold;
    color: #333;
}

.tech-table td {
    color: #555;
}

/* Opcional: Efecto hover para las filas */
.tech-table tr:hover {
    background-color: #e9e9e9;
}
