/* Ocultar contenido original de la web del puerto */
header,
.asociados,
.descargar-app,
.ayuda-ue-pesca,
.ayuda-ue,
.menu-logo {
  display: none;
}

#breadcrumb,
#footer {
  display: none;
}

body {
  padding-top: 210px;
}

/* Añadir después de los estilos del body */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("logo-20-aniversario-autoridad-portuaria-de-motril-bg.png");
  background-repeat: no-repeat;
  background-position: center right;
  background-size: contain;
  opacity: 0.2;
  z-index: -1;
  pointer-events: none;
}

/* Asegurar que el contenido está por encima del fondo */
#container,
.containerPrincipal,
.section-aniversario {
  position: relative;
  z-index: 1;
}

/* Estabilizar scroll en móviles */
html {
  scroll-behavior: auto;
}

@media (max-width: 768px) {
  html {
    scroll-behavior: auto !important;
  }

  body {
    -webkit-overflow-scrolling: touch;
  }
}

/* ---- */

:target {
  scroll-margin-top: 160px;
}

#separator {
  padding: 0 !important;
  margin-bottom: 0 !important;
}

.separator {
  width: 100%;
  height: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.linea {
  flex: 1;
  background-color: #002c75;
  height: 1px;
}

#breadcrumb {
  margin-bottom: 0 !important;
  padding: 0 !important;
}

.containerPrincipal {
  width: 100%;
  margin: 0;
  display: grid;
}

.container-aniversario {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-aniversario {
  padding: 90px 0;
}

.section-title-aniversario {
  color: #002c75;
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Timeline mejorado */
.timeline-container {
  position: relative;
  padding: 20px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 184%;
  background: #002c75;
  top: 0;
}

.timeline-event {
  display: flex;
  justify-content: flex-end;
  padding: 20px 0;
  width: 50%;
  position: relative;
}

.timeline-event:nth-child(odd) {
  margin-left: 50%;
  justify-content: flex-start;
}

.timeline-image {
  margin-top: 10px;
  cursor: pointer;
  text-align: center;
}

.timeline-content {
  width: 80%;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  margin: 0 30px;
}

.timeline-content::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: #002c75;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.timeline-event:nth-child(odd) .timeline-content::before {
  left: -40px;
}

.timeline-event:nth-child(even) .timeline-content::before {
  right: -40px;
}

.timeline-year {
  font-size: 24px;
  font-weight: 700;
  color: #002c75;
  margin-bottom: 10px;
}

.timeline-text {
  color: #333;
  line-height: 1.6;
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.timeline-list li {
  display: flex;
  flex-direction: column;
  padding: 15px;
  border-left: 3px solid rgba(0, 44, 117, 0.3);
  position: relative;
  margin-bottom: 15px;
  transition: all 0.3s ease-in-out;
}

.timeline-list li::before {
  content: "";
  position: absolute;
  left: -7.5px;
  top: 50%;
  width: 12px;
  height: 12px;
  background: #002c75;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease-in-out;
}

.timeline-list li:hover {
  background: rgba(0, 44, 117, 0.05);
  border-left: 3px solid #002c75;
}

.timeline-list li:hover::before {
  background: #3170ac;
  transform: scale(1.2) translateY(-50%);
}

.timeline-month {
  font-weight: bold;
  color: #002c75;
  font-size: 18px;
  margin-bottom: 5px;
}

.timeline-text {
  font-size: 16px;
  color: #333;
  line-height: 1.5;
}

.timeline-button {
  margin-top: 10px;
  text-align: left;
}

.timeline-button a {
  display: inline-block;
  background: #002c75;
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  padding: 8px 15px;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 3px 10px rgba(0, 44, 117, 0.3);
}

.timeline-button a:hover {
  background: #3170ac;
  box-shadow: 0 5px 15px rgba(49, 112, 172, 0.5);
  transform: translateY(-2px);
}

/* Botón Toggle Timeline */
.timeline-toggle-container {
  text-align: center;
  margin: 40px 0;
}

.btn-timeline-toggle {
  background: #002c75;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 44, 117, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-timeline-toggle:hover {
  background: #3170ac;
  box-shadow: 0 6px 20px rgba(0, 44, 117, 0.4);
  transform: translateY(-2px);
}

.btn-timeline-toggle:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 44, 117, 0.3);
}

.timeline-content-wrapper {
  transition: all 0.5s ease;
  overflow: hidden;
}

.timeline-content-wrapper.show {
  display: block !important;
  animation: fadeInDown 0.5s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive para el botón timeline */
@media (max-width: 768px) {
  .btn-timeline-toggle {
    padding: 12px 25px;
    font-size: 14px;
  }
}

/* Cabecera mejorada */
.header-aniversario {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.header-logo {
  padding: 10px 20px;
  border-radius: 5px;
  display: inline-block;
  width: 40%;
  max-width: 800px !important;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2)) !important;
  margin-bottom: 50px;
}

.header-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,
      0,
      0,
      0.4);
  /* Capa oscura para mejorar la legibilidad del texto */
  z-index: 0;
}

.container-aniversario {
  position: relative;
  z-index: 1;
}

.container-aniversario img {
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

.presidente-imagen-container img {
  width: 100%;
  max-width: 800px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
  margin-bottom: 0 !important;
}

.header-aniversario h2 {
  font-size: 30px;
  color: #fbb900;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0px;
  position: relative;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-aniversario p {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto;
  font-weight: 300;
  letter-spacing: 1px;
  position: relative;
  font-weight: 400;
  color: white;
}

/* Estilos mejorados para la sección del Presidente */
.presidente-section {
  background: #f8f9fa;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.presidente-content {
  display: flex;
  gap: 40px;
  align-items: start;
  justify-content: center;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* Ratio 16:9 */
  margin-bottom: 50px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.presidente-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.presidente-texto {
  flex: 3;
  padding: 0 30px 30px 0;
  border-radius: 10px;
}

.participa-texto {
  /* padding: 0; */
}

.presidente-texto p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 0;
  text-align: justify;
}

.participa-texto p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 0;
  text-align: justify;
}

.presidente-imagen-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.presidente-imagen {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.mbsc-calendar-labels {
  display: none;
}

/* Media queries para responsividad */
@media (max-width: 992px) {
  .presidente-content {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 878px) {
  .mbsc-windows.mbsc-calendar-cell {
    border-color: #e6e6e6 !important;
  }

  .mbsc-windows.mbsc-calendar-cell:after {
    border-color: #e6e6e6 !important;
    border-left-style: solid !important;
    border-left-width: 1px !important;
  }
}

@media (max-width: 768px) {
  .presidente-section {
    padding: 20px;
  }

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

  .video-container {
    margin-bottom: 20px;
  }
}

/* Eventos */
.eventos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.evento-card {
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.evento-card h3 {
  color: #002c75;
  font-size: 20px;
  margin-bottom: 15px;
}

.evento-card p {
  color: #666;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .timeline-container {
    padding: 0;
  }

  .timeline-line {
    left: 20px;
    height: 187%;
  }

  .timeline-event {
    width: 100%;
    margin-left: 0 !important;
    justify-content: flex-start !important;
  }

  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 40px;
  }

  .timeline-content::before {
    left: -30px !important;
  }
}

/* Añadimos las transiciones y efectos hover */
.header-aniversario h2,
.header-aniversario p {
  transition: all 0.3s ease;
}

.evento-card {
  transition: all 0.3s ease;
}

.evento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.timeline-content {
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.timeline-content::before {
  transition: all 0.3s ease;
}

.timeline-content:hover::before {
  transform: translateY(-50%) scale(1.2);
  box-shadow: 0 0 15px rgba(0, 44, 117, 0.5);
}

/*  Menú navegación */

.nav-aniversario {
  background: white url("fondoNav.png") no-repeat center;
  background-size: cover;
  background-position-y: -70px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 9999;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: 1050px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.nav-logo {
  height: 215px;
}

/* Estilos para el botón hamburguesa */
.menu-toggle {
  width: 30px;
  height: 25px;
  position: relative;
  padding: 0;
  transition: 0.5s ease-in-out;
  cursor: pointer;
  background: none;
  border: none;
  display: none;
}

.menu-toggle span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #002d75;
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

.menu-toggle span:nth-child(1) {
  top: 0px;
}

.menu-toggle span:nth-child(2) {
  top: 10px;
}

.menu-toggle span:nth-child(3) {
  top: 20px;
}

/* Animación cuando está activo */
.menu-toggle.active span:nth-child(1) {
  top: 10px;
  transform: rotate(135deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.menu-toggle.active span:nth-child(3) {
  top: 10px;
  transform: rotate(-135deg);
}

.nav-links {
  display: flex;
  align-items: center;
  font-size: x-large;
  gap: 15px;
}

.nav-link {
  color: #002d75;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: bold;
  font-size: 15px;
}

.nav-link:hover {
  color: #fbb900;
}

/* Responsividad */
@media (max-width: 1050px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    margin-top: 153px;
    background: rgba(0, 44, 117, 0.95);
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 25px 0;
    color: #002d75;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-link {
    color: white;
  }

  .section-title-aniversario {
    font-size: 28px;
  }
}

/* Calendario Interactivo */
.calendario-container {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.fc {
  max-width: 100%;
}

.fc .fc-toolbar-title {
  color: #002c75;
  font-size: 1.5em !important;
  font-weight: 600;
}

.fc-event {
  background-color: #3170ac;
  border: none;
  padding: 3px;
  cursor: pointer;
  margin: 2px 0;
  position: relative;
}

.fc-event-title {
  padding: 2px 5px;
  font-size: 0.9em;
}

/* Tooltip personalizado */
.fc-event[data-tooltip] {
  position: relative;
}

.fc-event[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: #333;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 1000;
}

.fc-event:hover[data-tooltip]::after {
  visibility: visible;
  opacity: 1;
}

.fc-daygrid-day.fc-day-today {
  background-color: rgba(49, 112, 172, 0.1) !important;
}

/* Ajustes específicos para móviles */
@media (max-width: 768px) {

  /* Centra el título y los botones */
  .fc-toolbar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .fc-toolbar-title {
    font-size: 16px !important;
  }

  .fc-button {
    font-size: 12px !important;
    padding: 5px 8px !important;
  }

  /* Reduce el tamaño de la fuente en los días */
  .fc-daygrid-day-number {
    font-size: 12px !important;
  }

  /* Hace que los eventos sean más compactos */
  .fc-event {
    font-size: 10px !important;
    padding: 3px 5px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    /* Evita que los eventos se partan en varias líneas */
    max-width: 100%;
  }

  /* Ajusta las celdas para que no se vean tan comprimidas */
  .fc-daygrid-day-frame {
    min-height: 50px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  /* Estilo para limitar eventos por día y agregar "ver más" */
  .fc-daygrid-day-events {
    max-height: 35px;
    overflow: hidden;
    position: relative;
  }

  /* Botón "Ver más" cuando hay muchos eventos en un día */
  .fc-daygrid-day-events::after {
    content: " + más";
    display: block;
    font-size: 10px;
    color: #002c75;
    text-align: center;
    cursor: pointer;
  }

  /* Hace que los eventos no se vean tan comprimidos */
  .fc-daygrid-event {
    display: block;
    width: 90%;
    text-align: center;
  }
}

.evento-imagen {
  margin-top: 10px;
}

/* Proyectos de Futuro actualizado */
.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 20px;
}

.proyecto-card {
  position: relative;
  height: 300px;
  border-radius: 15px;
  overflow: hidden;
  /* cursor: pointer; */
}

.proyecto-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.proyecto-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 20px;
  transition: all 0.5s ease;
}

.proyecto-content h3 {
  font-weight: bold;
}

.proyecto-content p {
  text-align: center;
}

/* CALENDARIO */
#demo-responsive-month-view {
  background: white !important;
  width: 100%;
  height: 100%;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.mbsc-calendar {
  background-color: white !important;
  border-radius: 10px;
  box-shadow: none !important;
}

div[style*="pointer-events:none"][style*="opacity:0.89"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Imágenes modales */

.timeline-image img {
  cursor: pointer;
}

@media (max-width: 863px) {
  .timeline-line {
    height: 184%;
  }
}

@media (max-width: 528px) {
  .timeline-line {
    height: 185%;
  }
}

@media (max-width: 445px) {
  .timeline-line {
    height: 186%;
  }
}

@media (max-width: 1100px) {
  .presidente-content {
    flex-direction: column;
    gap: 30px;
  }

  .header-aniversario h2 {
    font-size: 34px;
  }

  .presidente-imagen-container {
    width: 100%;
    overflow: unset;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    justify-content: center;
  }

  .presidente-imagen {
    border-radius: 10px;
    width: 25%;
  }
}

@media (max-width: 830px) {
  .header-aniversario h2 {
    font-size: 30px;
  }


  .presidente-imagen-container img {
    width: 50%;
    border-radius: 10px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 30px;
  }

  .nav-container {
    flex-direction: column;
    align-items: center;
    padding: 6px;
  }

  .proyecto-card {
    height: 250px;
  }

  .nav-logo {
    display: none;
  }

  .nav-links {
    margin-top: -28px;
  }

  .modal-content {
    width: 70% !important;
  }
}

@media (max-width: 290px) {
  .timeline-line {
    left: 20px;
    height: 128%;
  }
}

@media (max-width: 545px) {
  .header-logo {
    width: 60%;
  }

  .header-aniversario h2 {
    font-size: 20px;
  }

  .header-aniversario p {
    font-size: 17px;
  }
}

@media (max-width: 470px) {
  .section-title-aniversario {
    line-height: 35px;
  }

  .presidente-imagen-container img {
    width: 100%;
    border-radius: 10px;
  }
}

@media (max-width: 455px) {
  /* .header-logo {
    margin-bottom: 100px;
  } */

  .header-aniversario h2 {
    font-size: 20px;
  }

  .header-aniversario p {
    font-size: 17px;
  }

  /* .close {
    right: 8px !important;
  } */
}

@media (max-width: 400px) {
  .header-aniversario h2 {
    font-size: 15px;
  }

  .header-aniversario p {
    font-size: 15px;
  }
}

/* Estilos para la ventana modal */
body.modal-open {
  overflow: hidden;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 50%;
  max-width: 500px;
  text-align: center;
  position: relative;
}

.modal-content h2 {
  margin-bottom: 15px;
}

.modal-content ul {
  list-style: none;
  padding: 0;
}

.modal-content li {
  background: rgba(0, 44, 117, 0.05);
  padding: 10px;
  border-radius: 5px;
  margin: 5px 0;
  font-size: 15px;
}

.evento-fecha {
  color: #666;
  text-transform: capitalize;
}

.evento-titulo {
  font-size: 18px;
  font-weight: 700;
  color: #002c75;
  margin: 10px 0;
}

.evento-descripcion {
  line-height: 1.4;
}

.modal-content li:last-child {
  border-bottom: none;
}

.close {
  position: absolute;
  top: 3px;
  right: 8px;
  font-size: 20px;
  cursor: pointer;
}

/* GALRÍA */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* 4 columnas */
  gap: 15px;
  /* Espacio entre imágenes */
  padding: 20px 0;
  justify-content: center;
}

.gallery-grid a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease-in-out;
}

.gallery-grid a img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.gallery-grid a:hover {
  transform: scale(1.05);
}

/* 📱 RESPONSIVE: En pantallas pequeñas (menos de 768px) pasa a 2 columnas */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 📱 Ultra pequeño (móviles) 1 columna */
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

#participa .container-aniversario {
  display: flex;
  align-items: start;
  justify-content: center;
  flex-flow: row nowrap;
}

.container-imagen-participa {
  flex: 1;
}

.container-texto-participa {
  flex: 2;
}

.container-texto-participa h2 {
  text-align: left;
}

/* Form styles for participation section */
.form-participa {
  margin-top: 30px;
  width: 100%;
}

.form-row {
  display: flex;
  gap: 60px;
  margin-bottom: 20px;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #002c75;
  font-weight: 600;
  font-size: 14px;
}

.form-group input {
  width: 100% !important;
  padding: 12px 15px !important;
  border: 2px solid #e0e0e0 !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  transition: all 0.3s ease !important;
  outline: 0 !important;
  color: #000 !important;
  margin: 0 !important;
  display: block !important;
  background: #fff !important;
}

.form-group-privacy {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-group-privacy label {
  margin-bottom: 0px;
}

.form-group input:focus {
  border-color: #002c75;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 44, 117, 0.1);
}

.form-group.privacy-policy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-group.privacy-policy input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
}

.form-group.privacy-policy label {
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.4;
}

.form-group.privacy-policy a {
  color: #002c75;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.form-group.privacy-policy a:hover {
  color: #fbb900;
}

.form-submit {
  margin-top: 30px;
}

.btn-participar {
  background-color: #002c75;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 44, 117, 0.1);
}

.btn-participar:hover {
  background-color: #fbb900;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(251, 185, 0, 0.2);
}

.form-note {
  margin-top: 15px;
  color: #666;
  font-size: 13px;
  text-align: left;
}

/* Responsive styles for the form */
@media (max-width: 1300px) {
  .form-group input {
    width: 95% !important;
  }
}

@media (max-width: 1250px) {
  .form-group input {
    width: 90% !important;
  }
}

@media (max-width: 1100px) {
  .container-texto-participa {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  #participa .container-aniversario {
    flex-direction: column;
    gap: 30px;
  }

  .form-row {
    flex-direction: column;
    gap: 20px;
  }

  .form-row .form-group {
    margin-bottom: 0;
  }

  .container-imagen-participa {
    width: 100%;
    text-align: center;
  }

  .container-texto-participa {
    width: 100%;
  }

  .form-participa {
    max-width: 100%;
  }

  .btn-participar {
    width: 95%;
  }

  .form-group input {
    width: 90% !important;
  }

  .participa-texto {
    width: 90%;
  }

  .container-texto-participa .section-title-aniversario {
    width: 90%;
    text-align: center;
  }

  .section-title-aniversario {
    line-height: 30px;
  }
}

@media (max-width: 600px) {
  .btn-participar {
    width: 93%;
  }

  .form-group input {
    width: 85% !important;
  }
}

@media (max-width: 480px) {
  .container-texto-participa {
    padding: 0 10px;
  }
}

/* Error state styles */
.form-group input:invalid:not(:placeholder-shown) {
  border-color: #002c75;
}

.form-group input:invalid:not(:placeholder-shown):focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/**/

.notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 15px 25px;
  background-color: #4CAF50;
  color: white;
  border-radius: 4px;
  display: none;
  z-index: 9999;
  text-align: center;
  min-width: 300px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.notification.error {
  background-color: #f44336;
}

.notification.success {
  background-color: #4CAF50;
}

/* PREMIO POESÍA */
.premio-container {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

.premio-header {
  text-align: center;
  margin-bottom: 40px;
}

.premio-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.premio-logo {
  width: 100%;
  max-width: 700px;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
  flex: 0 0 auto;
}

.premio-content {
  text-align: left;
}

.premio-intro {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 30px;
}

.bases-title {
  color: #494949;
  font-size: 22px;
  font-weight: bold;
  text-align: left;
  margin-bottom: 30px;
  text-transform: uppercase;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

/* Botón de descarga de bases */
.download-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #002c75;
  color: white !important;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 44, 117, 0.2);
  white-space: nowrap;
}

.btn-download span {
  color: white !important;
}

.btn-download:hover {
  background: #3170ac;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(49, 112, 172, 0.3);
  color: white;
  text-decoration: none;
}

.download-icon {
  font-size: 18px;
}

.accordion-container {
  margin: 0 auto;
}

.accordion-item {
  border-bottom: 1px solid #ddd;
  margin-bottom: 0;
  overflow: hidden;
  box-shadow: none;
  border-radius: 0;
}

.accordion-header {
  width: 100%;
  background: transparent;
  color: #0f70b7;
  border: none;
  padding: 20px 10px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border-bottom: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

.accordion-header:hover {
  background: rgba(52, 152, 219, 0.05);
  color: #0f70b7;
}

.accordion-header.active {
  background: rgba(52, 152, 219, 0.05);
  color: #0f70b7;
}

.accordion-icon {
  transition: transform 0.3s ease;
  width: 16px;
  height: 16px;
  background-image: url("https://www.apmotril.com/aniversario/imagenes/concurso-poesia/flecha-accordeon.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  padding: 0 15px 25px 15px;
  background: transparent;
  border-top: none;
}

.accordion-content.active {
  display: block;
}

.accordion-content p {
  color: #333;
  line-height: 1.6;
  margin: 15px 0 !important;
  font-size: 17px;
}

.accordion-content p:last-child {
  margin-bottom: 0;
}

.accordion-content ul {
  color: #333;
  line-height: 1.6;
  margin: 10px 0 15px 20px;
  padding: 0;
}

.accordion-content ul li {
  margin-bottom: 8px;
  list-style-type: none;
  position: relative;
  font-size: 17px;
}

.accordion-content ul li:last-child {
  margin-bottom: 0;
}

.direccion-premio {
  background: white;
  margin-top: 15px;
  border-radius: 5px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.6;
}

/* Responsive para la sección del premio */
@media (max-width: 768px) {
  .premio-container {
    padding: 20px;
    margin: 0 10px;
  }

  .premio-header-content {
    flex-direction: column;
    gap: 20px;
  }

  .premio-logo {
    max-width: 500px;
  }

  .accordion-header {
    padding: 15px 10px;
    font-size: 16px;
  }

  .accordion-content {
    padding: 0 10px 20px 10px;
  }

  .bases-title {
    font-size: 20px;
  }

  .btn-download {
    padding: 12px 25px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .premio-container {
    padding: 15px;
  }

  .premio-header-content {
    flex-direction: column;
    gap: 15px;
  }

  .premio-logo {
    max-width: 500px;
  }

  .accordion-header {
    padding: 12px 8px;
    font-size: 15px;
  }

  .accordion-content {
    padding: 0 8px 15px 8px;
  }

  .direccion-premio {
    font-size: 12px;
    padding: 10px;
  }

  .btn-download {
    padding: 12px 20px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
  }
}

/* PATROCINADORES DEL CONCURSO */
.patrocinadores-container {
  margin-top: 40px;
  padding-top: 30px;
}

.patrocinadores-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  align-items: center;
  justify-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.patrocinador-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100px;
  padding: 15px;
  transition: transform 0.3s ease;
}

.patrocinador-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(20%);
  transition: all 0.3s ease;
}

.patrocinador-item:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* Responsive para patrocinadores */
@media (max-width: 768px) {
  .patrocinadores-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .patrocinador-item {
    height: 80px;
    padding: 10px;
  }

  .patrocinadores-container {
    margin-top: 30px;
    padding-top: 20px;
  }
}

@media (max-width: 480px) {
  .patrocinadores-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .patrocinador-item {
    height: 60px;
    padding: 8px;
  }

  .patrocinadores-container {
    margin-top: 25px;
    padding-top: 15px;
  }
}

/* Evento temporal */

.evento-puerto-c a {
  background-size: contain !important;
  background-repeat: no-repeat !important;
}

.evento-puerto.open {
  right: -117px !important;
}

.evento-puerto {
  bottom: 46px !important;
}

.cerrar-evento {
  z-index: 99999999 !important;
  top: -8px !important;
  right: 135px !important;
}

.evento-puerto .contenido {
  min-height: 368px !important;
}

@media (max-width: 767px) {
  .evento-puerto .contenido {
    min-height: 505px !important;
  }

  .cerrar-evento {
    z-index: 99999999 !important;
    top: -8px !important;
    right: 34px !important;
    position: absolute;
    font-size: 16px;
    background: #fff;
    border-radius: 7%;
  }

  .evento-puerto.open {
    right: 0% !important;
  }

  .evento-puerto .contenido {
    min-height: 505px !important;
    z-index: 23000;
    position: inherit;
  }

  .media-holder img {
    transition: all .25s ease-out;
    margin-top: 10px;
  }

  .cale {
    display: none;
  }

  .logi {
    padding: 0 0 25px 0;
    margin-bottom: -22%;
  }
}

@media only screen and (min-width: 200px) and (max-width: 480px) {
  .evento-puerto.open {
    right: 0% !important;
    z-index: 100000;
    display: flow-root !important;
  }
}