@font-face {
  font-family: 'Work Sans';
  src: url(../css/font/WorkSans-Regular.ttf);
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Roboto Slab';
  src: url(../css/font/RobotoSlab-VariableFont_wght.ttf);
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Myriad Pro';
  src: url(../css/font/myrad.ttf);
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Mont';
  src: url(../css/font/Motteka.ttf);
  font-weight: normal;
  font-style: normal;
}

/* Core variables */
:root {
  --color-primary: #1F2B7B;
  --color-secondary: #F37121;
  --color-gray: #e0e4e4;
  --color-white: #ffffff;
  --color-black: #000000;
  --font-base: 'Work Sans', sans-serif;
  --font-altares: 'Roboto Slab', serif;
  --font-marxmas-main: 'Myriad Pro', sans-serif;
  --font-marxmas-alt: 'Mont', sans-serif;
  --spacing-section: 3rem;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
  width: 12px;
  background: var(--color-white);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 6px;
  border: 2px solid var(--color-white);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary);
}

::-webkit-scrollbar-track {
  background: var(--color-gray);
  border-radius: 6px;
}

/* Firefox */
html {
  scrollbar-color: var(--color-primary) var(--color-gray);
  scrollbar-width: thin;
}

body {
  overflow-x: hidden;
  font-family: var(--font-base);
  color: var(--color-black);
  background-color: var(--color-white);
}

.section {
  padding: var(--spacing-section) 0;
}

h1{
    margin: 0;
    font-size: 6rem;
    text-shadow: 2px 2px 3px black;
    text-align: center;
}

a {
  color: inherit;
  text-decoration: none;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
}

a:hover,
a:focus {
  color: var(--color-gray)!important;
  text-decoration: none;
  outline: none;
}

h2{
    margin: 0;
    font-size: 4rem;
}

h3{
    margin: 0;
    font-size: 2rem;
}

h4{
    margin: 0;
    font-size: 1.5rem;
}

h5{
    margin: 0;
    font-size: 1rem;
    text-align: center;
    text-shadow: 0px 0px 15px black;
}

h6{
    margin: 0;
    font-size: 1rem;
}

p{
    font-size: 1.5rem;
    line-height: 1.5rem;
    margin: 0;
}

@media (max-width: 1000px) {
  h2 {
    font-size: 3rem;
  }
}

#banner-slider .owl-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  left: 0;
  pointer-events: none;
  z-index: 10;
}

#banner-slider .owl-nav button.owl-prev,
#banner-slider .owl-nav button.owl-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff !important;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  pointer-events: all;
  transition: background 0.2s;
  outline: none;
}

#banner-slider .owl-nav button.owl-prev:hover,
#banner-slider .owl-nav button.owl-next:hover {
  background: rgba(0, 0, 0, 0.7);
}

#banner-slider .owl-nav button.owl-prev {
  left: 24px;
}

#banner-slider .owl-nav button.owl-next {
  right: 24px;
}

/* Dots at the bottom center of the carousel */
#banner-slider .owl-dots {
  position: absolute;
  bottom: 32px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 10;
}

#banner-slider .owl-dot {
  display: inline-block;
  margin: 0 6px;
}

#banner-slider .owl-dot span {
  display: block;
  width: 14px;
  height: 14px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transition: background 0.2s, transform 0.2s;
}

#banner-slider .owl-dot.active span,
#banner-slider .owl-dot:hover span {
  background: #fff;
  transform: scale(1.2);
}

/* Ensure the carousel container is positioned relative for absolute elements */
#banner-slider {
  position: relative;
}

/* Optional: Make sure video/image fills the carousel height */
#banner-slider .header-video video,
#banner-slider .bann {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  min-height: 400px;
}

#banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, rgba(59, 59, 59, 0.45) 0%, rgba(59, 59, 59, 0.15) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Keep header-content above the filter */
#banner .header-content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#banner .header-content>* {
  pointer-events: auto;
}

/* Optional: Enhance text readability */
#banner .header-content .tp-caption,
#banner .header-content a.btn {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}


/*Banner about */

#about {
    min-height: 100vh;
    position: relative;
}
#about .card {
    box-shadow: 0 8px 32px rgba(31,43,123,0.18);
    border: none;
}
@media (max-width: 767px) {
    #about .card {
        padding: 1.2rem;
    }
}


.btn-cta {
  background-color: var(--color-secondary);
  color: var(--color-white);
  border: none;
  padding: 0.75rem 1.5rem;
  transition: background-color 0.3s;
}

.btn-cta:hover,
.btn-cta:focus {
  background-color: var(--color-primary);
  color: var(--color-white);
}




.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Event specific styles */
.event-altares {
  font-family: var(--font-altares);
}

.event-altares h3 {
  color: #00C6DC;
  
}

.event-marxmas {
  font-family: var(--font-marxmas-main), sans-serif;
}

.event-marxmas h3 {
  color: #DB4242;
  
}

#banner {
  position: relative;
  overflow: hidden;
}

/* Make the header-content always centered and visible */
#banner .header-content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  /* Prevents blocking carousel arrows */
}

#banner .header-content>* {
  pointer-events: auto;
  /* Allows interaction with buttons/links inside */
}

/* Optional: Add a subtle text-shadow for readability over images/videos */
#banner .header-content .tp-caption,
#banner .header-content a.btn {
  color: var(--color-white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

#banner .header-content .tp-caption[data-voffset="50"] {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 1.5rem;
}

/* Optional: Remove extra margin if needed */
#banner .header-content .tp-caption[data-voffset="50"] a.btn {
  margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  #banner .header-content {
    padding: 0 10px;
  }

  #banner .header-content .tp-caption {
    font-size: 1.1rem;
  }
}

.carousel-control-next-icon, .carousel-control-prev-icon {
    display: inline-block;
    width: 2rem;
    height: 1rem;
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: 100% 100%;
}

.nav{
  background-color: transparent;
  color: var(--color-white);
}

/* Utilities */
.split-50-50 .col-md-6 {
  display: flex;
  align-items: center;
}

/* Parallax background for #tourism section */
#tourism {
  position: relative;
  background-image: url('../images/ALTARES/parr.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 480px;
  z-index: 1;
  overflow: hidden;
}

/* Overlay filter with #1F2B7B color and some transparency */
#tourism::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  background: rgba(31, 43, 123, 0.65); /* #1F2B7B with 65% opacity */
  z-index: 2;
  pointer-events: none;
}

/* Ensure content is above the filter */
#tourism > * {
  position: relative;
  z-index: 3;
}

/* Optional: Adjust text color for contrast */
#tourism, #tourism * {
  color: #fff;
}

#tourism .card-body {
    background: var(--color-secondary);
    color: #fff;
    border-radius: 1px;
    transition: box-shadow 0.2s;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.08);
}


/* Ocean Section with Animated Waves */
.ocean-section {
  width: 100%;
  min-height: 220px;
  background: transparent;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.wave {
  position: absolute;
  left: 0;
  width: 200%;
  height: 100px;
  background-repeat: repeat-x;
  bottom: 0;
  opacity: 0.7;
  z-index: 2;
  pointer-events: none;
}

.wave1 {
  background: url('../images/wave1.svg') repeat-x;
  animation: waveMove 12s linear infinite;
  bottom: 0;
  opacity: 0.8;
}

.wave2 {
  background: url('../images/wave2.svg') repeat-x;
  animation: waveMove2 18s linear infinite;
  bottom: 0;
  opacity: 0.5;
}

.wave3 {
  background: url('../images/wave3.svg') repeat-x;
  animation: waveMove3 22s linear infinite;
  bottom: 0;
  opacity: 0.3;
}

.boat-on-waves {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 60px; /* Adjust so the boat sits just above the waves */
  width: 80px;  /* Adjust size as needed */
  z-index: 10;
  animation: boatFloat 3s ease-in-out infinite;
}

@keyframes boatFloat {
  0%, 100% { bottom: 60px; }
  50% { bottom: 70px; }
}

@keyframes waveMove {
  0% { background-position-x: 0; }
  100% { background-position-x: 1000px; }
}
@keyframes waveMove2 {
  0% { background-position-x: 0; }
  100% { background-position-x: -1000px; }
}
@keyframes waveMove3 {
  0% { background-position-x: 0; }
  100% { background-position-x: 500px; }
}

/* Optional: Icon color for contrast */
#tourism .card-body i {
    color: #fff;
}

footer {
  padding: 2rem 0;
}