@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --color-bg: #f7f9fc;
    --color-surface: #ffffff;
    --color-surface-soft: #eef3f8;
    --color-ink: #172033;
    --color-muted: #5f6f86;
    --color-subtle: #8a96a8;
    --color-primary: #0d3b66;
    --color-primary-dark: #092945;
    --color-accent: #16a085;
    --color-accent-dark: #117c69;
    --color-border: #dbe4ee;
    --shadow-sm: 0 8px 24px rgba(13, 59, 102, 0.08);
    --shadow-md: 0 18px 45px rgba(13, 59, 102, 0.14);
    --radius: 8px;
    --container: 1180px;
    --transition: 180ms ease;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--color-bg);
    color: var(--color-ink);
    font-family: 'Plus Jakarta Sans', var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--color-accent);
}

h1,
h2,
h3,
h4 {
    color: var(--color-ink);
    line-height: 1.12;
    letter-spacing: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.78rem 1.15rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 0.94rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #ffffff;
    background: var(--color-accent);
    box-shadow: 0 10px 22px rgba(22, 160, 133, 0.25);
}

.btn-primary:hover {
    color: #ffffff;
    background: var(--color-accent-dark);
}

.btn-portal {
    color: #ffffff;
    background: var(--color-primary);
    padding-inline: 1rem;
}

.btn-portal:hover {
    color: #ffffff;
    background: var(--color-primary-dark);
}

.btn-outline-white {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.08);
}

.btn-outline-white:hover {
    color: var(--color-primary-dark);
    background: #ffffff;
}

.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(219, 228, 238, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nav-container {
    width: min(var(--container), calc(100% - 2rem));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo-img {
    width: auto;
    height: 44px;
}

.nav-menu-wrapper {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 0.85rem;
    border-radius: var(--radius);
    color: var(--color-muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
    background: var(--color-surface-soft);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.75rem;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--color-primary);
}

.hero {
    position: relative;
    min-height: 690px;
    padding: 11rem 1rem 5rem;
    display: grid;
    align-items: center;
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(7, 25, 46, 0.92), rgba(7, 25, 46, 0.78) 48%, rgba(7, 25, 46, 0.42)),
        url("assets/mining_new.png") center/cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 150px;
    background: linear-gradient(180deg, rgba(247, 249, 252, 0), var(--color-bg));
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
}

.hero .section-tag {
    color: #9ce5d5;
}

.hero h1 {
    max-width: 820px;
    color: #ffffff;
    font-size: clamp(2.6rem, 5vw, 5.4rem);
    font-weight: 800;
}

.hero h1 strong {
    color: #9ce5d5;
    font-weight: 800;
}

.hero p {
    max-width: 680px;
    margin: 1.55rem 0 2.1rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.trust-strip {
    position: relative;
    z-index: 2;
    width: min(var(--container), calc(100% - 2rem));
    margin: -4rem auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.trust-item {
    padding: 1.35rem;
    border-right: 1px solid var(--color-border);
}

.trust-item:last-child {
    border-right: 0;
}

.trust-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--color-primary);
    font-size: 1rem;
}

.trust-item span {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.assurance-bar {
    background: var(--color-surface-soft);
    border-bottom: 1px solid var(--color-border);
    padding: 1.15rem 1rem;
}

.assurance-bar-inner {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    color: var(--color-primary);
    font-size: 0.88rem;
    font-weight: 800;
    text-align: center;
}

.section {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
    padding: 6.5rem 0;
}

.bg-light-section {
    width: 100%;
    max-width: none;
    padding-inline: max(1rem, calc((100% - var(--container)) / 2));
    background: var(--color-surface);
    border-block: 1px solid var(--color-border);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.section-tag {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--color-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
}

.section-desc {
    max-width: 680px;
    margin: 1rem auto 0;
    color: var(--color-muted);
    font-size: 1.08rem;
}

.services-grid,
.projects-grid,
.crew-grid {
    display: grid;
    gap: 1.25rem;
}

.services-grid {
    grid-template-columns: repeat(3, 1fr);
}

.projects-grid {
    grid-template-columns: repeat(3, 1fr);
}

.legal-card {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: center;
    padding: 2.4rem;
    border: 1px solid #fecdd3;
    border-radius: var(--radius);
    background: #fff7f8;
    box-shadow: var(--shadow-sm);
}

.legal-card h3 {
    margin-bottom: 1rem;
    color: #9f1239;
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    font-weight: 800;
}

.legal-card p {
    color: #4c0519;
}

.legal-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.25rem;
    list-style: none;
}

.legal-list li {
    position: relative;
    padding-left: 1.35rem;
    color: #4c0519;
    font-size: 0.96rem;
}

.legal-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #be123c;
}

.legal-aside {
    padding: 1.6rem;
    border-radius: var(--radius);
    background: #ffffff;
    text-align: center;
}

.legal-aside strong {
    display: block;
    margin-bottom: 0.55rem;
    color: #9f1239;
    font-size: 1.12rem;
}

.legal-aside p {
    margin-bottom: 1.3rem;
    font-size: 0.95rem;
}

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

.process-card {
    padding: 1.55rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.process-number {
    margin-bottom: 0.75rem;
    color: var(--color-accent);
    font-size: 1.35rem;
    font-weight: 800;
}

.process-card h4 {
    margin-bottom: 0.55rem;
    font-size: 1.05rem;
}

.process-card p {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.service-card,
.project-card,
.crew-card,
.contact-form-wrapper {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.service-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.service-card:hover,
.project-card:hover,
.crew-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-icon,
.contact-icon {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 1.25rem;
    border-radius: var(--radius);
    background: rgba(22, 160, 133, 0.12);
    color: var(--color-accent);
    font-size: 1.45rem;
}

.service-card h3,
.project-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.28rem;
}

.service-card p,
.project-content p,
.crew-bio-title,
.value-item-desc,
.contact-method-detail p,
.contact-method-detail a {
    color: var(--color-muted);
}

.service-list,
.crew-credentials,
.project-items,
.footer-links {
    list-style: none;
}

.service-list,
.crew-credentials {
    display: grid;
    gap: 0.62rem;
    margin-top: 1.3rem;
}

.service-list li,
.crew-credentials li {
    position: relative;
    padding-left: 1.35rem;
    color: var(--color-muted);
    font-size: 0.94rem;
}

.service-list li::before,
.crew-credentials li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-accent);
}

.values-container,
.contact-container {
    display: grid;
    grid-template-columns: 1fr 0.88fr;
    gap: 4rem;
    align-items: center;
}

.values-left h2 {
    font-size: clamp(2rem, 3.4vw, 3.15rem);
    font-weight: 800;
}

.values-left p {
    margin: 1.2rem 0 2.2rem;
    color: var(--color-muted);
    font-size: 1.08rem;
}

.values-list {
    display: grid;
    gap: 1rem;
}

.value-item {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.value-item-number {
    color: var(--color-accent);
    font-weight: 800;
}

.value-item-title {
    margin-bottom: 0.25rem;
    font-weight: 800;
}

.values-image-wrapper,
.project-img-wrapper,
.crew-photo-wrapper {
    overflow: hidden;
    border-radius: var(--radius);
}

.values-image-wrapper {
    box-shadow: var(--shadow-md);
}

.values-image-wrapper img {
    width: 100%;
    min-height: 420px;
    object-fit: cover;
}

.project-card {
    overflow: hidden;
    transition: var(--transition);
}

.project-img-wrapper {
    height: 240px;
    position: relative;
    border-radius: 0;
    background-color: #0f172a;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.project-badge {
    position: absolute;
    left: 1rem;
    top: 1rem;
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius);
    color: #ffffff;
    background: rgba(13, 59, 102, 0.9);
    font-size: 0.78rem;
    font-weight: 800;
}

.project-content,
.crew-info {
    padding: 1.6rem;
}

.project-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-items li {
    padding: 0.35rem 0.58rem;
    border-radius: var(--radius);
    color: var(--color-primary);
    background: var(--color-surface-soft);
    font-size: 0.78rem;
    font-weight: 700;
}

.crew-grid {
    grid-template-columns: repeat(2, 1fr);
}

.crew-photo-wrapper {
    height: 450px;
    border-radius: var(--radius) var(--radius) 0 0;
    background: transparent;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    padding-top: 1rem;
}

.crew-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
}

.crew-role {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--color-accent);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.crew-name {
    margin-bottom: 0.65rem;
    font-size: 1.75rem;
}

.contact-container {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
}

.contact-info-block {
    display: grid;
    gap: 1.35rem;
}

.contact-method {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1.15rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.contact-icon {
    margin: 0;
}

.contact-method-detail h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.contact-form-wrapper {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--color-primary);
    font-size: 0.86rem;
    font-weight: 800;
}

.form-control {
    width: 100%;
    min-height: 46px;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-ink);
    background: #ffffff;
    font: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
}

textarea.form-control {
    min-height: 145px;
    resize: vertical;
}

.form-control:focus {
    outline: 0;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(22, 160, 133, 0.14);
}

.footer {
    padding: 4rem 1rem 2rem;
    color: rgba(255, 255, 255, 0.72);
    background: #07192e;
}

.footer-top {
    width: min(var(--container), 100%);
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 3rem;
}

.footer .logo-img {
    filter: brightness(0) invert(1);
}

.footer-brand p {
    max-width: 430px;
    margin-top: 1rem;
}

.footer-links-title {
    margin-bottom: 1rem;
    color: #ffffff;
    font-size: 0.92rem;
}

.footer-links {
    display: grid;
    gap: 0.7rem;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    width: min(var(--container), 100%);
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.not-found {
    min-height: 72vh;
    padding: 11rem 1rem 5rem;
    display: grid;
    place-items: center;
    background:
        linear-gradient(90deg, rgba(7, 25, 46, 0.94), rgba(7, 25, 46, 0.78)),
        url("assets/copropiedad_new.jpg") center/cover no-repeat;
    color: #ffffff;
}

.not-found-content {
    width: min(760px, calc(100% - 2rem));
    text-align: center;
}

.not-found .section-tag {
    color: #9ce5d5;
}

.not-found h1 {
    color: #ffffff;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
}

.not-found p {
    max-width: 620px;
    margin: 1.2rem auto 2rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.1rem;
}

.not-found .hero-buttons {
    justify-content: center;
}

.whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 54px;
    padding: 0.78rem 1rem;
    border-radius: 999px;
    color: #ffffff;
    background: #25d366;
    box-shadow: 0 16px 32px rgba(7, 25, 46, 0.22);
    font-size: 0.94rem;
    font-weight: 800;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.whatsapp-float:hover {
    color: #ffffff;
    background: #1fb85a;
    transform: translateY(-2px);
    box-shadow: 0 20px 38px rgba(7, 25, 46, 0.28);
}

.whatsapp-float svg {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    fill: currentColor;
}

@media (max-width: 980px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu-wrapper {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        display: grid;
        gap: 1.25rem;
        padding: 1.25rem;
        background: #ffffff;
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-130%);
        opacity: 0;
        pointer-events: none;
    }

    .nav-menu-wrapper.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-menu {
        display: grid;
        gap: 0.5rem;
    }

    .nav-link,
    .btn-portal {
        width: 100%;
        justify-content: flex-start;
    }

    .services-grid,
    .projects-grid,
    .process-grid,
    .values-container,
    .contact-container,
    .footer-top {
        grid-template-columns: 1fr;
    }

    .assurance-bar-inner,
    .legal-card {
        grid-template-columns: 1fr;
    }

    .legal-aside {
        text-align: left;
    }

    .trust-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-item:nth-child(2) {
        border-right: 0;
    }

    .trust-item:nth-child(-n + 2) {
        border-bottom: 1px solid var(--color-border);
    }
}

@media (max-width: 680px) {
    .nav-container,
    .hero-content,
    .trust-strip,
    .section,
    .assurance-bar-inner {
        width: min(100% - 1.25rem, var(--container));
    }

    .hero {
        min-height: 650px;
        padding-top: 8.5rem;
        background-position: 60% center;
    }

    .hero-buttons {
        display: grid;
    }

    .not-found {
        min-height: 68vh;
        padding-top: 8.5rem;
    }

    .not-found .hero-buttons {
        display: grid;
    }

    .trust-strip,
    .crew-grid {
        grid-template-columns: 1fr;
    }

    .trust-item {
        border-right: 0;
        border-bottom: 1px solid var(--color-border);
    }

    .trust-item:last-child {
        border-bottom: 0;
    }

    .section {
        padding: 4.5rem 0;
    }

    .legal-card {
        padding: 1.35rem;
    }

    .service-card,
    .contact-form-wrapper {
        padding: 1.35rem;
    }

    .crew-photo-wrapper {
        height: 380px;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .whatsapp-float {
        right: 0.85rem;
        bottom: 0.85rem;
        min-height: 50px;
        padding: 0.75rem;
    }

    .whatsapp-float span {
        display: none;
    }
}

/* SVGs Styling */
svg.lucide {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: var(--transition);
}

.service-card:hover svg.lucide {
    transform: scale(1.1);
    color: var(--color-primary);
}

.contact-icon svg.lucide {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}
