:root {
    --bg: #f6f4ef;
    --surface: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --primary: #2f4a3f;
    --primary-2: #466457;
    --accent: #b79a63;
    --shadow: 0 18px 40px rgba(31, 41, 55, 0.08);
    --radius: 22px;
    --max: 1120px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(calc(100% - 32px), var(--max));
    margin: 0 auto;
}

.topbar {
    background: var(--primary);
    color: #fff;
    font-size: 0.95rem;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    flex-wrap: wrap;
}

header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(246, 244, 239, 0.88);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    gap: 20px;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand strong {
    font-size: 1.1rem;
    color: var(--primary);
    letter-spacing: 0.02em;
}

.brand span {
    color: var(--muted);
    font-size: 0.9rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--muted);
    font-size: 0.96rem;
}

.nav-links a:not(.btn) {
    position: relative;
    transition: color 0.2s ease;
}

.nav-links a:not(.btn)::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: width 0.25s ease;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    border: 0;
    background: var(--primary);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.2rem;
    cursor: pointer;
}

.btn,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 600;
}

.btn {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 22px rgba(31, 59, 87, 0.18);
    transform: translateY(0);
    transition: all 0.25s ease;
}

.btn:hover {
    background: var(--primary-2);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 34px rgba(31, 59, 87, 0.28);
}

.btn-outline {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--primary);
    transition: all 0.22s ease;
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(31, 59, 87, 0.04);
    transform: translateY(-1px);
}

.btn:active,
.btn-outline:active {
    transform: translateY(0) scale(0.97);
}

.hero {
    padding: 10px 0 46px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: stretch;
}

.hero-card,
.info-card,
.branch-card,
.service-card,
.contact-card,
.hero-image-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(229, 231, 235, 0.75);
}

.hero-card {
    position: relative;
    overflow: hidden;
    padding: 44px;
    background: linear-gradient(180deg,
            #2f3e37 0%,
            #2a3832 100%);
    color: white;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.02);
}

.hero-card>* {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin-bottom: 18px;
    font-size: 0.92rem;
}

h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.06;
    margin-bottom: 18px;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.04rem;
    max-width: 56ch;
    color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-actions .btn {
    background: #fff;
    color: var(--primary);
}

.hero-actions .btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
}

.hero-side {
    display: grid;
    gap: 20px;
}

.hero-image-card {
    overflow: hidden;
    min-height: 220px;
    animation: fadeUp 0.9s ease both;
    animation-delay: 0.12s;
}

.hero-image-card img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.info-card {
    padding: 28px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: fadeUp 0.9s ease both;
}

.hero-side .info-card:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-side .info-card:nth-child(3) {
    animation-delay: 0.28s;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 42px rgba(31, 41, 55, 0.1);
}

.info-card h3,
.section-title h2,
.contact-card h3,
.branch-card h3,
.service-card h3 {
    color: var(--primary);
}

.info-card h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.info-card p {
    color: var(--muted);
    font-size: 0.98rem;
}

section {
    padding: 28px 0 70px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.section-title span {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}

.section-title h2,
.branch-card h3,
.contact-card h3,
.service-card h3 {
    letter-spacing: -0.02em;
}

.section-title h2 {
    font-size: clamp(1.7rem, 2.2vw, 2.5rem);
    margin-top: 6px;
    font-family: Georgia, "Times New Roman", serif;
}

.section-title p {
    max-width: 62ch;
    color: var(--muted);
}

.services-grid,
.branches-grid,
.contact-grid {
    display: grid;
    gap: 22px;
}

.services-grid {
    grid-template-columns: repeat(3, 1fr);
}

.service-card {
    padding: 28px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    backdrop-filter: blur(6px);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 42px rgba(31, 41, 55, 0.1);
}

.service-card p {
    color: var(--muted);
    margin-top: 10px;
}

.branches-grid {
    grid-template-columns: repeat(2, 1fr);
}

.branch-card {
    padding: 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    backdrop-filter: blur(6px);
}

.branch-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(31, 41, 55, 0.12);
}

.branch-card .btn-outline:hover {
    transform: translateY(-2px);
}

.branch-card h3 {
    margin-top: 6px;
    margin-bottom: 12px;
    font-size: 1.85rem;
    line-height: 1.15;
}

.branch-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    margin-bottom: 18px;
}

.branch-card .label {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(200, 169, 107, 0.14);
    color: #7f6231;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.branch-card p,
.branch-card li,
.contact-card p {
    color: var(--muted);
}

.branch-list {
    list-style: none;
    margin: 16px 0 22px;
    display: grid;
    gap: 10px;
}

.branch-list li strong {
    color: var(--text);
}

.contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
}

.contact-card {
    padding: 34px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    backdrop-filter: blur(6px);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 42px rgba(31, 41, 55, 0.1);
}

.contact-card h3 {
    font-size: 1.45rem;
    margin-bottom: 10px;
}

.contact-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.mini-note {
    margin-top: 16px;
    font-size: 0.92rem;
    color: var(--muted);
}

.map-wrap {
    margin: 18px 0 22px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(31, 59, 87, 0.08);
    box-shadow: 0 10px 24px rgba(31, 41, 55, 0.06);
    background: #fff;
}

.map-wrap iframe {
    width: 100%;
    height: 240px;
    border: 0;
    display: block;
    filter: grayscale(0.08) contrast(1.02);
}

footer {
    padding: 28px 0 42px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.95rem;
}

.footer-wrap {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.floating-whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 60;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: #25d366;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.floating-whatsapp:hover {
    transform: translateY(-3px) scale(1.05);
    background: #22c55e;
    box-shadow: 0 18px 34px rgba(37, 211, 102, 0.36);
}

.floating-whatsapp svg {
    width: 32px;
    height: 32px;
    display: block;
    transform: translate(1px, 1px);
}

.floating-whatsapp::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.45);
    animation: whatsappPulse 2.2s ease-out infinite;
    pointer-events: none;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.45);
        opacity: 0;
    }
    100% {
        transform: scale(1.45);
        opacity: 0;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {

    .hero-grid,
    .contact-grid,
    .services-grid,
    .branches-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        min-height: auto;
    }
}

@media (max-width: 760px) {
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        position: absolute;
        top: 82px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        background: #ffffff;
        padding: 18px;
        border-radius: 18px;
        box-shadow: var(--shadow);
        border: 1px solid var(--line);
    }

    .nav-links.active {
        display: flex;
    }

    nav {
        padding: 14px 0;
        position: relative;
    }

    .hero {
        padding-top: 36px;
    }

    .hero-card,
    .contact-card,
    .branch-card,
    .service-card,
    .info-card {
        padding: 24px;
    }

    .hero-actions,
    .contact-actions {
        flex-direction: column;
    }

    .hero-actions a,
    .contact-actions a,
    .nav-links a {
        width: 100%;
    }
}

#contacto {
    padding: 28px 0 70px;
}

.contact-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    padding: 42px;
    border-radius: 26px;
    background: #2f3e37;
    color: #fff;
    box-shadow: 0 20px 50px rgba(31, 59, 87, 0.18);
}

.contact-banner-copy {
    max-width: 720px;
}

.contact-label {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.contact-banner h2 {
    margin: 0 0 12px;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #fff;
}

.contact-banner p {
    margin: 0;
    max-width: 46ch;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.02rem;
}

.contact-banner-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    min-width: max-content;
}

.contact-banner .btn {
    background: #fff;
    color: var(--primary);
}

.contact-banner .btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.contact-banner .btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 860px) {
    .contact-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px;
    }

    .contact-banner-actions {
        min-width: 0;
        width: 100%;
    }

    .contact-banner-actions a {
        flex: 1;
    }
}

@media (max-width: 640px) {
    .contact-banner-actions {
        flex-direction: column;
    }

    .contact-banner-actions a {
        width: 100%;
    }
}

.important-card {
    background: linear-gradient(180deg, rgba(47, 74, 63, 0.08), rgba(255, 255, 255, 0.92));
    border: 1px solid rgba(47, 74, 63, 0.14);
}

.important-card h3 {
    font-size: 1.2rem;
}

.contact-main .btn {
    background: #ffffff;
    color: #2f3e37;
}

.contact-main .btn:hover {
    background: #eaeaea;
}

.contact-main .btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.contact-main .btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
}

.contact-main .btn {
    font-weight: 600;
    border-radius: 999px;
}

.wsp-tooltip {
    position: fixed;
    right: 98px;
    bottom: 34px;
    z-index: 61;
    max-width: 260px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #ffffff;
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(31, 41, 55, 0.14);

    display: flex;
    align-items: center;
    gap: 12px;

    opacity: 0;
    transform: translateY(12px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.wsp-tooltip.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.wsp-tooltip::after {
    content: "";
    position: absolute;
    right: -8px;
    bottom: 22px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transform: rotate(-45deg);
}

.wsp-tooltip span {
    font-size: 0.95rem;
    line-height: 1.4;
}

.wsp-tooltip button {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}

.wsp-tooltip button:hover {
    color: var(--text);
}

@media (max-width: 760px) {
    .wsp-tooltip {
        right: 86px;
        bottom: 24px;
        max-width: 220px;
        padding: 12px 14px;
    }
}