*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

:root {
  --bg: #0d0d0d;
  --bg2: #161616;
  --card-bg: #1a1a1a;
  --card-border: rgba(255, 255, 255, 0.08);
  --teal: #17B5AF;
  --gold: #F2C94C;
  --white: #FFFFFF;
  --muted: #888;
  --radius: 10px;
  --radius-sm: 6px;
  --border: rgba(255, 255, 255, 0.08);
}

html {
  scroll-behavior: smooth
}

body {
  font-family: 'Manrope', sans-serif;
  background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('../imagenes/pexels-josh-fields-2290258-3964212.jpg') center/cover no-repeat fixed;
  color: var(--white);
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Deshabilitar botones de WhatsApp por petición del usuario */
a[href*="wa.me"] {
  pointer-events: none !important;
  opacity: 0.8;
  cursor: default !important;
}

/* ══ NAVBAR ══ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  background: rgba(13, 13, 13, 0.7);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background .3s ease, border-color .3s ease
}

nav.scrolled {
  background: rgba(13, 13, 13, 0.99);
  border-bottom-color: rgba(255, 255, 255, 0.15)
}

.nav-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none
}

.nav-logo-main {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.01em;
  line-height: 1.1;
}

.nav-logo-sub {
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal)
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center
}

.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--white)
}

.nav-links a.active {
  color: var(--teal)
}

.nav-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bg);
  text-decoration: none;
  background: var(--teal);
  padding: 10px 22px;
  border-radius: 6px;
  transition: all .25s;
}

.nav-btn:hover {
  background: #12a09a;
  transform: translateY(-1px);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(13, 13, 13, 0.98);
  backdrop-filter: blur(20px);
  padding: 24px 24px 32px;
  z-index: 199;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-direction: column
}

.mobile-menu.open {
  display: flex
}

.mobile-menu a {
  font-family: 'Montserrat', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: color .2s
}

.mobile-menu .mob-book-btn {
  display: block;
  margin-top: 20px;
  background: var(--teal);
  color: var(--bg);
  text-align: center;
  padding: 14px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

/* ══ HERO SECTION ══ */
.contact-hero {
  position: relative;
  height: 45vh;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 72px;
  overflow: hidden;
  background: transparent;
}

.contact-hero h1 {
  position: relative;
  z-index: 2;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 24px;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.contact-hero p {
  position: relative;
  z-index: 2;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* ══ CONTACT SECTION ══ */
.contact-container {
  padding: 0 72px 100px;
  max-width: 1400px;
  margin: 0 auto;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
}

.contact-info-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}

.contact-info-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--white);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-item-text h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.contact-item-text p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.contact-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s;
}

.btn-wa {
  background: #25D366;
  color: #fff;
}

.btn-wa:hover {
  background: #1db954;
  transform: translateY(-2px);
}

.btn-email {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: #fff;
}

.btn-email:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-call {
  background: #007AFF;
  color: #fff;
}

.btn-call:hover {
  background: #0062CC;
  transform: translateY(-2px);
}

/* ══ FORM ══ */
.contact-form {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s;
}

.form-group select {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s;
  width: 100%;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2317B5AF' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select option,
.form-group select optgroup {
  background-color: #161616;
  color: #ffffff;
}

/* Estilo adicional para asegurar que los grupos sean visibles */
.form-group select optgroup {
  font-weight: bold;
  font-style: normal;
  color: var(--teal);
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  background: rgba(23, 181, 175, 0.05);
}

.btn-submit {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 18px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: not-allowed;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: none;
}

.btn-submit.ready {
  background: linear-gradient(135deg, #007AFF 0%, #0056D2 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 122, 255, 0.25);
}

.btn-submit:not(.sending).ready::after {
  content: '→';
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.btn-submit.ready:hover {
  background: linear-gradient(135deg, #1A8CFF 0%, #007AFF 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 122, 255, 0.4);
}

.btn-submit.ready:hover::after {
  transform: translateX(5px);
}

.btn-submit.ready:active {
  transform: translateY(-1px);
}

.form-success {
  display: none;
  text-align: center;
  padding: 20px;
  background: rgba(23, 181, 175, 0.1);
  border: 1px solid var(--teal);
  border-radius: 8px;
  color: var(--teal);
  font-weight: 700;
  margin-top: 20px;
}

/* ══ THEME TOGGLE ══ */
.theme-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 100px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .25s ease;
  flex-shrink: 0;
  color: #fff;
  padding: 0;
  line-height: 0
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .4);
  transform: translateY(-1px)
}

/* ══ LIGHT MODE ══ */
body.light-mode {
  --bg: #F5F7FA;
  --bg2: #EAECF0;
  --white: #1A1E2C;
  --muted: #6B7280;
  --border: rgba(0, 0, 0, .08);
}

body.light-mode nav {
  background: rgba(245, 247, 250, 0.7) !important;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .nav-logo-main {
  color: #1A1E2C;
}

body.light-mode .nav-links a {
  color: rgba(26, 30, 44, .7);
}

body.light-mode .theme-toggle {
  border-color: rgba(0, 0, 0, 0.1);
  color: #1A1E2C;
}

body.light-mode {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../imagenes/pexels-josh-fields-2290258-3964212.jpg') center/cover no-repeat fixed;
}

body.light-mode .contact-hero {
  background: transparent;
}

body.light-mode .contact-hero h1 {
  color: #FFFFFF;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

body.light-mode .contact-hero p {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

body.light-mode .contact-container {
  --bg2: #1c222d;
  --white: #FFFFFF;
  --muted: #A0AEC0;
  --border: rgba(255, 255, 255, 0.1);
}

body.light-mode .contact-info-card {
  background: var(--bg2);
}

body.light-mode .contact-item-text h4 {
  color: #FFFFFF;
}

body.light-mode .contact-item-text p {
  color: #A0AEC0;
}

body.light-mode .contact-info-title {
  color: #FFFFFF;
}

body.light-mode .form-group label {
  color: #A0AEC0;
}

/* ══ FOOTER ══ */
footer {
  background: #080C11;
  padding: 80px 72px 40px;
  border-top: 1px solid var(--border);
}

body.light-mode footer {
  background: #DDE1E8;
}

/* ══ MOBILE ══ */
@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  nav,
  .contact-hero,
  .contact-container,
  footer {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-hero {
    padding-top: 100px;
  }

  .contact-hero h1 {
    font-size: 3rem;
  }
}
