:root {
  --accent-color: #30bbd3;
  --header-gradient-start: #a81d84;
  --header-gradient-end: #ea396f;
  --bg-color: #f7f7f7;
  --text-color: #333;
  --font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
  --section-color: #367878;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family);
}

/* Header Section - Imagen del puerto con foto */
.header-image-section {
  background: url("../imagenes/Foto-Puerto-Barcelona.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 3rem 0;
}

.profile-img {
  max-width: 300px;
  width: 100%;
  height: auto;
}

/* Header Section - Datos personales en fondo azul */
.header-info-section {
  background-color: #27527f;
  color: white;
  padding: 2rem 0;
}

.header-info-section h2 {
  color: white;
  margin-bottom: 1rem;
}

.header-info-section a {
  color: white;
  text-decoration: none;
}

.header-info-section a:hover {
  color: #eeeeee;
}

.back-button {
  background-color: var(--accent-color);
  color: white;
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 3px;
  text-decoration: none;
  display: inline-block;
}

.back-button:hover {
  background-color: var(--accent-color);
  opacity: 0.9;
  color: white;
}

/* Content Section */
.content-section {
  padding: 4rem 0;
}

.content-section h6 {
  color: var(--accent-color);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.divider {
  height: 2px;
  background-color: var(--accent-color);
  width: 60px;
  margin-bottom: 2rem;
}

.section-title {
  color: var(--section-color);
  font-weight: bold;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* News Section */
.news-section {
  padding: 4rem 0;
  background-color: #27527f;
}

.news-section h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: white;
}

.news-item {
  margin-bottom: 3rem;
  opacity: 0;
}

.news-item.animate-left-active {
  animation: fadeInLeft 0.8s ease-out forwards;
}

.news-item.animate-right-active {
  animation: fadeInRight 0.8s ease-out forwards;
}

.news-item a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
  flex-direction: row;
}

.news-item p {
  color: white;
  font-weight: bold;
  margin: 0;
  flex: 1;
  order: 2;
}

.news-item img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  flex-shrink: 0;
  order: 1;
}

.news-item a:hover img {
  opacity: 0.8;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Footer */
.footer-section {
  background-color: #03080c;
  color: white;
  padding: 2rem 0;
  text-align: center;
}

.footer-section a {
  color: #30bbd3;
  text-decoration: none;
}

.footer-section a:hover {
  color: #23527c;
}

/* Links */
a {
  color: #30bbd3;
}

a:hover {
  color: #23527c;
}

/* Table Styles */
table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
}

table th,
table td {
  padding: 0.75rem;
  border: 1px solid #ddd;
  text-align: left;
}

table th {
  background-color: var(--accent-color);
  color: white;
  font-weight: 600;
}

table tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Responsive */
@media (max-width: 768px) {
  .header-image-section {
    padding: 2rem 0;
  }

  .header-info-section {
    padding: 1.5rem 0;
  }

  .content-section,
  .news-section {
    padding: 2rem 0;
  }

  .profile-img {
    max-width: 200px;
    margin-bottom: 2rem;
  }

  .news-item a {
    flex-direction: column;
    gap: 1rem;
  }

  .news-item img {
    width: 100%;
    max-width: 200px;
    height: auto;
    align-self: center;
  }

  table {
    font-size: 0.875rem;
  }

  table th,
  table td {
    padding: 0.5rem;
  }
}

