/* ─────────────────────────────────────────────── */
/* 🔧 Reset & Base Styles */
/* ─────────────────────────────────────────────── */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #F5F7FA;
  color: #2C2C2C;
}
/* ─────────────────────────────────────────────── */
/* 🌐 Social Links Enhancement */
/* ─────────────────────────────────────────────── */
.social-links {
  display: flex;
  gap: 24px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.social-item {
  display: flex;
  align-items: center;
  text-decoration: none;
   color: #000;
  font-size: 1.1em;
  font-weight: 500;
  background: #f0f4f8;
  border-radius: 8px;
  padding: 8px 16px;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.social-item:hover {
  background: #e6f7ff;
  box-shadow: 0 4px 16px rgba(77,161,169,0.12);
   color: #000;
}

.social-item .icon {
  width: 32px;
  height: 32px;
  margin-right: 10px;
  vertical-align: middle;
}

.container {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

/* Ensure LinkedIn & ORCID text in Main container is visible */
.social-links .footer-icon,
.social-links .footer-icon span {
  color: #000;   /* black text */
}

.social-links .footer-icon:hover,
.social-links .footer-icon:hover span {
  color: #4DA1A9; /* keep hover consistent with your theme */
}


/* ─────────────────────────────────────────────── */
/* 🖼️ Linkedin post */
/* ─────────────────────────────────────────────── */
.linkedin-embed-wrapper {
  max-width: 100%;
  margin: 20px auto;
  padding: 10px;
  box-sizing: border-box;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.linkedin-embed-wrapper iframe {
  width: 100%;
  height: 737px;
  border: none;
}


/* ─────────────────────────────────────────────── */
/* 🖼️ Banner */
/* ─────────────────────────────────────────────── */
.banner {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0;
}

/* ─────────────────────────────────────────────── */
/* 📂 Navigation Menu */
/* ─────────────────────────────────────────────── */
.navbar {
  background-color: #1A2E40;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
  gap: 20px;
}

.menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease, color 0.3s ease;
}

.menu-toggle:hover {
  color: #4DA1A9;
  transform: scale(1.05);
}

.home-button {
  color: white;
  font-weight: bold;
  text-decoration: none;
  font-size: 16px;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.home-button svg {
  transition: transform 0.3s ease, fill 0.3s ease;
  margin-right: 6px;
}

.home-button:hover svg {
  transform: scale(1.2);
  fill: #4DA1A9;
}

.home-button:hover {
  color: #4DA1A9;
}

.nav-columns {
  display: none;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}

.nav-columns.active {
  display: flex;
  justify-content: space-between;
}

.nav-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
  border-radius: 6px;
  flex: 1;
  min-width: 150px;
  background-color: #22384F;
  border: 1px solid #4DA1A9;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease;
}

.nav-column:nth-child(2) {
  background-color: #1A2E40;
  border-color: #88C9D0;
}

.nav-column:nth-child(3) {
  background-color: #2B4A60;
  border-color: #A0DDE2;
}

.nav-column a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

.nav-column a:hover {
  color: #4DA1A9;
}

.nav-column a.active {
  color: #4DA1A9;
  border-bottom: 2px solid #4DA1A9;
}

/* ─────────────────────────────────────────────── */
/* 🧠 Headings */
/* ─────────────────────────────────────────────── */
main h2 {
  color: #1A2E40;
  margin-top: 30px;
  font-size: 24px;
}

main h3 {
  color: #1A2E40;
  margin-top: 25px;
  font-size: 20px;
}

/* ─────────────────────────────────────────────── */
/* 📋 Lists */
/* ─────────────────────────────────────────────── */
main ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

main ul li {
  margin-bottom: 8px;
}

/* ─────────────────────────────────────────────── */
/* 📨 Contact Form */
/* ─────────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.contact-form label {
  font-weight: bold;
  color: #1A2E40;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  background-color: #fff;
}

.contact-form button {
  background-color: #1A2E40;
  color: white;
  border: none;
  padding: 12px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #4DA1A9;
}

/* ─────────────────────────────────────────────── */
/* 🧱 Footer */
/* ─────────────────────────────────────────────── */
footer {
  background-color: #1A2E40;
  color: white;
  text-align: center;
  padding: 30px 20px;
  font-size: 15px;
}

.footer-content h4 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #4DA1A9;
}

.footer-content p {
  margin: 8px 0;
  line-height: 1.6;
}
.footer-links {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}


.footer-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s ease;
}

.footer-icon:hover {
  color: #4DA1A9;
}


.footer-icon svg {
  flex-shrink: 0;
}

.footer-icon .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}


/* ─────────────────────────────────────────────── */
/* 📱 Responsive Layout for Mobile Devices */
/* ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .nav-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 10px;
  }

  .menu-toggle,
  .home-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    color: white;
    background: none;
    border: none;
  }

  .menu-toggle:hover,
  .home-button:hover {
    color: #4DA1A9;
  }

  .home-button svg {
    margin-right: 6px;
    transition: transform 0.3s ease, fill 0.3s ease;
  }

  .home-button:hover svg {
    transform: scale(1.2);
    fill: #4DA1A9;
  }

  main h2 {
    font-size: 20px;
    margin-top: 20px;
  }

  main h3 {
    font-size: 18px;
    margin-top: 20px;
  }

  .nav-columns {
    flex-direction: column;
    gap: 10px;
  }

  .nav-column {
    width: 100%;
    padding: 10px;
    min-width: unset;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 14px;
  }

  .contact-form button {
    font-size: 15px;
    padding: 10px;
  }

  footer {
    padding: 20px 15px;
    font-size: 14px;
  }

  .footer-content h4 {
    font-size: 18px;
  }

  .footer-content p {
    font-size: 14px;
  }
}

/* ─────────────────────────────────────────────── */
/* 📚 Image Section for Producción Propia Page */
/* ─────────────────────────────────────────────── */
.image-wrapper {
  text-align: center;
  margin: 20px 0;
}

.responsive-image {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ─────────────────────────────────────────────── */
/* ✨ Section Scroll Animations */
/* ─────────────────────────────────────────────── */
section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────────── */
/* 🧾 Card Layout for Service Sections */
/* ─────────────────────────────────────────────── */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.card {
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 20px;
  flex: 1 1 calc(50% - 40px);
  box-sizing: border-box;
  transition: transform 0.6s ease, opacity 0.6s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 🖱️ Hover Effect */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background-color: #ffffff;
}

/* 🧠 Card Headings */
.card h3 {
  margin-top: 0;
  color: #1A2E40;
}

/* 📋 Card Lists */
.card ul {
  padding-left: 20px;
}

/* 🖼️ Card Images */
.card .image-wrapper {
  margin-bottom: 15px;
}

.card .responsive-image {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* 📱 Responsive Cards */
@media (max-width: 768px) {
  .card {
    flex: 1 1 100%;
  }
}