@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

:root {
    --mc-orange: #ff6a00;
    --mc-dark: #2e3237;
    --mc-mid: #7a7d80;
    --mc-lite: #949494 --num-gray: #8b8b8b;
    --desc-gray: #5f5f5f;
}

* {
    box-sizing: border-box
}

body {
    font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #ffffff;
    font-family: 'Poppins', sans-serif;
    margin: 10;
    padding-left: 10%;
    padding-right: 10%;
    max-width: 2560px;
}

.hero {
    width: 100%;
    background: url('header-image.png') no-repeat center center;
    background-size: cover;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar-nav {
    margin-left: auto;
}

.btn-outline-secondary {
    color: #ff5a00;
    border-color: #ff5a00;
    background-color: #f0f0f0;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    color: #fff;
    background-color: #333;
    border-color: #333;
}

.card-custom {
    position: relative;
    width: 250px;
    height: 300px;
    border-radius: 20px;
    background-repeat: no-repeat;
    background-position: center top;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    margin-bottom: 30px;
    /* Add initial state for animation */
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    will-change: transform, opacity;
}

.card-custom:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 5;
}

.card-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background-color: #ff5a00;
    border-top-right-radius: 40px;
}

.card-custom.is-visible {
    opacity: 1;
    transform: none;
    animation: card-bounce-in 0.8s cubic-bezier(0.22, 1.13, 0.36, 1) both;
    animation-delay: var(--card-stagger, 200ms);
}

@keyframes card-bounce-in {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }

    60% {
        opacity: 1;
        transform: translateY(-6px) scale(1.02);
    }

    80% {
        transform: translateY(3px) scale(0.998);
    }

    100% {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .card-custom {
        opacity: 1;
        transform: none;
        animation: none !important;
    }
}

.arc-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 60px;
    margin-bottom: 60px;
}

.arc-wrapper path {
    stroke-linecap: round;
    stroke-dasharray: 0 1000;
    /* start small */
    stroke-dashoffset: 0;
    transition: stroke-dasharray 1s ease-out;
}

.arc1 {
    transition-delay: 0s;
}

.arc2 {
    transition-delay: 0.1s;
}

.arc3 {
    transition-delay: 0.2s;
}

.arc4 {
    transition-delay: 0.3s;
}

.arc5 {
    transition-delay: 0.4s;
}

.bc-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: sans-serif;
}

.bc-slanted-boxes {
    display: flex;
    gap: 4px;
}

.bc-box {
    width: 10px;
    height: 16px;
    transform: skewX(-20deg);
    background-color: #ff5a00;
    opacity: 1;
}

.bc-box.bc-light {
    opacity: 0.3;
}

.bc-box.bc-mid {
    opacity: 0.6;
}

.bc-box.bc-solid {
    opacity: 1;
}

.bc-line {
    width: 30px;
    height: 3px;
    background-color: #ff5a00;
    border-radius: 2px;
}

.bc-title-text {
    font-weight: bold;
    color: #ff5a00;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.ic-mv-container {
    max-width: 600px;
    margin: 40px auto;
    font-family: 'Poppins', sans-serif;
    color: #222;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.ic-mv-block {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.ic-mv-icon {
    min-width: 48px;
    min-height: 48px;
    border: 2px solid #ff5a00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #000;
}

.ic-mv-content {
    flex: 1;
}

.ic-mv-title {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px;
    margin: 0 0 10px;
}

.ic-mv-text {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}



.mc-history {
    position: relative;
    overflow: hidden;
    color: #fff;
}

.mc-history::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('bg-history.jpg') center/cover no-repeat;
    filter: contrast(1) brightness(0.95);
}

.mc-history::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 35%, rgba(0, 0, 0, .1) 100%);
    pointer-events: none;
}

.mc-history-inner {
    position: relative;
    z-index: 2;
}

.mc-mini-label {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--mc-orange);
    justify-content: center;
    opacity: .95;
}

.mc-slanted {
    display: flex;
    gap: .25rem;
}

.mc-slanted i {
    display: block;
    width: 12px;
    height: 14px;
    background: var(--mc-orange);
    transform: skewX(-20deg);
    opacity: .3;
    border-radius: 2px;
}

.mc-slanted i:nth-child(2) {
    opacity: .6
}

.mc-slanted i:nth-child(3) {
    opacity: 1
}

.mc-mini-dash {
    width: 52px;
    height: 4px;
    background: var(--mc-orange);
    border-radius: 2px;
}

.mc-title {
    color: #111;
    font-weight: 800;
    text-align: center;
    font-size: clamp(28px, 4vw, 46px);
}

.mc-timeline {
    margin-top: 1rem;
    margin-bottom: 2.5rem;
}

.mc-card {
    position: relative;
    border-radius: 10px;
    box-shadow: 0 12px 18px rgba(0, 0, 0, .15);
    padding: 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0rem;
    min-height: 280px;
}

.mc-card h3 {
    font-size: clamp(26px, 2vw, 32px);
    font-weight: 700;
    margin: 0
}

.mc-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 1rem 0 .25rem
}

.mc-card .mc-rule {
    height: 3px;
    width: 32px;
    background: #fff;
    opacity: .9;
    border-radius: 2px;
    margin: .35rem 0 1rem
}


.mc-timeline>div:nth-child(2),
.mc-timeline>div:nth-child(4) {
    margin-top: 120px;
    /* adjust as needed */
}

.mc-card p {
    margin: 0;
    color: #f2f2f2;
}

.mc-card:hover {
    transform: scale(1.1);
    transition: transform 1s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 5;
}

/* colors */
.mc-card-orange {
    background: var(--mc-orange);
}

.mc-card-dark {
    background: var(--mc-dark);
}

.mc-card-mid {
    background: var(--mc-mid);
}

.mc-card-lite {
    background: var(--mc-lite);
}

.mc-card {
    opacity: 0;
    transform: translateY(40px) scale(.96);
    will-change: transform, opacity;
}

.mc-card.is-in {
    opacity: 1;
    transform: none;
    animation: mc-bounce-in 0.8s cubic-bezier(.22, 1.13, .36, 1) both;
    animation-delay: var(--mc-stagger, 0ms);
}

/* Bounce animation */
@keyframes mc-bounce-in {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(.96);
    }

    60% {
        opacity: 1;
        transform: translateY(-6px) scale(1.02);
    }

    80% {
        transform: translateY(3px) scale(.998);
    }

    100% {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mc-card {
        opacity: 1;
        transform: none;
        animation: none !important;
    }
}

.mc-history {
    overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
    .mc-card {
        opacity: 1;
        transform: none;
        animation: none !important;
    }
}

@media (max-width:992px) {
    body {
        max-width: 992px;
    }

    .mc-h-1 {
        min-height: 470px
    }

    .mc-h-2 {
        min-height: 430px
    }

    .mc-h-3 {
        min-height: 480px
    }

    .mc-h-4 {
        min-height: 450px
    }

    .hide-on-small {
        display: none !important;
    }

    .cf-section {
        background-image: none !important;
        background-color: #ffffff;
    }

    .mc-history {
        background-image: none !important;
        background-color: #ffffff;
    }


    .section {
        background-image: none !important;
        background-color: #ffffff;
    }

    .contact-wrap {
        grid-template-columns: 1fr;
        gap: 28px
    }

    .right {
        align-items: center;
        text-align: center
    }

    .elegant-quote {
        font-size: 1rem;
        padding-left: 0rem;
        padding-right: 0rem;
        margin: 0rem;
    }
}


/* extra white strip at very bottom (overlay) */
.mc-bottom-mask {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 72px;
    background: linear-gradient(to top, #fff 60%, transparent);
    z-index: 1;
}

.contact-wrap {
    max-width: 1050px;
    margin: 24px auto;
    padding: 12px 20px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 36px;
    align-items: center;
}

/* ===== Left column ===== */
.left-lead h4 {
    margin: 0 0 8px;
    font-weight: 600;
    font-size: 20px;
}

.left-lead .strong {
    font-weight: 700;
}

.item {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 16px;
    margin-top: 28px;
    align-items: flex-start;
}

.circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid orangered;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font: 600 1rem/1.1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    text-align: center;
    box-sizing: border-box;
    margin: 24px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
}

.circle-full-orange {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: orangered;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
}

.circle-full-gray {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: gray;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
}

.info h5 {
    margin: 0 0 8px;
    font-weight: 700;
    font-size: 16px;
}

.info p {
    margin: 0;
    line-height: 1.6;
    font-size: 14px
}

.info b {
    font-weight: 700
}

/* ===== Right column ===== */
.right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.big-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 12px solid orangered;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
    margin-bottom: 8px;
}

.title {
    margin: 0;
    line-height: 1.05;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
}

.title .accent {
    color: var(--orange);
}

.sub {
    margin-top: 10px;
    font-size: 16px;
}

.sub .bold {
    font-weight: 700;
    color: #222
}

.sub .muted {
    color: var(--muted);
    font-weight: 500
}

/* ===== Responsive ===== */

.circle-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
}

.outer-circle {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inner-circle {
    width: 44px;
    height: 44px;
    background: orange;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.corner-square-outer {
    position: absolute;
    width: 35px;
    height: 35px;
    background: white;
    bottom: 0;
    left: 0;
}

.corner-square-inner {
    position: absolute;
    width: 22px;
    height: 22px;
    background: orange;
    bottom: 13px;
    left: 13px;
}

/* Orange background blocks (behind all) */
.oblock {
    position: absolute;
    background: orangered;
    z-index: 0;
    border-radius: 4px;
}

.oblock.top {
    width: 360px;
    height: 220px;
    top: 60px;
    right: 0;
}

.oblock.bottom {
    width: 280px;
    height: 160px;
    bottom: 40px;
    right: 120px;
}

.arc-right {
    position: absolute;
    display: flex;
    left: -80px;
    top: 0;
    width: 200px;
    height: 480px;
    border: 10px solid lightgray;
    border-radius: 60%;
    background: transparent;
    clip-path: inset(10% 0 0 50%);
    z-index: -1;
}



.arc-right {
    position: absolute;
    display: flex;
    left: -80px;
    top: 0;
    width: 200px;
    height: 480px;
    border: 10px solid lightgray;
    border-radius: 60%;
    background: transparent;
    clip-path: inset(10% 0 0 50%);
    z-index: -1;
}

@property --end {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@property --cap-x {
    syntax: '<length>';
    initial-value: 0px;
    inherits: false;
}

@property --cap-y {
    syntax: '<length>';
    initial-value: 0px;
    inherits: false;
}

.cf-arcs {
    position: relative;
    width: 500px;
    height: 500px;
}

/* Generic arc ring */
.cf-arc {
    position: absolute;
    border-radius: 50%;
    inset: 0;
    mask: radial-gradient(farthest-side, transparent calc(100% - 40px), #000 calc(100% - 40px));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 40px), #000 calc(100% - 40px));
    --end: 0deg;
    transition: --end 300ms ease-out;
}

.cf-arc::after {
    opacity: 0;
    transition: opacity 100ms ease-out 1ms;
}



/* Arc 1: 20% */
.cf-arc1 {
    --target: 90deg;
    --cap-x-end: 75px;
    --cap-y-end: 0px;
    background: conic-gradient(orangered 0 var(--end), transparent var(--end));
    inset: 160px;
    position: absolute;
    --target: 90deg;
}

.cf-arc1 {
    /* target 25% = 90deg */
    --target: 90deg;
    background: conic-gradient(orangered 0 var(--end), transparent var(--end));
}

.cf-arc1::before,
.cf-arc1::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: orangered;
}

.cf-arc1::before {
    transform: translate(75px, 0px);
    /* transform: translate(var(--cap-x), var(--cap-y)); */
    /* transition: --cap-x 300ms ease-out, --cap-y 300ms ease-out; */
}

.cf-arc1::after {
    transform: translate(140px, 75px);
}

/* Arc 2: 50% */
.cf-arc2 {
    --target: 180deg;
    --cap-x-end: 110px;
    --cap-y-end: 220px;
    background: conic-gradient(gray 0 var(--end), transparent var(--end));
    inset: 120px;
    --target: 180deg;
}

.cf-arc2::before,
.cf-arc2::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: gray;
    z-index: 1;
}

.cf-arc2::before {
    transform: translate(110px, 220px);
    /* transform: translate(var(--cap-x), var(--cap-y)); */
    /* transition: --cap-x 300ms ease-out, --cap-y 300ms ease-out; */
}

.cf-arc2::after {
    transform: translate(110px, 0px);
}

/* Arc 3: 75% */
.cf-arc3 {
    --target: 270deg;
    --cap-x-end: 0px;
    --cap-y-end: 155px;
    background: conic-gradient(orangered 0 var(--end), transparent var(--end));
    inset: 80px;
    --target: 270deg;
}

.cf-arc3::before,
.cf-arc3::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: orangered;
    z-index: 1;
}

.cf-arc3::before {
    /* transform: translate(var(--cap-x), var(--cap-y)); */
    transform: translate(0px, 155px);
    /* transition: --cap-x 300ms ease-out, --cap-y 300ms ease-out; */
}

.cf-arc3::after {
    transform: translate(150px, 0px);
}



/* Arc 4: 90% */
.cf-arc4 {
    --target: 324deg;
    --cap-x-end: 74px;
    --cap-y-end: 39px;
    background: conic-gradient(gray 0 var(--end), transparent var(--end));
    inset: 40px;
    --target: 324deg;
}

.cf-arc4::before,
.cf-arc4::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: gray;
    z-index: 1;
}

.cf-arc4::before {
    transform: translate(74px, 39px);
    /* transform: translate(var(--cap-x), var(--cap-y)); */
}

.cf-arc4::after {
    transform: translate(190px, 0px);
    /* transform: translate(var(--cap-x), var(--cap-y)); */
    /* transition: --cap-x 300ms ease-out, --cap-y 300ms ease-out; */
}

/* Arc 5: 80% */
.cf-arc5 {
    --target: 288deg;
    --cap-x-end: 13px;
    --cap-y-end: 155px;
    background: conic-gradient(orangered 0 288deg, transparent 288deg);
    inset: 0px;
    --target: 288deg;
}

.cf-arc5::before,
.cf-arc5::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: orangered;
    z-index: 1;
}

.cf-arc5::before {
    transform: translate(13px, 155px);
    /* transform: translate(var(--cap-x), var(--cap-y)); */
    /* transition: --cap-x 300ms ease-out, --cap-y 300ms ease-out; */
}

.cf-arc5::after {
    transform: translate(230px, 0px);
}

.cf-arcs.is-drawing .cf-arc {
    --end: var(--target);
    --cap-x: var(--cap-x-end);
    --cap-y: var(--cap-y-end);
}

.cf-arcs.is-drawing .cf-arc::after {
    opacity: 1;
}

.cf-arc1 {
    transition-delay: 0ms;
}

.cf-arc2 {
    transition-delay: 60ms;
}

.cf-arc3 {
    transition-delay: 120ms;
}

.cf-arc4 {
    transition-delay: 180ms;
}

.cf-arc5 {
    transition-delay: 240ms;
}

/* keep cap fade-in aligned with each ring if you like */
/* .cf-arc1::after {
     transition-delay: 100ms;
 }

 .cf-arc2::after {
     transition-delay: 220ms;
 }
 */

.cf-section {
    position: relative;
    overflow: hidden;
    color: #fff;
    margin: 10px 10px 10px 10px;
}


.cf-section::before {
    content: "";
    position: absolute;
    inset: 0;
    filter: contrast(1) brightness(0.95);
}

.cf-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 35%, rgba(0, 0, 0, .1) 100%);
    pointer-events: none;
}

.cf-section-inner {
    position: relative;
    z-index: 2;
}

.cf-title {
    color: #111;
    font-weight: 800;
    text-align: center;
    font-size: clamp(28px, 4vw, 46px);
}

.cf-text {
    color: #111;
    /* font-weight: 800;
     text-align: center; */
    /* font-size: clamp(28px, 4vw, 46px); */
}

.item-num {
    color: gray;
    font-weight: 600;
    letter-spacing: .02em;
    margin-bottom: .35rem;
}

.item-title {
    font-weight: 800;
    font-size: clamp(18px, 1.2vw, 34px);
    margin-bottom: .7rem;
}

.item-desc {
    color: );
    font-size: clamp(14px, 1vw, 28px);
    line-height: 1.35;
    max-width: 32ch;
}


.qs-title {
    text-align: center;
    font-weight: 800;
    font-size: clamp(28px, 2vw, 64px);
    margin-bottom: 1rem;
}

.qs-intro {
    color: #6d6d6d;
    font-size: clamp(16px, 1.1vw, 24px);
    max-width: 1200px;
    margin: 0 auto 2rem;
    line-height: 1.1;
}

.qs-list ol {
    margin: 0;
    padding-left: 2.2ch;
}

.qs-list li {
    color: var(--desc-gray);
    font-size: clamp(18px, 1.2vw, 32px);
    line-height: 1.1;
    margin: 1.5rem 0;
}

.qs-list li::marker {
    color: var(--num-gray);
    font-weight: 600;
    font-size: .9em;
}

.contacto-bg {
    background-image: url('./img/contacto.png');
    background-size: cover;
    background-position: right;
    background-repeat: no-repeat;
    padding: 80px 20px;
    z-index: 1;
}

.elegant-quote {
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.6;
    color: #555;
    border-left: 5px solid orangered;
    border-right: 5px solid orangered;
    padding-left: 5rem;
    padding-right: 5rem;
    margin: 2rem 2rem 1rem 2rem;
    background: lightgray;
    border-radius: 6px;
}


.elegant-quote p {
    margin: 0;
}

.elegant-quote .blockquote-footer {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: black;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    /* distance from bottom */
    right: 10px;
    /* distance from right edge */
    width: 50px;
    height: 50px;
    background-color: orangered;
    color: white;
    font-size: 24px;
    text-align: center;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    text-decoration: none;

    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #cc3700;
}

.back-to-top i {
    font-size: 22px;
    line-height: 50px;
    /* centers the icon vertically */
}

.site-footer {
    background: lightgray;
    color: black;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-top: 2px solid orangered;
}

.site-footer strong {
    color: orangered;
}

.site-footer i {
    margin: 0 4px;
}