/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estructura general */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 900px;
    margin: auto;
    padding: 2em 0;
}

header {
    background-color: #002028;
    color: white;
    padding: 2em 0;
    text-align: center;
}

.perfil {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid white;
    margin-bottom: 1em;
}

main section {
    margin-bottom: 2em;
}

h1, h2 {
    margin-bottom: 0.5em;
}

ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    margin-bottom: 0.5em;
}

a {
    color: #004080;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 1em 0;
    background-color: #eee;
    margin-top: 2em;
    font-size: 0.9em;
}


table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
}

th, td {
    padding: 0.75em;
    text-align: left;
    border-bottom: 1px solid #ccc;
}

thead {
    background-color: #f0f0f0;
}

th {
    font-weight: bold;
}

section ul li {
    background-color: #fefefe;
    border-left: 4px solid #e03b23;
    padding: 1em;
    margin-bottom: 1em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    padding-left: 0;
    justify-content: center;
}

.social-links li {
    list-style: none;
    background: #ffffff;
    border: 1px solid #ddd;
    border-left: 5px solid #004080;
    padding: 1em 1.5em;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex: 1 1 200px; /* Responsive: mínimo 200px por tarjeta */
    max-width: 220px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
}

.social-links li:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.social-links a {
    text-decoration: none;
    color: #002028;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links i {
    font-size: 1.8em;
    margin-bottom: 0.5em;
    color: #004080;
}


.carousel {
  display: flex;
  overflow-x: auto;
  gap: 1em;
  margin-top: 1em;
  scroll-snap-type: x mandatory;
  padding-bottom: 1em;
}

.carousel-img {
  height: 200px;
  border-radius: 8px;
  scroll-snap-align: center;
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.carousel a {
  text-decoration: none;
  display: inline-block;
}


.justify {
  text-align: justify;
}



.language-switcher {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 1em auto;
}

.lang-btn {
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.8em;
  color: #004080;
  padding: 0.4em;
  position: relative;
  z-index: 2;
}

.lang-btn:hover {
  color: #002028;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  min-width: 130px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 0.5em;
  text-align: left;
}

.dropdown-content a {
  color: #004080;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f0f0f0;
}

.dropdown.show .dropdown-content {
  display: block;
}
