/* ============================================
   CONTACTO PAGE — Smart Stay Premium
   Concepto: "Conexión Inmersiva"
   Prefijo: ct-
   ============================================ */

/* === IMMERSIVE HEADER (50vh) === */
.ct-hero {
  position: relative;
  height: 50vh;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.ct-hero-bg {
  position: absolute;
  inset: 0;
}

.ct-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ct-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,26,59,0.9) 0%, rgba(10,26,59,0.4) 60%, rgba(0,0,0,0.1) 100%);
}

.ct-breadcrumb {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 120px 88px 0;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

.ct-breadcrumb a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.3s;
}

.ct-breadcrumb a:hover {
  color: #3FA3DD;
}

.ct-breadcrumb span:last-child {
  color: rgba(255,255,255,0.8);
}

.ct-hero-bottom {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 88px 60px;
}


.ct-hero-bottom h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 56px;
  color: #ffffff;
  margin: 0 0 8px;
  line-height: 1.1;
}

.ct-hero-bottom p {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

/* ============================================
   CONECTEMOS — Split asimétrico
   ============================================ */
.ct-connect {
  padding: 120px 88px;
  background: white;
}

.ct-connect-wrapper {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 80px;
}

/* --- Composición visual izquierda (55%) --- */
.ct-connect-visual {
  flex: 0 0 55%;
  position: relative;
  min-height: 540px;
}

/* Bloque decorativo azul detrás */
.ct-connect-deco {
  position: absolute;
  top: 40px;
  left: -20px;
  width: 220px;
  height: 320px;
  background: #3FA3DD;
  border-radius: 20px;
  z-index: 0;
}

/* Imagen principal grande */
.ct-connect-img-main {
  position: relative;
  z-index: 1;
  width: 88%;
  height: 500px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(10,26,59,0.12);
}

.ct-connect-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.ct-connect-visual:hover .ct-connect-img-main img {
  transform: scale(1.03);
}

/* Imagen pequeña superpuesta */
.ct-connect-img-small {
  position: absolute;
  bottom: -40px;
  right: -10px;
  z-index: 2;
  width: 260px;
  height: 280px;
  border-radius: 20px;
  overflow: hidden;
  border: 6px solid white;
  box-shadow: 0 24px 48px rgba(10,26,59,0.18);
}

.ct-connect-img-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.ct-connect-visual:hover .ct-connect-img-small img {
  transform: scale(1.05);
}


/* --- Info contacto derecha (45%) --- */
.ct-connect-info {
  flex: 1;
}

.ct-connect-info h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.2;
  color: #0A1A3B;
  margin: 0 0 20px 0;
}

.ct-connect-desc {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
  color: #474747;
  margin: 0 0 40px 0;
}


/* --- Items de contacto --- */
.ct-contact-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 44px;
}

.ct-contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border-radius: 16px;
  background: #F6F6F6;
  text-decoration: none;
  transition: all 0.35s ease;
  border: 1px solid transparent;
}

.ct-contact-item:hover {
  background: white;
  border-color: rgba(63,163,221,0.25);
  box-shadow: 0 8px 32px rgba(63,163,221,0.1);
  transform: translateX(6px);
}

.ct-contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #3FA3DD;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  flex-shrink: 0;
  transition: transform 0.35s ease;
}

.ct-contact-item:hover .ct-contact-icon {
  transform: scale(1.08);
}

.ct-contact-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.ct-contact-label {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #3FA3DD;
}

.ct-contact-value {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 17px;
  color: #0A1A3B;
}

.ct-contact-arrow {
  font-size: 18px;
  color: rgba(10,26,59,0.2);
  transition: all 0.35s ease;
  flex-shrink: 0;
}

.ct-contact-item:hover .ct-contact-arrow {
  color: #3FA3DD;
  transform: translate(4px, -4px);
}


/* --- Botón primario --- */
.ct-btn-primary {
  display: inline-block;
  padding: 21px 48px;
  background: #3FA3DD;
  color: white;
  border: none;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.ct-btn-primary:hover {
  background: #2e8fc5;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(63,163,221,0.3);
}


/* ============================================
   FORMULARIO — Glassmorphism sobre Navy
   ============================================ */
.ct-form-section {
  padding: 120px 88px;
  background: #0A1A3B;
}

.ct-form-container {
  max-width: 900px;
  margin: 0 auto;
}

.ct-form-header {
  text-align: center;
  margin-bottom: 56px;
}

.ct-form-header h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 40px;
  color: white;
  margin: 0 0 16px 0;
}

.ct-form-header p {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Form grid --- */
.ct-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

.ct-field {
  margin-bottom: 24px;
}

.ct-field label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
}

.ct-field input,
.ct-field select,
.ct-field textarea {
  width: 100%;
  padding: 18px 22px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: white;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
  appearance: none;
  -webkit-appearance: none;
}

.ct-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgba(255,255,255,0.5)' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-color: rgba(255,255,255,0.06);
  padding-right: 48px;
  cursor: pointer;
}

.ct-field select option {
  background: #0A1A3B;
  color: white;
}

.ct-field textarea {
  resize: vertical;
  min-height: 160px;
}

.ct-field input::placeholder,
.ct-field textarea::placeholder,
.ct-form input::placeholder,
.ct-form textarea::placeholder {
  color: rgba(255,255,255,0.4) !important;
}

.ct-field input,
.ct-field textarea,
.ct-field select,
.ct-form .form-control,
.ct-form input,
.ct-form textarea,
.ct-form select {
  color: #fff !important;
  background-color: rgba(255,255,255,0.06) !important;
}

.ct-field .iti {
  width: 100%;
}

.ct-field .iti__country-list {
  z-index: 9999 !important;
  background: #0f2650 !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 8px !important;
}

.ct-field .iti__country-list .iti__country:hover {
  background: rgba(63,163,221,0.2) !important;
}

.ct-field .iti__selected-flag {
  background: transparent !important;
}

.ct-field .iti__arrow {
  border-top-color: #fff !important;
}

.ct-field input.error,
.ct-field select.error,
.ct-field textarea.error,
.ct-field .form-control.error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2) !important;
}

.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
  outline: none;
  border-color: #3FA3DD;
  box-shadow: 0 0 0 4px rgba(63,163,221,0.2);
  background: rgba(255,255,255,0.09);
}

/* --- Botón submit --- */
.ct-form-btn {
  width: 100%;
  padding: 21px 48px;
  background: #3FA3DD;
  color: white;
  border: none;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.35s ease;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}

.ct-form-btn:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(63,163,221,0.35);
}

.ct-form-btn:active {
  transform: translateY(0);
}


/* ============================================
   MAPA — Integrado con el diseño
   ============================================ */
.ct-map-section {
  padding: 80px 88px 100px;
  background: white;
}

.ct-map-header {
  text-align: center;
  margin-bottom: 48px;
}

.ct-map-header h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: #0A1A3B;
  margin: 0 0 12px 0;
}

.ct-map-header p {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 17px;
  color: #474747;
  margin: 0;
}

.ct-map-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 450px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(10,26,59,0.1);
  position: relative;
}

.ct-map-container iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* --- Badges de ubicaciones --- */
.ct-map-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.ct-map-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #F6F6F6;
  border-radius: 100px;
  border: 1px solid rgba(10,26,59,0.06);
  transition: all 0.35s ease;
}

.ct-map-badge:hover {
  background: white;
  border-color: rgba(63,163,221,0.3);
  box-shadow: 0 4px 16px rgba(63,163,221,0.1);
  transform: translateY(-2px);
}

.ct-map-badge i {
  font-size: 18px;
  color: #3FA3DD;
}

.ct-map-badge span {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #0A1A3B;
  letter-spacing: 0.5px;
}


/* ============================================
   ANIMATIONS
   ============================================ */
.ct-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ct-animate.ct-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animations for children */
.ct-connect-wrapper .ct-animate:nth-child(2) {
  transition-delay: 0.15s;
}

.ct-form-section .ct-animate:nth-child(2) {
  transition-delay: 0.2s;
}

@media (prefers-reduced-motion: reduce) {
  .ct-animate {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ============================================
   RESPONSIVE — 1200px
   ============================================ */
@media (max-width: 1200px) {
  .ct-hero-bottom h1 {
    font-size: 48px;
  }

  .ct-connect {
    padding: 100px 52px;
  }

  .ct-connect-wrapper {
    gap: 56px;
  }

  .ct-connect-info h2 {
    font-size: 34px;
  }

  .ct-connect-img-main {
    height: 440px;
  }

  .ct-connect-img-small {
    width: 220px;
    height: 240px;
  }

  .ct-form-section {
    padding: 100px 52px;
  }

  .ct-map-section {
    padding: 80px 52px;
  }
}


/* ============================================
   RESPONSIVE — 991px
   ============================================ */
@media (max-width: 991px) {
  .ct-hero { min-height: 400px; }
  .ct-breadcrumb { padding: 100px 40px 0; flex-wrap: wrap; }
  .ct-hero-bottom { padding: 0 40px 48px; 
  text-align: center;}
  .ct-hero-bottom h1 { font-size: 42px; }

  .ct-connect {
    padding: 80px 32px;
  }

  .ct-connect-wrapper {
    flex-direction: column;
    gap: 60px;
  }

  .ct-connect-visual {
    flex: none;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    min-height: 440px;
  }

  .ct-connect-img-main {
    width: 92%;
    height: 400px;
  }

  .ct-connect-img-small {
    width: 200px;
    height: 220px;
    bottom: -30px;
    right: 0;
  }

  .ct-connect-deco {
    width: 180px;
    height: 260px;
    top: 30px;
    left: -12px;
  }

  .ct-connect-info {
    text-align: left;
  }

  .ct-connect-info h2 {
    font-size: 32px;
  }

  .ct-connect-desc {
    font-size: 16px;
  }

  .ct-form-section {
    padding: 80px 32px;
  }

  .ct-form-header h2 {
    font-size: 32px;
  }

  .ct-map-section {
    padding: 64px 32px 80px;
  }

  .ct-map-container {
    height: 380px;
  }

  .ct-map-header h2 {
    font-size: 28px;
  }
}


/* ============================================
   RESPONSIVE — 768px
   ============================================ */
@media (max-width: 768px) {
  .ct-hero {
    min-height: 380px;
  }
  .ct-breadcrumb {
    padding: 100px 24px 0;
    font-size: 12px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .ct-hero-bottom h1 { font-size: 36px; }
  .ct-connect { padding: 72px 24px; }
  .ct-connect-info h2 { font-size: 30px; }
  .ct-connect-desc { font-size: 15px; }
  .ct-connect-img-main { height: 360px; }
  .ct-connect-img-small { width: 180px; height: 200px; }
  .ct-form-section { padding: 72px 24px; }
  .ct-form-header h2 { font-size: 30px; }
  .ct-form-header p { font-size: 16px; }
  .ct-form-row { grid-template-columns: 1fr; gap: 0; }
  .ct-map-section { padding: 56px 24px 72px; }
  .ct-map-container { height: 340px; }
  .ct-map-header h2 { font-size: 26px; }
}

/* ============================================
   RESPONSIVE — 576px
   ============================================ */
@media (max-width: 576px) {
  .ct-hero { min-height: 360px; }
  .ct-breadcrumb { padding: 90px 16px 0; font-size: 11px; flex-wrap: wrap; gap: 5px; }
  .ct-hero-bottom { padding: 0 20px 36px; 
  text-align: center;}
  .ct-hero-bottom h1 { font-size: 32px; }
  .ct-hero-bottom p { font-size: 15px; }

  /* Connect section */
  .ct-connect {
    padding: 60px 20px 80px;
  }

  .ct-connect-visual {
    min-height: 360px;
    max-width: 100%;
  }

  .ct-connect-img-main {
    width: 90%;
    height: 320px;
  }

  .ct-connect-img-small {
    width: 160px;
    height: 180px;
    bottom: -20px;
    right: 0;
    border-width: 4px;
  }

  .ct-connect-deco {
    width: 140px;
    height: 200px;
    top: 20px;
    left: -8px;
  }

  .ct-connect-info h2 {
    font-size: 28px;
  }

  .ct-connect-desc {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .ct-contact-item {
    padding: 16px 18px;
    gap: 14px;
  }

  .ct-contact-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .ct-contact-value {
    font-size: 15px;
  }

  .ct-contact-arrow {
    display: none;
  }

  .ct-btn-primary {
    width: 100%;
    text-align: center;
    padding: 18px 36px;
    font-size: 14px;
  }

  /* Form section */
  .ct-form-section {
    padding: 60px 20px;
  }

  .ct-form-header h2 {
    font-size: 28px;
  }

  .ct-form-header p {
    font-size: 15px;
  }

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

  .ct-field input,
  .ct-field select,
  .ct-field textarea {
    padding: 16px 18px;
    font-size: 15px;
  }

  .ct-form-btn {
    padding: 18px 36px;
    font-size: 15px;
  }

  /* Map section */
  .ct-map-section {
    padding: 52px 20px 72px;
  }

  .ct-map-header h2 {
    font-size: 24px;
  }

  .ct-map-header p {
    font-size: 15px;
  }

  .ct-map-container {
    height: 300px;
    border-radius: 16px;
  }

  .ct-map-badges {
    flex-direction: column;
    gap: 10px;
  }

  .ct-map-badge {
    padding: 12px 24px;
    width: 100%;
    justify-content: center;
  }
}
