html, body {
    height: 100%;
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
footer {
    margin-top: auto !important;
}
@media (max-width: 600px) {
    .section-padded,
    .que-hacemos-section,
    .beneficios-section,
    .para-quien-section,
    .confianza-section,
    .section-title,
    .section-desc {
        padding: 1rem;
        text-align: center !important;
    }
}
@media (max-width: 600px) {
    .service-card,
    .audience-card {
        text-align: center;
    }
}
@media (max-width: 600px) {
    .hero-section h1 {
        margin-bottom: 1.1em;
    }
}
@media (max-width: 600px) {
    .navbar-menu {
        display: none !important;
    }
    .navbar-container {
        justify-content: center !important;
    }
    .navbar-logo {
        margin: 0 auto;
        display: flex;
        justify-content: center;
        width: 100%;
    }
}
/* --- MOBILE FIRST & RESPONSIVE --- */
@media (max-width: 900px) {
    .hero-section {
        padding: 2.5em 0.2em 2em 0.2em;
        min-height: 60vh;
        position: relative;
        z-index: 2;
        display: flex;
        align-items: center;
    }
    }
    .navbar-menu {
        gap: 0.7em;
    }
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }
    .section-padded {
        padding: 2.2em 0 1.5em 0;
    }
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.1em 0.7em;
    }
    .audience-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1.1em 0.7em;
    }
    .service-card, .audience-card {
        max-width: 100%;
        min-width: 0;
        padding: 1.1em 0.7em 1em 0.7em;
        font-size: 0.97rem;
    }
    .service-card h5, .audience-card h6 {
        font-size: 1.01rem;
    }
    .service-card .icon-circle, .audience-card .icon-circle {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    .hero-section {
        padding: 2.5em 0.2em 2em 0.2em !important;
        min-height: 60vh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative;
        z-index: 2;
    }
    footer {
        padding: 1.2em 0 0.7em 0;
        font-size: 0.57rem;
    }

@media (max-width: 600px) {
    .container {
        padding-left: 0.3rem;
        padding-right: 0.3rem;
    }
    .navbar-logo img {
        height: 28px;
    }
    .navbar-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0.3em;
    }
    .navbar-menu a {
        min-width: unset;
        font-size: 0.97rem;
        padding: 0.5em 0.2em;
        border-radius: 6px;
    }
    .section-title {
        font-size: 1.08rem;
        margin-bottom: 0.7rem;
    }
    .section-padded {
        padding: 1.2em 0 0.7em 0;
    }
    .benefits-grid, .audience-grid {
        grid-template-columns: 1fr;
        gap: 0.7em 0;
    }
    .service-card, .audience-card {
        padding: 0.8em 0.3em 0.7em 0.3em;
        font-size: 0.93rem;
        min-height: 0;
        max-width: 100%;
    }
    .service-card .icon-circle, .audience-card .icon-circle {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    .hero-section {
        padding: 2.5em 0.2em 2em 0.2em !important;
        min-height: 60vh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative;
        z-index: 2;
    }
    footer {
        padding: 0.7em 0 0.4em 0;
        font-size: 0.58rem;
    }
}
html {
    scroll-behavior: smooth;
}
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
/* Variables de color institucional */
:root {
    --primary-color: #0C2B4E;
    --secondary-color: #1A3D64;
    --accent-color: #1D546C;
    --background-color: #F4F4F4;
    --text-color-background: #212121;
    --text-color-primary: #F4F4F4;
}
/* NAVBAR APPHABITAT */
.navbar-apphabitat {
    width: 100%;
    background: var(--primary-color);
    box-shadow: 0 2px 8px rgba(12,43,78,0.07);
    position: relative;
    z-index: 100;
}
/* Menú: todos los botones del mismo ancho */
.navbar-logo img {
    height: 44px;
}

.navbar-menu {
    list-style: none;
    display: flex;
    gap: 2.2em;
    margin: 0;
    padding: 0;
}
.navbar-menu li {
    display: flex;
    align-items: center;
}
/* Efecto desplazamiento izquierda-derecha en hover */
.navbar-menu a {
    font-family: 'Roboto', Arial, sans-serif !important;
    font-weight: 500;
    font-size: 1.08rem;
    letter-spacing: 0.5px;
    transition: color 0.3s, border-bottom-color 0.3s;
    border-bottom: 2px solid transparent;
    min-width: 170px;
    text-align: center;
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.navbar-menu a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #1A3D64 60%, #0C2B4E 100%);
    z-index: -1;
    transition: width 0.4s cubic-bezier(.4,1.3,.6,1);
    border-radius: 8px;
}
/* Hover profesional para navbar */
.navbar-menu a:hover, .navbar-menu a:focus {
    color: #fff;
    border-bottom: 2px solid #1D546C;
    transform: translateY(-2px) scale(1.04);
    outline: none;
}
.navbar-menu a:hover::before, .navbar-menu a:focus::before {
    width: 100%;
}
@media (max-width: 900px) {
    .navbar-menu a {
        min-width: 120px;
    }
}
@media (max-width: 600px) {
    .navbar-menu a {
        min-width: 90px;
    }
}

.navbar-menu a {
    color: #fff;
    font-weight: 500;
    font-size: 1.08rem;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    padding: 0.2em 0.1em;
    border-bottom: 2px solid transparent;
}

@media (max-width: 900px) {
    .navbar-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5em;
    }
    .navbar-menu {
        gap: 1.2em;
        font-size: 0.98rem;
    }
    .navbar-logo img {
        height: 36px;
    }
}
@media (max-width: 600px) {
    .navbar-container {
        padding: 0.5em 0.5em;
    }
    .navbar-menu {
        gap: 0.7em;
        font-size: 0.93rem;
    }
}
a {
    text-decoration: none;
}

/* Divisor visual para secciones */
.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 60%, var(--secondary-color) 100%);
    border-radius: 2px;
    margin: 1.5em auto 2em auto;
}

/* Círculo de íconos para cards */
.icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: none;
    color: var(--primary-color);
    margin: 0 auto 1em auto;
    font-size: 2rem;
    box-shadow: none;
}
.icon-circle.yellow {
    background: none;
    color: var(--primary-color);
}
.icon-circle.green {
    background: none;
    color: var(--primary-color);
}

/* Mejorar separación entre secciones */
.que-hacemos-section, .beneficios-section, .para-quien-section, .confianza-section {
    margin-bottom: 0;
    padding-bottom: 0;
}
.beneficios-section {
    background: #f8fafc;
}
.confianza-section {
    background: #fff;
}
.para-quien-section {
    background: #f8fafc;
}

@media (max-width: 767px) {
    .section-divider { width: 40px; height: 3px; }
    .icon-circle { width: 44px; height: 44px; font-size: 1.3rem; }
}
/* Espaciado general para secciones */
.section-padded {
    padding: 4em 0 3em 0;
}
.section-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    width: 100%;
    display: block;
}
.section-desc {
    max-width: 600px;
    margin: 0 auto;
    color: #22304a;
    font-size: 1.1rem;
}

/* Grid de beneficios */
.benefits-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
        gap: 2.5em;
        justify-items: stretch;
        align-items: stretch;
}
@media (max-width: 900px) {
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.5em 1em;
    }
}
@media (max-width: 600px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.2em 0;
    }
}

/* Grid de audiencia */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2em;
    justify-items: center;
    margin-top: 2em;
}
.audience-card {
    background: linear-gradient(180deg, #fafdff 0%, #fff 80%);
    border-radius: 20px;
    box-shadow: 0 4px 24px 0 rgba(12,43,78,0.08), 0 1.5px 6px 0 rgba(26,61,100,0.04);
    border: none;
    padding: 1.7em 1.2em 1.2em 1.2em;
    margin-bottom: 2.2em;
    margin-right: 1em;
    margin-left: 1em;
    transition: box-shadow 0.32s cubic-bezier(.4,1.3,.6,1), transform 0.22s, border-bottom 0.22s;
    min-height: 220px;
    max-width: 340px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 6px solid #e6eaf1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.audience-card:hover {
    box-shadow: 0 10px 32px 0 rgba(12,43,78,0.16), 0 2.5px 12px 0 rgba(26,61,100,0.10);
    transform: translateY(-6px) scale(1.03);
    border-bottom: 6px solid;
    border-image: linear-gradient(90deg, var(--primary-color) 60%, var(--secondary-color) 100%) 1;
    background: linear-gradient(180deg, #f4f8ff 0%, #fff 90%);
}
.audience-card .icon-circle {
    width: 64px;
    height: 64px;
    font-size: 2.3rem;
    margin-bottom: 1.1em;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    box-shadow: none;
}
.audience-card h6 {
    color: #1A3D64;
    font-weight: 700;
    margin-bottom: 0.7rem;
    margin-top: 0.7rem;
    font-size: 1.13rem;
    letter-spacing: 0.2px;
}
.audience-card p {
    color: #4a5a6a;
    font-size: 1.07rem;
    margin-bottom: 0;
}
.audience-card h6 {
    color: #22304a;
    font-weight: 700;
    margin-bottom: 0.7rem;
    margin-top: 0.7rem;
}
.audience-card p {
    color: #4a5a6a;
    font-size: 1.05rem;
}

/* Hero content centrado verticalmente */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

@media (max-width: 767px) {
    .section-title { font-size: 1.3rem; }
    .section-padded { padding: 2em 0 1.5em 0; }
    .benefits-grid, .audience-grid { gap: 1em; }
    .hero-content { min-height: 40vh; }
}
*{
    padding: 0;
    margin: 0;
}


@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;600;700&display=swap');
:root {
    /* NAVBAR APPHABITAT - DISEÑO PROFESIONAL */
    .navbar-apphabitat {
        width: 100%;
        background: linear-gradient(90deg, var(--primary-color) 70%, var(--secondary-color) 100%);
        box-shadow: 0 4px 18px 0 rgba(12,43,78,0.10);
        position: relative;
        z-index: 100;
        padding-top: 0.2em;
        padding-bottom: 0.2em;
    }
    .navbar-container {
        max-width: 1100px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.5em 1.2em 0.5em 1.2em;
        background: rgba(255,255,255,0.01);
        box-shadow: 0 2px 8px 0 rgba(12,43,78,0.04);
    }
    .navbar-logo img {
        height: 48px;
        width: auto;
        display: block;
        border-radius: 8px;
        padding: 2px 8px 2px 2px;
    }
    .navbar-menu {
        list-style: none;
        display: flex;
        gap: 2.2em;
        margin: 0;
        padding: 0;
        background: rgba(255,255,255,0.01);
        border-radius: 12px;
    }
    .navbar-menu li {
        display: flex;
        align-items: center;
    }
    .navbar-menu a {
        color: #fff;
        font-weight: 600;
        font-size: 1.08rem;
        letter-spacing: 0.5px;
        transition: background 0.18s, color 0.18s, box-shadow 0.18s;
        padding: 0.5em 0.7em;
        border-radius: 8px;
        min-width: 170px;
        text-align: center;
        display: inline-block;
        border: none;
        background: transparent;
        box-shadow: none;
        position: relative;
    }
    .navbar-menu a:hover, .navbar-menu a:focus {
        color: #ffffff;
        background: #08213d;
        transition: all 0.3s;
        box-shadow: 0 2px 12px 0 rgba(255,193,7,0.13);
        text-decoration: none;
    }
    .navbar-menu a:active {
        background: #ffb300;
        color: #22304a;
    }
    @media (max-width: 900px) {
        .navbar-container {
            flex-direction: column;
            align-items: flex-start;
            gap: 0.5em;
        }
        .navbar-menu {
            gap: 1.2em;
            font-size: 0.98rem;
        }
        .navbar-logo img {
            height: 38px;
        }
        .navbar-menu a {
            min-width: 120px;
        }
    }
    @media (max-width: 600px) {
        .navbar-container {
            padding: 0.5em 0.5em;
        }
        .navbar-menu {
            gap: 0.7em;
            font-size: 0.93rem;
        }
        .navbar-menu a {
            min-width: 90px;
            font-size: 0.97rem;
            padding: 0.4em 0.3em;
        }
    }
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}
.hero-section {
    background-image: url(https://res.cloudinary.com/dyvn4yyx0/image/upload/v1762639470/jason-dent-w3eFhqXjkZE-unsplash_bakafp.jpg);
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 6em 1.2em 4em 1.2em;
    position: relative;
    overflow: hidden;
    height: auto;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(12,43,78,0.78) 60%, rgba(26,61,100,0.78) 100%);
    z-index: 1;
}
.hero-section .container, .hero-section .hero-content {
    position: relative;
    z-index: 2;
}

.hero-section p {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
}
.hero-section .btn-primary {
    font-size: 1.1rem;
    padding: 0.8em 2.2em;
}
.services-section {
    background: #f8fafc;
    padding: 4em 0 3em 0;
}
.services-section h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 2rem;
    font-size: 2.2rem;
}
.service-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px 0 rgba(12,43,78,0.10), 0 1.5px 6px 0 rgba(26,61,100,0.07);
    border: 1.5px solid #e6eaf1;
    padding: 1.5em 1.1em 1.2em 1.1em;
    margin-bottom: 2.7em;
    margin-right: 1em;
    margin-left: 1em;
    transition: box-shadow 0.32s cubic-bezier(.4,1.3,.6,1), border-color 0.22s, transform 0.22s;
    max-height: 320px;
    min-height: 220px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.service-card:hover {
    box-shadow: 0 10px 32px 0 rgba(12,43,78,0.18), 0 2.5px 12px 0 rgba(26,61,100,0.13);
    border-color: #b6c6e0;
    transform: translateY(-4px) scale(1.025);
    background: linear-gradient(120deg, #fafdff 80%, #eaf2fb 100%);
}
.service-card::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0; height: 7px;
    background: linear-gradient(90deg, var(--primary-color) 60%, var(--secondary-color) 100%);
    border-radius: 0 0 18px 18px;
    opacity: 0.13;
    transition: opacity 0.22s;
}
.service-card:hover::after {
    opacity: 0.22;
}
.service-card h5 {
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    color: #1A3D64;
    letter-spacing: 0.2px;
}
.service-card p {
    color: #4a5a6a;
    font-size: 1.07rem;
    margin-bottom: 0;
}
.benefits-grid {
        /* Asegura separación en pantallas pequeñas */
}
@media (max-width: 900px) {
    .service-card {
        margin-bottom: 2em;
        margin-right: 0.5em;
        margin-left: 0.5em;
    }
}
@media (max-width: 600px) {
    .service-card {
        margin-bottom: 1.2em;
        margin-right: 0;
        margin-left: 0;
    }
}
.service-card:hover {
    box-shadow: 0 6px 24px rgba(12,43,78,0.13);
}
.service-card i {
    color: var(--secondary-color);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}
.service-card h4, .service-card h5, .service-card h6 {
    color: #22304a;
    font-weight: 700;
    margin-bottom: 0.7rem;
}
.service-card p {
    color: #4a5a6a;
    font-size: 1.05rem;
}
.cta-section {
    background: linear-gradient(90deg, var(--primary-color) 60%, var(--secondary-color) 100%);
    color: #fff;
    padding: 3em 0 2.5em 0;
    text-align: center;
}
.cta-section h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.cta-section .btn {
    background: #ffc107;
    color: #22304a;
    font-weight: 700;
    border-radius: 8px;
    padding: 0.7em 2em;
    font-size: 1.1rem;
    border: none;
    transition: background 0.2s;
}
.cta-section .btn:hover {
    background: #ffb300;
}
footer {
    background: linear-gradient(90deg, var(--primary-color) 70%, var(--secondary-color) 100%);
    color: rgba(255,255,255,0.88);
    font-size: 1.04rem;
    padding: 2.5em 0 1.2em 0;
    box-shadow: 0 -2px 16px 0 rgba(12,43,78,0.08);
    margin-top: 4em;
    text-align: center;
    position: relative;
    margin-bottom: 0 !important;
}
footer .footer-title {
    font-weight: 800;
    letter-spacing: 1.2px;
    font-size: 1.18rem;
    color: #fff;
}
footer .footer-desc {
    font-size: 1.01rem;
    margin-bottom: 0.7em;
    color: #e6eaf1;
}
footer .footer-link {
    color: #fff;
    font-weight: 500;
    text-decoration: underline;
    transition: color 0.2s;
}
footer .footer-link:hover {
    color: #ffc107;
}
footer .footer-copy {
    font-size: 0.93rem;
    color: #cfd8e3;
    margin-top: 0.7em;
}
@media (max-width: 767px) {
    .hero-section h1 { font-size: 1.5rem; }
    .container { padding-left: 0.5rem; padding-right: 0.5rem; }
}

 /* Ajustes para compatibilidad visual con landing.css y estructura de la página */
        body {
            font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
            background: #f8fafc;
            color: #22304a;
        }
        .container {
            max-width: 1100px;
            margin: 0 auto;
            padding-left: 1.2rem;
            padding-right: 1.2rem;
        }
        h1, h2, h3, h4, h5, h6 {
            font-family: inherit;
        }
        .bg-light {
            background: #f8fafc !important;
        }
        .bg-dark {
            background: #0C2B4E !important;
        }
        .text-white {
            color: #fff !important;
        }
        .text-white-50 {
            color: rgba(255,255,255,0.7) !important;
        }
        .btn-primary {
            background: linear-gradient(90deg, #0C2B4E 60%, #1A3D64 100%);
            color: #fff;
            border: none;
            font-weight: 600;
            border-radius: 8px;
            transition: background 0.2s, box-shadow 0.2s;
        }
        .btn-primary:hover {
            background: linear-gradient(90deg, #1A3D64 60%, #0C2B4E 100%);
        }
        .card {
            border-radius: 14px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.07);
            background: #fff;
        }
        @media (max-width: 767px) {
            .hero-section h1 { font-size: 1.5rem; }
            .container { padding-left: 0.5rem; padding-right: 0.5rem; }
        }