/* =====================
   Garbi Charters CSS - Mobile First
   ===================== */

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #f7f7f7;
  min-height: 100vh;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* HEADER */
.main-header {
  width: 100%;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  min-height: 56px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: relative;
  z-index: 10;
}
.main-header {
  background: #fff;
  color: #111;
}
.main-header *, .main-header a {
  color: #111 !important;
}

.header-logo img {
  height: 44px;
  max-width: 48vw;
  width: auto;
  display: block;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.instagram-icon {
  height: 22px;
  width: 22px;
  display: block;
  object-fit: contain;
}

/* HERO SECTION */
.hero-section {
  width: 100%;
  min-height: 160px;
  background: linear-gradient(rgba(30,38,60,0.52), rgba(30,38,60,0.40)), url('img/barco2.jpg') center center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0.5rem 1.2rem 0.5rem;
  position: relative;
  text-align: center;
  box-sizing: border-box;
}
.hero-section h1 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 0.5rem 0;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,0.13);
  letter-spacing: -1px;
}
.hero-section p {
  font-size: 1rem;
  color: #fff;
  margin: 0.5rem 0 0 0;
  text-shadow: 0 2px 12px rgba(0,0,0,0.11);
  max-width: 98vw;
}

/* COMING SOON SECTION */
.coming-soon-section {
  width: 100%;
  background: #ff7f3e;
  text-align: center;
  padding: 1.5rem 0.7rem 1.2rem 0.7rem;
  margin: 0 0 1.2rem 0;
}
.coming-soon-text {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* FOOTER */
.footer, .main-footer {
  background: #fff;
  color: #111;
}
.footer-content, .footer-col, .footer-info-line {
  background: #fff;
  color: #111;
}
.main-footer a, .footer-content a, .footer-col a, .footer-info-line a {
  color: #111 !important;
  text-decoration: underline;
}

.main-footer a,
.main-footer a:visited,
.main-footer a:active {
  color: #111 !important;
  text-decoration: underline;
  transition: color 0.18s;
}
.main-footer a:hover {
  color: #ff7f3e;
}

.footer-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.3em;
}
.footer-info-line {
  display: flex;
  align-items: center;
  gap: 0.3em;
}
.footer-info-line a[href*='google.com/maps'] {
  white-space: nowrap;
}


.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  max-width: 100vw;
  margin: 0 auto;
  padding: 0.7rem 0.7rem 0.5rem 0.7rem;
}
.footer-col {
  width: 100%;
  text-align: center;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.7em;
}
@media (min-width: 700px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1100px;
    padding: 2rem 2rem 1rem 2rem;
    gap: 2rem;
  }
  .footer-col {
    width: 33.33%;
    margin-bottom: 0;
  }
  .footer-col-left {
    text-align: left;
    align-items: flex-start;
  }
  .footer-col-center { text-align: center; }
  .footer-col-right { text-align: right; }
}

.footer-logo-center {
  width: 64px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}
@media (min-width: 700px) {
  .footer-logo-center {
    width: 120px;
    max-width: 120px;
  }
}

.footer-copyright {
  background: #ff7f3e;
  color: #fff;
  text-align: center;
  padding: 0.5rem 0;
  font-size: 0.97rem;
  letter-spacing: 0.5px;
  width: 100%;
  margin-top: 0;
}

/* FORMULARIO */
.overlay {
  background: rgba(0, 0, 0, 0.5);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.container {
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  padding: 1.2rem 0.7rem;
  max-width: 96vw;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  margin: 1.2rem auto;
}
h1 {
  text-align: center;
  color: #1a3a5c;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
p {
  text-align: center;
  color: #444;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}
form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
input, select, textarea {
  padding: 0.6rem;
  border: 1px solid #b1b1b1;
  border-radius: 6px;
  font-size: 1rem;
  color: #1a3a5c;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}
input[type="date"] {
  border: 1px solid #b1b1b1;
  border-radius: 6px;
  font-size: 1rem;
  min-width: 0;
  box-sizing: border-box;
}

input[type="date"]::-moz-placeholder {
  color: #1a3a5c !important;
  opacity: 1;
}
input[type="date"]:-ms-input-placeholder {
  color: #1a3a5c !important;
  opacity: 1;
}
input[type="date"]::-ms-input-placeholder {
  color: #1a3a5c !important;
  opacity: 1;
}
input[type="date"]::-webkit-input-placeholder { color: #1a3a5c; opacity: 1; }

button {
  background: #1a3a5c;
  color: #fff;
  padding: 0.7rem;
  border: none;
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}
button:hover {
  background: #2366a2;
}

/* SCROLL TOP BUTTON */
.scroll-top-fab {
  position: fixed;
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  background: #fff;
  border: 2px solid #ff7f3e;
  border-radius: 50%;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
  padding: 0;
}
.scroll-top-fab-icon {
  width: 22px;
  height: 22px;
  display: block;
}

/* WHATSAPP BUTTON */
.whatsapp-fab {
  position: fixed;
  left: 12px;
  bottom: 12px;
  background: #25D366;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2147483647;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.whatsapp-fab-icon {
  width: 22px;
  height: 22px;
  display: block;
}

/* WHATSAPP POPUP */
.whatsapp-popup {
  display: none;
  flex-direction: column;
  position: fixed;
  bottom: 90px;
  left: 18px;
  width: 370px;
  max-width: 96vw;
  height: 480px;
  max-height: 92vh;
  background: #ece5dd;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  z-index: 2147483647;
  animation: whatsapp-popup-in 0.2s;
  overflow: hidden;
  box-sizing: border-box;
}
.whatsapp-popup *, .whatsapp-popup *:before, .whatsapp-popup *:after {
  box-sizing: border-box;
}
@media (max-width: 500px) {
  .whatsapp-popup {
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    width: 92vw;
    left: 0;
    right: 0;
    margin: 0 auto;
    height: 58vh;
    max-width: 92vw;
    max-height: 58vh;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    bottom: 12px;


  }
  .whatsapp-popup-header {
    border-radius: 0;
    padding: 0.8em 1em;
    font-size: 1.08rem;
    min-height: 56px;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.7em;
    border-bottom: 1px solid #ff7f3e;
  }
  .whatsapp-popup-body {
    flex: 1 1 auto;
    background: #e5ddd5;
    border-radius: 0;
    padding: 1em 1em 0.5em 1em;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    gap: 0.7em;
    overflow-y: auto;
    box-sizing: border-box;
  }
  .whatsapp-popup-form {
    display: flex;
    gap: 0.5em;
    padding: 1em;
    border-top: 1px solid #25D366;
    background: #ece5dd;
    border-radius: 0 0 18px 18px;
    box-sizing: border-box;
  }
  .whatsapp-popup-form input[type="text"] {
    flex: 1;
    border-radius: 8px;
    border: 1px solid #ff7f3e;
    padding: 0.7em;
    font-size: 1rem;
    outline: none;
    box-sizing: border-box;
    min-width: 0;
    transition: none;
  }
  .whatsapp-popup-form input[type="text"]:focus {
    border: 1.5px solid #25D366;
    background: #fff;
    outline: none;
  }
  .whatsapp-popup-form button {
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.7em 1.2em;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.15s;
  }
  .whatsapp-popup-form button:hover {
    background: #1ebe57;
  }
  .whatsapp-popup-logo {
    width: 32px;
    height: 32px;
    display: block;
  }
  .whatsapp-message {
    max-width: 90%;
    padding: 0.7em 1.1em;
    border-radius: 16px;
    font-size: 1.05rem;
    line-height: 1.4;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    margin-bottom: 2px;
    word-break: break-word;
  }
  .whatsapp-message-bot {
    background: #fff;
    color: #222;
    align-self: flex-start;
    border: 1px solid #ece5dd;
  }
  .whatsapp-message-user {
    background: #dcf8c6;
    color: #222;
    align-self: flex-end;
    border: 1px solid #b2e7b5;
  }
}
.whatsapp-popup-header {
  display: flex;
  align-items: center;
  gap: 0.6em;
  background: #25D366;
  border-radius: 18px 18px 0 0;
  padding: 0.8em 1em;
  font-weight: 600;
  color: #fff;
  font-size: 1.1rem;
  border-bottom: 1px solid #ff7f3e;
}
.whatsapp-popup-logo {
  width: 32px;
  height: 32px;
}
.whatsapp-popup-close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #fff;
  cursor: pointer;
}
.whatsapp-popup-body {
  flex: 1 1 auto;
  background: #e5ddd5;
  border-radius: 0 0 10px 10px;
  padding: 1em 1em 0.5em 1em;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  overflow-y: auto;
  box-sizing: border-box;
}
.whatsapp-message {
  max-width: 90%;
  padding: 0.7em 1.1em;
  border-radius: 16px;
  font-size: 1.05rem;
  line-height: 1.4;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  margin-bottom: 2px;
  word-break: break-word;
}
.whatsapp-message-bot {
  background: #fff;
  color: #222;
  align-self: flex-start;
  border: 1px solid #ece5dd;
}
.whatsapp-message-user {
  background: #dcf8c6;
  color: #222;
  align-self: flex-end;
  border: 1px solid #b2e7b5;
}
.whatsapp-popup-form {
  display: flex;
  gap: 0.5em;
  padding: 1em;
  border-top: 1px solid #25D366;
  background: #ece5dd;
  border-radius: 0 0 18px 18px;
}
.whatsapp-popup-form input[type="text"] {
  flex: 1;
  border-radius: 8px;
  border: 1px solid #ff7f3e;
  padding: 0.7em;
  font-size: 1rem;
  outline: none;
  box-sizing: border-box;
  min-width: 0;
  transition: none;
}
.whatsapp-popup-form input[type="text"]:focus {
  border: 1.5px solid #25D366;
  background: #fff;
  outline: none;
}
.whatsapp-popup-form input[type="text"] {
  flex: 1;
  border: 1px solid #ff7f3e;
  border-radius: 8px;
  padding: 0.7em;
  font-size: 1rem;
  outline: none;
}
.whatsapp-popup-form button {
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.7em 1.2em;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.15s;
}
.whatsapp-popup-form button:hover {
  background: #1ebe57;
}

.whatsapp-popup-header {
  display: flex;
  align-items: center;
  gap: 0.7em;
  background: #25D366;
  color: #fff;
  border-radius: 8px 8px 0 0;
  padding: 0.7em 1em;
  width: 100%;
  box-sizing: border-box;
}
.whatsapp-popup-body {
  background: #e5ddd5;
  border-radius: 0 0 10px 10px;
  padding: 1em;
  min-height: 100px;
  max-height: 240px;
  overflow-y: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}
.whatsapp-message {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 0.7em;
  padding: 0.6em 1em;
  color: #222;
  font-size: 1em;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  width: max-content;
  max-width: 80%;
}
.whatsapp-message-bot {
  background: #fff;
  align-self: flex-start;
}
.whatsapp-message-user {
  background: #dcf8c6;
  align-self: flex-end;
}
.whatsapp-popup-form {
  display: flex;
  gap: 0.5em;
  width: 100%;
  padding: 0.5em 1em 1em 1em;
  background: transparent;
}
.whatsapp-popup-form input {
  flex: 1;
  border-radius: 20px;
  border: 1px solid #bbb;
  padding: 0.6em 1em;
  box-sizing: border-box;
  min-width: 0;
  transition: none;
}
.whatsapp-popup-form input:focus {
  outline: none;
  border: 1.5px solid #25D366;
  background: #fff;
}
.whatsapp-popup-form button {
  border-radius: 20px;
  background: #25D366;
  color: #fff;
  border: none;
  padding: 0.6em 1.2em;
  font-weight: bold;
}

.whatsapp-popup-logo {
  width: 32px;
  height: 32px;
  display: block;
}
@media (min-width: 700px) {
  .whatsapp-popup {
    max-width: 420px;
    max-height: 90vh;
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
  }
  .whatsapp-popup-logo {
    width: 40px;
    height: 40px;
  }
}

/* MEDIA QUERIES SOLO PARA DESKTOP */
@media (min-width: 700px) {
  .main-header {
    padding: 1.2rem 4rem;
    min-height: 90px;
  }
  .header-logo img {
    height: 180px;
    max-width: 350px;
  }
  .instagram-icon {
    height: 32px;
    width: 32px;
  }
  .hero-section {
    min-height: 340px;
    padding: 2.5rem 1rem 2.5rem 1rem;
    height: 45vw;
    max-height: 420px;
    min-height: 280px;
  }
  .hero-section h1 {
    font-size: 2.3rem;
  }
  .hero-section p {
    font-size: 1.18rem;
    max-width: 650px;
  }
  .coming-soon-section {
    padding: 2.5rem 1rem 2rem 1rem;
  }
  .coming-soon-text {
    font-size: 2.2rem;
  }
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    max-width: 1100px;
    padding: 2rem 2rem 1rem 2rem;
    gap: 2rem;
  }
  .footer-logo-center {
    width: 200px;
    max-width: 200px;
  }
  .container {
    padding: 2rem 2.5rem;
    max-width: 400px;
  }
  h1 {
    font-size: 2rem;
  }
  p {
    font-size: 1.18rem;
  }
  .scroll-top-fab, .whatsapp-fab {
    width: 54px;
    height: 54px;
  }
  .scroll-top-fab-icon, .whatsapp-fab-icon {
    width: 28px;
    height: 28px;
  }
}
