@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

html, body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.home-page {
    --ink: #18212b;
    --muted: #66737c;
    --paper: #f5f3ef;
    --surface: #ffffff;
    --soft: #eef1ed;
    --line: #dfe8e4;
    --accent: #ea5b4d;
    --accent-dark: #c84332;
    --teal: #1e7f7b;
    --shadow: 0 18px 40px rgba(24, 33, 43, .12);
    background: var(--paper);
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    min-width: 320px;
    overflow-x: hidden;
}

.home-page *, .home-page *::before, .home-page *::after { box-sizing: border-box; }
.home-page { background: linear-gradient(180deg, #f8f6f2 0%, #f1f3ef 100%); scroll-behavior: smooth; }
.home-page a { text-decoration: none; }
.home-page header {
    align-items: center;
    background: rgba(24, 33, 43, .94);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px rgba(24, 33, 43, .18);
    display: flex;
    justify-content: space-between;
    padding: 12px clamp(20px, 6vw, 88px);
    position: sticky;
    top: 0;
    z-index: 100;
}
.home-page .logo {
    display: block;
    height: 84px;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    width: auto;
}
.home-page nav ul { align-items: center; display: flex; gap: clamp(4px, 1vw, 14px); margin: 0; }
.home-page nav ul li { margin: 0; }
.home-page nav ul li a {
    border: 1px solid transparent;
    border-radius: 999px;
    color: #f8f6f1;
    display: inline-flex;
    font-size: .83rem;
    font-weight: 600;
    gap: 7px;
    padding: 9px 14px;
    transition: background .2s ease, border-color .2s ease, transform .2s ease, color .2s ease;
}
.home-page nav ul li a:hover, .home-page nav ul li a:focus-visible {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.25);
    color: #fff;
    transform: translateY(-1px);
}
.home-page nav ul li a i { color: #f29a82; font-size: .78rem; }
.home-page section, .home-page #total-usuarios {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    margin: 0;
}
.home-page .bienvenida {
    align-items: flex-start;
    background-image: linear-gradient(90deg, rgba(24,33,43,.96), rgba(24,33,43,.68) 48%, rgba(24,33,43,.18)), url('images/Bienvenida.jpg');
    background-position: center;
    background-size: cover;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: min(700px, 84vh);
    padding: clamp(72px, 12vw, 150px) clamp(24px, 10vw, 150px);
    text-align: left;
}
.home-page .bienvenida > * { animation: home-reveal .7s ease both; }
.home-page .bienvenida > :nth-child(2) { animation-delay: .08s; }
.home-page .bienvenida > :nth-child(3) { animation-delay: .16s; }
.home-page .bienvenida > :nth-child(4) { animation-delay: .24s; }
.home-page .hero-kicker, .home-page .eyebrow {
    color: #fcca9e;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.home-page .bienvenida h2 {
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3.2rem, 7vw, 6.8rem);
    letter-spacing: -.05em;
    line-height: .94;
    margin: 18px 0 16px;
}
.home-page .bienvenida p {
    color: #f0eee9;
    font-size: clamp(1rem, 1.8vw, 1.28rem);
    margin: 0;
    max-width: 600px;
}
.home-page .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}
.home-page .hero-action {
    background: var(--accent);
    border-radius: 999px;
    box-shadow: 0 14px 30px rgba(234, 91, 77, 0.28);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    gap: 10px;
    padding: 14px 22px;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.home-page .hero-action.secondary {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.25);
    box-shadow: none;
}
.home-page .hero-action:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 20px 34px rgba(234, 91, 77, 0.32);
}
.home-page #nosotros, .home-page #contacto, .home-page #mapa, .home-page #servicio-comunidad, .home-page #servicios { padding: clamp(64px, 9vw, 116px) max(24px, 9vw); }
.home-page #nosotros {
    background: linear-gradient(120deg, rgba(255,255,255,.94), rgba(241,243,239,.72));
    display: grid;
    gap: 28px 72px;
    grid-template-columns: minmax(190px, .65fr) 1.35fr;
    text-align: left;
}
.home-page #nosotros h2 { border-left: 4px solid var(--accent); grid-row: span 3; padding-left: 22px; }
.home-page #nosotros p { color: var(--muted); font-size: 1.03rem; margin: 0; max-width: 700px; }
.home-page h2 {
    color: var(--ink);
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -.03em;
    line-height: 1.04;
    margin: 0 0 22px;
}
.home-page #total-usuarios {
    align-items: center;
    background: linear-gradient(135deg, #1a2435 0%, #1c2d3d 50%, #1a2435 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
    color: #fff;
    display: flex;
    justify-content: space-between;
    padding: 52px max(24px, 9vw);
}
.home-page #total-usuarios > div { text-align: right; }
.home-page #total-usuarios h2 {
    color: #dfe7ea;
    font-family: 'DM Sans', sans-serif;
    font-size: .82rem;
    letter-spacing: .15em;
    margin: 0;
    text-transform: uppercase;
}
.home-page .numero-usuarios {
    color: #f7b28a;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3.5rem, 8vw, 6rem);
    line-height: 1;
    margin: 0;
}
.home-page .video-slider {
    height: clamp(360px, 52vw, 640px);
    overflow: hidden;
    position: relative;
    width: 100%;
}
.home-page .slider, .home-page .slider video { height: 100%; width: 100%; }
.home-page .slider video { display: block; object-fit: cover; }
.home-page .overlay {
    align-items: flex-start;
    background: linear-gradient(90deg, rgba(24,33,43,.92), rgba(24,33,43,.18));
    color: #fff;
    justify-content: flex-end;
    padding: clamp(28px, 9vw, 120px);
    text-align: left;
    z-index: 2;
}
.home-page .overlay h2 { color: #fff; max-width: 680px; }
.home-page .overlay p { color: #f2eee8; font-size: 1.05rem; margin: 0; }
.home-page #servicios { background: var(--soft); }
.home-page .section-heading { margin: 0 auto 34px; max-width: 760px; text-align: center; }
.home-page .section-heading h2 { margin: 12px 0; }
.home-page .section-heading p, .home-page #contacto > p { color: var(--muted); font-size: 1.05rem; margin: 0 auto; max-width: 700px; }
.home-page .servicios-slider { height: clamp(330px, 48vw, 570px); margin: 0 auto; max-width: 1120px; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); }
.home-page .servicios-slider .slide { background: var(--ink); }
.home-page .servicios-slider img { height: 100%; object-fit: cover; opacity: .72; }
.home-page .servicios-slider .slide-text { background: linear-gradient(transparent, rgba(24,33,43,.94)); bottom: 0; color: #fff; padding: 110px 28px 28px; }
.home-page .servicios-slider .slide-text h3 { color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.35rem, 2.8vw, 2.1rem); margin: 0; }
.home-page #contacto {
    background: var(--surface);
    display: grid;
    gap: 8px 72px;
    grid-template-columns: .8fr 1.2fr;
    text-align: left;
}
.home-page #contacto h2, .home-page #contacto > p { grid-column: 1; }
.home-page #contacto form {
    display: grid;
    gap: 14px;
    grid-column: 2;
    grid-row: 1 / span 3;
    margin: 0;
    max-width: none;
    background: #fafaf9;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 24px;
}
.home-page #contacto input, .home-page #contacto textarea {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    font: inherit;
    padding: 15px 17px;
    width: 100%;
}
.home-page #contacto textarea { min-height: 145px; resize: vertical; }
.home-page #contacto input:focus, .home-page #contacto textarea:focus { border-color: var(--teal); outline: 2px solid rgba(30,127,123,.18); }
.home-page button, .home-page .whatsapp-button {
    background: var(--accent);
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    font: 700 .95rem 'DM Sans', sans-serif;
    padding: 14px 22px;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.home-page button:hover, .home-page .whatsapp-button:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 18px 28px rgba(234, 91, 77, 0.2);
}
.home-page #contacto button { justify-self: start; }
.home-page .whatsapp-button { align-self: end; grid-column: 2; grid-row: 4; justify-self: start; margin-top: 12px; }
.home-page #servicio-comunidad, .home-page #mapa { background: var(--paper); text-align: center; }
.home-page .galeria-slider { margin: 0 auto; max-width: 900px; width: 100%; }
.home-page .galeria-slider img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }
.home-page .galeria-slider p { color: var(--ink); font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 600; }
.home-page #mapa p { color: var(--muted); margin: 5px 0; }
.home-page #googleMap { border: 0; border-radius: 24px; height: clamp(280px, 40vw, 420px) !important; margin: 28px auto 0; max-width: 1120px; overflow: hidden; box-shadow: var(--shadow); }
.home-page #whatsapp-icon { bottom: 24px; right: 24px; z-index: 1000; }
.home-page #whatsapp-icon img { box-shadow: 0 12px 28px rgba(24,33,43,.22); width: 58px; }
.home-page .sharethis-inline-share-buttons { background: var(--surface); padding: 18px 24px; text-align: center; }
.home-page footer {
    background: linear-gradient(180deg, #18212b 0%, #101821 100%);
    margin-top: 0;
    padding: 42px 24px;
}
.home-page footer p { color: #aeb9bd; margin: 0 0 18px; }
.home-page .social-icons { display: flex; gap: 18px; justify-content: center; }
.home-page .social-icons a {
    color: #f29a82;
    font-size: 1.25rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.04);
}
.home-page .social-icons a:hover { color: #fff; background: rgba(255,255,255,.08); }

@keyframes home-reveal {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
    .home-page header { align-items: flex-start; flex-direction: column; gap: 12px; }
    .home-page .logo { height: 70px; }
    .home-page nav { width: 100%; }
    .home-page nav ul { flex-wrap: wrap; gap: 4px; }
    .home-page nav ul li a { font-size: .78rem; padding: 7px 10px; }
    .home-page .bienvenida { min-height: 560px; }
    .home-page #nosotros, .home-page #contacto { display: block; }
    .home-page #nosotros h2 { margin-bottom: 28px; }
    .home-page #nosotros p { margin-bottom: 14px; }
    .home-page #total-usuarios { align-items: flex-start; flex-direction: column; gap: 14px; }
    .home-page #total-usuarios > div { text-align: left; }
    .home-page #contacto form { margin-top: 30px; }
    .home-page .whatsapp-button { display: inline-flex; margin-top: 20px; }
    .home-page .hero-actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 900px) {
    .home-page header { align-items: flex-start; flex-direction: column; gap: 12px; }
    .home-page nav, .home-page nav ul { width: 100%; }
    .home-page nav ul { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) { .home-page *, .home-page *::before, .home-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }

/* Fallbacks for browsers without CSS Grid, CSS variables, or aspect-ratio. */
@supports not (width: clamp(1px, 2px, 3px)) {
    .home-page header { padding-left: 6vw; padding-right: 6vw; }
    .home-page .bienvenida { min-height: 560px; padding: 72px 10vw; }
    .home-page .bienvenida h2 { font-size: 6vw; }
    .home-page #nosotros, .home-page #contacto, .home-page #mapa, .home-page #servicio-comunidad, .home-page #servicios { padding: 64px 9vw; }
    .home-page h2 { font-size: 3rem; }
    .home-page .numero-usuarios { font-size: 5rem; }
    .home-page .video-slider { height: 520px; }
    .home-page .servicios-slider { height: 480px; }
    .home-page #googleMap { height: 400px !important; }
}

@supports not (display: grid) {
    .home-page { background: #f5f3ef; color: #18212b; font-family: Arial, sans-serif; }
    .home-page header { background: #18212b; }
    .home-page #nosotros, .home-page #contacto { display: block; }
    .home-page #nosotros h2, .home-page #contacto h2 { margin-bottom: 28px; }
    .home-page #nosotros p, .home-page #contacto > p { margin-bottom: 14px; }
    .home-page #contacto form { margin-top: 30px; }
    .home-page #contacto input, .home-page #contacto textarea { display: block; margin-bottom: 14px; }
    .home-page .whatsapp-button { display: inline-block; margin-top: 20px; }
    .home-page .galeria-slider img { height: 420px; }
}

@supports not (aspect-ratio: 16 / 9) {
    .home-page .galeria-slider img { height: 420px; }
}

@supports not (backdrop-filter: blur(1px)) {
    .home-page header { background: #18212b; }
}

@media (max-width: 760px) {
    .home-page header { padding: 12px 20px; }
    .home-page .bienvenida { min-height: 560px; padding: 72px 24px; }
    .home-page .bienvenida h2 { font-size: 3.2rem; }
    .home-page h2 { font-size: 2rem; }
    .home-page .numero-usuarios { font-size: 3.5rem; }
    .home-page .video-slider { height: 360px; }
    .home-page .servicios-slider { height: 330px; }
    .home-page #googleMap { height: 280px !important; }
    .home-page .galeria-slider img { height: 240px; }
}