/* Footer Styles */
footer {
  font-family: "Montserrat", sans-serif;
  background-color: #1f1f1f;
  color: #6e746e;
  width: 100%;
}

/* Top Section with Newsletter and Links */
.footer-top {
  background-color: #004225;
  padding: 4rem 0 2rem;
}

footer hr {
  width: 50px;
  height: 2px;
  background-color: white;
  border: none;
  margin: 0 auto 2rem;
}

/* Newsletter Styles */
.newsletter-container {
  background-color: #004225;
  padding: 3rem 2rem;
  border-radius: 12px;
  text-align: center;
  margin: 4rem auto;
  box-shadow: 0 8px 30px rgba(0, 66, 37, 0.15);
  max-width: 800px;
}

.newsletter-title {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.newsletter-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form .form-control {
  height: 50px;
  border: none;
  border-radius: 25px 0 0 25px;
  padding: 0 1.5rem;
  font-size: 0.95rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.newsletter-form .form-control:focus {
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
  border: none;
}

.newsletter-form .btn-subscribe {
  background-color: #ffffff;
  color: #004225;
  border: none;
  border-radius: 0 25px 25px 0;
  padding: 0 2rem;
  height: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.newsletter-form .btn-subscribe:hover {
  background-color: #f8f8f8;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .newsletter-container {
    padding: 2rem 1.5rem;
    margin: 3rem 0;
  }

  .newsletter-title {
    font-size: 1.5rem;
  }

  .newsletter-description {
    font-size: 0.95rem;
  }

  .newsletter-form .form-control,
  .newsletter-form .btn-subscribe {
    height: 45px;
  }
}

/* Footer Links */
.footer-links {
  margin-bottom: 2rem;
}

.footer-links-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #ffffff;
  position: relative;
  padding-bottom: 0.8rem;
}

.footer-links-title:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: #ffffff;
  transition: width 0.3s ease;
}

.footer-links:hover .footer-links-title:after {
  width: 60px;
}

.footer-menu li {
  margin-bottom: 0.65rem;
  transition: all 0.3s ease;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  display: inline-block;
  position: relative;
}

.footer-link:hover {
  color: #ffffff;
  transform: translateX(5px);
}

.contact-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.contact-link:hover {
  color: #ffffff;
}

.contact-img {
  max-width: 200px;
  height: auto;
  max-height: 60px;
  object-fit: contain;
  margin-bottom: 0.8rem;
  filter: brightness(1.1);
  transition: filter 0.3s ease;
}

.contact-icon {
  margin-right: 0.5rem;
  color: #ffffff;
}

.contact-img:hover {
  filter: brightness(1.2);
}

/* EU Funding Text */
.eu-funding-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  line-height: 1.5;
  max-width: 250px;
}

/* Bottom Section with Copyright */
.footer-bottom {
  background-color: #1a1a1a;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
  max-width: 160px;
  height: auto;
  transition: opacity 0.3s ease;
}

.footer-logo:hover {
  opacity: 0.9;
}

.copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* Política de Privacidad */
.privacy-policy-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.privacy-content {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.privacy-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #004225;
}

.privacy-subtitle {
  font-size: 22px;
  font-weight: 600;
  margin: 25px 0 15px;
}

.privacy-subsubtitle {
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 10px;
}

.privacy-section {
  margin-bottom: 30px;
}

.privacy-content p {
  line-height: 1.8;
  margin-bottom: 15px;
  font-size: 16px;
}

.privacy-content ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.privacy-content ul li {
  line-height: 1.8;
  margin-bottom: 10px;
  font-size: 16px;
  color: #6a6a6a;
}

.privacy-content strong {
  font-weight: 600;
}

@media (max-width: 768px) {
  .privacy-policy-section {
    padding: 50px 0;
  }

  .privacy-content {
    padding: 25px;
  }

  .privacy-title {
    font-size: 24px;
  }

  .privacy-subtitle {
    font-size: 20px;
  }

  .privacy-subsubtitle {
    font-size: 16px;
  }
}

.team-image {
  border-radius: 50%;
  margin-top: 30px;
  width: 65%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

/* Language Switcher */
.language-switcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  font-family: "Montserrat", sans-serif;
}

.language-btn {
  background-color: #002012;
  color: white;
  border: none;
  border-radius: 50px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 66, 37, 0.3);
  transition: all 0.2s ease-in-out;
}

.language-btn:hover {
  background-color: #192233;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 66, 37, 0.4);
}

.language-options {
  position: absolute;
  bottom: 60px;
  right: 0;
  background-color: white;
  border-radius: 3px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.08);
  padding: 0.4rem 0;
  display: none;
  flex-direction: column;
  min-width: 150px;
  border: 1px solid #f2f2f2;
}

.language-options.show {
  display: flex;
}

.language-option {
  padding: 0.4rem 1.2rem;
  color: rgba(31, 31, 31, 0.6);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: all 0.2s ease-in-out;
  font-weight: 600;
  font-size: 0.75019rem;
}

.language-option:hover {
  background-color: #fafafa;
  color: #004225;
}

.language-option.active {
  font-weight: 700;
  color: #004225;
}

.language-flag {
  width: 20px;
  height: 15px;
  margin-right: 8px;
  object-fit: contain;
}

/* Detalles del proyecto */
.project-section {
  padding: 4rem 0;
}

.project-container {
  max-width: 900px;
  margin: 0 auto;
}

/* Estilos del carrusel*/
.project-carousel {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  position: relative;
}

.project-carousel .carousel-item img {
  height: 550px;
  object-fit: cover;
  width: 100%;
}

.carousel-control-prev,
.carousel-control-next {
  background: none;
  border: none;
  width: auto;
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(0, 66, 37, 0.85);
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  background-size: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  background-color: #004225;
  transform: scale(1.05);
}

.carousel-indicators {
  bottom: 20px;
}

.carousel-indicators li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  margin: 0 5px;
  transition: all 0.3s ease;
}

.carousel-indicators li.active {
  background-color: #004225;
  transform: scale(1.2);
}

/* Nuevos estilos para los detalles del proyecto */
.project-details {
  background-color: white;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #f2f2f2;
  padding-bottom: 1rem;
}

.project-title {
  color: #004225;
  font-weight: 700;
  font-size: 1.6rem;
  margin: 0;
}

.status-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.status-current {
  background-color: #004225;
  color: white;
}

.status-past {
  background-color: #949494;
  color: white;
}

.project-description {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Cards de información */
.project-info-card {
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fafafa;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.card-section {
  padding: 1.5rem;
}

.section-title {
  color: #004225;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 66, 37, 0.2);
}

/* Grid de información general */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.info-item {
  margin-bottom: 0.5rem;
}

.info-label {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
}

.info-label i {
  color: #004225;
  margin-right: 0.5rem;
  font-size: 1rem;
  width: 18px;
  text-align: center;
}

.info-value {
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  color: #1f1f1f;
  font-weight: 600;
}

/* Grid de métricas */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.metric-item {
  background-color: #fff;
  padding: 1.2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.metric-icon {
  color: #004225;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.metric-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #004225;
  margin-bottom: 0.3rem;
}

.metric-label {
  font-size: 0.85rem;
  color: #666;
}

/* Botón de contacto */
.contact-btn-container {
  text-align: center;
  margin-top: 2rem;
}

.contact-btn {
  background-color: #004225;
  color: white;
  padding: 0.7rem 1.5rem;
  font-weight: 500;
  border-radius: 30px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 66, 37, 0.3);
}

.contact-btn:hover {
  background-color: #00592f;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 66, 37, 0.4);
  color: white;
  text-decoration: none;
}

/* Loader */
#loading-indicator {
  padding: 5rem 0;
  text-align: center;
}

#loading-indicator .spinner-border {
  width: 2.5rem;
  height: 2.5rem;
  color: #004225;
}

/* Responsive */
@media (max-width: 992px) {
  .project-container {
    max-width: 100%;
    padding: 0;
  }
}

@media (max-width: 992px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .project-section {
    padding: 3rem 0;
  }

  .project-carousel .carousel-item img {
    height: 350px;
  }

  .project-details {
    padding: 1.5rem;
    border-radius: 10px;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .status-badge {
    margin-top: 0.8rem;
  }

  .project-title {
    font-size: 1.4rem;
  }

  .section-title {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .project-carousel .carousel-item img {
    height: 250px;
  }

  .project-section {
    padding: 2rem 0;
  }
}

/* Filtro de proyectos */
#projects-filter-container {
  display: flex;
  align-items: center;
  background: #eaf6f0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 66, 37, 0.07);
  width: fit-content;
  margin: 0.5rem 0 2rem auto;
}

#projects-filter-icon {
  color: #004225;
  font-size: 1.2rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1.5px solid #e0e0e0;
}

.select-wrapper {
  position: relative;
}

#projects-filter {
  min-width: 120px;
  height: 44px;
  padding: 0 2.2rem 0 1rem;
  border: none;
  border-radius: 0 12px 12px 0;
  background: #fff;
  color: #004225;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  appearance: none;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #004225;
  font-size: 0.8rem;
  pointer-events: none;
}

@media (max-width: 768px) {
  #projects-filter-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  #projects-filter {
    min-width: 90px;
    height: 36px;
    font-size: 0.95rem;
    border-radius: 0 10px 10px 0;
    padding: 0 1.7rem 0 0.7rem;
  }
  .select-arrow {
    right: 0.6rem;
    font-size: 0.7rem;
  }
}

/* Pager Styles */
.pager-container {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.pager-wrapper {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 66, 37, 0.1);
  padding: 0.5rem;
  border: 1px solid #e8f5e8;
}

.pager-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 0.3rem;
}

.pager-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: #004225;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pager-btn:hover:not([disabled]) {
  background: #e8f5e8;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 66, 37, 0.15);
}

.pager-btn.active {
  background: #004225;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 66, 37, 0.3);
}

.pager-btn[disabled] {
  color: #ccc;
  cursor: not-allowed;
  opacity: 0.5;
}

.pager-prev,
.pager-next {
  font-size: 0.8rem;
}

.pager-ellipsis {
  color: #666;
  font-weight: 600;
  padding: 0 0.5rem;
  user-select: none;
}

/* Responsive pager */
@media (max-width: 768px) {
  .pager-wrapper {
    padding: 0.3rem;
  }
  .pager-btn {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }
  .pager-list {
    gap: 0.2rem;
  }
}

@media (max-width: 480px) {
  .pager-btn {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
  .pager-list {
    gap: 0.1rem;
  }
}

/* Team Section */
.team-section .row {
  justify-content: center;
}

/* Contact Sidebar Styles */
.contact-sidebar {
  overflow: hidden;
  transition: transform 0.3s ease;
}

.contact-sidebar:hover {
  transform: translateY(-5px);
}

.contact-sidebar-header {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.contact-sidebar-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.contact-sidebar:hover .contact-sidebar-header img {
  transform: scale(1.05);
}

.contact-sidebar-content {
  padding: 25px;
}

.contact-sidebar-title {
  color: #004225;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  padding-bottom: 12px;
}

.contact-sidebar-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #004225;
  border-radius: 2px;
}

.contact-items {
  margin-bottom: 25px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-icon-wrapper {
  background-color: rgba(0, 66, 37, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-item:hover .contact-icon-wrapper {
  background-color: #004225;
}

.contact-icon-wrapper i {
  color: #004225;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.contact-item:hover .contact-icon-wrapper i {
  color: white;
}

.contact-details {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 3px;
  font-weight: 500;
}

.contact-value {
  color: #333;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

a.contact-value:hover {
  color: #004225;
  text-decoration: none;
}

/* Contact Form Feedback */
.feedback-success,
.feedback-error {
  padding: 10px 15px;
  border-radius: 5px;
  font-family: Montserrat, sans-serif;
  font-weight: 500;
  animation: fadeIn 0.3s ease;
}

.feedback-success {
  color: #004225;
}

.feedback-error {
  color: #721c24;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Maintenance Page Styles */
.maintenance-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: #f5f5f5;
}

.logo-container {
  margin-bottom: 2rem;
}

.logo-container img {
  max-width: 250px;
  height: auto;
}

.maintenance-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.maintenance-title {
  font-size: 2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.maintenance-message {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.home-button {
  background: #004225;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
}

.home-button:hover {
  background: #00592f;
  color: white;
  text-decoration: none;
}

.maintenance-icon {
  font-size: 3rem;
  color: #004225;
  margin-bottom: 1rem;
}
