/*
 * responsive-fixes.css
 * Correcciones responsivas para ComeTrue Services
 * Se carga DESPUÉS de main.css para sobrescribir con máxima especificidad.
 * Breakpoints: xs <576 | sm 576-767 | md 768-991 | lg 992-1199 | xl 1200+
 */

/* ═══════════════════════════════════════════════════════════════════
   0. UTILIDADES FALTANTES (sm: / md: prefix classes usadas en templates)
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  .md\:ml-0  { margin-left: 0 !important; }
  .md\:mt-0  { margin-top:  0 !important; }
  .md\:pb-0  { padding-bottom: 0 !important; }
  .md\:pt-0  { padding-top:    0 !important; }
}
@media (max-width: 767px) {
  .sm\:ml-0  { margin-left: 0 !important; }
  .sm\:mt-0  { margin-top:  0 !important; }
  .sm\:pb-0  { padding-bottom: 0 !important; }
  .sm\:pt-0  { padding-top:    0 !important; }
}


/* ═══════════════════════════════════════════════════════════════════
   1. HEADER — barra superior (solo visible en xl+)
   ═══════════════════════════════════════════════════════════════════ */

/* Ocultar barra superior en pantallas menores a 1200px — no cabe */
@media (max-width: 1199px) {
  .header1-top {
    display: none !important;
  }
}

/* Logo y nav en xl + equalizar alturas de ambas barras */
@media (min-width: 1200px) {
  .header1-social-wedget a {
    height: 32px;
    width:  32px;
    line-height: 32px;
    font-size: 13px;
  }

  /* Ambas barras: mismo padding vertical → misma altura */
  .header1-top {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }
  .header1-bg {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }
  /* Quitar el pt-8 extra que tiene el row interno del nav */
  .header1-bg .row {
    padding-top: 0 !important;
  }

  /* Ancho completo: nav card igual al ancho de la barra superior */
  .header1-bg::after {
    left: 0 !important;
    width: 100% !important;
  }
  .header1-bg::before {
    left: 0 !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   2. HEADER — barra de navegación principal
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 991px) {
  .header1-bg {
    padding: 10px 0 !important;
  }
  .vl-logo img {
    width: auto !important;
    max-width: 140px !important;
    height: auto !important;
  }
}

/* ── Language switcher ── */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid rgba(4,33,62,.15);
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  position: relative;
}
.lang-switcher:hover {
  background: #f0f4ff;
  border-color: rgba(4,33,62,.3);
}
.lang-globe {
  font-size: .85rem;
  color: #04213E;
  pointer-events: none;
}
.lang-label {
  font-size: .85rem;
  font-weight: 600;
  color: #04213E;
  pointer-events: none;
}
.lang-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: none;
  outline: none;
}
.lang-select option {
  color: #04213E;
  background: #fff;
}
.lang-chevron {
  font-size: .65rem;
  color: rgba(4,33,62,.5);
  pointer-events: none;
}

/* ── Hamburger button — always visible, modern look ── */
.vl-offcanvas-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #04213E;
  border: none;
  border-radius: 10px;
  font-size: 1.2rem;
  color: #fff !important;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(4,33,62,.25);
  transition: background .2s, box-shadow .2s, transform .15s;
  padding: 0;
  line-height: 1;
}
.vl-offcanvas-toggle:hover,
.vl-offcanvas-toggle:focus {
  background: #0a3d6b;
  box-shadow: 0 6px 20px rgba(4,33,62,.35);
  transform: scale(1.05);
  outline: none;
}
/* On transparent header (home hero): keep same solid look */
.header-tranperent .vl-offcanvas-toggle {
  background: rgba(4,33,62,.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.header-tranperent .vl-offcanvas-toggle:hover {
  background: #04213E;
}

@media (max-width: 575px) {
  .vl-logo img {
    max-width: 120px !important;
  }
  .header1-bg {
    padding: 8px 0 !important;
  }
}

/* Offcanvas */
.vl-offcanvas {
  max-width: 310px;
  width: 85vw;
}
@media (max-width: 400px) {
  .vl-offcanvas {
    max-width: 92vw;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   2b. HEADER NAV — tablet md (768–991px)
   ═══════════════════════════════════════════════════════════════════ */

/* At md (768-991px): show desktop nav but compact it */
@media (min-width: 768px) and (max-width: 991px) {
  /* Smaller logo */
  .vl-logo img {
    max-width: 115px !important;
  }
  /* Compact nav links */
  .vl-main-menu ul li a {
    font-size: 0.8rem !important;
    padding: 6px 9px !important;
    white-space: nowrap;
    letter-spacing: 0 !important;
  }
  .vl-main-menu ul li {
    margin: 0 1px !important;
  }
  /* Compact Contact Us button */
  .vl-header1-right .theme-btn5 {
    font-size: 11px !important;
    padding: 8px 12px !important;
    white-space: nowrap;
  }
  /* Hide top info bar */
  .header1-top {
    display: none !important;
  }
  /* Sub-menu stays below nav */
  .vl-main-menu ul li .sub-menu {
    top: 100% !important;
  }
  /* Language selector hidden at md — not enough space */
  .col-lg-1.d-none.d-lg-block {
    display: none !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   3. HERO SECTION
   ═══════════════════════════════════════════════════════════════════ */

/* Desktop: altura mínima razonable */
@media (min-width: 992px) {
  .hero2 .hero2-sliders .hero2-single-slider {
    min-height: 680px;
  }
}

/* Tablet (768-991px): reducir altura, ocultar imagen */
@media (min-width: 768px) and (max-width: 991px) {
  .hero2 .hero2-sliders .hero2-single-slider {
    min-height: unset;
    height: auto !important;
    padding: 100px 0 60px;
  }
  .hero2 .hero2-sliders .hero2-single-slider .col-lg-6:last-child {
    display: none;
  }
  .hero2 .hero2-sliders .hero2-single-slider h1 {
    font-size: 2.2rem !important;
    line-height: 1.2 !important;
  }
  .hero2 .hero2-sliders .hero2-single-slider p {
    font-size: 1rem !important;
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  .hero2 .hero2-sliders .hero2-single-slider {
    min-height: unset;
    height: auto !important;
    padding: 90px 0 50px;
  }
  /* Ocultar columna de imagen en mobile */
  .hero2 .hero2-sliders .hero2-single-slider .col-lg-6:last-child {
    display: none;
  }
  .hero2 .hero2-sliders .hero2-single-slider h1 {
    font-size: 1.8rem !important;
    line-height: 1.25 !important;
  }
  .hero2 .hero2-sliders .hero2-single-slider p {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
  }
  .hero2 .hero2-sliders .hero2-single-slider .heading {
    padding-top: 0 !important;
    text-align: center;
  }
  .hero2 .hero2-sliders .hero2-single-slider .heading .sub-title {
    justify-content: center;
    font-size: 0.8rem !important;
  }
  .hero2 .hero2-sliders .hero2-single-slider .heading .mt-16 {
    display: flex;
    justify-content: center;
  }
  /* Ocultar controles laterales en mobile */
  .hero2-controls {
    display: none !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   4. SERVICIOS — tarjetas de la home
   ═══════════════════════════════════════════════════════════════════ */

/* Asegurar que en xs sea 1 columna */
@media (max-width: 575px) {
  .service-page-sec1 .col-lg-4 {
    flex: 0 0 auto;
    width: 100%;
  }
  .service-page-item {
    padding: 22px 18px !important;
  }
  .service-page-item .icon {
    height: 55px !important;
    width:  55px !important;
    line-height: 55px !important;
  }
  .service-page-item .icon img {
    max-height: 36px;
    max-width:  36px;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  .service-page-item {
    padding: 24px 20px !important;
  }
}

/* Inner hero de service details */
@media (max-width: 767px) {
  .inner-hero .hero1-single-slider {
    padding: 80px 0 60px !important;
  }
  .inner-hero h1 {
    font-size: 2rem !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   5. WHY CHOOSE US (work1-box)
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 991px) {
  .work1-box .image {
    margin: 0 auto 16px !important;
    display: flex;
    justify-content: center;
  }
  .work1-box .image img {
    height: 180px !important;
    width:  180px !important;
  }
}

@media (max-width: 767px) {
  .work1-box .image img {
    height: 140px !important;
    width:  140px !important;
  }
  .work1-border .col-lg-3 {
    flex: 0 0 auto;
    width: 50%;
  }
}

@media (max-width: 420px) {
  .work1-border .col-lg-3 {
    flex: 0 0 auto;
    width: 100%;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   6. ABOUT SECTION (home)
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 991px) {
  /* Quitar altura fija — en tablet y mobile la imagen debe fluir */
  .images-all {
    height: auto !important;
  }
  .about1 .images-all {
    margin-bottom: 30px;
  }
  .about1 .images-all .image img {
    width: 100%;
    height: auto;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   7. FAQ SECTION (home + service detail)
   ═══════════════════════════════════════════════════════════════════ */

/* FAQ custom accordion */
.faq-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(4,33,62,.08);
  overflow: hidden;
  margin-bottom: 12px;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: none;
  padding: 18px 22px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: #04213E;
  cursor: pointer;
  transition: background .2s;
}

.faq-question:hover {
  background: #f0f4ff;
}

.faq-card.active .faq-question {
  background: #f0f4ff;
  color: #0a3d6b;
}

.faq-icon {
  flex-shrink: 0;
  font-size: .85rem;
  transition: transform .25s;
}

.faq-card.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 22px 18px;
  font-size: .95rem;
  line-height: 1.7;
  color: #555;
}

@media (max-width: 767px) {
  .case4 .col-lg-6,
  .svc-faq .col-lg-6 {
    flex: 0 0 auto;
    width: 100%;
  }
  .faq-question {
    font-size: 14px !important;
    padding: 14px 16px !important;
  }
  .faq-answer {
    padding: 0 16px 14px !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   8. SERVICE DETAIL PAGE — layout propio
   ═══════════════════════════════════════════════════════════════════ */

/* Lead section (imagen + formulario) */
@media (max-width: 991px) {
  .svc-lead__img {
    height: 260px !important;
  }
  .svc-form-card {
    padding: 26px 20px !important;
  }
  .svc-trust-strip {
    flex-wrap: wrap;
  }
  .svc-trust-item {
    flex: 1 1 140px;
  }
}

@media (max-width: 767px) {
  /* Hero service */
  .svc-hero {
    padding: 150px 0 60px !important;
  }
  .svc-hero__title {
    font-size: 1.7rem !important;
  }
  /* Form */
  .svc-form-card {
    padding: 20px 16px !important;
    border-radius: 10px !important;
  }
  /* Sidebar oculto en mobile (ya tiene d-none d-lg-block) */
  /* Article */
  .svc-article__section {
    padding: 30px 0 !important;
  }
  .svc-article__h2 {
    font-size: 1.3rem !important;
  }
  /* Benefit grid */
  .svc-benefits-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  /* Checklist en 1 col */
  .svc-checklist {
    grid-template-columns: 1fr !important;
  }
  /* CTA strip */
  .svc-cta-strip {
    padding: 36px 0 !important;
  }
  .svc-cta-strip__title {
    font-size: 1.2rem !important;
  }
}

@media (max-width: 420px) {
  .svc-benefits-grid {
    grid-template-columns: 1fr !important;
  }
  .svc-trust-strip {
    flex-direction: column;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   9. CTA SECTION (home — career opportunities)
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 991px) {
  .cta3 .heading-w {
    text-align: center;
    margin-bottom: 24px;
  }
  .cta3 .images {
    text-align: center;
  }
  .cta3 .images img {
    max-width: 280px;
  }
}

@media (max-width: 767px) {
  .cta3 {
    padding: 40px 0 !important;
  }
  .cta3 .col-lg-5,
  .cta3 .col-lg-7 {
    flex: 0 0 auto;
    width: 100%;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   10. FOOTER
   ═══════════════════════════════════════════════════════════════════ */

footer.vl-footer-area1 {
  padding-top: 80px !important;
}

/* Logo widget: quitar width fijo */
.vl-footer-widget.mb-50[style*="width:200px"],
.vl-footer-widget.mb-50[style*="width: 200px"] {
  width: auto !important;
}
.vl-footer-logo img,
.white-logo img {
  max-width: 160px;
  height: auto;
}

/* Eliminar ml-70 en md y abajo */
@media (max-width: 991px) {
  .vl-footer-widget.ml-70,
  .ml-70 {
    margin-left: 0 !important;
  }
  .vl-footer-widget.ml-10 {
    margin-left: 0 !important;
  }
  footer .col-lg-4,
  footer .col-md-6 {
    margin-bottom: 24px;
  }
}

@media (max-width: 575px) {
  footer .col-sm-6 {
    flex: 0 0 auto;
    width: 100%;
  }
  footer.vl-footer-area1 {
    padding-top: 50px !important;
  }
  .vl-copyright1 p {
    font-size: 13px !important;
  }
}

/* Texto de contacto en footer más pequeño en mobile */
@media (max-width: 767px) {
  .vl-footer-contact .single-contact .text a {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
  .vl-footer-widget h4 {
    font-size: 18px !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   11. SPACING GLOBAL — sección .sp demasiado grande en mobile
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .sp {
    padding-top:    60px !important;
    padding-bottom: 60px !important;
  }
  .sp3 {
    padding-top:    50px !important;
    padding-bottom: 50px !important;
  }
  /* Texto de sección */
  .text-44 { font-size: 1.8rem !important; line-height: 1.2 !important; }
  .text-56 { font-size: 2rem   !important; line-height: 1.2 !important; }
}

@media (max-width: 575px) {
  .sp {
    padding-top:    40px !important;
    padding-bottom: 40px !important;
  }
  .text-44 { font-size: 1.5rem !important; }
  .text-56 { font-size: 1.6rem !important; }
}


/* ═══════════════════════════════════════════════════════════════════
   12. TESTIMONIOS
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .tes1 .col-lg-7 {
    flex: 0 0 auto;
    width: 100%;
    margin: 0 !important;
  }
  .map-testimonial {
    display: none;
  }
  .testimonial-boxarea {
    padding: 20px !important;
  }
  .testimonial-boxarea p {
    font-size: 15px !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   13. ABOUT PAGE & TEAM
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .inner-hero .col-lg-6:last-child {
    display: none;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   14. BOTÓN WHATSAPP FLOTANTE
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .theme-toggle-container {
    position: fixed !important;
    top: auto !important;
    bottom: 25vh !important;
    right: 16px !important;
    left: auto !important;
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    background-color: #fff !important;
    box-shadow: 0 4px 15px rgba(0,0,0,.15) !important;
    margin-top: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .whatsapp-button {
    width:  52px !important;
    height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .whatsapp-icon {
    width:  34px !important;
    height: 34px !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   15. CONTACT FORM PAGE
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .contact-page-sec .details-contact {
    margin-left: 0 !important;
  }
  .form-area {
    padding: 20px 16px !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   16. INNER-PAGE HERO (shared svc-hero styles for all inner pages)
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --svc-navy:   #04213E;
  --svc-orange: #ff5a1f;
  --svc-light:  #f8f9fc;
  --svc-border: #e4e8f0;
  --svc-radius: 14px;
  --svc-shadow: 0 8px 32px rgba(4,33,62,.08);
}

.svc-hero {
  position: relative;
  background: linear-gradient(135deg, var(--svc-navy) 0%, #0a3d6b 100%);
  padding: 180px 0 120px;
  overflow: hidden;
}
.svc-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("../img/shapes/hero1-shape.png") right bottom / auto 100% no-repeat;
  opacity: .15;
}
.svc-hero__inner { position: relative; z-index: 2; }
.svc-hero__content { max-width: 640px; }
.svc-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; margin-bottom: 18px;
}
.svc-breadcrumb a { color: rgba(255,255,255,.65); text-decoration: none; }
.svc-breadcrumb a:hover { color: #fff; }
.svc-breadcrumb i, .svc-breadcrumb span { color: rgba(255,255,255,.5); }
.svc-hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700; line-height: 1.15; color: #fff; margin-bottom: 16px;
}
.svc-hero__sub { color: rgba(255,255,255,.75); font-size: 1.05rem; line-height: 1.6; }
.svc-hero__wave {
  position: absolute; bottom: -1px; left: 0; right: 0;
}
.svc-hero__wave svg { display: block; width: 100%; height: 60px; }

@media (max-width: 767px) {
  .svc-hero {
    padding: 80px 0 60px;
  }
  .svc-hero__title {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
  }
}
