        body {
            box-sizing: border-box;
        }

        @import url('https://fonts.adobe.com/fonts/acumin');

        :root {
            --color-primary: #191919;
            --color-secondary: #6C6A64;
            --color-tertiary: #BFBBB0;
            --color-quaternary: #DCDAD2;
            --color-light: #F9F9F4;
        }

        body {
            font-family: 'acumin-pro', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background-color: var(--color-light);
        }

        /*nuevas modificaciones*/
        .fs-3 {
            font-size: calc(1.1rem + .6vw) !important;
        }

        .fs-5 {
            font-size: 1.2rem !important;
        }

        .fs-4 {
            font-size: calc(1.1rem + .3vw) !important;
        }

        .fs-4-texto {
            color: #191919 !important;
        }

        .card .p-3 {
            padding: 0.5rem !important;
        }

        .form-select {
            font-size: 1rem;
        }

        .label {
            font-size: 0.8rem !important;
        }

        .servicios {
            background-color: #DCDAD2;
            background-repeat: no-repeat;
            background-position: center center;
            background-size: cover;
        }

        .bg-gradient {
            background-image: linear-gradient(180deg, #bbbfb066, #191919eb) !important;
        }

        .btn-check:checked+.btn,
        .btn.active,
        .btn.show,
        .btn:first-child:active,
        :not(.btn-check)+.btn:active {
            color: var(--bs-btn-active-color);
            background-color: #6c6a64;
            border-color: #6c6a64;
        }


        .display-5 {
            font-size: calc(1.6rem + 2.1vw);
        }


        #nosotros {
            background-image: url('../img/fondo\ blanco.jpg');
            background-position: center;
            background-repeat: no-repeat;
            background-size: cover;
        }

        .btn:disabled {
            border-color: white;
            color: white;
            background-color: #191919;
        }

        #trayectoria {
            background-image: url(../img/fondo\ beige.jpg);
            background-position: center;
            background-repeat: no-repeat;
            background-size: cover;
        }

        .logo-hero {
            max-width: 600px;
        }

        .text-white-50 p a{
            color:#ffffff80!important;
        }

        /* Hero Gradient Styles */
        .hero-gradient {
            height: 100vh;
            position: relative;
            display: flex;
            align-items: center;
            background: linear-gradient(-45deg,
                    #191919,
                    #6c6a64,
                    #bfbbb0,
                    #dcdad2,
                    #f9f9f4,
                    #191919);
            background-size: 400% 400%;
            animation: gradientShift 15s ease infinite;
        }

        @keyframes gradientShift {
            0% {
                background-position: 0% 50%;
            }

            50% {
                background-position: 100% 50%;
            }

            100% {
                background-position: 0% 50%;
            }
        }

        /* Hero content styles */
        .hero-content {
            position: relative;
            z-index: 10;
            animation: fadeInUp 1.5s ease-out;
        }

        .hero-content h1 {
            text-shadow:
                2px 2px 8px rgba(0, 0, 0, 0.4),
                4px 4px 16px rgba(0, 0, 0, 0.2);
            color: #ffffff !important;
        }

        .hero-content .lead {
            text-shadow:
                1px 1px 4px rgba(0, 0, 0, 0.3),
                2px 2px 8px rgba(0, 0, 0, 0.1);
            color: rgba(255, 255, 255, 0.95) !important;
        }



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

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

        /* 3D Interactive Elements */
        .card-3d {
            transform-style: preserve-3d;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            cursor: pointer;
        }

        .card-3d:hover {
            transform: translateY(-10px) rotateX(5deg) rotateY(5deg) scale(1.02);
            box-shadow: 0 20px 40px rgba(25, 25, 25, 0.15);
        }

        .card-3d .card-body {
            transform: translateZ(20px);
        }

        .card-3d .bg-custom-quaternary {
            transform: translateZ(30px);
            transition: transform 0.3s ease;
        }

        .card-3d:hover .bg-custom-quaternary {
            transform: translateZ(40px) rotateY(10deg);
        }

        /* Floating Animation for 3D Elements */
        @keyframes float3D {

            0%,
            100% {
                transform: translateY(0px) rotateX(0deg) rotateY(0deg);
            }

            25% {
                transform: translateY(-10px) rotateX(2deg) rotateY(1deg);
            }

            50% {
                transform: translateY(-5px) rotateX(-1deg) rotateY(-2deg);
            }

            75% {
                transform: translateY(-15px) rotateX(1deg) rotateY(1deg);
            }
        }

        .floating-3d {
            animation: float3D 6s ease-in-out infinite;
        }


        /* Immersive Button Effects */
        .btn-immersive {
            position: relative;
            transform-style: preserve-3d;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            overflow: hidden;
        }

        .btn-immersive::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s;
            z-index: 1;
        }

        .btn-immersive:hover::before {
            left: 100%;
        }

        .btn-immersive:hover {
            transform: translateY(-3px) translateZ(10px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        }

        .btn-immersive:active {
            transform: translateY(-1px) translateZ(5px);
        }

        /* 3D Tilt Effect for Interactive Elements */
        .tilt-3d {
            transform-style: preserve-3d;
            transition: transform 0.1s ease-out;
        }

        /* Glassmorphism Effect */
        .glass-effect {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        }

        /* 3D Text Effect */
        .text-3d {
            text-shadow:
                1px 1px 0 rgba(0, 0, 0, 0.3),
                2px 2px 0 rgba(0, 0, 0, 0.25),
                3px 3px 0 rgba(0, 0, 0, 0.2),
                4px 4px 0 rgba(0, 0, 0, 0.15),
                5px 5px 10px rgba(0, 0, 0, 0.4);
        }

        /* Scroll Animation Effects */
        .scroll-animate {
            opacity: 0;
            transform: translateY(50px);
            transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .scroll-animate.animate-in {
            opacity: 1;
            transform: translateY(0);
        }

        .scroll-animate-left {
            opacity: 0;
            transform: translateX(-50px);
            transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .scroll-animate-left.animate-in {
            opacity: 1;
            transform: translateX(0);
        }

        .scroll-animate-right {
            opacity: 0;
            transform: translateX(50px);
            transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .scroll-animate-right.animate-in {
            opacity: 1;
            transform: translateX(0);
        }

        .scroll-animate-scale {
            opacity: 0;
            transform: scale(0.8);
            transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .scroll-animate-scale.animate-in {
            opacity: 1;
            transform: scale(1);
        }

        .scroll-animate-fade {
            opacity: 0;
            transition: opacity 1s ease-in-out;
        }

        .scroll-animate-fade.animate-in {
            opacity: 1;
        }

        /* Counter Animation */
        .counter-animate {
            transition: all 0.3s ease;
        }

        .counter-animate.counting {
            color: var(--color-secondary);
            transform: scale(1.1);
        }

        /* Morphing Background */
        .morphing-bg {
            background: linear-gradient(-45deg, var(--color-light), var(--color-quaternary), var(--color-tertiary), var(--color-light));
            background-size: 400% 400%;
            animation: morphing 15s ease infinite;
        }

        @keyframes morphing {
            0% {
                background-position: 0% 50%;
            }

            50% {
                background-position: 100% 50%;
            }

            100% {
                background-position: 0% 50%;
            }
        }

        /* Interactive Hover Zones */
        .hover-zone {
            position: relative;
            overflow: hidden;
        }

        .hover-zone::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: radial-gradient(circle, rgba(25, 25, 25, 0.05) 0%, transparent 70%);
            transform: translate(-50%, -50%);
            transition: all 0.4s ease;
            pointer-events: none;
        }

        .hover-zone:hover::after {
            width: 300px;
            height: 300px;
        }

        /* Custom Bootstrap overrides */
        .navbar {
            background-color: rgba(249, 249, 244, 0.98) !important;
            backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--color-tertiary);
            box-shadow: 0 2px 15px rgba(25, 25, 25, 0.08);
            z-index: 1050;
        }

        .navbar-brand {
            color: var(--color-primary) !important;
            font-weight: 700;
            font-size: 1.25rem;
        }

        .navbar-toggler {
            border: none;
            padding: 0.5rem;
        }

        .navbar-toggler:focus {
            box-shadow: 0 0 0 0.25rem rgba(25, 25, 25, 0.15);
        }

        .navbar-toggler-icon {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2825, 25, 25, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        }

        .nav-link {
            color: var(--color-primary) !important;
            font-weight: 500;
            position: relative;
            transition: all 0.3s ease;
            padding: 0.75rem 1rem !important;
        }

        .nav-link:hover {
            color: var(--color-secondary) !important;
        }

        .nav-link::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: 0;
            left: 50%;
            background-color: var(--color-secondary);
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }

        .nav-link:hover::after {
            width: 80%;
        }

        @media (max-width: 991.98px) {
            .navbar-collapse {
                background-color: rgba(249, 249, 244, 0.98);
                border-radius: 8px;
                margin-top: 1rem;
                padding: 1rem;
                box-shadow: 0 4px 15px rgba(25, 25, 25, 0.1);
            }

            .nav-link::after {
                display: none;
            }

            .nav-link:hover {
                background-color: rgba(25, 25, 25, 0.05);
                border-radius: 4px;
            }

            .logo-footer {
                max-width: 150px;
            }

            #footer-text {
                font-size: 14px;
            }

            .logo-hero {
                max-width: 300px;
            }

        }

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

        .btn-primary:hover {
            background-color: var(--color-secondary);
            border-color: var(--color-secondary);
        }

        .btn-outline-primary {
            color: #ffffff;
            border-color: #ffffff;
        }

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

        .service-card {
            transition: all 0.3s ease;
            border: 1px solid var(--color-tertiary);
        }

        .service-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 10px 25px rgba(25, 25, 25, 0.1);
        }


        .logo-placeholder {
            max-width: 420px;
            max-height: 100px;
            /*background-color: var(--color-quaternary);
            border: 2px dashed var(--color-tertiary);*/
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            color: var(--color-secondary);
            border-radius: 8px;
        }

        /* CTA Banner Styles */
        .cta-banner {
            background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
            position: relative;
            overflow: hidden;
            color: white;
        }

        .cta-banner::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -20%;
            width: 200px;
            height: 200px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
        }

        .cta-banner::after {
            content: '';
            position: absolute;
            bottom: -30%;
            left: -10%;
            width: 150px;
            height: 150px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 50%;
        }

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

        .btn-success {
            background-color: #25d366;
            border-color: #25d366;
        }

        .btn-success:hover {
            background-color: #128c7e;
            border-color: #128c7e;
        }

        footer {
            background-color: var(--color-primary);
        }

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

        .text-custom-secondary {
            color: var(--color-secondary);
        }

        .bg-custom-quaternary {
            background-color: #f9f9f4;
        }

        @view-transition {
            navigation: auto;
        }

        /*trayectoria*/

        /* Chapter Sections */
        .chapters-container {
            position: relative;
        }

        .chapter-section {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.6s ease, transform 0.6s ease;
            position: absolute;
            width: 100%;
            top: 0;
            left: 0;
            visibility: hidden;
        }

        .chapter-section.active {
            opacity: 1;
            transform: translateY(0);
            position: relative;
            visibility: visible;
        }

        .chapter-number {
            font-size: 4.5rem;
            font-weight: 700;
            color: var(--color-quaternary);
            line-height: 1;
            margin-bottom: 0.5rem;
        }

        .chapter-title {
            position: relative;
            display: inline-block;
        }

        .chapter-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 60px;
            height: 4px;
            background-color: var(--color-primary);
        }

        .chapter-year {
            font-size: 1.25rem;
            letter-spacing: 2px;
        }

        .chapter-text {
            margin-bottom: 1.25rem;
        }

        .chapter-image-container {
            background: linear-gradient(135deg, var(--color-quaternary) 0%, var(--color-tertiary) 100%);
            border-radius: 20px;
            height: 350px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .chapter-image-container::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
            animation: rotate 20s linear infinite;
        }

        @keyframes rotate {
            from {
                transform: rotate(0deg);
            }

            to {
                transform: rotate(360deg);
            }
        }

        .chapter-icon {
            font-size: 6rem;
            color: var(--color-primary);
            opacity: 0.8;
            position: relative;
            z-index: 1;
        }

        /* Chapter Controls */
        .chapter-controls {
            margin-top: 3rem;
        }

        .chapter-prev:disabled,
        .chapter-next:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* Mobile Responsive */
        @media (max-width: 991.98px) {
            .chapter-number {
                font-size: 2.5rem;
            }

            .chapter-title {
                font-size: 1.5rem !important;
            }

            .chapter-year {
                font-size: 1rem;
            }

            .chapter-text {
                font-size: 1rem !important;
                margin-bottom: 0.75rem;
            }

            .chapter-image-container {
                height: 180px;
            }

            .chapter-icon {
                font-size: 3rem;
            }

            .chapters-container {
                min-height: 500px;
            }

            /* Compact mobile layout */
            .chapter-section .row {
                align-items: flex-start !important;
            }

            /*  .chapter-section .col-lg-6 {
                margin-bottom: 1rem;
            }*/

            .logo-mobile {
                max-width: 280px;
            }

        }

        @media (max-width: 767.98px) {
            .chapter-controls {
                flex-direction: row;
                gap: 0.75rem;
                margin-top: 2rem;
            }

            .chapter-prev,
            .chapter-next {
                flex: 1;
                padding: 0.75rem 1rem !important;
                font-size: 0.9rem;
            }

            .chapter-image-container {
                height: 150px;
            }
        }

        /* Back to Top Button - Pure CSS */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
            color: white;
            border: none;
            border-radius: 50%;
            font-size: 1.5rem;
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            z-index: 1000;
            box-shadow: 0 8px 25px rgba(25, 25, 25, 0.15);
            backdrop-filter: blur(10px);
        }

        .back-to-top:hover {
            transform: translateY(-5px) scale(1.1);
            box-shadow: 0 15px 35px rgba(25, 25, 25, 0.25);
            background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
            color: white;
            text-decoration: none;
        }

        .back-to-top:active {
            transform: translateY(-2px) scale(1.05);
        }

        .back-to-top:focus {
            outline: 2px solid rgba(255, 255, 255, 0.5);
            outline-offset: 2px;
        }

        /* Pulse animation for the button */
        .back-to-top::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            transform: translate(-50%, -50%) scale(0);
            transition: transform 0.3s ease;
        }

        .back-to-top:hover::before {
            transform: translate(-50%, -50%) scale(1.2);
            opacity: 0;
        }

        /* Mobile responsive */
        @media (max-width: 768px) {
            .back-to-top {
                bottom: 20px;
                right: 20px;
                width: 50px;
                height: 50px;
                font-size: 1.25rem;
            }
        }