/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* BODY */

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: black;
    color: white;
}


/* NAVEGACION */

nav {
    padding-top: 20px;
}

ul {
    display: flex;
    justify-content: center;
    gap: 40px;
    list-style: none;
}

ul li a {
    text-decoration: none;
    color: white;
    font-size: 20px;
    transition: 0.3s;
}

ul li a:hover {
    color: #00bcd4;
}


/* CONTENEDORES GENERALES */

.home,
.pagina-interna,
.servicios,
.cta {
    max-width: 1200px;
    margin: auto;
    text-align: center;
    padding: 40px 20px 60px;
}


/* TITULOS */

.index {
    font-size: 48px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.index span {
    color: #00bcd4;
}

.titulo-secundario {
    font-size: 42px;
    margin-top: 30px;
    margin-bottom: 30px;
    color: #00bcd4;
}

.subtitulo {
    font-size: 36px;
    margin-bottom: 30px;
    color: #00bcd4;
}


/* IMAGEN PRINCIPAL */

.img {
    width: 100%;
    max-width: 1100px;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 16px;
}


/* TEXTO HOME */

.home p {
    max-width: 800px;
    margin: 30px auto;
    line-height: 1.7;
    font-size: 20px;
}


/* BOTON */

.boton {
    display: inline-block;
    margin-top: 25px;
    padding: 14px 28px;
    background: white;
    color: black;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    transition: 0.3s;
}

.boton:hover {
    background: #cccccc;
}


/* ABOUT ME */

.box {
    max-width: 1200px;
    margin: 40px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.texto {
    flex: 1;
    font-size: 20px;
    line-height: 1.8;
}

.texto p {
    margin-bottom: 20px;
}

.img-about {
    width: 100%;
    max-width: 450px;
    border-radius: 16px;
}


/* CONTACT */

.boxcontact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}

.boxcontact img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    transition: 0.3s;
}

.boxcontact img:hover {
    transform: scale(1.1);
}

.textocontact {
    margin-top: 30px;
    font-size: 22px;
    line-height: 1.6;
}


/* SERVICIOS */

.cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.card {
    background-color: #111;
    border: 1px solid #222;
    border-radius: 16px;
    padding: 30px 20px;
    width: 320px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    border-color: #00bcd4;
}

.card h3 {
    color: #00bcd4;
    margin-bottom: 15px;
    font-size: 24px;
}

.card p {
    font-size: 18px;
    line-height: 1.6;
    color: #ddd;
}


/* CTA */

.cta p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 20px;
    line-height: 1.7;
}


/* RESPONSIVE */

@media (max-width: 900px) {
    .index {
        font-size: 36px;
    }

    .titulo-secundario,
    .subtitulo {
        font-size: 30px;
    }

    .home p,
    .texto,
    .textocontact,
    .cta p,
    .card p {
        font-size: 18px;
    }

    .box {
        flex-direction: column;
        text-align: center;
    }

    .img-about {
        max-width: 100%;
    }

    ul {
        gap: 20px;
        flex-wrap: wrap;
    }

    ul li a {
        font-size: 18px;
    }

    .card {
        width: 100%;
        max-width: 400px;
    }
}
@media (max-width: 768px) {

    .index{
        font-size:32px;
    }

    ul{
        flex-direction:column;
        gap:15px;
    }

    .box{
        flex-direction:column;
        text-align:center;
    }

    .cards{
        flex-direction:column;
        align-items:center;
    }

    .card{
        width:90%;
    }

    .boxcontact{
        flex-direction:column;
    }

}