@media (max-width: 768px) {
        .service-area .container {
            padding-left: 10vw !important;
            padding-right: 10vw !important;
            box-sizing: border-box;
        }
    .service-area {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        padding-left: 10vw;
        padding-right: 10vw;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
        .service-area .container {
            padding-left: 7vw !important;
            padding-right: 7vw !important;
            box-sizing: border-box;

    .bento-container {
        padding-top: 120px;
    }

    .bento-card {
        padding: 24px;
    }
        margin-right: calc(-50vw + 50%);
        padding-left: 7vw;
        padding-right: 7vw;
        box-sizing: border-box;
    }
}
.stack-card-white-text .card-title {
    font-weight: 800 !important;
}
.stack-card-white-text .card-content,
.stack-card-white-text .card-label,
.stack-card-white-text .card-title,
.stack-card-white-text .card-description {
    color: #fff !important;
}
.stack-card-white-text .card-label {
    background: rgba(255,255,255,0.2);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
    color: #111827;
    opacity: 0;
    transition: opacity 0.45s ease;
}

body.page-loaded {
    opacity: 1;
}

/* Crossfade real entre páginas (navegadores con View Transitions) */
@view-transition {
    navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.5s;
    animation-timing-function: ease;
}
@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation: none;
    }
}

:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

h1, h2, h3 {
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

.hero {
    position: relative;
    height: 100dvh;
    min-height: 640px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    will-change: transform;
    transform: scale(1.12);
}

/* Ken Burns: slow zoom on the active slide's image */
.hero-slide.active .hero-background {
    animation: heroKenBurns 7s ease-out forwards;
}

@keyframes heroKenBurns {
    from { transform: scale(1.02); }
    to   { transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide.active .hero-background {
        animation: none;
        transform: scale(1.12);
    }
}

/* Underline-draw on Fraunces accent words, driven by scroll direction */
.hero-accent.underline-scroll,
.af-accent.underline-scroll {
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 0.07em;
    padding-bottom: 0.06em;
    transition: background-size 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-accent.underline-scroll.is-underlined,
.af-accent.underline-scroll.is-underlined {
    background-size: 100% 0.07em;
}
@media (prefers-reduced-motion: reduce) {
    .hero-accent.underline-scroll,
    .af-accent.underline-scroll {
        transition: none;
    }
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(8, 13, 26, 0.62) 0%,
        rgba(8, 13, 26, 0.42) 45%,
        rgba(8, 13, 26, 0.72) 100%
    );
}

.hero-container {
    position: relative;
    max-width: 1300px;
    height: 100%;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    align-items: center;
    z-index: 2;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.hero-slide[data-align="right"] .hero-container {
    justify-content: flex-end;
    padding-right: 60px;
}

.hero-slide[data-align="left"] .hero-container {
    justify-content: flex-start;
    padding-left: 60px;
}

.hero-slide[data-align="right"] .hero-content {
    text-align: right;
}

.hero-slide[data-align="left"] .hero-content {
    text-align: left;
}

.hero-content {
    max-width: 600px;
    color: white;
    opacity: 1;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: glassFadeIn 0.8s ease-out;
}

@keyframes glassFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
            padding: 60px 20px 0 20px;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        backdrop-filter: blur(20px);
    }
}

.hero-title {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -2px;
}

.hero-description {
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.carousel-indicators {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.indicator.active {
    background: white;
    width: 40px;
    border-radius: 6px;
}

.mission {
    padding: 120px 0;
    background: #ffffff;
}

.mission-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 60px;
}

.mission-content {
    display: flex;
    align-items: flex-end;
    gap: 80px;
    justify-content: space-between;
}

.mission-left {
    flex: 0 0 auto;
    align-self: flex-end;
}

.mission-right {
    flex: 1;
    text-align: left;
}

.mission-badge {
    display: inline-block;
    margin-bottom: 30px;
}

.mission-badge span {
    display: inline-block;
    padding: 12px 30px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.3s ease;
}

.mission-badge span:hover {
    border-color: #9ca3af;
    color: #374151;
}

.mission-title {
    font-size: 30px;
    font-weight: 500;
    line-height: 1.5;
    color: #111827;
    letter-spacing: -0.5px;
}

.testimonial {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.testimonial-image-wrapper {
    position: relative;
}

.testimonial-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.testimonial-image:hover {
    transform: scale(1.1);
}

.testimonial-text {
    font-size: 15px;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.6;
    max-width: 220px;
}

.about-hero {
    padding: 180px 0 120px 0;
    background: linear-gradient(150deg, #16324f 0%, #0d1b2a 100%);
    color: white;
}

.about-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 60px;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.about-description {
    font-size: 20px;
    line-height: 1.6;
    opacity: 0.9;
}

.team-section {
    padding: 120px 0;
    background: #f8fafc;
}

.team-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 60px;
    text-align: center;
}

.team-title {
    font-size: 42px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 60px;
    letter-spacing: -1px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.team-member {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-image-wrapper {
    margin-bottom: 25px;
}

.team-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    border: 4px solid #e5e7eb;
    transition: all 0.3s ease;
}

.team-member:hover .team-image {
    border-color: #2563eb;
    transform: scale(1.05);
}

.team-name {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.team-role {
    font-size: 16px;
    color: #2563eb;
    font-weight: 500;
    margin-bottom: 15px;
}

.team-description {
    font-size: 16px;
    line-height: 1.6;
    color: #6b7280;
}

/* Values Section */
.values-section {
    padding: 120px 0;
    background: white;
}

.values-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 60px;
    text-align: center;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.values-title {
    font-size: 42px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 60px;
    letter-spacing: -1px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.value-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.value-card:hover {
    transform: translateY(-5px);
    background: white;
}

.value-icon {
    font-size: 48px;
    margin-bottom: 25px;
    display: block;
}

.value-title {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 15px;
}

.value-description {
    font-size: 16px;
    line-height: 1.6;
    color: #6b7280;
}

.services-grid-section {
    padding: 120px 0;
    background: white;
    color: black;
}

.services-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 25px;
    display: block;
}

.service-title {
    font-size: 24px;
    font-weight: 600;
    color: black;
    margin-bottom: 15px;
}

.service-description {
    font-size: 16px;
    line-height: 1.6;
    color: black;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.service-features li {
    padding: 8px 0;
    font-size: 14px;
    color: black;
    border-bottom: 1px solid #e5e7eb;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li:before {
    content: "✓";
    color: #2563eb;
    font-weight: bold;
    margin-right: 10px;
}

/* Contact Section */
.contact-section {
    padding: 120px 0;
    background: white;
}

.contact-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 60px;
}

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

.contact-info {
    padding-top: 40px;
}

.contact-title {
    font-size: 42px;
    font-weight: 700;
    color: black;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.contact-description {
    font-size: 18px;
    line-height: 1.6;
    color: black;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 5px;
}

.contact-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: black;
    margin-bottom: 5px;
}

.contact-text p, .contact-text a {
    font-size: 16px;
    color: black;
    text-decoration: none;
    line-height: 1.5;
}

.contact-text a:hover {
    color: #2563eb;
}

.contact-form {
    background: #f8fafc;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid #e5e7eb;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: black;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.submit-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.map-section {
    padding: 120px 0;
    background: #f8fafc;
}

.map-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 60px;
    text-align: center;
}

.map-title {
    font-size: 42px;
    font-weight: 700;
    color: black;
    margin-bottom: 60px;
    letter-spacing: -1px;
}

.map-placeholder {
    background: linear-gradient(150deg, #16324f 0%, #0d1b2a 100%);
    border-radius: 20px;
    padding: 80px 40px;
    color: white;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-content {
    text-align: center;
}

.map-content .map-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.map-content h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
}

.map-content p {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 10px;
}

.map-content p:last-child {
    margin-bottom: 0;
}

.logo-section {
    padding: 0px;
    background: #e0e2e7;
    overflow: hidden;
}

.logo-carousel {
    overflow: hidden;
    width: 100%;
}

.logo-track {
    display: flex;
    width: max-content;
    animation: logo-scroll 90s linear infinite;
}

@keyframes logo-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}


.logo-item {
    flex-shrink: 0;
    min-width: 50px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    opacity: 1;
    transition: all 0.3s ease;
    margin: 0 30px;
    padding: 0;
}

.logo-item:hover {
    transform: scale(1.15);
}

.logo-item svg {
    width: 100%;
    height: 100%;
}

.logo-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.stacked-cards-section {
    position: relative;
    padding: 100px 0;
    background-image: url("assets/planta-maquina.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.stacked-cards-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 39, 0.82);
    z-index: 0;
    pointer-events: none;
}

.stacked-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 60px);
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: clamp(40px, 8vw, 120px);
    align-items: start;
    padding-top: 20px;
}

.section-title-sticky {
    position: sticky;
    top: 50%;
    transform: translateY(-50%);
    height: fit-content;
    padding-top: 100px;
}

.section-main-title {
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 900;
    line-height: 1.1;
    color: #ffffff;
    letter-spacing: -2px;
}

.stacked-container {
    width: 100%;
    max-width: 700px;
}

.stack-card {
    position: sticky;
    top: 120px;
    height: clamp(260px, 30vw, 320px);
    border-radius: 20px;
    padding: clamp(24px, 3vw, 35px);
    margin-bottom: 25px;
    box-shadow: 0 24px 60px rgba(4, 10, 30, 0.45);
    transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.stack-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 80px rgba(4, 10, 30, 0.55);
}

.stack-card:nth-child(1) {
    top: 120px;
}

.stack-card:nth-child(2) {
    top: 140px;
}

.stack-card:nth-child(3) {
    top: 160px;
}

.stack-card:nth-child(4) {
    top: 180px;
}

.card-content {
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-label {
    display: inline-block;
    font-size: clamp(10px, 1.2vw, 11px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    width: fit-content;
}

.card-title {
    font-size: clamp(24px, 3.2vw, 36px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.card-description {
    font-size: clamp(14px, 1.6vw, 15px);
    line-height: 1.5;
    opacity: 0.95;
    max-width: 450px;
}

@media (max-width: 900px) {
    .stacked-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 clamp(20px, 6vw, 40px);
    }

    .section-title-sticky {
        position: relative;
        top: 0;
        transform: none;
        text-align: center;
        padding-top: 0;
    }

    .stacked-container {
        max-width: 100%;
    }

    .stack-card {
        position: relative;
        top: auto;
        height: auto;
        margin-bottom: 20px;
    }

    .stack-card:nth-child(1),
    .stack-card:nth-child(2),
    .stack-card:nth-child(3),
    .stack-card:nth-child(4) {
        top: auto;
    }
}

@media (max-width: 968px) {
    .bento-container {
        padding-top: 80px;
    }
    .nav-menu {
        position: absolute;
        top: calc(100% + 16px);
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        text-align: center;
        transition: opacity 0.25s ease, transform 0.25s ease;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
        padding: 20px 0;
        border-radius: 24px;
        gap: 0;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
    }

    .nav-menu.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-menu li {
        width: 100%;
        padding: 14px 0;
    }

    .nav-link {
        font-size: 18px;
    }

    .btn-contact {
        margin-top: 16px;
        display: inline-block;
    }
}

@media (max-width: 768px) {
    .navbar {
        width: calc(100% - 40px);
        top: 20px;
    }

    .nav-container {
        padding: 12px 25px;
    }

    .hero-container {
        padding: 0 30px !important;
    }

    .hero-title {
        font-size: 38px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-label {
        font-size: 12px;
    }

    .hero-slide[data-align="right"] .hero-container,
    .hero-slide[data-align="left"] .hero-container {
        justify-content: center;
    }

    .hero-slide[data-align="right"] .hero-content,
    .hero-slide[data-align="left"] .hero-content {
        text-align: center;
    }

    .mission {
        padding: 60px 30px;
    }

    .mission-content {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

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

    .mission-title {
        font-size: 26px;
    }

    .mission-badge {
        display: block;
        text-align: center;
    }

    .testimonial {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .testimonial-text {
        text-align: center;
        max-width: 100%;
    }

    .logo-item {
        width: 25px;
        height: 25px;
    }

    .logo-track {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 24px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 15px;
    }

    .mission-title {
        font-size: 22px;
    }

    .carousel-indicators {
        bottom: 30px;
    }

    .logo-item {
        width: 20px;
        height: 20px;
    }

    .logo-track {
        gap: 15px;
    }

    .stacked-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 0 30px;
    }

    .section-title-sticky {
        position: relative;
        top: 0;
        text-align: center;
    }

    .section-main-title {
        font-size: 40px;
    }

    .stack-card {
        height: auto;
        padding: 28px 22px;
        top: auto !important;
        margin-bottom: 30px;
    }

    .card-title {
        font-size: 28px;
    }

    .card-description {
        font-size: 15px;
    }

    .card-label {
        font-size: 11px;
    }
}

@media (max-width: 768px) {

    .mission-left {
        align-self: center;
        display: flex;
        justify-content: center;
        width: 100%;
    }

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

    .testimonial-image-wrapper {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .testimonial-image {
        margin: 0 auto;
    }

    .testimonial-text {
        text-align: center;
        margin: 0 auto;
    }
}

.hero-about-section {
    padding: 2rem 2rem 1rem 2rem;
    margin-top: 100px;
}

.hero-about-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.hero-about-badge {
    display: inline-block;
    border: 2px solid #2c3e50;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #2c3e50;
}

.hero-about-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.hero-about-text {
    font-size: 1.1rem;
    color: #4b5563;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.video-about-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 5rem;
}

.video-about-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-about-main {
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s;
    max-width: 700px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.video-about-main:hover {
    transform: translateY(-8px);
}

.video-about-thumbnail {
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-about-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    display: block;
}

.video-about-play-button {
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.video-about-play-button:hover {
    transform: scale(1.1);
}

.video-about-play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid #2c3e50;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}

.video-about-info {
    padding: 1.8rem;
    text-align: center;
    background-color: white;
}

.video-about-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    letter-spacing: -0.3px;
}

.video-about-description {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    max-width: 500px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero-about-title {
        font-size: 2rem;
    }

    .video-about-thumbnail {
        height: 280px;
    }

    .video-about-play-button {
        width: 50px;
        height: 50px;
    }

    .video-about-play-button::after {
        border-left: 16px solid #2c3e50;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        margin-left: 4px;
    }

    .video-about-info {
        padding: 1.5rem 1.2rem;
    }

    .video-about-title {
        font-size: 1.3rem;
    }

    .video-about-description {
        font-size: 0.95rem;
    }
}

.mission-vision-section {
    padding: 3rem 2rem 2rem;
    background: white;
    position: relative;
    overflow: hidden;   
}

.mission-vision-container {
    max-width: 1120px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.about-section-heading {
    margin: 0 auto 4rem;
    max-width: 820px;
    text-align: center;
}

.about-section-heading span {
    color: #2563eb;
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.about-section-heading h2 {
    color: #2c3e50;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.about-intro-card {
    grid-column: span 2;
    background: rgba(230, 235, 240, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    gap: 4rem;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.about-intro-card:hover {
    transform: scale(1.03) !important;
}

.intro-highlight {
    flex: 0 0 320px;
    border-right: 1px solid rgba(44, 62, 80, 0.1);
    padding-right: 2rem;
}

.intro-highlight h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 1.2rem;
    letter-spacing: -0.5px;
}

.intro-highlight p {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.5;
}

.intro-details {
    flex: 1;
}

.intro-details p {
    font-size: 1.05rem;
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 1.2rem;
    text-align: justify;
}

.intro-details p:last-child {
    margin-bottom: 0;
}

.years-text.reveal {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) !important;
}

.years-text.reveal.active {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) !important;
}

.years-text {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10rem;
    font-weight: 850;
    color: rgba(44, 62, 80, 0.07);
    z-index: 1;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.years-text span {
    display: inline-block;
    animation: snake-wave 2s linear infinite;
}

.years-text span:nth-child(1) { animation-delay: 0s; }
.years-text span:nth-child(2) { animation-delay: 0.1s; }
.years-text span:nth-child(3) { animation-delay: 0.2s; }
.years-text span:nth-child(4) { animation-delay: 0.3s; }
.years-text span:nth-child(5) { animation-delay: 0.4s; }
.years-text span:nth-child(6) { animation-delay: 0.5s; }
.years-text span:nth-child(7) { animation-delay: 0.6s; }
.years-text span:nth-child(8) { animation-delay: 0.7s; }

@keyframes snake-wave {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-15px);
    }
    50% {
        transform: translateY(10px);
    }
    75% {
        transform: translateY(-8px);
    }
}

.values-section {
    padding: 2.5rem 0;
    background: white;
}

.values-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.values-text {
    font-size: 6rem;
    font-weight: 900;
    color: #2c3e50;
    letter-spacing: -2px;
    margin: 0 0 2rem 0;
    text-align: center;
}

.scrolling-values {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    padding: 30px 0;
}


.scrolling-text {
    display: flex;
    align-items: center;
    gap: 6rem;
    white-space: nowrap;
    width: max-content;
    animation: scroll-left 120s linear infinite;
}

.scrolling-text .word {
    display: inline-block;
}

.scrolling-text .word span {
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: -1px;
}

.scrolling-text span:nth-child(1) { animation-delay: 0s; }
.scrolling-text span:nth-child(2) { animation-delay: 0.05s; }
.scrolling-text span:nth-child(3) { animation-delay: 0.1s; }
.scrolling-text span:nth-child(4) { animation-delay: 0.15s; }
.scrolling-text span:nth-child(5) { animation-delay: 0.2s; }
.scrolling-text span:nth-child(6) { animation-delay: 0.25s; }
.scrolling-text span:nth-child(7) { animation-delay: 0.3s; }
.scrolling-text span:nth-child(8) { animation-delay: 0.35s; }
.scrolling-text span:nth-child(9) { animation-delay: 0.4s; }
.scrolling-text span:nth-child(10) { animation-delay: 0.45s; }
.scrolling-text span:nth-child(11) { animation-delay: 0.5s; }
.scrolling-text span:nth-child(12) { animation-delay: 0.55s; }
.scrolling-text span:nth-child(13) { animation-delay: 0.6s; }
.scrolling-text span:nth-child(14) { animation-delay: 0.65s; }
.scrolling-text span:nth-child(15) { animation-delay: 0.7s; }

.scrolling-text .diamond {
    display: none;
}

/* Efecto "dock": el valor enfocado crece y el resto se encoge para hacerle espacio */
.scrolling-text .word,
.scrolling-text .diamond {
    transform-origin: center;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.45s ease, opacity 0.45s ease;
    will-change: transform;
}

/* Al pasar el cursor por el tren, todo se encoge levemente... */
.scrolling-text:hover .word {
    transform: scale(0.88);
    opacity: 0.55;
}

.scrolling-text:hover .diamond {
    transform: scale(0.82);
    opacity: 0.5;
}

/* ...menos el valor que se está enfocando, que crece y resalta */
.scrolling-text .word:hover {
    transform: scale(1.4);
    opacity: 1;
}

.scrolling-text .word:hover span {
    color: #2563eb;
}

@media (prefers-reduced-motion: reduce) {
    .scrolling-text .word,
    .scrolling-text .diamond {
        transition: color 0.3s ease;
    }
    .scrolling-text:hover .word,
    .scrolling-text:hover .diamond,
    .scrolling-text .word:hover {
        transform: none;
        opacity: 1;
    }
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.first-text-about,
.second-text-about {
    border-radius: 16px;
    padding: 1.5rem 2.5rem;
    background: rgba(240, 240, 240, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}


.first-text-about:hover,
.second-text-about:hover {
    transform: translateY(-5px);
}


.first-text-about p {
    color: #374151;
    line-height: 1.7;
    font-size: 1.25rem;
    margin: 0;
    text-align: justify;
}

.second-text-about p {
    color: #374151;
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
    text-align: justify;
}

.card-subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.about-card {
    border-radius: 16px;
    color: #3a4744;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 220px;
    padding: 2rem 2.5rem;
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.about-card:hover {
    transform: scale(1.05) !important;
}

.about-card span {
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.about-card h3 {
    color: #1d2826;
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.15;
    margin: 0 0 1rem;
}

.about-card p {
    color: #3a4744;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.65;
    margin: 0;
}

.about-card.mission-about {
    background-color: #eef3fb;
    background-image: radial-gradient(rgba(37, 99, 235, 0.12) 1.5px, transparent 1.5px);
    background-position: 0 0;
    background-size: 22px 22px;
    border: 1px solid rgba(31, 95, 91, 0.14);
    box-shadow: 0 18px 44px -30px rgba(20, 40, 40, 0.5);
}
.about-card.mission-about span { color: #2563eb; }

.about-card.vision-about {
    background-color: #eef1f6;
    background-image: radial-gradient(rgba(22, 50, 79, 0.14) 1.5px, transparent 1.5px);
    background-position: 0 0;
    background-size: 22px 22px;
    border: 1px solid rgba(232, 85, 43, 0.14);
    box-shadow: 0 18px 44px -30px rgba(20, 40, 40, 0.5);
}
.about-card.vision-about span { color: #16324f; }

.vision-about .flip-card-front {
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 2px, transparent 2px), linear-gradient(135deg, #fa709a 0%, #fbd026 100%);
    background-size: 20px 20px, 100% 100%;
    background-position: 0 0, 0 0;
}

.flip-card-back {
    transform: rotateX(180deg);
}

.mission-about .flip-card-back {
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 2px, transparent 2px), linear-gradient(135deg, #2563eb 0%, #2c3e50 100%);
    background-size: 20px 20px, 100% 100%;
    background-position: 0 0, 0 0;
}

.vision-about .flip-card-back {
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 2px, transparent 2px), linear-gradient(135deg, #fa709a 0%, #fbd026 100%);
    background-size: 20px 20px, 100% 100%;
    background-position: 0 0, 0 0;
}

.flip-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.flip-card p {
    color: white;
    line-height: 1.7;
    font-size: 1.15rem;
    font-weight: bold;
    margin: 0;
}

@media (max-width: 768px) {
    .mission-vision-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas:
            "first"
            "second"
            "mission"
            "vision";
        gap: 1.5rem;
    }


    .about-section-heading {
        text-align: left;
    }

    .about-section-heading h2,
    .about-cta-container h2 {
        font-size: 2rem;
    }

    .years-text {
        font-size: 4rem;
        opacity: 0.06;
        top: 40px;
    }

    .video-about-section {
        padding: 0 1rem 3rem;
    }

    .values-section {
        padding: 1.5rem 0;
    }

    .values-text {
        font-size: 4rem;
        margin-bottom: 1.5rem;
    }

    .scrolling-values {
        height: 150px;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        padding: 20px 0;
    }

    .scrolling-text .word span {
        font-size: 1.8rem;
    }

    .scrolling-text .diamond {
        font-size: 1.5rem;
        margin: 0 0.5rem;
    }

    .mission-vision-section {
        padding: 2.5rem 1rem 1rem;
    }


    .flip-card h3 {
        font-size: 1.3rem;
    }

    .about-intro-card {
        grid-column: span 1;
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
    }

    .intro-highlight {
        flex: none;
        border-right: none;
        border-bottom: 1px solid rgba(44, 62, 80, 0.1);
        padding-right: 0;
        padding-bottom: 1.5rem;
    }

    .intro-highlight h3 {
        font-size: 1.5rem;
    }

    .intro-highlight p {
        font-size: 1.15rem;
    }

    .about-card {
        min-height: 180px;
    }

    .background-text {
        font-size: 2.5rem;
        top: 12%;
        left: 50%;
    }

    .flip-card p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

.service-area {
    padding: 120px 0 80px;
    background-color: #f8fafc;
    scroll-margin-top: 140px;
    position: relative;
    border-top: 1px solid rgba(44, 62, 80, 0.12);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-area-title {
    position: absolute;
    top: 0;
    right: calc(50% - 600px);
    font-size: clamp(36px, 6vw, 96px);
    font-weight: 900;
    color: #2c3e50;
    letter-spacing: -0.03em;
    line-height: 1;
    margin: 0;
    padding-top: 40px;
    user-select: none;
    pointer-events: none;
    z-index: 1;
    will-change: transform;
}

@keyframes service-title-scroll {
    from { transform: translateX(9%); }
    to   { transform: translateX(-5%); }
}

@supports (animation-timeline: view()) {
    .service-area-title {
        animation: service-title-scroll linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 55%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-area-title { animation: none; transform: none; }
}

.service-list {
    display: flex;
    flex-direction: column;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #e5e7eb;
    padding: 40px 0;
    position: relative;
    cursor: default;
    transition: padding 0.4s ease;
}

.service-item:hover, 
.service-item.lightbox-open-item {
    padding: 60px 0;
}

.service-item-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-number {
    font-size: 14px;
    font-weight: 500;
    color: #666666;
    transition: color 0.3s ease;
}

.service-title {
    font-size: 48px;
    font-weight: 600;
    color: black;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.2;
}

.service-info {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 1s ease, opacity 1s ease, margin-top 1s ease;
}

.service-item:hover .service-info,
.service-item.lightbox-open-item .service-info {
    max-height: 300px;
    opacity: 1;
    margin-top: 20px;
}

.service-tag-wrap {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.service-tag {
    padding: 8px 16px;
    background-color: #f8fafc;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    border: 1px solid #e5e7eb;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    cursor: default;
}

.service-tag:hover {
    background-color: #0d1b2a;
    color: #ffffff;
    border-color: #0d1b2a;
}

.service-summary {
    font-size: 16px;
    line-height: 1.6;
    color: #666666;
    max-width: 500px;
}

.service-coll-wrap {
    display: flex;
    gap: 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 1s ease, opacity 1s ease;
}

.service-item:hover .service-coll-wrap,
.service-item.lightbox-open-item .service-coll-wrap {
    max-height: 400px;
    opacity: 1;
}

.service-thumb-wrap {
    width: 180px;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
}

.service-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-thumb-wrap:hover .service-thumb {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .service-item {
        flex-direction: column;
        gap: 20px;
        cursor: pointer;
    }

    .service-item:hover {
        padding: 40px 0;
    }

    .service-title {
        font-size: 32px;
    }

    .service-coll-wrap {
        width: 100%;
    }

    .service-thumb-wrap {
        width: 100%;
        height: 200px;
    }

    .service-item:hover .service-info,
    .service-item:hover .service-coll-wrap {
        max-height: 0;
        opacity: 0;
        margin-top: 0;
    }

    .service-item.is-open .service-info {
        max-height: 300px;
        opacity: 1;
        margin-top: 20px;
    }

    .service-item.is-open .service-coll-wrap {
        max-height: 400px;
        opacity: 1;
        flex-direction: column;
    }
}

.bento-section {
    padding: 60px 0 50px;
    scroll-margin-top: 140px;
    position: relative;
}

.bento-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 24px 60px 0 60px;
    position: relative;
}

.section-title {
    font-size: clamp(40px, 8vw, 120px);
    font-weight: 900;
    color: #2c3e50;
    letter-spacing: -0.03em;
    position: absolute;
    top: -55px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 0;
    user-select: none;
    pointer-events: none;
    opacity: 1;
    text-shadow: none;
    animation: section-title-float 4s ease-in-out infinite;
    will-change: transform;
}

@media (max-width: 1024px) {
    .service-area-title {
        right: 30px;
        top: 10px;
    }
}

@media (max-width: 768px) {
    .service-area-title {
        position: relative;
        right: auto;
        top: auto;
        text-align: right;
        margin: 0 0 12px;
        padding-top: 0;
    }
}

@media (max-width: 480px) {
    .service-area-title {
        font-size: clamp(28px, 10vw, 56px);
    }
}

@keyframes section-title-float {
    0%, 100% {
        transform: translateX(-50%) translateY(0) skewX(0deg);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) translateY(-6px) skewX(-0.5deg);
        opacity: 0.95;
    }
}

.bento-section {
    padding: 60px 0 50px;
    scroll-margin-top: 140px;
    position: relative;
}

.bento-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 60px 0 60px;
    position: relative;
}

.services-hero {
    align-items: center;
    display: grid;
    gap: clamp(28px, 5vw, 56px);
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    margin-bottom: 28px;
    position: relative;
    z-index: 2;
}

.services-hero-copy {
    align-self: center;
    margin: 0;
    max-width: 720px;
    position: relative;
    text-align: left;
}

.services-kicker {
    color: #2563eb;
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.services-hero-copy h2 {
    color: #2c3e50;
    font-size: clamp(30px, 3.6vw, 48px);
    font-weight: 850;
    line-height: 1.12;
    margin: 0;
    max-width: 740px;
}

.services-lead {
    color: #4b5563;
    font-size: 17px;
    line-height: 1.65;
    margin: 16px 0 0;
    max-width: 660px;
}

.services-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-start;
    margin-top: 24px;
}

.services-hero-media {
    border-radius: 18px;
    box-shadow: none;
    min-height: 460px;
    overflow: hidden;
    position: relative;
}

.services-hero-media img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.services-hero-media::after {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.56));
    content: "";
    inset: 0;
    position: absolute;
}

.services-hero-note {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    bottom: 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    left: 18px;
    max-width: calc(100% - 36px);
    padding: 16px 18px;
    position: absolute;
    z-index: 1;
}

.services-hero-note span {
    color: #2563eb;
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.services-hero-note p {
    color: #1f2937;
    font-size: 15px;
    line-height: 1.45;
    margin: 0;
}

.services-primary-link,
.services-secondary-link {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 15px;
    font-weight: 700;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    text-decoration: none;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.services-primary-link {
    background: #1a1a1a;
    color: #ffffff;
}

.services-primary-link:hover {
    background: #2563eb;
}

.services-secondary-link {
    border: 1px solid rgba(44, 62, 80, 0.22);
    color: #2c3e50;
}

.services-secondary-link:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.section-title {
    font-size: clamp(40px, 8vw, 120px);
    font-weight: 900;
    color: #2c3e50;
    letter-spacing: -0.03em;
    position: absolute;
    top: -48px;
    left: 56px;
    transform: none;
    white-space: nowrap;
    z-index: 0;
    user-select: none;
    pointer-events: none;
    opacity: 0.08;
    text-shadow: none;
    animation: section-title-float 4s ease-in-out infinite;
    will-change: transform;
}

@media (max-width: 1024px) {
    .service-area-title {
        right: 30px;
        top: 10px;
    }
}

@media (max-width: 768px) {
    .service-area-title {
        position: relative;
        right: auto;
        top: auto;
        text-align: right;
        margin: 0 0 12px;
        padding-top: 0;
    }
}

@media (max-width: 480px) {
    .service-area-title {
        font-size: clamp(28px, 10vw, 56px);
    }
}

@keyframes section-title-float {
    0%, 100% {
        transform: translateY(0) skewX(0deg);
        opacity: 0.08;
    }
    50% {
        transform: translateY(-6px) skewX(-0.5deg);
        opacity: 0.1;
    }
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 295px);
    gap: 20px;
    position: relative;
    z-index: 2;
}

.bento-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bento-card.bento-image-card {
    padding: 0;
}

.bento-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.services-image-caption {
    background: rgba(15, 23, 42, 0.78);
    border-radius: 10px;
    bottom: 14px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    left: 14px;
    line-height: 1.35;
    max-width: calc(100% - 28px);
    padding: 10px 12px;
    position: absolute;
    z-index: 3;
    pointer-events: none;
}

.services-card-eyebrow {
    color: #2563eb;
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.services-list {
    color: #4b5563;
    display: grid;
    font-size: 15px;
    gap: 10px;
    line-height: 1.6;
    list-style: none;
    margin: 0;
    padding: 0;
}

.services-list li {
    align-items: flex-start;
    display: flex;
}

.services-list li::before {
    background: #2563eb;
    border-radius: 999px;
    content: "";
    flex: 0 0 auto;
    height: 7px;
    margin: 9px 10px 0 0;
    width: 7px;
}

.bento-card:hover {
    transform: translateY(-2px);
}

.card-content {
    position: relative;
}

.bento-card .card-content {
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-start;
}

.card-title {
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-description {
    font-size: 16px;
    color: #666666;
    line-height: 1.6;
}

.card-insights,
.card-overview,
.card-teamwork {
    background-color: #f8fafc;
    border-color: #e2e8f0;
}

.card-insights {
    grid-column: 1 / 4;
    grid-row: 1 / 2;
}

.card-overview {
    grid-column: 4 / 7;
    grid-row: 1 / 2;
}

.card-teamwork {
    grid-column: 7 / 13;
    grid-row: 1 / 2;
    justify-content: flex-start !important;
}

.card-teamwork .card-title {
    font-size: 28px;
}

.card-teamwork .card-description {
    line-height: 1.75;
    text-align: left;
}

.card-efficiency {
    grid-column: 1 / 7;
    grid-row: 2 / 3;
    justify-content: flex-start !important;
}

.card-efficiency .card-title {
    font-size: 28px;
}

.card-efficiency .card-description {
    line-height: 1.75;
    text-align: left;
}

.card-connectivity {
    grid-column: 7 / 10;
    grid-row: 2 / 3;
}

.card-protection {
    grid-column: 10 / 13;
    grid-row: 2 / 3;
}

.card-insights,
.card-protection {
    padding: 20px 22px;
}

.card-insights .card-title,
.card-protection .card-title {
    font-size: 19px;
    line-height: 1.25;
    margin-bottom: 8px;
}

.card-insights .services-card-eyebrow,
.card-protection .services-card-eyebrow {
    margin-bottom: 6px;
}

.card-insights .services-list,
.card-protection .services-list {
    font-size: 13.5px;
    line-height: 1.45;
    gap: 7px;
}

.card-insights .services-list li::before,
.card-protection .services-list li::before {
    margin: 6px 8px 0 0;
    width: 6px;
    height: 6px;
}

@media (max-width: 1200px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .card-insights,
    .card-overview,
    .card-teamwork,
    .card-efficiency,
    .card-connectivity,
    .card-protection {
        grid-column: auto;
        grid-row: auto;
    }

    .bento-image-card {
        min-height: 295px;
    }
}

@media (max-width: 1024px) {
    .bento-container {
        padding: 80px 50px 0 50px;
    }

    .services-hero {
        grid-template-columns: 1fr;
    }

    .services-hero-media {
        min-height: 320px;
    }
}

@media (max-width: 768px) {
    .bento-container {
        padding: 36px 20px 0;
    }

    .services-hero-copy {
        margin-bottom: 28px;
        text-align: left;
    }

    .services-lead {
        font-size: 16px;
    }

    .services-actions {
        flex-direction: column;
    }

    .services-primary-link,
    .services-secondary-link {
        width: 100%;
    }

    .section-title {
        font-size: 40px;
        top: -8px;
        left: 20px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bento-image-card {
        min-height: 240px;
    }

    .bento-card {
        padding: 24px;
    }

    .card-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .bento-container {
        padding: 56px 20px 0 20px;
    }

    .services-hero-copy h2 {
        font-size: 30px;
    }

    .services-hero-media {
        min-height: 260px;
    }

    .bento-card {
        padding: 20px;
    }

    .card-title {
        font-size: 20px;
    }
}

body.page-loaded {
    opacity: 1;
}

html {
    scroll-behavior: smooth;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-100 { transition-delay: 0.1s; }
.reveal-delay-200 { transition-delay: 0.2s; }
.reveal-delay-300 { transition-delay: 0.3s; }

.scrolling-values.reveal,
.values-text.reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.years-text.reveal {
    opacity: 1 !important;
    transform: translate(-50%, -50%) !important;
}

.scrolling-text.reveal {
    opacity: 1 !important;
}

.service-area-2 {
    padding: 120px 0;
    background-color: #ffffff;
}

.service-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.service-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
    align-items: end;
}

.service-header-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-subtitle {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #888;
}

.service-main-title {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.service-header-right {
    display: flex;
    align-items: end;
}

.service-intro-text {
    font-size: 18px;
    line-height: 1.7;
    color: #666;
    max-width: 500px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background-color: #fafafa;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    background-color: #ffffff;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card-inner {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    position: relative;
    z-index: 2;
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 12px;
    color: #1a1a1a;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background-color: #1a1a1a;
    color: #ffffff;
    transform: scale(1.05);
}

.service-card-title {
    font-size: 24px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.3;
    margin-top: 8px;
}

.service-card-description {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    flex-grow: 1;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    margin-top: auto;
    transition: gap 0.3s ease;
    position: relative;
}

.service-card-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #1a1a1a;
    transition: width 0.3s ease;
}

.service-card:hover .service-card-link {
    gap: 12px;
}

.service-card:hover .service-card-link::after {
    width: calc(100% - 28px);
}

.service-card-link svg {
    transition: transform 0.3s ease;
}

.service-card:hover .service-card-link svg {
    transform: translateX(4px);
}

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

    .service-header {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .service-area-2 {
        padding: 80px 0;
    }

    .service-container {
        padding: 0 24px;
    }

    .service-header {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 60px;
    }

    .service-main-title {
        font-size: 36px;
    }

    .service-intro-text {
        font-size: 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card-inner {
        padding: 32px;
    }

    .service-card-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .service-card-inner {
        padding: 24px;
    }

    .service-icon {
        width: 56px;
        height: 56px;
    }

    .service-icon svg {
        width: 40px;
        height: 40px;
    }
}

.about-cta-section {
    background: #f8fafc;
    border-top: 1px solid rgba(44, 62, 80, 0.10);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.about-cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%),
        rgba(37, 99, 235, 0.16), rgba(22, 50, 79, 0.08) 40%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.about-cta-section.spotlight-on::before {
    opacity: 1;
}

.about-cta-container {
    margin: 0 auto;
    max-width: 860px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.about-cta-container span {
    color: #2563eb;
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.about-cta-container h2 {
    color: #2c3e50;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
}

.about-cta-container p {
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 1.2rem auto 0;
    max-width: 680px;
}

.about-cta-container h2 {
    font-size: 2rem;
}

.about-cta-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.about-primary-link,
.about-secondary-link {
    width: auto;
    min-width: 200px;
}

@media (max-width: 580px) {
    .about-cta-actions {
        flex-direction: column;
        align-items: center;
    }
    .about-primary-link,
    .about-secondary-link {
        width: 100%;
        max-width: 320px;
    }
}

.about-primary-link,
.about-secondary-link {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 700;
    justify-content: center;
    min-height: 48px;
    padding: 0 1.5rem;
    text-decoration: none;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.about-primary-link {
    background: #1a1a1a;
    color: #ffffff;
}

.about-primary-link:hover {
    background: #2563eb;
}

.about-secondary-link {
    border: 1px solid rgba(44, 62, 80, 0.22);
    color: #2c3e50;
}

.about-secondary-link:hover {
    border-color: #2563eb;
    color: #2563eb;
}
