/* CSS previo */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.6;
}

/* Secion de Navegación */
.navbar {
    background-color: #1a1a1a;
    padding: 1rem 0;
}

.navbar .menu {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
}

.navbar .menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.navbar .menu li a:hover {
    color: #00b3fb;
}

.inicio {
    background: url('../Imagenes/inicioBanner.png') center/cover no-repeat;
}

.formacion {
    background-color: #dfeffa;
}

.sobre-nosotros {
    background: url("../Imagenes/sobrenosotrosBanner.png") center/cover no-repeat;
}

/* Secion de inicio */
/* He tenido problemas al intentar alinear el contenido a los lados, por lo que el contenido se quedara al final centrado, ademas tambien se ve bonito asi*/
.inicio {
    color: #fff;
    text-align: center;
    padding: 6rem 2rem;
}

.inicio .logo {
    max-width: 200px;
    margin-bottom: 1.5rem;
    width: 200px;           /* ajusta si quieres */
    height: 200px;          /* mismo valor que width */
    object-fit: cover;      /* recorta sin deformar */
    border-radius: 50%;     /* círculo perfecto */
    border: 4px solid #fff; /* opcional: borde blanco */
    box-shadow: 0 4px 12px rgba(0,0,0,0.4); /* opcional */
}

.inicio h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.inicio .btn {
    display: inline-block;
    background-color: #00b3fb;
    color: #1a1a1a;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.inicio .btn:hover {
    background-color: #e0b030;
}

/* Secciones generales */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

/* Secion de Sobre Nosotros y Valores */
.sobre-nosotros p,.sobre-nosotros h2,
.valores ul {
    max-width: 800px;
    margin: 0 auto;
    color: #ffffff;
    font-size: 1.1rem;
    text-shadow:
    -1px -1px 0 #000000,
     1px -1px 0 #000000,
    -1px  1px 0 #000000,
     1px  1px 0 #000000;
}

.sobre-nosotros .btn {
    display: inline-block;
    background-color: #00b3fb;
    color: #1a1a1a;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    color: #fff;
}

.sobre-nosotros .btn:hover {
    background-color: #e0b030;
}

.valores p,.valores h2,
.valores ul {
    max-width: 800px;
    margin: 0 auto;
    color: #000000;
    font-size: 1.1rem;
    text-shadow: none
}

.valores ul {
    list-style: disc inside;
    padding-left: 1rem;
}

/* Secion de Oferta Formativa */
.formacion ul {
    list-style: square inside;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Secion de Información de Contacto */
.contact-info {
    background-color: #f9f9f9;
    text-align: center;
}

.contact-info .info-item {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Secion de  UBICACIONES */
.ubicaciones {
    background-color: #ffffff;
    padding: 4rem 2rem;
    text-align: left;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.ubicaciones h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.sede {
    background-color: #fafafa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* Secion de Cursos Destacados */
.cursos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.curso {
    background-color: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    width: 300px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.curso img {
    width: 100%;
    height: auto;
}

.curso h3 {
    font-size: 1.2rem;
    margin: 1rem 0 0.5rem;
    color: #1a1a1a;
}

.curso p {
    margin-bottom: 1rem;
    color: #555;
}

.curso:hover {
    background-color: #00b3fb;
}

.cursos .btn {
    display: inline-block;
    background-color: #00b3fb;
    color: #1a1a1a;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cursos .btn:hover {
    background-color: #e0b030;
}

/* Secion de Formulario */
.formulario form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.formulario label {
    font-weight: bold;
    color: #1a1a1a;
}

.formulario input,
.formulario textarea {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.formulario button {
    background-color: #1a1a1a;
    color: #fff;
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.formulario button:hover {
    background-color: #333;
}

.formulario .btn {
    text-align: center;
    max-width: 200px;
    margin-bottom: 1.5rem;
    display: inline-block;
    background-color: #00b3fb;
    color: #1a1a1a;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.formulario .btn:hover {
    background-color: #e0b030;
}

/* Secion de  Noticias */
.noticias .noticia {
    margin-bottom: 2rem;
}

.noticias .noticia h3 {
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.noticias .noticia p {
    color: #555;
}

/* Secion de  Pie de página */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}
