:root {
    --green: #016927;
    --primary: #012F3F;
    --secondary: #416252;
    --emphasis: #A7FBC6;
    --gray-light: #F0F1F5;
    --gray-dark: #9D9EA1;
    --accent: #FFB400;
    --red: #EF5350;
    --light-ochre: #F5EBD7;
    --soft-brown: #E6D7BE;
    --ochre-medium: #C8AA78;
    --brown-deep: #78553C;
    --cream: #FAF5E6;
    --primary-light: #0A465E;
    --primary-dark: #00232F;
    --primary-cool: #012F50;
    --primary-warm: #14323C;
    --primary-muted: #284150;
}

body {
    background-color: #fff;
    color: var(--primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Header */
.navbar {
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 40px;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

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

/* Hero Carousel */

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

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.75));
    z-index: 1;
}

.carousel-caption {
    bottom: 20%;
    z-index: 2;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 90%;
}

.carousel-caption h5 {
    font-size: 2.5rem;
    font-weight: 800;

    animation: fadeInUp 1s ease-in-out;
}

.carousel-caption p {
    font-size: 1.5rem;
    font-weight: 400;

    animation: fadeInUp 1.3s ease-in-out;
}

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

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

.carousel-indicators {
    bottom: 10px;
}

.carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--gray-light);
    margin: 0 4px;
}

.carousel-indicators .active {
    width: 12px;
    height: 12px;
    background-color: var(--emphasis);
}

@media (max-width: 768px) {
    .carousel-inner {
        height: 100vh;
        /* ocupa todo el alto de la pantalla */
    }

    .carousel-item img {
        height: 100vh;
        object-fit: cover;
    }
}

/* Value Proposition */
.value-section {
    background: linear-gradient(to bottom, #fff, var(--gray-light));
    padding: 40px 0;
}

.value-card {
    flex: 0 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 0 5px 10px rgba(0, 0, 0, 0.05);
    padding: 24px;
    min-height: 280px;
    width: 300px;
    margin-right: 20px;
    animation: slideUp 0.6s ease-out;
    scroll-snap-align: start;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

.value-card:nth-child(2) {
    animation-delay: 0.2s;
}

.value-card:nth-child(3) {
    animation-delay: 0.4s;
}

.value-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.3);
}

.value-indicator {
    width: 40px;
    height: 4px;
    border-radius: 2px;
}

/* Services Section */
.services-section {
    background: var(--gray-light);
    padding: 50px 0;
}

.service-card {
    flex: 0 0 320px;
    /* Fixed width, no shrinking */
    margin-right: 20px;
    /* Spacing between cards */
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 5px 10px rgba(0, 0, 0, 0.05);
    animation: slideIn 0.8s ease-out;
}

.service-card:nth-child(2) {
    animation-delay: 0.15s;
}

.service-card:nth-child(3) {
    animation-delay: 0.3s;
}

.service-card img {
    height: 160px;
    object-fit: cover;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
}

@keyframes slideIn {
    from {
        transform: translateX(50px);
        opacity: 0;
    }

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

.service-card:nth-child(2) {
    animation-delay: 0.15s;
}

.service-card:nth-child(3) {
    animation-delay: 0.3s;
}

.service-card img {
    height: 160px;
    object-fit: cover;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
}

/* Process Section */
.process-section {
    background: var(--gray-light);
    padding: 30px 20px;
}

.process-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(1, 47, 63, 0.2);
    padding: 40px 20px 20px;
    margin-bottom: 50px;
}

.process-number {
    position: absolute;
    top: -30px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: var(--emphasis);
    border-radius: 20px;
    border: 1px solid rgba(1, 105, 39, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: var(--primary);
}

/* Testimonials Section */
.testimonials-section {
    background: var(--gray-light);
    padding: 32px 0;
}

.testimonial-card {
    width: 300px;
    margin: 0 8px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(1, 47, 63, 0.2);
}

.testimonial-card img {
    height: 130px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.testimonial-tag {
    background: rgba(1, 47, 63, 0.1);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: bold;
    color: var(--primary);
}

/* Footer */
.footer {
    background: var(--primary);
    color: #fff;
    padding: 32px;
    text-align: center;
}

.footer a {
    color: var(--emphasis);
}

.footer .btn-icon {
    color: var(--primary-cool);
}

.footer .btn-link {
    color: var(--emphasis);
}

/* CTA Button */
.btn-cta {
    background: var(--primary);
    color: #fff;
    border: none;
}

.btn-cta:hover {
    background: var(--primary-dark);
}

/* Scrollable Sections */
.horizontal-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 40px 24px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    justify-content: flex-start;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.horizontal-scroll:active {
    cursor: grabbing;
}

.text-label {
    display: inline-block;
    padding: 5px 10px;
    background-color: rgba(167, 251, 198, 0.3);
    border-radius: 25px;
    border: 1px solid rgba(1, 105, 39, 0.3);
    color: var(--primary);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

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