/* Inicio Qualita: estilos aislados para conservar el resto del sitio. */
.home-modern { background: #fafbf7; color: #435451; }
.home-modern main { overflow: clip; }
.home-skip { position: fixed; top: -80px; left: 16px; z-index: 2000; padding: 12px 20px; border-radius: 12px; background: #fff; color: #1a5276; }
.home-skip:focus { top: 12px; }
.home-modern .header { background: rgba(255,255,255,.96); }
.home-modern .hero { min-height: auto; padding: 160px 0 85px; background: radial-gradient(ellipse at 80% 25%, #eaf0e4 0%, transparent 55%), #fafbf7; }
.home-modern .hero-content { grid-template-columns: 1fr 1.08fr; gap: 50px; }
.home-modern .hero-text { min-width: 0; }
.home-modern .hero-badge { padding: 8px 14px; font-size: .76rem; background: #eff4eb; border-color: #d8e4ce; color: #49682e; box-shadow: none; }
.home-modern .hero-badge-dot::after { animation: none; }
.home-eyebrow { display: block; margin: 25px 0 12px; font-size: .72rem; font-weight: 600; letter-spacing: .13em; color: #63785b; }
.home-modern .hero-text h1 { color: #203f40; background: none; -webkit-text-fill-color: currentColor; font-size: clamp(2.8rem, 4.5vw, 4rem); font-weight: 600; line-height: 1.13; letter-spacing: -.045em; margin-bottom: 22px; }
.home-modern .hero-text h1 em { font-style: normal; color: #6b8e3d; }
.home-modern .hero-text p { font-size: 1rem; line-height: 1.85; max-width: 480px; color: #60716e; margin-bottom: 27px; }
.home-modern .hero-buttons { gap: 12px; }
.home-modern .hero-buttons .btn { padding: 13px 19px; font-size: .81rem; }
.home-modern .btn-primary { background: #246c83; box-shadow: 0 6px 18px #246c8320; }
.home-modern .btn-secondary { border: 1px solid #ccd9c0; background: #fff; box-shadow: none; }
.home-modern .btn-secondary:hover { background: #edf3e7; color: #4a6b28; }
.home-modern .btn:focus-visible, .home-modern a:focus-visible { outline: 3px solid #246c83; outline-offset: 5px; }
.home-modern .hero-visual { order: initial; min-width: 0; }
.home-art { position: relative; width: 100%; padding: 0 0 28px; }
.home-family { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 42%; border-radius: 100px 28px 100px 28px; box-shadow: 0 24px 65px #39594216; }
.home-gallery { position: relative; }
.home-gallery-frame { position: relative; overflow: hidden; aspect-ratio: 3 / 2; border-radius: 100px 28px 100px 28px; box-shadow: 0 24px 65px #39594216; background: #e6eee7; isolation: isolate; }
.home-gallery-image { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; box-shadow: none; opacity: 0; transition: opacity .8s ease; }
.home-gallery-image.is-active { opacity: 1; }
.home-gallery-image:nth-child(2) { object-position: center 58%; }
.home-gallery-image:nth-child(3) { object-position: center 50%; }
.home-gallery-controls { position: absolute; top: 22px; left: 24px; display: flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(25,57,53,.72); box-shadow: 0 8px 24px rgba(20,45,40,.15); backdrop-filter: blur(8px); }
.home-gallery-controls[hidden] { display: none; }
.home-gallery-pause, .home-gallery-dot { display: grid; place-items: center; border: 0; cursor: pointer; background: transparent; }
.home-gallery-pause { width: 30px; height: 30px; color: #fff; border-radius: 50%; font-size: 11px; }
.home-gallery-pause:hover, .home-gallery-dot:hover { background: rgba(255,255,255,.15); }
.home-gallery-dots { display: flex; align-items: center; gap: 2px; }
.home-gallery-dot { width: 22px; height: 30px; padding: 0; border-radius: 20px; }
.home-gallery-dot::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.6); transition: width .25s ease, background .25s ease; }
.home-gallery-dot.is-active::after { width: 13px; border-radius: 9px; background: #fff; }
.home-gallery-pause:focus-visible, .home-gallery-dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.home-art-label { position: absolute; top: 5px; left: 22px; display: flex; gap: 10px; align-items: center; padding: 12px 18px; background: #fff; border: 1px solid #e5ebdf; border-radius: 30px; font-size: .74rem; color: #526e40; box-shadow: 0 8px 24px #344d3b0a; }
.home-art-label i { color: #be805f; }
.home-art-note { position: absolute; bottom: 10px; right: 20px; display: flex; align-items: center; gap: 13px; padding: 17px 22px; background: #fff; border: 1px solid #e3ebdf; border-radius: 18px; box-shadow: 0 14px 35px #2a483214; }
.home-note-icon { display: grid; place-items: center; width: 42px; height: 42px; background: #edf3e7; border-radius: 14px; color: #6b8e3d; }
.home-art-note strong, .home-art-note span:not(.home-note-icon) { display: block; }
.home-art-note strong { color: #2b4947; font-size: .82rem; }
.home-art-note div span { color: #75817b; font-size: .66rem; margin-top: 4px; }
.home-welcome { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 20px; padding-bottom: 20px; border-top: 1px solid #e3eadd; }
.home-welcome p { display: flex; align-items: center; gap: 10px; font-size: .84rem; color: #617457; }
.home-welcome a { font-size: .78rem; font-weight: 500; color: #246c83; }
.home-welcome a i { margin-left: 12px; }
.home-modern .stats-bar { margin-top: 0; padding: 25px 0 35px; }
.home-modern .stats-card { background: #fff; border: 1px solid #e7ecdf; border-radius: 22px; box-shadow: 0 8px 28px #263e2e06; }
.home-modern .stat-number { color: #2b5350; }
.home-modern .stat-label { color: #75817b; }
.home-modern .divisiones { padding: 70px 0 80px; background: #fafbf7; }
.home-modern .section-title h2 { color: #254744; font-weight: 600; letter-spacing: -.035em; }
.home-modern .section-title p { color: #73817b; font-size: .93rem; }
.home-modern .section-title .line { display: none; }
.home-modern .section-badge { background: #edf3e7; color: #587338; border: 1px solid #e0e9d7; box-shadow: none; }
.home-modern .division-card { display: flex; flex-direction: column; border-radius: 25px; background: #fff; border: 1px solid #e2e9df; box-shadow: 0 10px 32px #294a3507; overflow: hidden; transition: transform .35s, box-shadow .35s; }
.home-modern .division-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px #294a3512; }
.home-service-image { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 42%; transition: transform .7s ease; }
.home-service-image--ips { object-position: center 46%; }
.home-service-image--instituto { object-position: center 34%; }
.home-modern .division-card:hover .home-service-image { transform: scale(1.025); }
.home-modern .division-card .division-card-header { text-align: left; background: #fff; color: #526861; padding: 27px 32px 0; }
.home-modern .division-card-header::before, .home-modern .division-card-header::after { display: none; }
.home-modern .division-card-header .icon { display: none; }
.home-modern .division-card-header h3 { color: #254744; font-size: 1.5rem; margin-bottom: 5px; }
.home-modern .division-card-header p { color: #6a7b70; }
.home-modern .division-card-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 20px 32px 30px; }
.home-modern .division-card-body p { color: #697a72; font-size: .88rem; line-height: 1.85; margin-bottom: 24px; }
.home-modern .division-card-body .btn { margin-top: auto; font-size: .84rem; padding: 12px 20px; }
.home-modern .novedades-home { background: #fafbf7; padding: 65px 0; }
.home-modern .nuestro-proposito { background: #fafbf7; }
.home-modern .proposito-photo { border-radius: 20px; }
/* Contenido visible incluso si JavaScript no carga; la entrada se anima al observarlo. */
.home-modern [data-reveal] { opacity: 1; transform: none; }
.home-modern [data-reveal].is-revealed { animation: home-enter .7s both; }
.home-modern [data-reveal-delay="200"].is-revealed { animation-delay: .12s; }
@keyframes home-enter { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1100px) {
  .home-modern .nav-desktop { gap: 0; }
  .home-modern .nav-desktop a { padding: 8px 10px; font-size: .78rem; }
}
@media (max-width: 992px) {
  .home-modern .hero { padding: 130px 0 45px; }
  .home-modern .hero-content { grid-template-columns: 1fr; gap: 22px; text-align: center; }
  .home-modern .hero-text p { margin-left: auto; margin-right: auto; }
  .home-modern .hero-visual { max-width: 600px; width: 100%; margin: auto; }
  .home-modern .hero-text h1 { font-size: clamp(2.8rem, 6vw, 3.8rem); }
  .home-modern .hero-buttons { justify-content: center; }
}
@media (max-width: 600px) {
  .home-modern .hero { padding-top: 105px; }
  .home-modern .hero-content { gap: 12px; }
  .home-eyebrow { font-size: .64rem; margin-top: 20px; }
  .home-modern .hero-text h1 { font-size: clamp(2.45rem, 10vw, 3.5rem); }
  .home-modern .hero-text p { font-size: .91rem; line-height: 1.75; }
  .home-modern .hero-buttons { flex-direction: column; align-items: stretch; }
  .home-modern .hero-buttons .btn { width: 100%; }
  .home-family { border-radius: 55px 18px 55px 18px; }
  .home-gallery-frame { border-radius: 55px 18px 55px 18px; }
  .home-gallery-image { border-radius: 0; }
  .home-gallery-controls { top: 16px; left: 16px; }
  .home-art-label { left: 10px; font-size: .64rem; padding: 10px 12px; }
  .home-art-note { right: 8px; padding: 12px 14px; gap: 9px; }
  .home-art-note strong { font-size: .75rem; }
  .home-welcome { flex-direction: column; gap: 8px; text-align: center; }
  .home-welcome p { font-size: .76rem; }
  .home-modern .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .home-modern .stat-item { flex-direction: column; text-align: center; border: none; padding: 8px 0; }
  .home-modern .stat-label { font-size: .67rem; }
  .home-modern .divisiones { padding: 45px 0; }
  .home-modern .division-card .division-card-header { padding: 22px 23px 0; }
  .home-modern .division-card-body { padding: 15px 23px 25px; }
  .home-modern .division-card-header h3 { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .home-modern *, .home-modern *::before, .home-modern *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .home-modern [data-reveal] { opacity: 1; transform: none; }
  .home-modern .division-card:hover, .home-modern .division-card:hover .home-service-image, .home-modern .btn:hover { transform: none; }
}

/* Formulario de contacto: una conversación breve y clara. */
.home-modern .contacto-form--friendly { align-self: start; padding: 34px; border: 1px solid #e0e8df; border-radius: 28px; box-shadow: 0 15px 45px #28443409; background: #fff; }
.home-modern .contacto-form--friendly .contacto-form-head { align-items: flex-start; gap: 15px; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid #eaf0e7; }
.home-modern .contacto-form--friendly .contacto-form-icon { background: #edf3e7; color: #678646; box-shadow: none; width: 48px; height: 48px; border-radius: 16px; flex-shrink: 0; }
.contact-friendly-eyebrow { display: block; font-size: .61rem; font-weight: 600; letter-spacing: .1em; color: #6d855a; margin-bottom: 7px; }
.home-modern .contacto-form--friendly h3 { font-size: 1.35rem; line-height: 1.3; color: #254744; letter-spacing: -.025em; margin: 0 0 8px; }
.home-modern .contacto-form--friendly .contacto-form-lead { font-size: .82rem; line-height: 1.65; color: #718178; margin: 0; }
.contact-required-note { font-size: .75rem; color: #718178; margin: 0 0 20px; }
.home-modern .contacto-form--friendly .form-group { margin-bottom: 18px; min-width: 0; }
.home-modern .contacto-form--friendly .form-group label { display: block; margin-bottom: 8px; font-size: .81rem; font-weight: 500; color: #344f45; }
.home-modern .contacto-form--friendly .form-group input,
.home-modern .contacto-form--friendly .form-group select,
.home-modern .contacto-form--friendly .form-group textarea { border: 1px solid #dce5da; border-radius: 12px; background-color: #f8faf6; padding: 14px; font-size: .85rem; color: #304a42; min-height: 48px; }
.home-modern .contacto-form--friendly .form-group input::placeholder,
.home-modern .contacto-form--friendly .form-group textarea::placeholder { color: #819087; opacity: 1; }
.home-modern .contacto-form--friendly .form-group input:focus,
.home-modern .contacto-form--friendly .form-group select:focus,
.home-modern .contacto-form--friendly .form-group textarea:focus { background-color: #fff; border-color: #78995b; box-shadow: 0 0 0 3px #78995b18; }
.home-modern .contacto-form--friendly .form-group textarea { resize: vertical; }
.home-modern .contacto-form--friendly .form-group select { padding-right: 40px; }
.contact-fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-field-hint { display: block; color: #7b887f; font-size: .66rem; line-height: 1.5; margin-top: 7px; }
.contact-field-error { color: #ad3c3c; font-size: .73rem; line-height: 1.5; margin: 7px 0 0; }
.contact-field-error[hidden] { display: none; }
.home-modern .contacto-form--friendly [aria-invalid="true"] { border-color: #c57474 !important; }
.contact-more { border: 1px solid #e3eadd; background: #f8faf6; border-radius: 14px; margin: 2px 0 22px; }
.contact-more summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; padding: 13px 15px; color: #436443; font-size: .8rem; font-weight: 500; line-height: 1.5; }
.contact-more summary::-webkit-details-marker, .contact-privacy summary::-webkit-details-marker { display: none; }
.contact-more summary > span:first-child { flex: 1; }
.contact-more summary i { margin-right: 7px; }
.contact-more summary::after { content: '+'; font-size: 1.2rem; font-weight: 400; }
.contact-more[open] summary::after { content: '−'; }
.contact-more-body { padding: 6px 15px 2px; }
.contact-optional { color: #82907c; font-size: .65rem; font-weight: 400; white-space: nowrap; }
.contact-permissions { margin-bottom: 23px; }
.contact-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; margin: 13px 0 0; font-size: .75rem; line-height: 1.65; color: #52665b; }
.contact-check input { appearance: auto; -webkit-appearance: checkbox; accent-color: #658943; width: 18px; height: 18px; flex: 0 0 18px; margin-top: 3px; cursor: pointer; }
.contact-check span { min-width: 0; }
.contact-required-tag { font-size: .61rem; color: #6f8170; margin-left: 3px; }
.contact-check--optional { color: #7d887f; font-size: .7rem; }
.contact-privacy { margin: 14px 0 0 28px; }
.contact-privacy summary { cursor: pointer; list-style: none; color: #61845b; font-size: .71rem; }
.contact-privacy summary i { margin-right: 4px; }
.contact-privacy summary::after { content: ' +'; }
.contact-privacy[open] summary::after { content: ' −'; }
.contact-privacy > div { padding-top: 10px; }
.contact-privacy p { font-size: .69rem; line-height: 1.7; color: #718178; margin: 0 0 9px; }
.contact-privacy a { color: #246c83; text-decoration: underline; overflow-wrap: anywhere; }
.home-modern .contacto-form--friendly .contacto-submit-btn { border-radius: 13px; font-size: .87rem; padding: 15px 20px; box-shadow: 0 6px 18px #246c831a; min-height: 50px; }
.home-modern .contacto-form--friendly .contacto-submit-btn:disabled { opacity: .7; cursor: wait; transform: none; }
.contact-friendly-note { margin: 12px 0 0; text-align: center; color: #83907f; font-size: .65rem; line-height: 1.6; }
.contact-more summary:focus-visible, .contact-privacy summary:focus-visible, .contact-check input:focus-visible { outline: 3px solid #246c83; outline-offset: 4px; border-radius: 5px; }
.home-modern .contacto-form--friendly .contacto-success { background: #edf5e7; color: #426431; border: 1px solid #d6e7c9; border-radius: 13px; padding: 14px; margin-bottom: 15px; }
@media (max-width: 1100px) and (min-width: 769px) { .contact-fields-row { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 600px) {
  .home-modern .contacto-form--friendly { order: -1; }
  .home-modern .contacto-form--friendly { padding: 24px 20px; border-radius: 22px; }
  .home-modern .contacto-form--friendly h3 { font-size: 1.17rem; }
  .home-modern .contacto-form--friendly .contacto-form-icon { display: none; }
  .home-modern .contacto-form--friendly .contacto-form-head { margin-bottom: 16px; padding-bottom: 16px; }
  .home-modern .contacto-form--friendly .form-group { margin-bottom: 14px; }
  .contact-fields-row { grid-template-columns: 1fr; gap: 0; }
  .home-modern .contacto-form--friendly .form-group input,
  .home-modern .contacto-form--friendly .form-group select,
  .home-modern .contacto-form--friendly .form-group textarea { font-size: 16px; }
  .contact-more summary { font-size: .76rem; gap: 8px; }
}
