@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

/* 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;
}

#content {
  margin-bottom: 0 !important;
}

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

body {
  padding-top: 210px;
  font-family: "Montserrat", sans-serif;
  background-color: white !important;
}

/* 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;
}

/* ---- */

: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;
}

@media (max-width: 1240px) {
  .ferry-card {
    padding: 0px 14px !important;
  }
}

.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);
}

/* Cabecera mejorada */
.header-aniversario {
  position: relative;
  width: 100%;
  height: 50vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  text-align: center;
  color: white;
  background-image: url(https://www.apmotril.com/ope/imagenes/fondo-cabecera-pagina-ope.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

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

.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, 36, 95, 0.57);
  /* Capa oscura para mejorar la legibilidad del texto */
  z-index: 0;
}

.header-aniversario .container-aniversario {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-flow: column;
  max-height: 100%;
}

/* @media (max-width: 4300px) {
  .container-aniversario{
    max-width: unset;
    padding: 0;
  }
} */

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

.container-aniversario h1 {
  font-size: 60px;
  font-weight: 700;
  margin-top: 15px;
  margin-bottom: 15px;
}

.container-aniversario .subtitulo {
  font-size: 40px;
  font-weight: 600;
  text-transform: uppercase;
}

.container-aniversario h2 {
  font-size: 33px;
  font-weight: 600;
  text-transform: capitalize;
  line-height: 35px;
  margin-bottom: 20px;
}

.container-aniversario h3 {
  font-size: 25px;
  font-weight: 600;
  text-transform: inherit !important;
  line-height: 20px;
}

@media (max-width: 670px) {
  .header-aniversario .container-aniversario {
    margin: 0 !important;
    width: 100% !important;
  }

  .header-logo {
    margin-bottom: 10px;
    width: 50% !important;
  }

  .container-aniversario h1 {
    font-size: 35px;
  }

  .banderas img {
    width: 55px !important;
  }

  .container-aniversario .subtitulo {
    font-size: 30px;
  }

  .container-aniversario h3 {
    font-size: 20px;
    line-height: 30px;
    margin-bottom: 0px;
  }
}

.banderas {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 10px;
}

.banderas img {
  width: 65px;
  height: auto;
}

.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 p {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto;
  font-weight: 300;
  letter-spacing: 1px;
  position: relative;
  font-weight: 400;
  color: white;
}

/* Estilos para la sección de destinos principales */
#principales-destinos {
  position: relative;
  top: 9%;
  /* left: 15%; */
  z-index: 11;
  width: 100%;
}

@media (max-width: 3840px) {
  #principales-destinos {
    top: 13%;
  }

  #mensaje-motril {
  }
}

@media (max-width: 2405px) {
  #principales-destinos {
    top: 9%;
  }
}

@media (max-width: 2250px) {
  #principales-destinos {
    top: 9%;
  }
}

@media (max-width: 1920px) {
  #principales-destinos {
    top: 8%;
  }
}

@media (max-width: 1820px) {
  #principales-destinos {
    top: 8%;
  }
}

/* @media (max-width: 1650px) {
  #principales-destinos {
    left: 13%;
  }
} */

/* @media (max-width: 1450px) {
  #principales-destinos {
    left: 10%;
  }
} */

/* @media (max-width: 1350px) {
  #principales-destinos {
    left: 7%;
  }
} */

/* @media (max-width: 1250px) {
  #principales-destinos {
    left: 3%;
  }
} */

@media (max-width: 1250px) {
  #principales-destinos {
    position: relative;
    top: 0;
    left: 0;
  }

  #mensaje-motril {
    padding-top: 0 !important;
  }

  .header-aniversario .container-aniversario {
    max-height: 100%;
  }
}

.ferry-destinations {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1rem 0rem;
}

.destination {
  text-align: center;
  flex: 1 1 200px;
  max-width: 280px;
}

.destination h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #003366;
  position: relative;
  top: 65px;
  z-index: 2;
}

.destination img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

/* Estilos para enlaces de destinos */
.destination a {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.destination a:hover img {
  transform: scale(1.05);
  transition: transform 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.destination img:hover {
  transform: scale(1.03);
}

@media (max-width: 1250px) {
  .ferry-destinations {
    padding: 1rem 2rem;
  }
}

@media (max-width: 740px) {
  .ferry-destinations {
    justify-content: center;
  }

  .destination h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 470px) {
  .destination {
    max-width: 300px;
  }
}

/* Elige motril */
#mensaje-motril {
  padding-top: 9rem;
  padding-bottom: 0;
}

.elige-motril {
  padding: 1rem 0rem;
  margin: auto;
  font-family: sans-serif;
  color: #001b58; /* azul oscuro */
}

.elige-motril h2,
.elige-motril h2 strong {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #012d76 !important;
  text-align: left !important;
  text-transform: inherit !important;
}

.elige-motril .subtitulo {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: #f8be00 !important;
  text-transform: inherit !important;
}

.elige-motril p {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 10px !important;
  font-weight: bold;
  color: #012d76;
}

@media (max-width: 1250px) {
  .elige-motril {
    padding: 1rem 2rem;
  }
}

/* Ferrys */
.ferry-card {
  border-radius: 16px;
  overflow: hidden;
  margin: 2rem 0;
  font-family: sans-serif;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

.ferry-card-header {
  background: #012d76;
  color: #fff;
  padding: 1.7rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 35px;
}

.ferry-card-header h2 {
  font-size: 2.5rem;
  margin: 0;
}

.ferry-card-header img {
  width: 100px;
}

.ferry-card-body {
  display: flex;
  flex-wrap: wrap;
  padding: 2rem 0 1rem 0;
}

.ferry-img {
  flex: 1 1 250px;
}

.ferry-img img {
  width: 100%;
  border-radius: 12px;
}

.ferry-info {
  flex: 2 1 400px;
  padding: 1rem 1rem 1rem 1.5rem;
}

.ferry-info h3,
.ferry-info h3 strong {
  color: #003366;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  text-align: left;
  line-height: 30px;
}

.ferry-info p {
  color: #003366;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.ferry-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #001b58;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.ferry-details .detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100px;
  text-align: center;
}

.ferry-details .detail img {
  width: 28px;
  height: auto;
}

.ferry-details .ferry img {
  width: 90px;
  margin-bottom: 10px;
}

.ferry-details .cronometro img {
  width: 70px;
}

.ferry-details .pasajeros img {
  width: 75px;
}

.ferry-details .coche img {
  width: 75px;
}

.ferry-details .rotar img {
  width: 60px;
  padding-bottom: 15px;
}

.ferry-details .detail span {
  font-size: 1.3rem;
  font-weight: bold;
}

.ferry-details .rotar span {
  width: 160%;
}

.ferry-subinfo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.ferry-brand {
  flex: 1;
  padding: 1rem;
  text-align: center;
}

.ferry-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  flex: 1;
  align-items: center;
  justify-content: end;
}

.btn {
  padding: 1.7rem 1.5rem;
  font-weight: bold;
  border-radius: 15px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  font-size: 1.2rem;
}

.btn.yellow {
  background-color: #ffcc00;
  color: #003366;
}

.btn.red {
  background-color: #e50000;
  color: white;
}

.ferry-brand {
  padding: 0 1rem;
  text-align: left;
}

.ferry-brand img {
  height: 65px;
  object-fit: contain;
}

@media (max-width: 1000px) {
  .ferry-details .detail {
    width: 140px;
  }
}

@media (max-width: 900px) {
  .ferry-card-header h2 {
    font-size: 2rem;
    text-align: left;
    margin-right: 40px;
  }

  .ferry-info h3,
  .ferry-info h3 strong {
    line-height: 40px;
  }
}

@media (max-width: 740px) {
  .ferry-card-header h2 {
    font-size: 1.5rem;
    margin-right: 10px;
  }

  .ferry-info {
    padding: 1rem 0;
  }

  .ferry-brand {
    padding: 15px 0;
  }

  .ferry-subinfo {
    flex-direction: column;
  }

  .ferry-details {
    gap: 1.5rem;
  }

  .ferry-buttons,
  .ferry-details {
    justify-content: center;
  }
}

/* GoogleMaps */
.acceso-motril {
  background-color: #efefef;
  padding: 2rem 1rem;
}

.acceso-contenido {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  padding: 1rem 0;
}

.acceso-texto {
  flex: 1 1 400px;
  color: #001b58;
  padding: 0 0 0 1rem;
}

.acceso-texto h3,
.acceso-texto h3 strong {
  font-size: 1.25rem;
  margin-bottom: 0;
  color: #012d76;
  text-align: left;
  line-height: 30px;
}

.acceso-texto p {
  font-size: 1.2rem;
  line-height: 1.6;
  font-weight: 600;
}

.acceso-mapa {
  flex: 1 1 300px;
  text-align: center;
  padding: 1rem 1rem 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.acceso-mapa a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
  text-decoration: none;
  color: #001b58;
  font-weight: bold;
  font-size: 0.9rem;
}

.acceso-mapa a span {
  text-decoration: none;
  color: #001b58;
  font-weight: bold;
  font-size: 1.2rem;
}

.mapa-google {
  width: 100px;
  height: auto;
  margin-bottom: 0.5rem;
}

.mapa-movil {
  width: 260px;
  max-width: 100%;
  height: auto;
  position: absolute;
  right: 15%;
  top: -58px;
  display: none;
}

/* Mapa de accesos */

/* Servicios OPE */
.servicios-ope div .servicio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.servicios-ope div .servicio .policia {
  margin-bottom: 5px !important;
}

.servicio .policia img {
  width: 110px !important;
}

.servicios-ope div .servicio .servicio-img {
  margin-bottom: 15px;
}

.servicios-ope div .servicio .servicio-img img {
  width: 80px;
}

.servicios-ope div .servicio .servicio-texto {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.servicio-texto h3 {
  font-size: 1.5rem;
  color: #f6bd08;
  text-align: center;
  margin-bottom: 0.5rem;
  text-transform: uppercase !important;
}

.servicio-texto p {
  color: #003366;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
  text-align: center;
}

/* Plano de accesos */
.plano-accesos {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: start;
  padding: 0;
  background-color: #012d76;
  border-radius: 25px;
  max-width: 950px !important;
}

.plano-accesos a {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: start;
  padding: 2rem 2rem;
  background-color: #012d76;
  border-radius: 25px;
  width: 100%;
}

.plano-accesos a p {
  font-size: 1.5rem;
  color: white;
  margin-right: 20px;
  margin-bottom: 0;
  font-weight: bold;
}

.plano-accesos a img {
  width: 100%;
  max-width: 180px;
  height: auto;
  border-radius: 16px;
  position: absolute;
  right: 50px;
  transform: rotate(-20deg);
  top: -68px;
}

@media (max-width: 950px) {
  .plano-accesos a img {
    display: none;
  }

  #plan-accesos {
    padding: 0 2rem;
  }
}

/* Formulario */
.formulario-container {
  padding: 3rem 0;
}

.formulario-ferry {
  background-color: #012d76;
  color: white;
  padding: 3rem 2rem;
  border-radius: 10px;
  max-width: 600px;
  margin: auto;
  font-family: sans-serif;
}

.formulario-ferry h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  text-align: center;
  text-transform: initial;
}

.formulario-ferry input[type="text"],
.formulario-ferry input[type="email"],
.formulario-ferry select {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  color: #012d76 !important;
  font-weight: bold;
  margin-top: inherit;
}

.formulario-ferry textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  color: #012d76 !important;
  font-weight: bold;
  margin-top: inherit;
  resize: vertical;
  font-family: inherit;
  min-height: 80px;
}

.formulario-ferry textarea::placeholder {
  color: #012d76;
  opacity: 1;
}

.formulario-ferry input::placeholder {
  color: #012d76;
  opacity: 1;
}

.formulario-ferry select {
  appearance: none;
  background-color: white;
  color: #012d76;
  font-weight: bold;
  width: 100% !important;
  max-width: 100% !important;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.formulario-ferry .checkboxes {
  font-size: 0.85rem;
  color: white;
}

.formulario-ferry .checkboxes input {
  margin-right: 0.5rem;
}

.formulario-ferry .checkboxes a {
  color: white;
  text-decoration: underline;
}

.formulario-ferry button {
  background-color: #ffc600;
  color: #012d76;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  float: right;
}

/* Footer */

.footer-container {
  padding: 0 0 3rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-container img {
  max-width: 20%;
}

/*  Menú navegación */

.nav-aniversario {
  background: white url("imagenes/fondoNav.png") no-repeat center;
  background-size: cover;
  background-position-y: -70px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 12;
  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;
}

@media (max-width: 1050px) {
  .nav-logo {
    height: 155px;
  }
  body {
    padding-top: 157px;
  }
}

/* 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;
  order: 2;
}

.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-enlaces {
  display: flex;
  align-items: end;
  justify-content: center;
  flex-flow: column;
  gap: 1rem;
}

.language-nav {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
  width: 100%;
}

.language-nav div {
  width: 35px;
}

.info-nav-mobile,
.separador-info-mobile {
  display: none;
}

.info-nav {
  display: flex;
  width: 100%;
  align-items: center;
  text-align: right;
  justify-content: end;
  gap: 8px;
  order: 1;
}

.separador-info {
  width: 1.5px;
  height: 40px;
  background-color: black;
  margin: 0 15px;
}

.info-nav .info p {
  font-size: 14px;
  text-transform: uppercase;
  font-weight: bold;
}

.info-nav .info span {
  color: red;
}

.info-nav .info a {
  color: red;
  text-decoration: underline;
  transition: color 0.3s ease;
  font-weight: bold;
}

.info-nav .info a:hover {
  color: black;
}

.info-nav-mobile {
  align-items: center;
  justify-content: center;
  flex-flow: column;
}

.info-nav-mobile .info:first-child {
  margin-bottom: 15px;
}

.info-nav-mobile .info p {
  color: white;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: bold;
}

.info-nav-mobile .info span {
  color: red;
  font-size: 14px;
}

.info-nav-mobile .info a {
  color: red;
  text-decoration: underline;
  transition: color 0.3s ease;
  font-weight: bold;
  font-size: 14px;
}

.info-nav-mobile .info a:hover {
  color: black;
}

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

.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) {
  .nav-enlaces {
    align-items: end;
  }

  .info-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .info-nav-mobile,
  .separador-info-mobile {
    display: block;
  }

  .info-nav-mobile .info {
    margin-bottom: 15px;
  }

  .info-nav-mobile .info p {
    margin-bottom: 0;
  }

  .separador-info {
    width: 100%;
    height: 1.5px;
    margin: 15px 0;
    background-color: white;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    margin-top: 153px;
    background: rgba(0, 44, 117, 0.95);
    position: absolute;
    top: 7px;
    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;
  }
}

@media (max-width: 740px) {
  .info-nav {
    flex-direction: column;
    align-items: end;
  }
}

@media (max-width: 450px) {
  .nav-container {
    padding: 0px 25px;
    gap: 2rem;
  }

  .nav-links {
    top: 5px;
  }
}

/* Mensaje Bienvenida */
#mensaje-bienvenida .container-aniversario h2 {
  margin-bottom: 10px;
  font-weight: 700;
  text-transform: unset;
  line-height: 35px;
}

/* Botón compra billetes */
#boton-compra-billete {
  position: relative;
  bottom: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

#boton-compra-billete a {
  background-color: #e9bc21;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1rem 35px;
  border-radius: 15px;
  margin: 0 20px;
}

#boton-compra-billete a:hover {
  background-color: #fbb900;
}
#boton-compra-billete a img {
  width: 90px;
  height: 60px;
}

#boton-compra-billete a p {
  font-size: 25px;
  margin-bottom: 0;
  font-weight: bold;
  color: #002c75;
  text-transform: uppercase;
}

/* Notificaciones del formulario */
.notification {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  z-index: 1000;
  max-width: 400px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.notification.success {
  background-color: #28a745;
}

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

/* Modal de YouTube Video */
.youtube-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-in-out;
}

.youtube-modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
}

.youtube-modal-content {
  position: relative;
  background: #000;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.4s ease-out;
  max-width: 90vw;
  max-height: 90vh;
}

.youtube-modal-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10000;
}

.youtube-modal-close:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
  color: #000;
}

.youtube-video-container {
  position: relative;
  width: 100%;
  height: 0;
  overflow: hidden;
}

/* Para videos verticales (shorts) */
.youtube-video-container.vertical {
  aspect-ratio: 9/16;
  width: min(400px, 90vw);
  height: min(710px, 80vh);
}

/* Para videos horizontales */
.youtube-video-container.horizontal {
  aspect-ratio: 16/9;
  width: min(800px, 90vw);
  height: min(450px, 80vh);
}

.youtube-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 15px;
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(-50px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .youtube-modal-content {
    margin: 20px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
  }
  
  .youtube-video-container.vertical {
    width: min(350px, calc(100vw - 40px));
    height: min(622px, calc(100vh - 100px));
  }
  
  .youtube-video-container.horizontal {
    width: min(100%, calc(100vw - 40px));
    height: auto;
  }
  
  .youtube-modal-close {
    top: -35px;
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
}

/* Responsive para tablets */
@media (max-width: 1024px) and (min-width: 769px) {
  .youtube-video-container.vertical {
    width: min(380px, 80vw);
    height: min(675px, 75vh);
  }
  
  .youtube-video-container.horizontal {
    width: min(700px, 85vw);
    height: min(394px, 75vh);
  }
}

@media (max-width: 768px) {
  .notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

/* Teléfonos de interés */
.telefonos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.telefono-grupo {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border: 2px solid #002c75;
}

.telefono-grupo h3 {
  color: #002c75;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  text-align: left !important;
}

.telefono-item {
  margin-bottom: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.telefono-nombre {
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
}

.telefono-numero {
  color: #002c75;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
  width: fit-content;
}

.telefono-numero:hover {
  color: #0056b3;
  text-decoration: underline;
}

.telefono-item.emergencia .telefono-numero {
  color: #dc3545;
  font-size: 1.2rem;
}

.telefono-item.emergencia .telefono-numero:hover {
  color: #c82333;
}

.telefono-numeros {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  flex-direction: column;
  align-items: flex-start;
}

.telefono-numeros span:not(.telefono-separador) {
  font-weight: 500;
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.telefono-numeros br + span {
  margin-top: 0.5rem;
}

/* Estilos para iconos de teléfonos */
.telefono-grupo-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.telefono-grupo-icon {
  width: 24px;
  height: 24px;
  margin-right: 0.8rem;
  filter: brightness(0) saturate(100%) invert(12%) sepia(100%) saturate(1234%) hue-rotate(210deg) brightness(91%) contrast(102%);
}

.telefono-item-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.telefono-icon {
  width: 18px;
  height: 18px;
  margin-right: 0.5rem;
  filter: brightness(0) saturate(100%) invert(12%) sepia(100%) saturate(1234%) hue-rotate(210deg) brightness(91%) contrast(102%);
}

.emergencia-icon {
  filter: brightness(0) saturate(100%) invert(15%) sepia(100%) saturate(7500%) hue-rotate(3deg) brightness(90%) contrast(115%) !important;
}

.telefono-item.emergencia .telefono-icon {
  filter: brightness(0) saturate(100%) invert(15%) sepia(100%) saturate(7500%) hue-rotate(3deg) brightness(90%) contrast(115%);
}

/* Ajustes RTL para iconos */
[dir="rtl"] .telefono-grupo-icon {
  margin-right: 0;
  margin-left: 0.8rem;
}

[dir="rtl"] .telefono-icon {
  margin-right: 0;
  margin-left: 0.5rem;
}

/* Responsive para iconos */
@media (max-width: 768px) {
  .telefono-grupo-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.6rem;
  }
  
  .telefono-icon {
    width: 16px;
    height: 16px;
    margin-right: 0.4rem;
  }
  
  [dir="rtl"] .telefono-grupo-icon {
    margin-right: 0;
    margin-left: 0.6rem;
  }
  
  [dir="rtl"] .telefono-icon {
    margin-right: 0;
    margin-left: 0.4rem;
  }
}

/* Estilos específicos para árabe (RTL) */

/* Reset y configuración base */
[dir="rtl"] * {
  text-align: right;
}

[dir="rtl"] body {
  direction: rtl;
}

/* Navegación */
[dir="rtl"] .nav-container {
  /*flex-direction: row-reverse;*/
}

[dir="rtl"] .nav-enlaces {
  align-items: flex-start;
}

[dir="rtl"] .header-logo {
  width: 90%;
  margin-bottom: 0 !important;
}

[dir="rtl"] .container-aniversario h1 {
  margin-top: 0 !important;
}

[dir="rtl"] .language-nav {
  order: -1;
  margin-right: 0;
  margin-left: 1rem;
  justify-content: flex-start;
}

[dir="rtl"] .info-nav {
  justify-content: flex-start;
  text-align: left;
}

[dir="rtl"] .info-nav .info {
  text-align: left;
}

[dir="rtl"] .nav-links {
  text-align: right;
}

[dir="rtl"] .menu-toggle {
  right: auto;
}

/* Header */
[dir="rtl"] .header-aniversario {
  text-align: center;
}

[dir="rtl"] .banderas {
  flex-direction: row-reverse;
}

/* Sección mensaje Motril */
[dir="rtl"] .elige-motril h2,
[dir="rtl"] .elige-motril h2 strong {
  text-align: right !important;
}

[dir="rtl"] .elige-motril p {
  text-align: right;
}

/* Destinos principales */
[dir="rtl"] .ferry-destinations {
  direction: rtl;
}

[dir="rtl"] .destination h3 {
  text-align: center;
}

/* Tarjetas de ferry */
[dir="rtl"] .ferry-card-header {
  /* flex-direction: row-reverse; */
  text-align: right;
}

[dir="rtl"] .ferry-card-body {
  /* flex-direction: row-reverse; */
}

[dir="rtl"] .ferry-info {
  padding: 1rem 1.5rem 1rem 1rem;
  text-align: right;
}

[dir="rtl"] .ferry-info h3,
[dir="rtl"] .ferry-info h3 strong {
  text-align: right;
}

[dir="rtl"] .ferry-info p {
  text-align: right;
}

[dir="rtl"] .ferry-details {
  direction: rtl;
  justify-content: space-between;
}

[dir="rtl"] .ferry-details .detail {
  text-align: center;
}

[dir="rtl"] .ferry-details .detail span {
  text-align: center;
}

[dir="rtl"] .ferry-subinfo {
  /* flex-direction: row-reverse; */
}

[dir="rtl"] .ferry-brand {
  text-align: right;
}

[dir="rtl"] .ferry-buttons {
  /* justify-content: flex-start; */
}

/* Sección de acceso */
[dir="rtl"] .acceso-contenido {
  /* flex-direction: row-reverse; */
}

[dir="rtl"] .acceso-texto {
  padding: 0 1rem 0 0;
  text-align: right;
}

[dir="rtl"] .acceso-texto h3,
[dir="rtl"] .acceso-texto h3 strong {
  text-align: right;
}

[dir="rtl"] .acceso-texto p {
  text-align: right;
}

[dir="rtl"] .acceso-mapa {
  padding: 1rem 1rem 1rem 1rem;
}

[dir="rtl"] .mapa-movil {
  right: auto;
  left: 15%;
}

/* Servicios */
[dir="rtl"] .servicios-ope .section-title-aniversario {
  text-align: center;
}

[dir="rtl"] .servicio {
  text-align: center;
}

[dir="rtl"] .servicio-texto h3 {
  text-align: center;
}

[dir="rtl"] .servicio-texto p {
  text-align: center;
}

/* Plano de accesos */
[dir="rtl"] .plano-accesos a {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

[dir="rtl"] .plano-accesos a p {
  margin-right: 0;
  margin-left: 20px;
  text-align: right;
}

[dir="rtl"] .plano-accesos a img {
  right: auto;
  left: 50px;
}

/* Formulario */
[dir="rtl"] .formulario-ferry {
  text-align: right;
}

[dir="rtl"] .formulario-ferry h2 {
  text-align: center;
}

[dir="rtl"] .form-row {
  /* flex-direction: row-reverse; */
}

[dir="rtl"] input[type="email"] {
  margin-right: 0;
}

[dir="rtl"] .checkboxes {
  text-align: right;
}

[dir="rtl"] .checkboxes input {
  margin-right: 0;
  margin-left: 0.5rem;
}

[dir="rtl"] .formulario-ferry button {
  float: left;
}

/* Teléfonos de interés */
[dir="rtl"] .telefonos-container {
  direction: rtl;
}

[dir="rtl"] .telefono-grupo h3 {
  text-align: right !important;
}

[dir="rtl"] .telefono-item {
  text-align: right;
}

[dir="rtl"] .telefono-nombre {
  text-align: right;
}

[dir="rtl"] .telefono-numeros {
  align-items: flex-end;
  text-align: right;
  width: fit-content;
}

[dir="rtl"] .telefono-numero {
  width: 100%;
}

[dir="rtl"] .telefono-numeros span:not(.telefono-separador) {
  text-align: right;
  width: 100%;
}

[dir="rtl"] .telefono-numeros span:not(.telefono-separador) {
  text-align: right;
}

/* Footer */
[dir="rtl"] .footer-container {
  text-align: center;
}

/* Títulos de sección */
[dir="rtl"] .section-title-aniversario {
  text-align: center;
}

/* Responsivo para móvil RTL */
@media (max-width: 1050px) {
  [dir="rtl"] .nav-links {
    text-align: center;
  }

  [dir="rtl"] .info-nav-mobile {
    text-align: center;
  }

  [dir="rtl"] .info-nav-mobile .info {
    text-align: center;
  }

  [dir="rtl"] .info-nav-mobile .info p {
    text-align: center;
  }
}

@media (max-width: 950px) {
  [dir="rtl"] .plano-accesos a img {
    display: none;
  }
}

@media (max-width: 900px) {
  [dir="rtl"] .ferry-card-header h2 {
    margin-right: 0;
    margin-left: 40px;
    text-align: right;
  }
}

@media (max-width: 740px) {
  [dir="rtl"] .ferry-card-header h2 {
    margin-left: 10px;
    text-align: right;
  }

  [dir="rtl"] .ferry-info {
    padding: 1rem 0;
    text-align: right;
  }

  [dir="rtl"] .ferry-brand {
    padding: 15px 0;
    text-align: center;
  }

  [dir="rtl"] .ferry-subinfo {
    flex-direction: column;
  }

  [dir="rtl"] .ferry-buttons {
    justify-content: center;
  }

  [dir="rtl"] .ferry-details {
    justify-content: space-around;
  }
}

@media (max-width: 450px) {
  [dir="rtl"] .nav-container {
    padding: 0px 25px;
    gap: 2rem;
  }
}

/* Ajustes específicos para la tipografía árabe */
[dir="rtl"] {
  font-family: "Montserrat", "Amiri", "Noto Sans Arabic", sans-serif;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6 {
  font-weight: 700;
  line-height: 1.4;
}

[dir="rtl"] p {
  line-height: 1.8;
  text-align: right;
}

/* Ajustes para botones en árabe */
[dir="rtl"] .btn {
  margin-left: 0.5rem;
  margin-right: 0;
}

[dir="rtl"] .btn:first-child {
  margin-left: 0;
}

/* Correcciones para elementos flotantes */
[dir="rtl"] .ferry-buttons .btn:last-child {
  margin-left: 0;
}

/* Ajustes para separadores */
[dir="rtl"] .telefono-separador {
  margin: 0 0.2rem;
}

/* Notificaciones */
[dir="rtl"] .notification {
  right: auto;
  left: 20px;
  text-align: right;
}

/* YouTube Modal para RTL */
[dir="rtl"] .youtube-modal-close {
  right: auto;
  left: 0;
}

@media (max-width: 768px) {
  [dir="rtl"] .notification {
    left: 10px;
    right: 10px;
  }
}
