

/* ================= MAIN ================= */
main {
    margin-top: 80px;
    padding: 40px;
    flex: 1;
}

/* Sections */
section {
    scroll-margin-top: 100px;
    margin-bottom: 60px;
    padding: 30px;
    background-color: var(--bg-section);
    border-radius: 10px;
    color: var(-);
    line-height: 1.8;
}

h1, h2, h3, h4 {
    color: var(--color-1);
    margin-bottom: 20px;
}

h1 {
    font-size: 2.2rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.6rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

h4 {
    font-size: 1.4rem;
    margin-top: 25px;
    color: var(--color-4);
}

p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--color-1);
}

p.intro-text {
    font-size: 1.1rem;
    color: var(--color-3);
    font-style: italic;
    margin-bottom: 30px;
    padding: 15px;
    background-color: rgba(13, 148, 136, 0.05);
    border-left: 3px solid var(--color-4);
    border-radius: 5px;
}

ul {
    line-height: 1.8;
    margin-bottom: 20px;
}

li {
    margin-left: 20px;
    color: var(--color-1);
}


.proyectos-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content:space-around;
    margin-top: 2rem;
}

.proyecto-item {
    flex: 1 1 300px; 
    max-width: 400px;
    text-align: center;
    border-radius: 8px;
    background-color: #1c3443 ;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.proyecto-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 35px var(--color-2);
}

.proyecto-img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.proyecto-link {
    display: block;
    text-decoration: none; /* quitar subrayado */
    color: inherit; /* mantener el color del texto */
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    main {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    h4 {
        font-size: 1.2rem;
    }

    section {
        padding: 20px;
    }
}


/* ================= HERO HOME ================= */

.hero-home {
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-section));
    color: var(--color-1);
    position: relative;
    overflow: hidden;
}

/* Animación de fondo dinámica */
.hero-home::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(13,148,136,0.2) 0%, transparent 60%);
    animation: rotateBackground 18s linear infinite;
}

@keyframes rotateBackground {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeUp 1.2s ease forwards;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeUp 1.8s ease forwards;
}

.hero-btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--color-4);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: fadeUp 2.4s ease forwards;
}

.hero-btn:hover {
    background: var(--color-5);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Animación entrada */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}