html {
    scroll-behavior: smooth;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.7;
}
.contenedor {
    width: 90%;
    max-width: 1000px;
    margin: auto;
}
header {
    background: white;
    padding: 40px 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
h1 {
    color: #1f4e79;
    font-size: 42px;
    margin-bottom: 10px;
}
.subtitulo {
    font-size: 22px;
    color: #666;
    margin-bottom: 30px;
}
nav a {
    text-decoration: none;
    margin: 0 18px;
    color: #1f4e79;
    font-weight: bold;
}
nav a:hover {
    text-decoration: underline;
}
section {
    padding: 90px 0;
    text-align: center;
    scroll-margin-top: 30px;
}
.hero {
    padding: 90px 0;
    text-align: center;
}
.hero h2 {
    font-size: 38px;
    margin-bottom: 25px;
}
.hero p {
    font-size: 20px;
    max-width: 700px;
    margin: auto;
    margin-bottom: 40px;
}
.boton {
    display: inline-block;
    padding: 15px 35px;
    background: #1f4e79;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: .3s;
    box-shadow: 0 4px 10px rgba(0,0,0,.12);
}
.boton:hover {
    background: #163a5b;
    transform: translateY(-2px);
}
.sobre-mi {
    background: white;
}
.perfil {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
}
.foto {
    flex: 1;
    text-align: center;
}
.foto img {
    width: 280px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
}
.texto {
    flex: 2;
}
.texto p {
    margin-bottom: 20px;
    text-align: left;
}
.sobre-mi h2, .servicios h2, .contacto h2 {
    text-align: center;
    font-size: 34px;
    color: #1f4e79;
    margin-bottom: 50px;
}
.servicios {
    background: #f5f7fa;
}
.tarjetas {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}
.tarjeta {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
    flex: 1;
    min-width: 260px;
    max-width: 320px;
}
.tarjeta h3 {
    color: #1f4e79;
    margin-bottom: 20px;
    text-align: center;
}
.tarjeta p {
    text-align: center;
    font-size: 17px;
}
.contacto {
    background: white;
}
.contacto-intro {
    max-width: 700px;
    margin: 0 auto 45px auto;
    font-size: 19px;
}
.contacto-contenido {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.contacto-dato {
    background: #f5f7fa;
    padding: 25px;
    border-radius: 12px;
    min-width: 260px;
}
.contacto-dato h3 {
    color: #1f4e79;
    margin-bottom: 10px;
}
.contacto-dato a {
    color: #1f4e79;
    text-decoration: none;
}
.contacto-dato a:hover {
    text-decoration: underline;
}
footer {
    background: #1f4e79;
    color: white;
    padding: 55px 0 20px;
}
.footer-contenido {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.footer-info h2 {
    font-size: 22px;
    margin-bottom: 8px;
    color: white;
}
.footer-info p {
    margin-bottom: 6px;
}
.footer-info a, .footer-enlaces a {
    color: white;
    text-decoration: none;
}
.footer-enlaces {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}
.footer-enlaces a:hover {
    text-decoration: underline;
}
.footer-final {
    border-top: 1px solid rgba(255,255,255,.25);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    opacity: .85;
}
@media (max-width: 700px) {
    .contenedor { width: 92%; }
    h1 { font-size: 34px; }
    .subtitulo { font-size: 18px; }
    nav a { display: inline-block; margin: 7px 8px; }
    .hero { padding: 70px 0 80px; }
    .hero h2 { font-size: 34px; }
    .hero p { font-size: 18px; }
    .perfil { flex-direction: column; text-align: center; }
    .texto p { text-align: center; }
    .tarjetas { flex-direction: column; align-items: center; }
    .tarjeta { width: 100%; max-width: 450px; }
    .contacto-contenido { flex-direction: column; align-items: center; }
    .contacto-dato { width: 100%; max-width: 450px; }
}
