/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 5em;
    background-image: url(../images/color\ azul_page-0001.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.small-logo {
    width: 45px;
    height: auto;
}

main {
    padding-top: 120px; /* Ajusta esto según la altura real de tu header */
}

/* Header con animación */
header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease-in-out;
    padding: 10px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

header.scrolled {
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

/* Animaciones */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Botón animado */
.animate-button {
    transition: transform 0.2s ease-in-out;
    padding: 10px 20px;
    font-size: 1.2em;
    border-radius: 5px;
    text-transform: uppercase;
}

.animate-button:hover {
    transform: scale(1.1);
    background-color: #0056b3;
    color: #fff;
}

/* Ajuste en secciones para mejorar espaciado */
section {
    padding: 60px 20px;
}

.container {
    max-width: 1200px;
    align-items: center;
    margin: 0 auto;
    padding-top: 5%;
}

h1, h2, p {
    color: #fff;
}

html {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Ajuste para evitar que el header tape el contenido */
body {
    padding-top: 20px;
}

@media (max-width: 768px) {
    body {
        padding-top: 100px;
    }
}

.content-wrapper {
    flex: 1;
}

footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 15px;
    position: absolute;
    width: 100%;
}

/* Carrusel */
.carousel-section {
    background-color: #0b2c4d;
    padding: 60px 0;
    text-align: center;
}

.carousel-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.carousel-inner {
    width: 100%;
}

.carousel-item {
    text-align: center;
}

.carousel-item img {
    display: block;
    width: 100%;
    max-width: 700px;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin: 0 auto;
}

.carousel-control-prev, .carousel-control-next {
    filter: invert(100%);
    width: 8%;
}

@media (max-width: 768px) {
    .carousel-item img {
        max-width: 100%;
        height: auto;
    }
}

/* Tarjetas de servicios */
.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 350px;
    height: 450px;
    background: white;
    border-radius: 15px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    padding: 20px;
    text-align: center;
}

.service-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

.service-card h4 {
    margin-top: 15px;
    font-size: 18px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .service-card {
        max-width: 100%;
        height: auto;
    }
}

/* CV */
.cv-container {
    max-width: 1000px;
    margin: auto;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    padding: 40px;
    color: white;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
}

.cv-header img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid white;
}

.cv-header {
    text-align: center;
    margin-bottom: 40px;
}

.cv-section {
    margin-bottom: 40px;
}

.cv-section h2 {
    border-bottom: 2px solid #ffffff88;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: bold;
}

.skills-list, ul {
    list-style: none;
    padding-left: 0;
}

.skills-list li, ul li {
    margin-bottom: 10px;
}

.download-btn {
    background-color: #3877ba;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.download-btn:hover {
    transform: scale(1.1);
    background-color: #195ea3;
}

/* SECCIÓN DE PROYECTOS */
.contenedor-proyectos {
    max-width: 1100px;
    margin: auto;
    padding: 60px 20px;
}

.contenedor-proyectos {
    max-width: 1100px;
    margin: auto;
    padding: 100px 20px 60px; /* Aumentamos padding-top para compensar el header fijo */
}


.proyecto-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    padding: 20px;
    text-align: center;
}

.proyecto-card img {
    width: 100%;
    max-width: 600px;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
}

.proyecto-info {
    max-width: 800px;
}

.proyecto-info h3 {
    color: #2061a2;
    margin-bottom: 10px;
}

.proyecto-info p {
    margin-bottom: 15px;
}

.proyecto-info a {
    display: inline-block;
    padding: 10px 25px;
    background-color: #2061a2;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.proyecto-info a:hover {
    background-color: #104070;
}

@media (min-width: 768px) {
    .proyecto-card {
        flex-direction: row;
        text-align: left;
    }

    .proyecto-card img {
        width: 50%;
        height: 100%;
        max-height: 300px;
        margin-bottom: 0;
    }

    .proyecto-info {
        padding-left: 30px;
        width: 50%;
        margin-top: 0;
    }
}
