:root {
    --ink: #1a1a2e;
    --ink-soft: #2d2d44;
    --ink-muted: #6b7084;
    --ink-light: #9ca0b0;
    --surface: #f4f5f7;
    --card: #fff;
    --border: #e2e4ea;
    --border-light: #edeef2;
    --accent: #2d5be3;
    --accent-hover: #2248b8;
    --accent-light: #eef2fd;
    --success: #1a9a5c;
    --success-hover: #158a50;
    --warning: #c07a15;
    --warning-light: #fef8ec;
    --danger: #d63031;
    --teal: #0f8b8d;
    --slate: #475569;
    --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --r-sm: 6px;
    --r-md: 8px;
    --r-lg: 12px;
    --sh-sm: 0 1px 3px rgba(0, 0, 0, .04), 0 1px 2px rgba(0, 0, 0, .06);
    --sh-md: 0 4px 16px rgba(0, 0, 0, .06), 0 1px 3px rgba(0, 0, 0, .04)
}

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

body {
    font-family: var(--font);
    background: var(--surface);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column
}

.site-nav {
    background: var(--ink);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    position: sticky;
    top: 0;
    z-index: 100
}

.nav-inner {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px
}

.nav-logo {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 7px;
    letter-spacing: -.2px
}

.nav-logo svg {
    width: 18px;
    height: 18px;
    fill: var(--accent)
}

.nav-links {
    display: flex;
    gap: 22px;
    list-style: none
}

.nav-links a {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, .45);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: color .2s
}

.nav-links a:hover {
    color: #fff
}

.nav-cta {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    padding: 7px 16px;
    border-radius: var(--r-md);
    text-decoration: none;
    transition: background .2s;
    letter-spacing: .2px
}

.nav-cta:hover {
    background: var(--accent-hover)
}

.nav-phone {
    font-size: 12px;
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px
}

.nav-phone svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px
}

.hero {
    background: var(--ink);
    padding: 56px 24px 62px;
    text-align: center
}

.hero-inner {
    max-width: 640px;
    margin: 0 auto
}

.hero h1 {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.4px;
    margin-bottom: 12px;
    line-height: 1.3
}

.hero-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, .45);
    line-height: 1.65;
    max-width: 480px;
    margin: 0 auto 28px
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: background .2s, transform .1s;
    text-decoration: none;
    letter-spacing: .15px
}

.btn:active {
    transform: scale(.98)
}

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

.btn--primary:hover {
    background: var(--accent-hover)
}

.btn--outline {
    background: transparent;
    color: rgba(255, 255, 255, .65);
    border: 1.5px solid rgba(255, 255, 255, .18)
}

.btn--outline:hover {
    border-color: rgba(255, 255, 255, .4);
    color: #fff
}

.btn--full {
    width: 100%
}

.trust-bar {
    background: var(--card);
    border-bottom: 1px solid var(--border)
}

.trust-inner {
    max-width: 1060px;
    margin: 0 auto;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    text-align: center
}

.trust-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center
}

.trust-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2
}

.trust-icon--accent {
    background: var(--accent-light);
    color: var(--accent)
}

.trust-icon--success {
    background: #e8f8f0;
    color: var(--success)
}

.trust-icon--warning {
    background: var(--warning-light);
    color: var(--warning)
}

.trust-icon--teal {
    background: #e6f7f7;
    color: var(--teal)
}

.trust-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 1px
}

.trust-label {
    font-size: 11px;
    color: var(--ink-muted);
    font-weight: 500
}

.main-container {
    max-width: 1060px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 16px 48px;
    flex: 1
}

.section {
    margin-bottom: 52px
}

.section-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 5px
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.3px;
    margin-bottom: 6px
}

.section-desc {
    font-size: 13px;
    color: var(--ink-muted);
    line-height: 1.65;
    max-width: 540px;
    margin-bottom: 28px
}

.promises {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 52px
}

.promise-card {
    background: var(--card);
    border-radius: var(--r-lg);
    padding: 24px 20px;
    box-shadow: var(--sh-sm);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent)
}

.promise-card:nth-child(2) {
    border-top-color: var(--success)
}

.promise-card:nth-child(3) {
    border-top-color: var(--teal)
}

.promise-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px
}

.promise-text {
    font-size: 12.5px;
    color: var(--ink-muted);
    line-height: 1.6
}

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

.service-card {
    background: var(--card);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--sh-sm);
    border: 1px solid var(--border);
    transition: box-shadow .25s, transform .2s
}

.service-card:hover {
    box-shadow: var(--sh-md);
    transform: translateY(-2px)
}

.service-stripe {
    height: 4px
}

.service-stripe--accent {
    background: var(--accent)
}

.service-stripe--teal {
    background: var(--teal)
}

.service-stripe--slate {
    background: var(--slate)
}

.service-stripe--warning {
    background: var(--warning)
}

.service-stripe--success {
    background: var(--success)
}

.service-stripe--indigo {
    background: #4f46e5
}

.service-body {
    padding: 22px 20px 24px
}

.service-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px
}

.service-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.8;
    fill: none
}

.service-icon--accent {
    background: var(--accent-light);
    color: var(--accent)
}

.service-icon--teal {
    background: #e6f7f7;
    color: var(--teal)
}

.service-icon--slate {
    background: #f0f2f5;
    color: var(--slate)
}

.service-icon--warning {
    background: var(--warning-light);
    color: var(--warning)
}

.service-icon--success {
    background: #e8f8f0;
    color: var(--success)
}

.service-icon--indigo {
    background: #eef0fd;
    color: #4f46e5
}

.service-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px
}

.service-desc {
    font-size: 12.5px;
    color: var(--ink-muted);
    line-height: 1.6
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px
}

.case-card {
    background: var(--card);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--sh-sm);
    border: 1px solid var(--border)
}

.case-img {
    height: 160px;
    background: var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.case-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-img-placeholder {
    font-size: 11px;
    color: var(--ink-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px
}

.case-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .3px;
    z-index: 2;
}

.case-badge--rehab {
    background: var(--teal)
}

.case-badge--reforma {
    background: var(--accent)
}

.case-badge--estructura {
    background: var(--warning)
}

.case-body {
    padding: 18px 18px 20px
}

.case-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px
}

.case-meta {
    font-size: 11px;
    color: var(--ink-light);
    margin-bottom: 8px;
    display: flex;
    gap: 12px
}

.case-text {
    font-size: 12px;
    color: var(--ink-muted);
    line-height: 1.55
}

.case-tags {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap
}

.case-tag {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--surface);
    color: var(--ink-muted);
    border: 1px solid var(--border)
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px
}

.process-step {
    background: var(--card);
    border-radius: var(--r-lg);
    padding: 22px 16px 24px;
    box-shadow: var(--sh-sm);
    border: 1px solid var(--border);
    text-align: center
}

.process-step--horizontal {
    text-align: left;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.process-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    flex-shrink: 0;
}

.process-step--horizontal .process-num {
    margin: 0;
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.process-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px
}

.process-desc {
    font-size: 11px;
    color: var(--ink-muted);
    line-height: 1.5
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px
}

.testimonial-card {
    background: var(--card);
    border-radius: var(--r-lg);
    padding: 22px 20px 24px;
    box-shadow: var(--sh-sm);
    border: 1px solid var(--border)
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 13px;
    margin-bottom: 10px;
    letter-spacing: 1px
}

.testimonial-text {
    font-size: 12.5px;
    color: var(--ink-soft);
    line-height: 1.6;
    margin-bottom: 14px;
    font-style: italic
}

.testimonial-author {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink)
}

.testimonial-role {
    font-size: 11px;
    color: var(--ink-light)
}

.faq-list {
    max-width: 700px
}

.faq-item {
    border-bottom: 1px solid var(--border)
}

.faq-item:last-child {
    border-bottom: none
}

.faq-q {
    width: 100%;
    background: none;
    border: none;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    text-align: left;
    padding: 16px 32px 16px 0;
    cursor: pointer;
    position: relative;
    line-height: 1.4
}

.faq-q::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 400;
    color: var(--ink-light)
}

.faq-item.open .faq-q::after {
    content: '−'
}

.faq-a {
    font-size: 13px;
    color: var(--ink-muted);
    line-height: 1.65;
    padding: 0 0 16px;
    display: none
}

.faq-item.open .faq-a {
    display: block
}

.cta-banner {
    background: var(--success);
    border-radius: var(--r-lg);
    padding: 36px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 52px
}

.cta-content {
    flex: 1
}

.cta-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px
}

.cta-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
    line-height: 1.55;
    max-width: 460px
}

.btn-cta-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    color: var(--success);
    background: #fff;
    border-radius: var(--r-md);
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s;
    flex-shrink: 0
}

.btn-cta-white:hover {
    background: var(--surface)
}

.area-section {
    margin-bottom: 52px
}

.area-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.area-tag {
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--card);
    color: var(--ink-soft);
    border: 1px solid var(--border)
}

.area-tag--active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink)
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px
}

.contact-info {
    background: var(--ink);
    border-radius: var(--r-lg);
    padding: 32px 28px;
    color: #fff
}

.contact-info-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px
}

.contact-detail svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2
}

.contact-detail-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, .4);
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 2px
}

.contact-detail-value {
    font-size: 13px;
    color: rgba(255, 255, 255, .85);
    line-height: 1.5
}

.contact-badge {
    margin-top: 20px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, .06);
    border-radius: var(--r-md);
    border: 1px solid rgba(255, 255, 255, .08)
}

.contact-badge-text {
    font-size: 12px;
    color: rgba(255, 255, 255, .55);
    line-height: 1.5
}

.contact-badge-text strong {
    color: rgba(255, 255, 255, .85)
}

.contact-form-card {
    background: var(--card);
    border-radius: var(--r-lg);
    padding: 28px 24px;
    box-shadow: var(--sh-sm);
    border: 1px solid var(--border)
}

.form-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px
}

.form-subtitle {
    font-size: 12px;
    color: var(--ink-muted);
    margin-bottom: 20px
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.form-field--full {
    grid-column: 1/-1
}

.form-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: .3px
}

.form-required {
    color: var(--danger)
}

.form-input,
.form-textarea,
.form-select {
    padding: 10px 14px;
    font-family: var(--font);
    font-size: 13px;
    color: var(--ink);
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    width: 100%
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light)
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--ink-light)
}

.form-textarea {
    resize: vertical;
    min-height: 80px
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer
}

.form-submit {
    margin-top: 16px
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0
}

.site-footer {
    background: var(--ink);
    padding: 28px 24px;
    text-align: center
}

.footer-text {
    font-size: 12px;
    color: rgba(255, 255, 255, .3)
}

@media(max-width:900px) {
    .promises {
        grid-template-columns: 1fr
    }

    .services-grid,
    .cases-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .process-steps {
        grid-template-columns: repeat(3, 1fr)
    }

    .testimonials-grid {
        grid-template-columns: 1fr
    }

    .contact-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:600px) {
    .trust-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px
    }

    .services-grid,
    .cases-grid {
        grid-template-columns: 1fr
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr)
    }

    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 28px 20px
    }

    .hero h1 {
        font-size: 21px
    }

    .hero {
        padding: 40px 20px 46px
    }

    .form-row {
        grid-template-columns: 1fr
    }

    .nav-links,
    .nav-phone {
        display: none
    }
}

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

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

.fade-up {
    animation: fadeUp .45s ease-out both
}

.fd1 {
    animation-delay: .08s
}

.fd2 {
    animation-delay: .16s
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
    gap: 16px;
}

.carousel-slide {
    min-width: 100%;
    flex: 0 0 100%;
}

/* Default mobile single column */
.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.carousel-btn {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
}

.carousel-btn:hover {
    background: var(--surface);
}

@media(min-width: 600px) {
    .carousel-slide {
        min-width: calc(50% - 8px);
        flex: 0 0 calc(50% - 8px);
    }
}

@media(min-width: 900px) {
    .carousel-slide {
        min-width: calc(33.333% - 11px);
        flex: 0 0 calc(33.333% - 11px);
    }
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin-bottom: 5px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle span:last-child {
    margin-bottom: 0;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media(max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 52px;
        left: 0;
        right: 0;
        background: var(--ink);
        flex-direction: column;
        align-items: center;
        padding: 40px 24px;
        gap: 30px;
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 99;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        transform: translateY(0);
        display: flex !important; /* Override display: none from mobile styles */
    }

    .nav-links a {
        font-size: 16px;
        color: #fff !important;
    }
    
    .nav-right {
        display: none; /* Hide phone/cta in header on mobile to save space, or move into menu if needed */
    }
}