/* =========================
   GLOBAL RESET
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =========================
   LAYOUT (fix white space + sticky footer)
========================= */
html, body {
  height: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;

  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f6f8;
  color: #333;
  line-height: 1.6;
}

/* =========================
   HEADER + NAV
========================= */
header {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: white;
  padding: 30px 20px;
}

header h1 {
  text-align: center;
  margin-bottom: 15px;
  font-size: 2.2rem;
}

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

nav a {
  color: white;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 20px;
  transition: background 0.3s ease;
  font-weight: 500;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* =========================
   MAIN + SECTIONS (cards)
========================= */
main {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 40px auto;
  padding: 0 20px;
}

section {
  background: white;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

section h2 {
  color: #1e3c72;
  margin-bottom: 15px;
}

section p {
  margin-bottom: 10px;
}

ul {
  padding-left: 20px;
}

li {
  margin-bottom: 8px;
}

/* =========================
   TABLE STYLING (Degree)
========================= */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
  margin-top: 20px;
}

thead th {
  text-align: left;
  padding: 14px 16px;
  background-color: #f1f4f8;
  color: #1e3c72;
  font-weight: 600;
}

tbody tr {
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

tbody td {
  padding: 14px 16px;
  vertical-align: middle;
}

tbody tr td:first-child {
  border-radius: 10px 0 0 10px;
}

tbody tr td:last-child {
  border-radius: 0 10px 10px 0;
}

/* =========================
   IMAGES
========================= */
.profile-image {
  display: block;
  width: 280px;
  height: 280px;
  margin: 25px auto;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.fce-image {
  display: block;
  width: 80%;
  max-width: 650px; /* un poco más ancho para que no se vean pequeñas */
  height: auto;
  margin: 25px auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* =========================
   CONTACT FORM (professional)
========================= */
form {
  max-width: 900px; /* más ancho */
  width: 100%;
  margin: 30px auto 0;
}

form div {
  display: flex;
  flex-direction: column;
  margin-bottom: 22px;
}

form label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #1e3c72;
}

form input,
form textarea {
  padding: 12px 14px;
  border: 1px solid #d1d9e6;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background-color: #f9fbfd;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: #1e3c72;
  box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.15);
  background-color: #ffffff;
}

form textarea {
  resize: vertical;
  min-height: 160px;
}

form button,
form input[type="submit"] {
  align-self: flex-start;
  padding: 12px 24px;
  background-color: #1e3c72;
  color: #ffffff;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s, box-shadow 0.1s;
}

form button:hover,
form input[type="submit"]:hover {
  background-color: #16305a;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* =========================
   FULL-WIDTH FOOTER (even inside centered layout)
========================= */
footer {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;

  width: 100vw;
  background-color: #1e3c72;
  color: #ffffff;
  text-align: center;
  padding: 22px 10px;
  margin-top: 40px;
}

footer p {
  margin: 0;
  font-weight: 500;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.8rem;
  }

  nav ul {
    gap: 10px;
  }

  section {
    padding: 20px;
  }

  form {
    max-width: 100%;
  }

  .fce-image {
    width: 100%;
  }
}




