/* ============================
   ESTILO GENERAL
============================ */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f9;
    color: #333;
}

/* Enlaces */
a {
    text-decoration: none;
    color: inherit;
}

/* ============================
   HEADER
============================ */
.header {
    background: #1f3c88;
    color: white;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo {
    font-size: 1.4rem;
    font-weight: bold;
}

.menu a {
    color: white;
    margin-left: 20px;
    font-weight: 500;
}

.menu a:hover {
    text-decoration: underline;
}

.menu .activo {
    text-decoration: underline;
    font-weight: bold;
}

/* ============================
   HERO / PORTADA
============================ */
.hero {
    background: url('../img/portada.jpg') center/cover no-repeat;
    height: 350px;
    display: flex;
    align-items: center;
    padding-left: 40px;
    color: white;
    background-color: #1f3c88; /* fallback */
}

.hero-texto h1 {
    font-size: 2.5rem;
    margin: 0;
}

.hero-texto p {
    font-size: 1.2rem;
    margin-top: 10px;
}

.btn-primario {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #ffb400;
    color: #000;
    font-weight: bold;
    border-radius: 5px;
}

.btn-primario:hover {
    background: #e0a000;
}

/* ============================
   ÁREAS DE PRÁCTICA (INDEX)
============================ */
.areas {
    padding: 40px;
    text-align: center;
}

.tarjetas {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.tarjeta {
    background: white;
    padding: 20px;
    width: 280px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.tarjeta h3 {
    color: #1f3c88;
}

/* ============================
   SERVICIOS (servicios.html)
============================ */
.titulo-pagina {
    text-align: center;
    padding: 40px 20px;
}

.lista-servicios {
    padding: 40px;
    max-width: 900px;
    margin: auto;
}

.servicio {
    background: white;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.servicio h2 {
    color: #1f3c88;
    margin-top: 0;
}

/* ============================
   CONTACTO (contacto.html)
============================ */
.contacto-contenedor {
    max-width: 900px;
    margin: auto;
    padding: 40px;
}

.contacto-info {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.formulario {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.formulario input,
.formulario textarea {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.formulario button {
    margin-top: 15px;
    padding: 10px 20px;
    background: #1f3c88;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
}

.formulario button:hover {
    background: #16306b;
}

/* ============================
   FOOTER
============================ */
.footer {
    background: #1f3c88;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}
