/* ============================================
   ECUAVIAJE — Base / Reset / Utilities
   ============================================ */

/* === Modern Reset === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    line-height: var(--lh-normal);
    color: var(--black);
    background-color: var(--bgLight);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

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

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* === Typography === */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    color: var(--black);
}

h1 {
    font-size: var(--fs-4xl);
}

h2 {
    font-size: var(--fs-3xl);
}

h3 {
    font-size: var(--fs-2xl);
}

h4 {
    font-size: var(--fs-xl);
}

p {
    line-height: var(--lh-relaxed);
}

/* === Layout Utilities === */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--sp-md);
}

.container-sm {
    width: 100%;
    max-width: var(--container-sm);
    margin: 0 auto;
    padding: 0 var(--sp-md);
}

/* === CTA Steps Section === */
.cta-steps {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bgLight) 0%, var(--white) 100%);
    border-top: 1px solid var(--gray-lighter);
    overflow: hidden;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.cta-steps__subtitle {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--primary);
    font-size: var(--fs-xl);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--sp-sm);
}

.cta-steps__title {
    font-size: 2.8rem;
    font-weight: var(--fw-black);
    margin-bottom: var(--sp-lg);
    color: var(--black);
    line-height: var(--lh-tight);
}

.cta-steps__desc {
    color: var(--gray);
    font-size: var(--fs-lg);
    margin-bottom: var(--sp-2xl);
    line-height: var(--lh-relaxed);
}

.steps-vertical {
    position: relative;
    margin-bottom: var(--sp-2xl);
}

.steps-vertical__line {
    position: absolute;
    left: 24px;
    top: 10px;
    bottom: 10px;
    width: 0;
    border-left: 2px dashed var(--primary);
    opacity: 0.5;
    z-index: 1;
}

.step-item {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
    position: relative;
    z-index: 2;
}

.step-item__number {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-xl);
    font-weight: var(--fw-extrabold);
    flex-shrink: 0;
    outline: 8px solid var(--white);
}

.step-item__text h3 {
    font-size: var(--fs-xl);
    font-weight: var(--fw-extrabold);
    color: var(--black);
    margin-bottom: var(--sp-sm);
}

.step-item__text p {
    color: var(--gray);
    font-size: var(--fs-base);
    line-height: var(--lh-relaxed);
}

.cta-steps__btn {
    display: inline-flex;
    padding: 16px 45px;
    font-size: var(--fs-lg);
    border-radius: var(--radius-lg);
    font-weight: var(--fw-extrabold);
    box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.3);
}

.cta-steps__image-col {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blob-shape {
    position: absolute;
    width: 100%;
    aspect-ratio: 1;
    background: var(--primary);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: 0;
    opacity: 0.8;
    animation: blob-bounce 8s ease-in-out infinite;
}

.blob-shape--small-1 {
    position: absolute;
    bottom: 5%;
    right: -5%;
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50% 30% 60% 40%;
    z-index: 0;
    opacity: 0.9;
}

.blob-shape--small-2 {
    position: absolute;
    top: 0%;
    left: 0%;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 30% 60% 40% 50%;
    z-index: 0;
    opacity: 0.6;
}

.cta-steps__img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
    transform: scale(1.05);
}

@keyframes blob-bounce {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: rotate(0deg) scale(1); }
    50% { border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%; transform: rotate(3deg) scale(1.02); }
    100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: rotate(0deg) scale(1); }
}

@media (max-width: 992px) {
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .cta-steps__title {
        font-size: 2.2rem;
    }
    .cta-steps__image-col {
        margin-top: 20px;
        padding: 0 20px;
    }
}

.container--sm {
    max-width: var(--container-sm);
}

.container--lg {
    max-width: var(--container-lg);
}

/* === Flex Utilities === */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

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

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.gap-xs {
    gap: var(--sp-xs);
}

.gap-sm {
    gap: var(--sp-sm);
}

.gap-md {
    gap: var(--sp-md);
}

.gap-lg {
    gap: var(--sp-lg);
}

.gap-xl {
    gap: var(--sp-xl);
}

.gap-2xl {
    gap: var(--sp-2xl);
}

/* === Grid Utilities === */
.grid {
    display: grid;
}

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

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

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

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 640px) {

    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* === Spacing Utilities === */
.mt-sm {
    margin-top: var(--sp-sm);
}

.mt-md {
    margin-top: var(--sp-md);
}

.mt-lg {
    margin-top: var(--sp-lg);
}

.mt-xl {
    margin-top: var(--sp-xl);
}

.mt-2xl {
    margin-top: var(--sp-2xl);
}

.mt-3xl {
    margin-top: var(--sp-3xl);
}

.mb-sm {
    margin-bottom: var(--sp-sm);
}

.mb-md {
    margin-bottom: var(--sp-md);
}

.mb-lg {
    margin-bottom: var(--sp-lg);
}

.mb-xl {
    margin-bottom: var(--sp-xl);
}

.mb-2xl {
    margin-bottom: var(--sp-2xl);
}

.py-md {
    padding-top: var(--sp-md);
    padding-bottom: var(--sp-md);
}

.py-lg {
    padding-top: var(--sp-lg);
    padding-bottom: var(--sp-lg);
}

.py-xl {
    padding-top: var(--sp-xl);
    padding-bottom: var(--sp-xl);
}

.py-2xl {
    padding-top: var(--sp-2xl);
    padding-bottom: var(--sp-2xl);
}

.py-3xl {
    padding-top: var(--sp-3xl);
    padding-bottom: var(--sp-3xl);
}

.py-4xl {
    padding-top: var(--sp-4xl);
    padding-bottom: var(--sp-4xl);
}

/* === Text Utilities === */
.text-center {
    text-align: center;
}

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

.text-xs {
    font-size: var(--fs-xs);
}

.text-sm {
    font-size: var(--fs-sm);
}

.text-base {
    font-size: var(--fs-base);
}

.text-md {
    font-size: var(--fs-md);
}

.text-lg {
    font-size: var(--fs-lg);
}

.text-xl {
    font-size: var(--fs-xl);
    color: var(--primary);
}

.text-2xl {
    font-size: var(--fs-2xl);
}

.text-white {
    color: var(--white);
}

.text-gray {
    color: var(--gray);
}

.text-primary {
    color: var(--primary);
}

.font-medium {
    font-weight: var(--fw-medium);
}

.font-semibold {
    font-weight: var(--fw-semibold);
}

.font-bold {
    font-weight: var(--fw-bold);
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wide {
    letter-spacing: 0.05em;
}

/* === Button Base === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-sm);
    padding: 0.65rem 1.5rem;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    white-space: nowrap;
    cursor: pointer;
    border: none;
    line-height: 1;
}

.btn--primary {
    background-color: var(--primary);
    color: var(--black);
}

.btn--primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background: transparent;
    border: 1.5px solid var(--white);
    color: var(--white);
}

.btn--outline:hover {
    background: var(--white);
    color: var(--black);
}

.btn--dark {
    background-color: var(--black);
    color: var(--white);
}

.btn--dark:hover {
    background-color: var(--bgDark);
    transform: translateY(-1px);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn--lg {
    padding: 0.85rem 2rem;
    font-size: var(--fs-base);
    border-radius: var(--radius-lg);
}

.btn--full {
    width: 100%;
}

/* === Visibility === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* === Scrollbar === */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* === Animations === */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

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

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-slideDown {
    animation: slideDown 0.3s ease forwards;
}

/* === Selection === */
::selection {
    background-color: rgba(var(--primary-rgb), 0.3);
    color: var(--black);
}

/* === Focus Visible === */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}