/* index.css - Estilos exclusivos de index.php */

/* HEADER */

#main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    font-size: .95rem;
}

.nav-links a {
    color: var(--color-blanco);
    text-decoration: none;
    opacity: .85;
}

.nav-links a:hover {
    opacity: 1;
}


/* HERO */

@keyframes windowLightGlow {
    0% {
        filter: brightness(1.6) contrast(.9);
    }

    100% {
        filter: brightness(1) contrast(1);
    }
}

@keyframes glitchAppear {
    0% {
        opacity: 0;
        transform: scaleX(0.85);
        filter: blur(10px);
    }

    50% {
        opacity: .8;
        filter: blur(2px);
    }

    100% {
        opacity: 1;
        transform: scaleX(1);
        filter: blur(0);
    }
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--color-blanco);
    padding-top: 140px;
    overflow: hidden;
}

.hero p {
    font-size: 1.1rem;
    margin-top: 0.4rem;
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(0,0,0,.4), rgba(0,0,0,.4)),
        url("img/mujer.webp") center top / cover;
    z-index: -1;
    animation: windowLightGlow 6s ease-in-out forwards;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: max-content;
    margin-top: 20px;
    transform-origin: center center;
    animation: glitchAppear 2s cubic-bezier(.215,.61,.355,1) forwards;
}

.hero-logo {
    width: 160px;
    margin-bottom: 0.5rem;
}

.hero-textlogo {
    margin: 0;
    padding: 0;
}

.hero-textlogo img {
    width: 400px;
    height: auto;
    display: block;
}

.hero-title-main {
    max-width: 600px;
    font-size: 6rem;
    font-weight: 300;
    margin-top: 0.2rem;
    margin-bottom: 1.8rem;
    line-height: 0rem;
    color: var(--color-blanco);
    white-space: nowrap;
}

.hero-title-sub {
    margin-top: 1.2rem;
    margin-bottom: 0;
    color: rgba(255,255,255,.85);
    font-size: 1.8rem;
    font-weight: 500;
}

.hero-desc {
    margin-top: 0;
    color: var(--color-blanco);
    text-align: center;
}

.hero-buttons {
    margin-top: 20px;
}


/* BUSCADOR */

.search-full-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
    background: var(--tono-medio);
    overflow: hidden;
}

.search-full-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/img/buscador.webp") center / cover;
    opacity: .55;
    z-index: 0;
}

.search-full-section > * {
    position: relative;
    z-index: 1;
}

.search-container-desktop {
    width: 100%;
    max-width: 700px;
}

.search-translucent-box {
    padding: 35px;
    background: #97defa40;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,.3);
}

.search-title {
    margin-top: 0.1rem;
    margin-bottom: 2rem;
    color: var(--color-blanco);
    text-align: center;
    font-size: 2rem;
    font-weight: 300;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-line {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.search-line select,
.search-line input {
    flex: 1;
    min-width: 0;
    padding: 12px 15px;
    border: 1px solid var(--color-borde-input);
    border-radius: 12px;
    background: rgba(255,255,255,.9);
}

.search-line button {
    white-space: nowrap;
}


/* CARRUSEL */

.carousel-section {
    width: 100%;
    padding: 60px 40px 20px 40px;
    background: var(--tono-claro);
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1300px;
    margin: auto;
    overflow: hidden;
    background: var(--tono-medio);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

.carousel-inner {
    display: flex;
    transition: transform .5s ease-in-out;
}

.slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    align-items: center;
}

.slide img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.triptych-text {
    padding: 0 60px;
    color: #333;
    text-align: center;
    font-size: 1.1rem;
    font-style: italic;
}

.carousel-dots {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 15px 0 5px;
    text-align: center;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: rgba(255,255,255,.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: var(--color-blanco);
}


/* INSTITUCIONES QUE CONFÍAN EN NOSOTROS */

.trusted-section {
    padding: 20px 60px 60px 40px;
    text-align: center;
    background: var(--tono-muyclaro);
    border-bottom: 1px solid #eee;
}

.trusted-section > .container > p {
    margin-top: 25px;
    margin-bottom: 35px;
    color: #888;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    opacity: .7;
}

.logo-card {
    width: 170px;
    height: 170px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-blanco);
    border: 1px solid #d0cbc0;
    border-radius: 4px;
}

.logo-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


/* NUESTRA GUÍA EN NÚMEROS */

.numbers-section {
    background: var(--tono-claro);
    padding: 40px 60px 60px 30px;
}

.section-title {
    margin-bottom: 44px;
    color: #666;
    text-align: center;
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.numbers-layout-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 25px;
    max-width: 1200px;
    margin: auto;
}

.image-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.landscape-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.image-wrapper.animate-on-scroll,
.card-number.animate-on-scroll {
    opacity: .4;
    transform: perspective(1000px) rotateY(180deg);
    transform-origin: center;
    transition: opacity 2s ease-out, transform 1s ease-out;
    backface-visibility: hidden;
}

.image-wrapper.animate-on-scroll.visible,
.card-number.animate-on-scroll.visible {
    opacity: 1;
    transform: perspective(1000px) rotateY(0);
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.card-number{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    padding:12px 20px 20px;
    background:var(--tono-muyclaro);
    border:1px solid #eae6df;
    border-radius:var(--radio-tarjeta);
    box-shadow:var(--sombra-tarjeta);
}

.card-number:nth-child(1),
.card-number:nth-child(4) {
    background: #fff;
    border: none;
}

.card-number h3{
    margin:0 0 2px;
    color:#1a1a1a;
    font-size:3rem;
}

.card-number p{
    margin:0;
    color:#666;
    font-size:.9rem;
}


/* BANNER PROFESIONALES */

.banner-pro-wrapper {
    background: var(--tono-medio);
    padding: 80px 20px 30px;
}

.banner-pro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background:linear-gradient(180deg,rgb(223,115,14),rgb(145,55,0));
    border-radius: 30px;
    overflow: hidden;
}

.banner-pro-content {
    padding: 0 60px;
    text-align: center;
}

.banner-pro-image img {
    width: 100%;
    display: block;
}

.banner-pro-content h2 {
    margin-bottom: 15px;
    color: var(--color-blanco);
    font-size: 3.4rem;
    font-weight: 300;
    line-height: 1.1;
}

.banner-pro-content p {
    margin-bottom: 40px;
    color: var(--color-blanco);
}


/* FOOTER */

.footer-wraper {
    background-color: transparent;
    width: 100%;
    margin: 0;
    padding: 0 20px 10px;
    font-size: 1rem;
    text-align: center;
    color: var(--color-blanco);
}


/* TABLET / MÓVIL */

@media (max-width: 767px) {

#main-header {
    padding: 15px 0;
}

.header-content {
    justify-content: center;
}

.nav-links {
    justify-content: center;
    width: 100%;
    gap: 12px;
    font-size: .78rem;
}

.nav-links a {
    padding: 7px 10px;
}

/* HERO */

.hero {
    width:100%;
    height:92vh;
    min-height:90vh;
    padding:0;
    position:relative;
    display:block;
}

.hero-content-box {
    width:90%;
    height:90%;
    margin-left:auto;
    margin-right:auto;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    padding-top:40vh;
    box-sizing:border-box;
    text-align:center;
}

.hero > .container {
    width:100%;
    height:100%;
    display:flex;
    flex-direction:column;
}

.hero-inner {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    transform: none !important;
    animation: none;
}

.hero-logo {
    width: 75px;
    margin-bottom: 4px;
}

.hero-title-main {
    font-size: clamp(3.5rem, 15vw, 4.5rem);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-align: center;
}

.hero-title-sub {
    margin-top: 0;
    font-size: clamp(1rem, 4.5vw, 1.35rem);
    line-height: 1.2;
    text-align: center;
}

.hero-desc {
    max-width: 340px;
    margin-top: 8px;
    font-size: 0.6rem !important;
    line-height: 1.4;
}

.hero p {
    font-size: 0.75rem !important;
}

.hero-textlogo {
    width:100%;
}

.hero-textlogo img {
    width:100%;
    max-width:400px;
    height:auto;
    margin:0 auto;
}

.hero::before {
    background:
        linear-gradient(rgba(0,0,0,.4), rgba(0,0,0,.4)),
        url("img/mujer2.webp") center top / cover;
}

/* BUSCADOR */

.search-full-section {
    min-height: auto;
    padding: 55px 15px;
}

.search-container-desktop {
    padding: 0;
}

.search-translucent-box {
    padding: 25px 18px;
    border-radius: 16px;
}

.search-title {
    margin-bottom: 22px;
    font-size: 1.55rem;
}

.search-line {
    flex-direction: column;
    gap: 10px;
}

.search-line select,
.search-line input:not([type="checkbox"]),
.search-form button {
    width: 100%;
    min-width: 100%;
    min-height: 48px;
    padding: 12px;
    font-size: 1.05rem;
}


/* CARRUSEL */

.carousel-section {
    width: 100%;
    padding: 45px 12px 8px;
    background: var(--tono-claro);
}

.carousel-container {
    width: 100%;
    border-radius: 14px;
    background: var(--tono-medio);
}

.triptych-text {
    padding: 0 12px;
    font-size: .75rem;
    line-height: 1.35;
}

.slide {
display: flex;
flex-direction: column;
}

.slide img:first-child {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.slide img:last-child {
    display: none;
}

.triptych-text {
    width: 100%;
    padding: 20px 30px;
    font-size: 1rem;
    line-height: 1.4;
}


/* INSTITUCIONES */

.trusted-section {
    width: 100%;
    padding: 45px 15px;
    background: var(--tono-muyclaro);
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 100%px;
    margin: auto;
}

.logo-card {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    padding: 14px;
}


/* NÚMEROS */

.numbers-section {
    width: 100%;
    padding: 45px 15px;
    background: var(--tono-claro);
}

.section-padding {
    padding: 45px 0;
}

.numbers-layout-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.image-wrapper {
    aspect-ratio: 16 / 9;
}

.numbers-grid {
    gap: 12px;
}

.card-number {
    min-height: 145px;
    padding: 18px 12px;
    text-align: center;
}

.card-number h3 {
    font-size: 1.7rem;
}

.card-number p {
    font-size: .78rem;
}


/* BANNER PROFESIONALES */

.banner-pro-wrapper {
    width: 100%;
    padding: 30px 15px;
}

.banner-pro {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    border-radius: 20px;
}

.banner-pro-content {
    width: 100%;
    padding: 0 20px 30px;
    box-sizing: border-box;
    text-align: center;
}

.banner-pro-content h2 {
    margin-top: 0;
}

.banner-pro-content h2 {
    font-size: clamp(2rem, 9vw, 2.7rem);
    line-height: 1.1;
}

.banner-pro-content p {
    margin-bottom: 25px;
}

.banner-pro-image {
    width: 100%;
}

.banner-pro-image img {
    width: 100%;
    height: auto;
    display: block;
}

}

@media (max-width: 968px) {

.hero-title-main {
    font-size: 3.8rem;
}

.banner-pro-content {
    padding: 30px 30px;
}

.banner-pro-content h2 {
    font-size: 2.7rem;
}
}

/* MÓVILES PEQUEÑOS */

@media (max-width: 380px) {

.nav-links {
    gap: 5px;
    font-size: .72rem;
}

.nav-links a {
    padding: 6px 7px;
}

.hero-title-main {
    font-size: clamp(3.8rem, 15vw, 5rem);
}

.hero-title-sub {
    font-size: 1.3rem;
}

.hero-desc {
    font-size: .88rem;
}

.search-translucent-box {
    padding: 22px 14px;
}

.search-title {
    font-size: 1.4rem;
}

.card-number {
    min-height: 135px;
    padding: 14px 8px;
}

.card-number h3 {
    font-size: 1.5rem;
}

.card-number p {
    font-size: .72rem;
}

.banner-pro-content {
    padding: 25px 16px 28px;
}
}
/* Instalación PWA y contacto */
#salus-pwa[hidden],#salus-pwa-help[hidden]{display:none!important}
.salus-pwa{padding:32px 12px;text-align:center;color:var(--color-texto);background:transparent}
.salus-actions{display:flex;align-items:center;justify-content:center;gap:12px}
#salus-pwa-install,.salus-contact{display:inline-flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;min-height:46px;padding:9px 16px;border-radius:999px;font:inherit;font-size:.82rem;font-weight:600;white-space:nowrap}
#salus-pwa-install:focus-visible,.salus-contact:focus-visible{outline:3px solid #173454;outline-offset:4px}
#salus-pwa-install:disabled{opacity:.65;cursor:wait}
#salus-pwa-help{max-width:620px;margin:18px auto 0;line-height:1.6;text-align:left}
.salus-pwa-mobile{display:block;flex-shrink:0;width:18px;height:24px}.salus-contact svg{display:block;flex-shrink:0;width:19px;height:19px}
.salus-pwa-text-mobile{display:none}
@media(max-width:480px){.salus-pwa .container{padding:0}.salus-actions{gap:8px}#salus-pwa-install,.salus-contact{gap:6px;padding:10px 12px;min-height:52px;font-size:12px}.salus-pwa-mobile{width:18px;height:26px}.salus-contact svg{width:20px;height:20px}}
@media(max-width:768px){.salus-pwa-text-desktop{display:none}.salus-pwa-text-mobile{display:inline}}
