:root {
    --bg: #f4f1ed;
    --surface: #ffffff;
    --surface-soft: #f8f4ef;
    --ink-900: #1f1612;
    --ink-700: #4f3f36;
    --ink-500: #6f5e53;
    --brand-900: #4a160d;
    --brand-700: #7a2718;
    --brand-500: #b34a2b;
    --line: #decfc2;
    --radius-xl: 20px;
    --radius-lg: 14px;
    --shadow-soft: 0 12px 30px rgba(35, 22, 18, 0.08);
    --shadow-strong: 0 18px 45px rgba(35, 22, 18, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--ink-900);
    background: radial-gradient(circle at 10% 0%, #fff, var(--bg) 42%);
    line-height: 1.6;
}

h1,
h2,
h3,
.navbar-brand,
.nav-link,
.section-title,
.hero-eyebrow {
    font-family: 'Montserrat', sans-serif;
}

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

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius-lg);
}

.section-title {
    margin: 0 0 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.17em;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--brand-700);
}

.section-heading {
    margin: 0 0 1rem;
    font-size: clamp(1.9rem, 3.3vw, 2.7rem);
    line-height: 1.18;
    font-weight: 700;
    color: var(--brand-900);
}

.section-subtitle {
    margin-left: auto;
    margin-right: auto;
    max-width: 680px;
    color: var(--ink-500);
}

.navbar {
    background: rgba(244, 241, 237, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.navbar-brand img {
    height: 68px !important;
}

.navbar-brand span {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--brand-900);
}

.navbar .nav-link {
    color: var(--ink-700);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
}

.navbar .nav-link.active,
.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--brand-900);
    background: rgba(122, 39, 24, 0.14);
}

.navbar-toggler {
    border-color: #cdb8a8;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.18rem rgba(122, 39, 24, 0.2);
}

.hero {
    padding: 8.2rem 0 5.2rem;
    color: #fff;
    background: linear-gradient(120deg, rgba(22, 13, 10, 0.9), rgba(74, 22, 13, 0.72)),
        url('../images/slider_img3.jpg') center/cover no-repeat;
}

.hero-content {
    max-width: 760px;
}

.hero-eyebrow {
    display: inline-block;
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero-title {
    margin: 1.3rem 0 1rem;
    font-size: clamp(2.15rem, 5.2vw, 4rem);
    line-height: 1.08;
    font-weight: 700;
}

.hero-description {
    margin-bottom: 1.7rem;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.03rem;
}

.hero-cta .btn {
    border-radius: 999px;
    padding: 0.86rem 1.5rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.hero-cta .btn-warning {
    background: linear-gradient(135deg, #ffd6c8, #ffffff);
    border: none;
    color: var(--brand-900) !important;
}

.hero-cta .btn-outline-light {
    border-width: 1.6px;
}

.hero-meta {
    margin-top: 1.9rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.hero-meta-item {
    padding: 0.95rem;
    border-radius: var(--radius-lg);
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.26);
}

.hero-meta-item span {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.82);
}

.hero-meta-item strong {
    font-size: 0.93rem;
}

#empresa,
#servicios,
#proceso,
#portfolio,
#contacto {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.about-card,
.service-card,
.process-card,
.contact-option {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
}

.about-card {
    padding: 2.2rem;
    box-shadow: var(--shadow-soft);
}

.about-card .icon-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--brand-700);
    background: rgba(122, 39, 24, 0.1);
    margin-bottom: 1rem;
}

.values-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.values-list li {
    color: var(--ink-700);
    line-height: 1.5;
}

.values-list i {
    color: var(--brand-700);
    margin-right: 0.5rem;
}

#servicios {
    background: var(--surface-soft);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.service-card {
    padding: 1.55rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
    border-color: #b88b75;
}

.service-card .service-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--brand-700);
    background: rgba(122, 39, 24, 0.1);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    color: var(--brand-900);
}

.service-card p {
    margin: 0;
    color: var(--ink-500);
    font-size: 0.95rem;
}

#proceso {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.process-card {
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.process-card span {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 0.8rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    background: var(--brand-700);
}

.process-card h3 {
    font-size: 1.05rem;
    color: var(--brand-900);
    margin-bottom: 0.55rem;
}

.process-card p {
    margin: 0;
    color: var(--ink-500);
    font-size: 0.93rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
    gap: 1rem;
}


.portfolio-slide-grid {
    --columns: 1;
    display: grid;
    grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
    gap: 1rem;
    padding: 0.2rem;
}

#portfolioCarousel .carousel-control-prev,
#portfolioCarousel .carousel-control-next {
    width: 7%;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.portfolio-item img {
    width: 100%;
    min-height: 250px;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 1rem;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(14, 9, 7, 0.9));
}

.portfolio-overlay span {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: rgba(255, 255, 255, 0.78);
}

.portfolio-overlay h4 {
    margin: 0.35rem 0 0;
    font-size: 1rem;
}

.contact-cta {
    padding: 2.4rem;
    border-radius: var(--radius-xl);
    color: #fff;
    background: linear-gradient(125deg, #21110c, #4a160d);
    box-shadow: var(--shadow-strong);
}

.contact-cta h3 {
    margin-bottom: 0.8rem;
    font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.contact-options {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
}

.contact-option {
    padding: 1.1rem;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.24);
}

.contact-option i {
    color: #ffd5c5;
    margin-bottom: 0.65rem;
}

.contact-option span {
    display: block;
    font-size: 0.69rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: rgba(255, 255, 255, 0.74);
}

.contact-option strong {
    display: block;
    margin-top: 0.2rem;
}

footer {
    background: #140c09;
    color: rgba(255, 255, 255, 0.84);
}

.footer-brand {
    font-size: 1.06rem;
    font-weight: 700;
}

.footer-meta {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.7);
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.12);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.22);
}

.whatsapp-floating {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.55rem;
    color: #fff;
    background: linear-gradient(135deg, #1fcc64, #14ad51);
    box-shadow: 0 10px 26px rgba(22, 160, 81, 0.45);
    z-index: 1040;
}

@media (max-width: 991px) {
    .navbar .navbar-collapse {
        margin-top: 0.8rem;
        padding: 0.55rem;
        border-radius: var(--radius-lg);
        background: #fff;
        border: 1px solid var(--line);
    }

    .hero {
        padding-top: 7.3rem;
    }

    .hero-meta,
    .process-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    #portfolioCarousel .carousel-control-prev,
    #portfolioCarousel .carousel-control-next {
        width: 12%;
    }

    .hero-title {
        font-size: clamp(1.95rem, 8vw, 2.75rem);
    }

    .hero-description {
        font-size: 0.98rem;
    }

    .hero-cta {
        display: grid;
        gap: 0.7rem;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .about-card,
    .contact-cta {
        padding: 1.7rem;
    }
}
