/* Ajustes finales cargados después de todos los estilos heredados. */
.hero-media{display:none;}

/* Orden principal de módulos */
main{
  display:flex;
  flex-direction:column;
}

/* V4: estado de escritorio explícito desde la primera carga */
@media (min-width:761px){
  .mobile-contact-strip__inner{
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:center !important;
  }

  #inicio.hero{
    display:flex !important;
    align-items:center !important;
    min-height:calc(100vh - 138px) !important;
    background:
      linear-gradient(180deg, rgba(3,23,43,.68) 0%, rgba(3,23,43,.72) 52%, rgba(3,23,43,.96) 100%),
      url("../assets/banner-abogado-reunion-v4.jpeg") center 38%/cover no-repeat !important;
  }

  #inicio.hero::before,
  #inicio .hero-media{
    display:none !important;
  }

  #inicio .hero-grid{
    display:grid !important;
    grid-template-columns:1fr !important;
    align-items:center !important;
    justify-items:center !important;
    text-align:center !important;
  }

  #inicio .hero-grid > div:first-child{
    width:100% !important;
    max-width:1180px !important;
    margin:0 auto !important;
    text-align:center !important;
  }

  #inicio .eyebrow,
  #inicio h1,
  #inicio .hero-list{
    margin-left:auto !important;
    margin-right:auto !important;
    text-align:center !important;
  }

  #inicio .hero-actions{
    display:flex !important;
    justify-content:center !important;
  }

  #inicio .hero-benefits{
    display:grid !important;
    grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
    width:100% !important;
    max-width:1000px !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
}

/* Botón flotante de WhatsApp: visibilidad garantizada en todos los tamaños */
.floating-wa{
  display:grid !important;
  visibility:visible !important;
  opacity:1 !important;
  position:fixed !important;
  z-index:9999 !important;
  pointer-events:auto !important;
  place-items:center !important;
  isolation:isolate;
}

@media (min-width:761px){
  .floating-wa{
    width:72px !important;
    height:72px !important;
    right:28px !important;
    bottom:calc(28px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

main > #inicio{order:1;}
main > #equipo{order:2;}
main > .results-form-combined{order:3;}
main > #servicios{order:4;}
main > .experience-contact-combined{order:5;}

#inicio .eyebrow,
#inicio .eyebrow:hover,
#inicio .eyebrow:focus,
#inicio .eyebrow:active{
  color:#fff !important;
  background:#1685e6 !important;
  background-image:none !important;
  border-color:#55aff7 !important;
  box-shadow:none !important;
  transition:none !important;
  animation:none !important;
}

#inicio .eyebrow::before{display:none !important;}

@media (max-width:760px){
  #inicio.hero{
    display:block !important;
    min-height:auto !important;
    padding:0 !important;
    background:#031e39 !important;
    background-image:none !important;
    overflow:hidden !important;
  }

  #inicio.hero::before{display:none !important;}

  #inicio .hero-media{
    display:block;
    width:100%;
    aspect-ratio:16 / 8.7;
    background:
      linear-gradient(180deg, rgba(3,30,57,.02) 0%, rgba(3,30,57,.03) 76%, #031e39 100%),
      url("../assets/banner-abogado-reunion-v4.jpeg") center 24%/cover no-repeat;
  }

  #inicio .hero-grid{
    position:relative !important;
    z-index:1 !important;
    padding:34px 0 42px !important;
  }

  #inicio .eyebrow{
    min-height:42px !important;
    width:auto !important;
    max-width:92% !important;
    padding:0 20px !important;
    border-width:1px !important;
    box-shadow:none !important;
    font-size:clamp(.7rem, 2.4vw, .86rem) !important;
  }

  #inicio h1{
    max-width:600px !important;
    margin-top:28px !important;
    font-size:clamp(2.15rem, 9.2vw, 3.25rem) !important;
    line-height:1.04 !important;
    overflow-wrap:normal !important;
    word-break:normal !important;
  }

  #inicio .hero-list{
    max-width:520px !important;
    margin-top:26px !important;
    font-size:clamp(.98rem, 3.5vw, 1.15rem) !important;
  }

  #inicio .hero-actions{
    width:100% !important;
    margin-top:28px !important;
  }

  #inicio .hero-actions .btn{
    width:auto !important;
    min-width:0 !important;
    max-width:320px !important;
    min-height:54px !important;
    padding:0 22px !important;
    justify-content:center !important;
    color:#fff !important;
    background:#25b967 !important;
    border:1px solid rgba(255,255,255,.16) !important;
    border-radius:10px !important;
    box-shadow:none !important;
    font-size:.9rem !important;
    line-height:1.2 !important;
    white-space:nowrap !important;
  }

  #inicio .hero-actions .whatsapp-icon{
    width:21px !important;
    height:21px !important;
    flex-basis:21px !important;
    display:block !important;
    overflow:visible !important;
  }

  #inicio .hero-benefits{
    margin-top:42px !important;
  }

  .floating-wa{
    width:58px !important;
    height:58px !important;
    right:14px !important;
    bottom:14px !important;
    box-shadow:0 8px 22px rgba(0,0,0,.2) !important;
  }
}

@media (max-width:420px){
  #inicio .hero-grid{padding:30px 0 38px !important;}
  #inicio h1{font-size:clamp(2rem, 10.2vw, 2.7rem) !important;}
  #inicio .hero-actions .btn{
    max-width:290px !important;
    min-height:52px !important;
    padding:0 18px !important;
    font-size:.84rem !important;
  }
}

/* Equipo: tarjetas compactas y tipografía fluida */
#equipo .lawyer-grid{
  display:grid !important;
  grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  gap:24px !important;
  margin-top:44px !important;
  align-items:stretch !important;
  width:100% !important;
  max-width:1040px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

#equipo .section-title{
  font-size:clamp(2.5rem, 4vw, 3.55rem) !important;
  line-height:1.08 !important;
}

#equipo .lawyer-card,
#equipo .lawyer-card-featured{
  display:flex !important;
  flex-direction:column !important;
  min-width:0 !important;
  height:100% !important;
  overflow:hidden !important;
  border-radius:24px !important;
  box-shadow:0 16px 42px rgba(11,24,48,.09) !important;
}

#equipo .lawyer-photo,
#equipo .lawyer-photo-frame{
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
  aspect-ratio:16 / 7.2 !important;
  overflow:hidden !important;
}

#equipo .lawyer-photo img,
#equipo .lawyer-photo-frame img{
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
  max-height:none !important;
  aspect-ratio:auto !important;
  object-fit:cover !important;
  object-position:center 22% !important;
}

#equipo .lawyer-photo-agustin img{object-position:center center !important;}
#equipo .lawyer-photo-mauricio img{object-position:center center !important;}

#equipo .lawyer-content{
  flex:1 1 auto !important;
  justify-content:flex-start !important;
  padding:clamp(20px, 2.2vw, 26px) !important;
}

#equipo .lawyer-role{
  font-size:clamp(.64rem, .8vw, .74rem) !important;
  line-height:1.35 !important;
}

#equipo .lawyer-card h3{
  font-size:clamp(1.7rem, 2.4vw, 2.15rem) !important;
  line-height:1.15 !important;
  margin-bottom:14px !important;
}

#equipo .lawyer-card p,
#equipo .lawyer-points li,
#equipo .lawyer-card blockquote{
  font-size:clamp(.8rem, .95vw, .9rem) !important;
  line-height:1.42 !important;
}

#equipo .lawyer-card p{margin-bottom:14px !important;}

#equipo .lawyer-points{
  gap:6px !important;
  margin-bottom:14px !important;
}

#equipo .lawyer-card blockquote{
  margin-top:auto !important;
  padding:12px 15px !important;
}

#equipo .equipo-cta-fullwidth-v2{
  grid-column:1 / -1 !important;
  margin-top:16px !important;
}

#equipo .equipo-cta-fullwidth-v2 .btn{
  min-width:0 !important;
  max-width:360px !important;
  min-height:58px !important;
  padding:0 26px !important;
  border-radius:12px !important;
  white-space:normal !important;
  line-height:1.25 !important;
}

@media (min-width:901px){
  #equipo .lawyer-card,
  #equipo .lawyer-card-featured{
    display:grid !important;
    grid-template-columns:150px minmax(0, 1fr) !important;
    grid-template-rows:1fr !important;
  }

  #equipo .lawyer-photo,
  #equipo .lawyer-photo-frame{
    grid-column:1 !important;
    grid-row:1 !important;
    width:150px !important;
    height:100% !important;
    min-height:100% !important;
    aspect-ratio:auto !important;
  }

  #equipo .lawyer-photo img,
  #equipo .lawyer-photo-frame img,
  #equipo .lawyer-photo-agustin img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    object-position:center center !important;
  }

  #equipo .lawyer-photo-mauricio img{
    object-position:46% center !important;
  }

  #equipo .lawyer-photo-agustin img{
    object-position:52% center !important;
  }

  #equipo .lawyer-content{
    grid-column:2 !important;
    grid-row:1 !important;
  }
}

@media (max-width:900px){
  #equipo .lawyer-grid{
    grid-template-columns:1fr !important;
    max-width:620px !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }

  #equipo .lawyer-photo,
  #equipo .lawyer-photo-frame{
    aspect-ratio:16 / 7.5 !important;
  }
}

@media (min-width:521px) and (max-width:900px){
  #equipo .lawyer-card,
  #equipo .lawyer-card-featured{
    display:grid !important;
    grid-template-columns:150px minmax(0, 1fr) !important;
    grid-template-rows:1fr !important;
  }

  #equipo .lawyer-photo,
  #equipo .lawyer-photo-frame{
    grid-column:1 !important;
    grid-row:1 !important;
    width:150px !important;
    height:100% !important;
    min-height:100% !important;
    aspect-ratio:auto !important;
  }

  #equipo .lawyer-photo img,
  #equipo .lawyer-photo-frame img,
  #equipo .lawyer-photo-agustin img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    object-position:center center !important;
  }

  #equipo .lawyer-photo-mauricio img{
    object-position:46% center !important;
  }

  #equipo .lawyer-photo-agustin img{
    object-position:52% center !important;
  }

  #equipo .lawyer-content{
    grid-column:2 !important;
    grid-row:1 !important;
  }
}

@media (max-width:520px){
  #equipo .section-title{
    font-size:clamp(1.9rem, 8vw, 2.2rem) !important;
    line-height:1.12 !important;
  }

  #equipo .section-lead{
    font-size:.98rem !important;
    line-height:1.55 !important;
  }

  #equipo .lawyer-grid{
    gap:18px !important;
    margin-top:32px !important;
  }

  #equipo .lawyer-photo,
  #equipo .lawyer-photo-frame{
    width:100% !important;
    height:300px !important;
    min-height:300px !important;
    aspect-ratio:auto !important;
  }

  #equipo .lawyer-photo img,
  #equipo .lawyer-photo-frame img,
  #equipo .lawyer-photo-agustin img{
    width:100% !important;
    height:300px !important;
    object-fit:cover !important;
    object-position:center top !important;
  }

  #equipo .lawyer-photo-mauricio img{
    object-position:center center !important;
  }

  #equipo .lawyer-photo-agustin img{
    object-position:center top !important;
  }

  #equipo .lawyer-content{padding:22px 20px 24px !important;}

  #equipo .lawyer-card h3{
    font-size:1.75rem !important;
  }

  #equipo .equipo-cta-fullwidth-v2 .btn{
    width:100% !important;
    max-width:320px !important;
    font-size:.94rem !important;
  }
}

/* Equipo: tarjetas verticales con imagen superior */
#equipo > .container > .section-label,
#equipo > .container > .section-title,
#equipo > .container > .section-lead{
  margin-left:auto !important;
  margin-right:auto !important;
  text-align:center !important;
}

#equipo > .container > .section-lead{
  max-width:820px !important;
}

#equipo .lawyer-card,
#equipo .lawyer-card-featured{
  display:flex !important;
  flex-direction:column !important;
  grid-template-columns:none !important;
  grid-template-rows:none !important;
}

#equipo .lawyer-photo,
#equipo .lawyer-photo-frame{
  display:block !important;
  width:100% !important;
  height:240px !important;
  min-height:240px !important;
  aspect-ratio:auto !important;
}

#equipo .lawyer-photo img,
#equipo .lawyer-photo-frame img,
#equipo .lawyer-photo-mauricio img,
#equipo .lawyer-photo-agustin img{
  width:100% !important;
  height:240px !important;
  min-height:240px !important;
  object-fit:cover !important;
  object-position:center center !important;
}

#equipo .lawyer-photo-agustin img{
  object-position:center 8% !important;
}

#equipo .lawyer-content{
  display:flex !important;
  grid-column:auto !important;
  grid-row:auto !important;
  width:100% !important;
}

#equipo .lawyer-role,
#equipo .lawyer-card h3{
  width:100% !important;
  text-align:center !important;
}

@media (max-width:520px){
  #equipo .lawyer-photo,
  #equipo .lawyer-photo-frame,
  #equipo .lawyer-photo img,
  #equipo .lawyer-photo-frame img,
  #equipo .lawyer-photo-mauricio img,
  #equipo .lawyer-photo-agustin img{
    height:220px !important;
    min-height:220px !important;
  }
}

/* Experiencia + contacto como una sola sección */
.experience-contact-combined{
  background:
    radial-gradient(circle at 18% 12%, rgba(49,102,255,.12), transparent 28%),
    linear-gradient(180deg, #06152d 0%, #070b14 100%);
  color:#fff;
  overflow:hidden;
}

.experience-contact-combined #experiencia,
.experience-contact-combined #contacto{
  background:transparent !important;
}

.experience-contact-combined #experiencia{
  padding-bottom:64px !important;
}

.experience-contact-combined #experiencia .photo-stack{
  position:relative !important;
  min-height:620px !important;
  overflow:hidden !important;
  border:1px solid rgba(255,255,255,.14) !important;
  border-radius:28px !important;
  box-shadow:0 24px 70px rgba(0,0,0,.32) !important;
}

.experience-contact-combined #experiencia .photo-main{
  width:100% !important;
  height:100% !important;
  min-height:620px !important;
  object-fit:cover !important;
  object-position:center center !important;
  border-radius:0 !important;
}

.experience-contact-combined #experiencia .photo-small{
  display:none !important;
}

.experience-contact-combined #contacto{
  padding-top:64px !important;
  border-top:1px solid rgba(255,255,255,.12);
}

.experience-contact-combined #contacto .contact-grid-balanced{
  padding:clamp(28px, 4vw, 48px) !important;
  border:1px solid rgba(255,255,255,.12);
  border-radius:28px;
  background:rgba(255,255,255,.035);
  box-shadow:0 22px 60px rgba(0,0,0,.22);
}

.experience-contact-combined #contacto .contact-body-aligned{
  grid-template-columns:minmax(0, .9fr) minmax(380px, 1.1fr) !important;
}

.experience-contact-combined #contacto .contact-map-panel{
  height:100% !important;
  min-height:430px !important;
}

@media (max-width:900px){
  .experience-contact-combined #experiencia .why-grid{
    grid-template-columns:1fr !important;
    gap:0 !important;
    row-gap:0 !important;
  }

  .experience-contact-combined #experiencia .why-content{
    display:contents !important;
  }

  .experience-contact-combined #experiencia .why-logo-label{
    grid-row:1 !important;
    margin-bottom:0 !important;
    text-align:center !important;
  }

  .experience-contact-combined #experiencia .section-title{
    grid-row:2 !important;
    margin-top:12px !important;
    margin-bottom:22px !important;
    text-align:center !important;
  }

  .experience-contact-combined #experiencia .photo-stack{
    grid-row:3 !important;
    width:min(100%, 500px) !important;
    min-height:0 !important;
    margin:0 auto 22px !important;
    aspect-ratio:16 / 9 !important;
  }

  .experience-contact-combined #experiencia .photo-main{
    min-height:0 !important;
  }

  .experience-contact-combined #experiencia .why-list{
    grid-row:4 !important;
    gap:12px !important;
    margin:0 !important;
  }

  .experience-contact-combined #experiencia .why-item{
    padding:18px !important;
    border-radius:18px !important;
  }

  .experience-contact-combined #experiencia .why-icon{
    width:52px !important;
    height:52px !important;
    flex:0 0 52px !important;
  }

  .experience-contact-combined #experiencia .experiencia-cta-fullwidth-v2{
    grid-row:5 !important;
  }

  .experience-contact-combined #contacto .contact-body-aligned{
    grid-template-columns:1fr !important;
  }

  .experience-contact-combined #contacto .contact-map-panel{
    min-height:340px !important;
  }
}

@media (max-width:520px){
  .experience-contact-combined #experiencia,
  .experience-contact-combined #contacto{
    padding-top:42px !important;
    padding-bottom:42px !important;
  }

  .experience-contact-combined #experiencia .why-logo-label{
    font-size:.78rem !important;
  }

  .experience-contact-combined #experiencia .section-title{
    max-width:330px !important;
    margin-top:10px !important;
    margin-bottom:18px !important;
    font-size:clamp(1.9rem, 8vw, 2.35rem) !important;
    line-height:1.12 !important;
  }

  .experience-contact-combined #experiencia .photo-stack{
    width:100% !important;
    max-width:360px !important;
    margin-bottom:18px !important;
    aspect-ratio:16 / 9 !important;
    border-radius:20px !important;
  }

  .experience-contact-combined #experiencia .why-list{
    gap:10px !important;
  }

  .experience-contact-combined #experiencia .why-item{
    display:grid !important;
    grid-template-columns:44px 1fr !important;
    gap:13px !important;
    padding:16px 14px !important;
  }

  .experience-contact-combined #experiencia .why-icon{
    width:44px !important;
    height:44px !important;
  }

  .experience-contact-combined #experiencia .why-item h3{
    font-size:1rem !important;
    line-height:1.3 !important;
  }

  .experience-contact-combined #experiencia .why-item p{
    margin-top:5px !important;
    font-size:.86rem !important;
    line-height:1.45 !important;
  }

  .experience-contact-combined #contacto .contact-grid-balanced{
    padding:22px 18px !important;
    border-radius:20px;
  }

  .experience-contact-combined #contacto .contact-map-panel{
    min-height:280px !important;
    border-radius:18px !important;
  }
}

/* Resultados + formulario en un solo módulo */
.results-form-combined{
  display:grid;
  grid-template-columns:minmax(0, 1.12fr) minmax(340px, .88fr);
  gap:28px;
  width:min(var(--container), calc(100% - 48px));
  margin:0 auto;
  padding:80px 0;
  align-items:stretch;
}

.results-form-combined #resultados{
  min-width:0;
  padding:clamp(34px, 4vw, 52px) !important;
  border:1px solid rgba(11,24,48,.1);
  border-radius:26px;
  background:#fff;
  box-shadow:0 18px 50px rgba(11,24,48,.08);
}

.results-form-combined #resultados > .container{
  width:100% !important;
}

.results-form-combined #resultados .section-label,
.results-form-combined #resultados .section-title{
  text-align:left !important;
}

.results-form-combined #resultados .section-title{
  font-size:clamp(2rem, 3vw, 2.8rem) !important;
  line-height:1.1 !important;
}

.results-form-combined #resultados .stats{
  grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  gap:14px !important;
  margin-top:34px !important;
}

.results-form-combined #resultados .stat{
  min-width:0;
  padding:24px 16px !important;
  border:1px solid rgba(11,24,48,.09) !important;
  border-radius:18px !important;
  background:#f8f9fc !important;
  box-shadow:none !important;
}

.results-form-combined #resultados .stat-number{
  font-size:clamp(2rem, 3.6vw, 3rem) !important;
}

.results-form-combined #resultados .stat-title{
  font-size:.94rem !important;
}

.results-form-combined #resultados .stat-copy{
  font-size:.84rem !important;
}

.results-form-combined #resultados .results-cta{
  margin-top:28px !important;
}

.results-form-combined #resultados .results-cta .btn{
  min-height:56px !important;
  padding:0 24px !important;
  font-size:.94rem !important;
}

.results-form-combined #formulario{
  width:100% !important;
  max-width:none !important;
  height:100% !important;
  margin:0 !important;
  align-self:stretch !important;
  border-radius:26px !important;
  box-shadow:0 18px 50px rgba(11,24,48,.1) !important;
}

@media (max-width:920px){
  .results-form-combined{
    grid-template-columns:1fr;
    width:min(680px, calc(100% - 36px));
    padding:58px 0;
  }

  .results-form-combined #resultados{
    order:1;
  }

  .results-form-combined #formulario{
    order:2;
  }
}

@media (max-width:520px){
  .results-form-combined{
    width:calc(100% - 28px);
    gap:20px;
    padding:42px 0;
  }

  .results-form-combined #resultados{
    padding:28px 18px !important;
    border-radius:20px;
  }

  .results-form-combined #resultados .section-title{
    font-size:1.85rem !important;
  }

  .results-form-combined #resultados .stats{
    grid-template-columns:1fr 1fr !important;
    gap:10px !important;
  }

  .results-form-combined #resultados .stat{
    padding:20px 10px !important;
  }

  .results-form-combined #resultados .stat-number{
    font-size:2rem !important;
  }

  .results-form-combined #resultados .stat-title{
    font-size:.78rem !important;
  }

  .results-form-combined #resultados .stat-copy{
    font-size:.72rem !important;
  }
}
