* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}


.header {
    background: #fffbfc;
    height: 70px;
    padding: 0;

    position: sticky;
    top: 0;
    z-index: 1000;

    overflow: visible;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.nav {
    height: 100%;

    display: flex;
    justify-content: flex-end;
    align-items: center;
}


.logo {
    position: absolute;

    left: 0;
    top: 0px;

    z-index: 1001;

    text-decoration: none;
    transform: none;
}

.logo-desktop {
    display: block !important;
    width: 180px;
    height: auto;
}

.logo-mobile {
    display: none !important;
}


.main-nav {
    position: static;

    width: auto;

    opacity: 1;
    visibility: visible;

    transform: none;

    background: transparent;
    box-shadow: none;
}

.menu {
    list-style: none;

    display: flex;
    flex-direction: row;
    align-items: center;

    gap: 20px;

    margin: 0;
    padding: 0;
}

.menu a {
    text-decoration: none;
    color: #333;
}

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    border: none;
    background: transparent;

    padding: 0;

    cursor: pointer;

    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 6px;
}

.menu-toggle span {
    display: block;

    width: 28px;
    height: 3px;

    background: #333;

    border-radius: 5px;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

section {
    padding: 100px 50px;
    border-bottom: 1px solid #ddd;
}

h1 {
    text-align: center;
    font-size: 3rem;
}

html {
    scroll-behavior: smooth;
}

main section {
    padding: 80px 0;
}

.services-section {
    position: relative;
    padding: 90px 0 110px;
    overflow: hidden;
    background: linear-gradient(180deg, #90a8ef 0%, #6d86dd 100%);
}

.services-section .container {
    position: relative;
    z-index: 2;
}

.services-section h2 {
    text-align: center;
    color: #fffbfc;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.services-subtitle {
    text-align: center;
    color: #fffbfc;
    font-size: 1.15rem;
    margin-bottom: 42px;
}

.services-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.services-carousel-viewport {
    position: relative;
    width: 100%;
    max-width: 1120px;
    height: 360px;
    overflow: visible;
}

.services-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.service-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.8);
    transition: transform 650ms ease, opacity 650ms ease;
}

.service-slide.is-left {
    opacity: 0.85;
    pointer-events: auto;
    transform: translate(-165%, -50%) scale(0.9);
}

.service-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1.08);
    z-index: 3;
}

.service-slide.is-right {
    opacity: 0.85;
    pointer-events: auto;
    transform: translate(65%, -50%) scale(0.9);
}

.service-slide.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.service-slide.is-near {
    opacity: 0.9;
    transform: scale(0.94);
}

.service-card {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 320px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.20);
    background: #d8d8d8;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 450ms ease, filter 450ms ease;
}

.service-slide.is-active .service-card img {
    transform: scale(1.06);
}

.service-base {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: 18px 16px;
    background: linear-gradient(to top, rgba(44, 26, 48, 0.78), rgba(44, 26, 48, 0.08));
}

.service-base {
    transition: opacity 300ms ease, transform 300ms ease;
}

.service-card:hover .service-base {
    opacity: 0;
    transform: translateY(10px);
}

.service-base h3 {
    color: #fff;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
}

.service-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: rgba(88, 58, 110, 0.72);
    opacity: 0;
    transition: opacity 320ms ease;
    display: flex;
    align-items: flex-end;
}

.service-overlay-content {
    padding: 22px 20px 24px;
    color: white;
    width: 100%;
}

.service-overlay-content h3 {
    font-size: 1rem;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.service-overlay-content p {
    font-size: 0.92rem;
    line-height: 1.45;
    margin: 0;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-card:hover img {
    transform: scale(1.08);
}

.carousel-arrow {
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: white;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 220ms ease, transform 220ms ease, opacity 220ms ease;
    z-index: 5;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: scale(1.06);
}

.carousel-arrow:active {
    transform: scale(0.98);
}

.motivos-section {
    padding: 110px 0;
    background: #f2edf3;
}

.motivos-section h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    color: #4d4d4d;
    margin-bottom: 8px;
}

.motivos-subtitle {
    text-align: center;
    color: #8b8b8b;
    margin-bottom: 60px;
    font-size: 1rem;
}

.motivos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 70px 80px;

    max-width: 980px;
    margin: 0 auto;
}

.motivo-card {
    position: relative;
    height: 180px;
    border-radius: 18px;
    overflow: visible;
}

.motivo-front {
    position: relative;
        z-index: 1;

    height: 100%;
    background: #6f89de;

    border-radius: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    box-shadow: 0 12px 22px rgba(0,0,0,0.12);

    transition: opacity 300ms ease, transform 300ms ease;
}

.motivo-front h3 {
    color: white;
    text-align: center;
    font-size: 1rem;
    text-transform: uppercase;
    max-width: 220px;
}

.motivo-icon {
    position: absolute;

    top: -38px;
    left: 50%;

    transform: translateX(-50%);

    width: 82px;
    height: 82px;

    border-radius: 50%;

    background: #6f89de;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 10px 18px rgba(0,0,0,0.12);
    z-index: 5;
   transition:
        background-color 300ms ease,
        top 300ms ease,
        box-shadow 300ms ease;
}

.motivo-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}


.motivo-overlay {
    position: absolute;
    inset: 0;

    background: #314370;

    border-radius: 18px;

    opacity: 0;

    transition: opacity 300ms ease;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px;
    z-index: 2;

}

.motivo-overlay-content h3 {
    color: white;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-size: 1rem;
}

.motivo-overlay-content p {
    color: white;
    line-height: 1.5;
    font-size: 0.92rem;
}


.motivo-card:hover .motivo-overlay {
    opacity: 1;
}

.motivo-card:hover .motivo-front {
    opacity: 0;
    transform: scale(0.96);
}

.motivo-card:hover .motivo-icon {
    background-color: #314370;
    top: -58px;
    box-shadow: 0 10px 18px rgba(49, 67, 112, 0.25);
}


.hero {
    position: relative;
    min-height: 500px;
    background-image: url('../img/hero/bckgroundImg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    padding: 40px;
    animation: heroFadeIn 2s ease forwards;
    

}
@keyframes heroFadeIn {
    from {
        opacity: 0.7;
    }

    to {
        opacity: 1;
    }
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.hero-content p {
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-bottom: 50px;
}
.hero-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
}

.hero-card {
    width: 155px;
    height: 155px;
    background: #f3f3f3;
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 14px;
    color: #666;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card:link,
.hero-card:visited {
    text-decoration: none;
    color: #666;
}

.hero-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 28px rgba(0,0,0,0.22);
}

.hero-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.hero-card span {
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}

.hero-content h1 {
    opacity: 0;
    transform: translateY(-20px);
    animation: heroTitleIn 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-content > p {
    opacity: 0;
    transform: translateY(15px);
    animation: heroTextIn 0.8s ease forwards;
    animation-delay: 0.45s;
}

.hero-cards {
    opacity: 0;
    transform: translateY(25px) scale(0.96);
    animation: heroCardIn 0.8s ease forwards;
    animation-delay: 0.7s;
}



@keyframes heroTitleIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroTextIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroCardIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.nosotros {
    background: #f3f3f3;
    padding: 90px 20px;
}

.nosotros .container {
    max-width: 950px;
    margin: 0 auto;
    text-align: center;
}

.nosotros h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #4a4a4a;
    margin-bottom: 10px;
}

.nosotros-subtitulo {
    font-size: 1.2rem;
    color: #7a7a7a;
    margin-bottom: 35px;
}

.nosotros-texto {
    font-size: 1rem;
    line-height: 1.8;
    color: #666;
    max-width: 820px;
    margin: 0 auto;
}
.contact-page {
    background: #fffbfc;
}

.contact-section {
    min-height: 620px;
    padding: 100px 20px;
    display: flex;
    align-items: center;
}

.contact-container {
    width: min(760px, 100%);
    margin: 0 auto;
}

.contact-section h1 {
    margin: 0;
    color: #303653;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1;
}

.contact-subtitle {
    text-align: center;
    margin: 10px 0 35px;
    color: #555568;
    text-transform: uppercase;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: rgba(87, 76, 101, 0.28);
    color: #777788;
    font: inherit;
    outline: none;
}

.contact-form textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #6f89de;
    background: rgba(255, 255, 255, 0.8);
}

.contact-form button {
    padding: 16px 20px;
    border: 0;
    border-radius: 8px;
    background: #303653;
    color: #fff;
    font-weight: 700;
    cursor: pointer;

    transition:
        transform 220ms ease,
        background 220ms ease,
        box-shadow 220ms ease;
}

.contact-form button:hover {
    background: #46547f;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(48, 54, 83, 0.22);
}

.form-message {
    margin-bottom: 24px;
    padding: 14px 18px;
    border-radius: 8px;
}

.form-success {
    background: #fffbfc;
    color: #246b39;
}

.form-error {
    background: #f8dddd;
    color: #8a2929;
}

.footer {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    color: #fff;

    background-image: url('../img/footer/footer-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.footer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(95, 125, 210, 0.78);
}

.footer-container {
    position: relative;
    z-index: 2;

    width: min(1400px, 90%);
    min-height: 300px;
    margin: 0 auto;
    padding: 50px 0 24px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-info h2 {
    margin: 0 0 22px;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.footer-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.footer-item p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-icon {
    width: 22px;
    flex: 0 0 22px;

    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;

    margin-top: 38px;
    padding-top: 18px;

    font-size: 0.78rem;
}

.footer-bottom p {
    margin: 0;
}



.prestadores-section {
    background: #fffbfc;
    padding: 90px 20px 110px;
    min-height: 70vh;
}

.prestadores-header {
    text-align: center;
    margin-bottom: 45px;
}

.prestadores-header h1 {
    margin: 0 0 10px;
    font-size: clamp(2.6rem, 5vw, 4rem);
    color: #3b405c;
    font-weight: 800;
}

.prestadores-header p {
    margin: 0;
    color: #777;
    font-size: 1.05rem;
}

.prestadores-filtros {
    max-width: 1050px;
    margin: 0 auto 50px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;

    padding: 30px;
    background: #ffffff;
    border-radius: 22px;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.filtro-grupo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filtro-grupo label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #4a4f67;
}

.filtro-grupo select,
.filtro-grupo input {
    width: 100%;
    padding: 14px 16px;

    border: 1px solid #d8d9e4;
    border-radius: 10px;

    background: #f8f8fb;
    color: #333;

    font: inherit;
    outline: none;

    transition:
        border-color 200ms ease,
        box-shadow 200ms ease,
        background 200ms ease;
}

.filtro-grupo select:focus,
.filtro-grupo input:focus {
    border-color: #6f89de;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(111, 137, 222, 0.14);
}

.filtro-nombre {
    grid-column: 1 / 3;
}

.btn-buscar-prestador {
    grid-column: 1 / 3;

    border: none;
    border-radius: 10px;

    padding: 15px 20px;

    background: #3b466f;
    color: #fff;

    font-size: 1rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 220ms ease,
        background 220ms ease,
        box-shadow 220ms ease;
}

.btn-buscar-prestador:hover {
    background: #52659d;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(59, 70, 111, 0.22);
}


.prestadores-resultados {
    max-width: 1100px;
    margin: 0 auto;
}

.cantidad-resultados {
    margin-bottom: 25px;
    color: #666;
}

.prestadores-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.prestador-card {
    background: #ffffff;

    border-radius: 18px;
    padding: 26px;

    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);

    transition:
        transform 220ms ease,
        box-shadow 220ms ease;
}

.prestador-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
}

.prestador-card-header {
    padding-bottom: 16px;
    margin-bottom: 18px;

    border-bottom: 1px solid #ececf1;
}

.prestador-card h2 {
    margin: 0 0 8px;

    color: #353b5a;
    font-size: 1.25rem;
}

.prestador-especialidad {
    display: inline-block;

    padding: 6px 11px;

    border-radius: 999px;

    background: #e7ecff;
    color: #526bb5;

    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.prestador-info {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.prestador-info p {
    margin: 0;
    line-height: 1.5;
    color: #555;
}

.prestador-info strong {
    color: #383d58;
}

.prestadores-inicio,
.sin-resultados {
    text-align: center;

    background: #fff;

    padding: 40px 25px;

    border-radius: 18px;

    color: #707070;

    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.sin-resultados h3 {
    color: #3b405c;
    margin: 0 0 8px;
}


.btn-limpiar-prestador {
    grid-column: 1 / 3;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 14px 20px;

    border: 1px solid #6f89de;
    border-radius: 10px;

    background: transparent;
    color: #52659d;

    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;

    cursor: pointer;

    transition:
        background 220ms ease,
        color 220ms ease,
        transform 220ms ease;
}

.btn-limpiar-prestador:hover {
    background: #eef1ff;
    color: #3b466f;
    transform: translateY(-2px);
}

/* ANIMACIONES AL HACER SCROLL */

.reveal {
    opacity: 0;
    transform: translateY(35px);

    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-prestador {
    opacity: 0;
    transform: translateY(30px);

    transition:
        opacity 0.55s ease,
        transform 0.55s ease;
}

.reveal-prestador.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal-prestador:nth-child(4n + 1) {
    transition-delay: 0ms;
}

.reveal-prestador:nth-child(4n + 2) {
    transition-delay: 80ms;
}

.reveal-prestador:nth-child(4n + 3) {
    transition-delay: 160ms;
}

.reveal-prestador:nth-child(4n + 4) {
    transition-delay: 240ms;
}

.contact-form-reveal {
    transition-delay: 180ms;
}
.logo-mobile {
    display: none;
}

.logo-desktop {
    display: block;
}