/* variables from tailwind config */
:root {
  --deepBlue: #1a4b6e;
  --forestGreen: #2d6a4f;
  --coralOrange: #e86f51;
  --offWhite: #f8f6f1;
}

.custom-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease;
}

.custom-navbar.scrolled {
  background: rgba(26, 75, 110, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logos {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  z-index: 60;
}

.nav-logo-lockup {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav-logo {
  height: 44px;
  width: auto;
  max-width: 48px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-logo-name {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.90);
  white-space: nowrap;
  line-height: 1.2;
  letter-spacing: 0.1px;
}

.nav-logo-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.20);
  flex-shrink: 0;
  margin: 0 4px;
}

@media (max-width: 768px) {
  .nav-logo-name {
    display: none;
  }
  .nav-logo {
    height: 36px;
  }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.nav-cta {
  background-color: var(--coralOrange);
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background-color 0.2s, transform 0.2s;
  display: inline-block;
}

.nav-cta:hover, .nav-cta:focus {
  background-color: #d45d41;
  transform: translateY(-2px);
}

/* mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 60;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: var(--deepBlue);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* state for active hamburger */
.hamburger.is-active .hamburger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 1023px) {
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }
  
  .nav-menu.is-open {
    transform: translateX(0);
  }
  
  .nav-links {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .nav-link {
    font-size: 1.2rem;
  }
  
  .nav-cta {
    font-size: 1.1rem;
    padding: 1rem 2rem;
  }
}


/* ── CONTACT SECTION ── */
#contacto {
  background: #ffffff;
  padding: 96px 40px;
}

.contact-container {
  max-width: 1100px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.contact-pill {
  display: inline-block;
  background: #1a4b6e;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.contact-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.25;
  margin: 0 0 14px;
}

.contact-header p {
  font-size: 17px;
  color: #5a5a5a;
  line-height: 1.7;
  margin: 0;
}

/* ── LAYOUT: form left, info right ── */
.contact-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

/* ── FORM ── */
.form-row {
  margin-bottom: 20px;
}

.form-row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 0.1px;
}

.form-group label span[aria-hidden] {
  color: #e86f51;
  margin-left: 2px;
}

.form-optional {
  font-weight: 400;
  color: #888;
  font-size: 12px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  color: #1a1a1a;
  background: #ffffff;
  border: 1.5px solid #d0cfc8;
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1a4b6e;
  box-shadow: 0 0 0 3px rgba(26, 75, 110, 0.12);
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: #e86f51;
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-error {
  font-size: 12px;
  color: #e86f51;
  min-height: 16px;
  display: block;
}

/* ── SUBMIT BUTTON ── */
.form-row--submit {
  margin-top: 8px;
}

.form-submit {
  background: #e86f51;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  padding: 14px 36px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  position: relative;
}

.form-submit:hover {
  background: #d45e40;
  transform: scale(1.02);
}

.form-submit:disabled {
  background: #aaa;
  cursor: not-allowed;
  transform: none;
}

.submit-loading {
  display: none;
}

.form-submit.loading .submit-text {
  display: none;
}

.form-submit.loading .submit-loading {
  display: inline;
}

/* ── SUCCESS MESSAGE ── */
.form-success {
  background: #ffffff;
  border: 1.5px solid #2d6a4f;
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
}

.form-success-icon {
  width: 52px;
  height: 52px;
  background: #2d6a4f;
  color: #fff;
  font-size: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.form-success h3 {
  font-size: 22px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 10px;
}

.form-success p {
  font-size: 15px;
  color: #5a5a5a;
  line-height: 1.6;
  margin: 0;
}

/* ── INFO LATERAL ── */
.contact-info {
  background: #ffffff;
  border: 1px solid #e8e6df;
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-info-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #888;
  text-transform: uppercase;
}

.contact-info-value {
  font-size: 14px;
  color: #1a1a1a;
  text-decoration: none;
  line-height: 1.4;
}

a.contact-info-value:hover {
  color: #1a4b6e;
  text-decoration: underline;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  #contacto {
    padding: 64px 20px;
  }

  .contact-body {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .contact-header h2 {
    font-size: 26px;
  }

  .contact-info {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
  }

  .contact-info-block {
    min-width: 140px;
  }
}

/* ── SHARE SECTION ── */
.share-section {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.share-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.share-btn:hover  { opacity: 0.88; transform: scale(1.03); }
.share-btn:active { transform: scale(0.97); }

.share-wa   { background: #25D366; color: #ffffff; }
.share-fb   { background: #1877F2; color: #ffffff; }
.share-tw   { background: #000000; color: #ffffff; }
.share-ig   { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); color: #ffffff; }
.share-copy {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.share-copy.copied {
  background: rgba(45, 106, 79, 0.6);
  border-color: rgba(45, 106, 79, 0.8) !important;
}

@media (max-width: 480px) {
  .share-buttons { gap: 8px; }
  .share-btn { font-size: 12px; padding: 9px 14px; }
}

/* ── FLOATING WHATSAPP BUTTON ── */
#whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

#whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45);
}

#whatsapp-float:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.wa-tooltip {
  position: absolute;
  right: 68px;
  background: #ffffff;
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.wa-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #ffffff;
  border-right: none;
}

@media (max-width: 768px) {
  #whatsapp-float {
    bottom: 20px;
    right: 16px;
    width: 50px;
    height: 50px;
  }
  .wa-tooltip { display: none; }
  
  #whatsapp-float.mobile-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px);
  }
}

/* ── DOWNLOAD MODAL ── */
#download-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#download-modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.modal-box {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 36px 32px;
  max-width: 480px;
  width: 100%;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #1a4b6e;
  margin: 0 0 14px;
}

.modal-text {
  font-size: 14px;
  color: #5a5a5a;
  line-height: 1.65;
  margin: 0 0 12px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: flex-end;
}

.modal-btn-secondary {
  background: transparent;
  border: 1.5px solid #d0cfc8;
  color: #5a5a5a;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.modal-btn-secondary:hover { background: #f8f6f1; }

.modal-btn-primary {
  background: #e86f51;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}
.modal-btn-primary:hover { background: #d45e40; }

@media (max-width: 480px) {
  .modal-box { padding: 24px 20px; }
  .modal-actions { flex-direction: column; }
  .modal-btn-secondary, .modal-btn-primary { width: 100%; justify-content: center; }
}

/* ── COOKIE BANNER ── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1500;
  background: #1a4b6e;
  color: #ffffff;
  padding: 14px 24px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
#cookie-banner[hidden] { display: none; }

.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  flex: 1;
  min-width: 200px;
}

.cookie-link {
  color: #e86f51;
  text-decoration: underline;
  font-weight: 600;
}

.cookie-btn {
  background: #e86f51;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  padding: 9px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}
.cookie-btn:hover { background: #d45e40; }

@media (max-width: 600px) {
  .cookie-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cookie-btn { width: 100%; }
}


