/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Poppins:wght@300;400;500;600&display=swap');

/* Reset and Base Styles */
:root {
    --primary-color: #709DBE;
    --text-white: #ffffff;
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body::-webkit-scrollbar{
    display: none;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* Navigation Styles */
.navbar {
    position: fixed;
    width: 100%;
    padding: 2.5rem 0;
    z-index: 10000;
    background: transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-placeholder {
    width: 150px;
    height: 60px;
    background-image: url('img/imagotipoWhite.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: var(--transition);
}

.logo-placeholder:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3.5rem;
}

.nav-menu a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.navbar.scrolled .nav-menu a {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--text-white);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.navbar.scrolled .nav-menu a::after {
    background-color: var(--primary-color);
}

.nav-menu a:hover {
    opacity: 1;
}

.nav-menu a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Burger Menu */
.burger {
    display: none;
    cursor: pointer;
    position: relative;
    z-index: 10005;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-white);
    margin: 5px;
    transition: var(--transition);
}

.navbar.scrolled .burger div {
    background-color: var(--primary-color);
}

/* When mobile menu is active, keep burger white regardless of scroll */
.burger.active div,
.navbar.scrolled .burger.active div {
    background-color: var(--text-white);
}

/* Hero Section */
.hero {
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('img/inicio/1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
}

.hero .container {
    max-width: 1200px;
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

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

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size:50px;
    line-height: 1;
    margin-bottom: 14px;
    animation: fadeInLeft 1s ease-out;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 12px;
    animation: fadeInLeft 1s ease-out 0.3s;
    animation-fill-mode: both;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: transparent;
    color: var(--text-white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition);
    animation: fadeInLeft 1s ease-out 0.6s;
    animation-fill-mode: both;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--text-white);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--text-white);
    transition: width 0.3s ease;
    z-index: -1;
}

.cta-button:hover {
    color: var(--primary-color);
}

.cta-button:hover::before {
    width: 100%;
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Media Queries */
@media screen and (max-width: 768px) {
    body.scroll-locked {
        overflow: hidden;
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 100%;
        overflow: hidden;
        background: linear-gradient(
            135deg,
            rgba(0, 51, 102, 0.97) 0%,
            rgba(0, 51, 102, 0.95) 100%
        );
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        background-image: linear-gradient(
            rgba(0, 51, 102, 0.97),
            rgba(0, 51, 102, 0.95)
        ),
        url('../img/inicio/1.png');
        background-size: cover;
        background-position: center;
        background-blend-mode: multiply;
        z-index: 10001;
    }

    body {
        overflow-x: hidden;
        width: 100%;
    }

    .nav-menu.active {
        right: 0;
        animation: menuFadeIn 0.5s ease forwards;
    }

    .nav-menu li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.5s ease;
    }

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

    /* Stagger the animation for each link */
    .nav-menu.active li:nth-child(1) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.4s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.5s; }

    .nav-menu a {
        color: var(--text-white);
        font-size:10rem;
        font-weight: 700;
        padding: 1.2rem 0;
        letter-spacing: 3px;
        text-transform: uppercase;
        position: relative;
        display: inline-block;
        transform: scale(1);
        transition: all 0.4s ease;
        width: 100%;
        text-align: center;
    }

    .nav-menu a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 3px;
        bottom: 0;
        left: 0%;
        background: var(--text-white);
        transition: all 0.4s ease;
        transform: translateX(-50%);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }

    .nav-menu a:hover {
        transform: scale(2);
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
        color: #ffffff;
    }

    .nav-menu a:hover::after {
        width: 100%;
    }

    /* Enhanced stagger animation delays */
    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.4s; }

    /* Add scale animation to active links */
    .nav-menu.active a {
        animation: scaleIn 0.5s ease forwards;
    }

    .burger {
        display: block;
        position: relative;
        z-index: 1001;
    }

    .burger.active div:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger.active div:nth-child(2) {
        opacity: 0;
    }

    .burger.active div:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero h1 {
        font-size: 28px;
        margin-top: 0;
        line-height: 1.2;
        margin-bottom: 12px;
        width: 100%;
    }

    .hero p {
        font-size: 16px;
        margin-top: 0;
        width: 300px;
        margin-bottom: 12px;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 20px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-button{
        font-size: 0.7rem;
        padding: 0.5rem 1.5rem;
    }

    .nav-menu {
        gap: 0.5rem;
    }
    
    .container {
        width: 85%;
    }

    html {
        scroll-padding-top: 100px;
    }

    .philosophy {
        margin-top: 30px;
        padding: 100px 0 60px;
    }

    .hero{
        height: 100vh;
        overflow: hidden;
        background-position: center;
        background-size: cover;
        background-attachment: none;
    }

    .logo-placeholder{
        margin-top: 0;
        width: 100px;
        height: 40px;
    }

    .navbar {
        padding: 0.5rem 0;
        padding-top: 40px;
        margin-top: 0;
    }

    .navbar.scrolled {
        padding: 0.5rem 0;
        padding-top: 40px;
        margin-top: 0;
    }

    .logo-placeholder {
        margin-top: 0;
        width: 100px;
        height: 40px;
    }

    .burger {
        margin-top: 0;
    }

    .nav-menu {
        top: 0;
    }

    .burger {
        display: block;
    }

    .burger div {
        width: 25px;
        height: 3px;
        background-color: var(--text-white);
        margin: 5px;
        transition: var(--transition);
    }

    /* Asegurar que el burger siempre sea visible y esté por encima */
    .burger.active {
        position: fixed;
        right: 20px;
        top: 40px;
        z-index: 10005;
    }

    .burger.active div {
        background-color: var(--text-white);
    }
}

/* Add new keyframe animation for menu fade in */
@keyframes menuFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

/* Philosophy Section Styles */
.philosophy {
    padding: 60px 0;
    background-color: #f8f9fa;
    position: relative;
    z-index: 4;
}

.philosophy h2 {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.4rem;
    margin-bottom: 4rem;
    color: var(--primary-color);
}

.philosophy-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0 100px 0;
}

.philosophy-card {
    flex: 1 1 350px;
    max-width: 350px;
    min-width: 250px;
    height: 450px;
    padding: 3rem;
    text-align: center;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    opacity: 1;
}

/* Philosophy Section Icon Styles */
.philosophy-icon-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f5f5f5;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.philosophy-icon-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.philosophy-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.philosophy-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

/* Media Queries */
@media screen and (max-width: 992px) {
    .philosophy-grid {
        justify-content: center;
    }
    
    .philosophy-card {
        flex: 0 1 calc(50% - 2rem);
    }
}

@media screen and (max-width: 768px) {
    .philosophy {
        padding: 60px 0;
    }

    .philosophy h2 {
        font-size: 2rem;
    }

    .philosophy-card p{
        font-size: 0.8rem;
    }

    .philosophy-card {
        min-width: unset;
        width: 100%;
        height: auto;
        margin: 1rem auto;
        padding: 2rem;
    }

    .philosophy .container {
        width: 90%;
        margin: 0 auto;
    }

    .philosophy-card {
        min-width: unset;
        padding: 1.5rem;
    }

    .philosophy-grid {
        flex-direction: column;
        align-items: center;
    }

    .philosophy-card {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Add scroll padding to the root element */
html {
    scroll-padding-top: 150px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Update the philosophy section padding */
.philosophy {
    padding: 150px 0 100px;
    background-color: #f8f9fa;
}

/* Also update other sections to maintain consistency */
.services, .about, .testimonials, .contact {
    margin-top: 50px;
    padding: 150px 0 100px;
}

/* Update navbar scrolled state styles */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Update nav links color for different states */
.nav-menu a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

/* When navbar is scrolled, make links dark and visible */
.navbar.scrolled .nav-menu a {
    color: var(--primary-color);
}

/* Update the underline color for scrolled state */
.navbar.scrolled .nav-menu a::after {
    background-color: var(--primary-color);
}

/* Add hover state for better visibility */
.navbar.scrolled .nav-menu a:hover {
    opacity: 0.8;
}

/* Update mobile menu links to always be white */
@media screen and (max-width: 768px) {
    .nav-menu a,
    .navbar.scrolled .nav-menu a {
        color: var(--text-white);
    }

    .nav-menu a::after,
    .navbar.scrolled .nav-menu a::after {
        background-color: var(--text-white);
    }
}

/* Add new scale animation */
@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Add margin to second card on larger screens */
@media screen and (min-width: 993px) {
    .philosophy-card:nth-child(2) {
        margin-top: -50px;
    }

    .philosophy h2 {
        margin-bottom: 6rem;
    }
}

/* Experience Section */
.experience {
    padding: 150px 0;
    overflow: visible;
    position: relative;
    background: var(--primary-color);
    z-index: 8;
    opacity: 1;
}

.experience .container {
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 8;
}

.experience-content {
    flex: 1;
}

.experience-content .subtitle {
    color: #ffffff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

.experience-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.4rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.experience-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-size: 1rem;
}

.experience-image {
    flex: 1;
    position: relative;
}

.experience-image img {
    width: 100%;
    height: 500px;
    max-width: 500px;
    border-radius: 10px;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.squares-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.square {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    opacity: 0.1;
    transform: scale(0);
}

/* Responsive */
@media screen and (max-width: 992px) {
    .experience .container {
        flex-direction: column;
        text-align: center;
    }

    .experience-content h2 {
        font-size: 2rem;
    }

    .experience-image img {
        height: 550px;
        object-position: top;
    }
}

@media screen and (max-width: 576px) {
    .experience-image img {
        height: 300px;
        width: 300px !important;
        object-position: center !important;
    }
}



.t-square {
    position: absolute;
    width: 25%;
    height: 20px;
    top: 0;
    left: 0;
    background: var(--primary-color);
    opacity: 1;
    transform: scaleY(1);
    transform-origin: bottom;
}

/* Position each square */
.t-square:nth-child(1) { left: 0; }
.t-square:nth-child(2) { left: 25%; }
.t-square:nth-child(3) { left: 50%; }
.t-square:nth-child(4) { left: 75%; }

/* Asegurarnos que el fundador esté por encima */
.experience {
    position: relative;
    z-index: 8;
}

/* Services Section */
.services {
    padding: 0;
    background: #fff;
    overflow: hidden;
    position: relative;
    z-index: 7;
}

.services h2 {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    color: var(--primary-color);
    padding: 100px 0 60px;
}

@media screen and (max-width: 768px) {
    .services h2 {
        font-size: 2rem;
        padding: 60px 0 40px;
    }
}

/* Main service row */
.service-row {
    display: flex;
    min-height: 600px;
    width: 100%;
}

/* Alternating backgrounds */
.service-row:nth-child(odd) {
    background: #fff;
}

.service-row:nth-child(even) {
    background: var(--primary-color);
}

/* Content side */
.content-side {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
}

/* Service content */
.service-content {
    max-width: 600px;
    width: 100%;
    will-change: transform, opacity;
    opacity: 0;
    transform: translateY(100px);
    box-sizing: border-box;
    padding: 0 40px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Image side */
.image-side {
    width: 50%;
    height: 80vh;
    overflow: hidden;
    position: relative;
    opacity: 1;
}

.image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 1;
    will-change: transform;
    transition: transform 0.1s linear;
}

/* Text styles */
.number {
    font-size: 2em;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.service-content h3 {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 14px;
    line-height: 1.2;
}

.service-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 15px;
}

/* Reverse layout */
.service-row.reverse {
    flex-direction: row-reverse;
}

/* Light/Dark content styles */
.service-row:nth-child(even) .number,
.service-row:nth-child(even) h3 {
    color: #fff;
}

.service-row:nth-child(even) p {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive */
@media screen and (max-width: 800px) {
    .service-row,
    .service-row.reverse {
        flex-direction: column;
        min-height: auto;
    }

    .content-side,
    .image-side {
        width: 100%;
    }

    .content-side {
        padding: 40px 20px;
        order: 1;
    }

    .image-side {
        height: 50vh;
        order: 2;
    }

    .service-content {
        text-align: center;
        max-width: 500px;
        margin: 0 auto;
    }

    .service-content h3 {
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 576px) {
    .image-side {
        height: 50vh;
    }

    .content-side {
        padding: 40px 25px;
    }

    .service-content {
        max-width: 450px;
    }

    .number {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .service-content h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .service-content p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .service-link {
        font-size: 0.9rem;
        padding: 0.8rem 1.8rem;
    }
}

/* Even smaller screens */
@media screen and (max-width: 500px) {
    .content-side {
        padding: 50px 30px;
    }

    .service-content {
        max-width: 400px;
        padding: 0px 0px;
    }

    .number {
        font-size: 0.9rem;
    }

    .service-content h3 {
        font-size: 1.3rem;
    }

    .service-content p {
        font-size: 14px;
    }
}

/* Service Link Styles - Light Background */
.service-link {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.service-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: all 0.5s ease;
}

.service-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 51, 102, 0.3);
}

.service-link:hover::after {
    left: 100%;
}

/* Service Link Styles - Dark Background */
.service-half:last-child .service-link {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.service-half:last-child .service-link::after {
    background: linear-gradient(
        120deg,
        transparent,
        rgba(0, 51, 102, 0.1),
        transparent
    );
}

.service-half:last-child .service-link:hover {
    background: transparent;
    color: white;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
    border-color: white;
}

/* Hover effect for the arrow in dark background */
.service-half:last-child .service-link:hover span::after {
    transform: translateX(5px);
    color: white;
}

/* Arrow animation */
.service-link span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-link span::after {
    content: '→';
    transition: transform 0.3s ease;
}

.service-link:hover span::after {
    transform: translateX(5px);
}

/* Responsive adjustments */
@media screen and (max-width: 576px) {
    .service-link {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
}

/* Services Pair Container */
.services-pair {
    display: flex;
    min-height: 600px;
    width: 100%;
}

.service-half {
    flex: 1;
    display: flex;
}

/* Left service (white background) */
.service-half:first-child {
    background: #fff;
}

/* Right service (blue background) */
.service-half:last-child {
    background: var(--primary-color);
}

.service-half .content-side {
    width: 100%;
    padding: 60px;
}

/* Adjust text colors for right service */
.service-half:last-child .number,
.service-half:last-child h3 {
    color: #fff;
}

.service-half:last-child p {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive */
@media screen and (max-width: 800px) {
    .services-pair {
        flex-direction: column;
        min-height: auto;
    }

    .service-half {
        width: 100%;
    }

    .service-half .content-side {
        padding: 40px 20px;
    }
}

@media screen and (max-width: 576px) {
    .service-half .content-side {
        padding: 40px 25px;
    }
}

/* Service Link Styles - First Service (#01) */
.service-row:first-child .service-link {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.service-row:first-child .service-link::after {
    background: linear-gradient(
        120deg,
        transparent,
        rgba(0, 51, 102, 0.1),
        transparent
    );
}

.service-row:first-child .service-link:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 51, 102, 0.2);
}

/* Hover effect for the arrow in first service */
.service-row:first-child .service-link:hover span::after {
    transform: translateX(5px);
    color: white;
}

/* Keep existing hover animation */
.service-row:first-child .service-link:hover::after {
    left: 100%;
}

/* Service Link Styles - Second Service (#02) */
.service-row:nth-child(2) .service-link {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.service-row:nth-child(2) .service-link::after {
    background: linear-gradient(
        120deg,
        transparent,
        rgba(0, 51, 102, 0.1),
        transparent
    );
}

.service-row:nth-child(2) .service-link:hover {
    background: transparent;
    color: white;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Testimonial Quote Section */
.testimonial-quote {
    width: 100%;
    background: #f8f9fa;
    padding: 40px 40px;
    margin-top: 40px;
    position: relative;
    z-index: 7;
}

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

.quote-content {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.quote-avatar {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.quote-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.quote-text {
    flex: 1;
}

.quote-text .author {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.quote-text .role {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.quote-text blockquote {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    font-style: italic;
    position: relative;
    padding-top: 20px;
    border-top: 3px solid var(--primary-color);
    margin-top: 10px;
}

/* Responsive */
@media screen and (max-width: 992px) {
    .testimonial-quote {
        padding: 70px 50px;
    }

    .quote-content {
        padding: 35px;
    }
}

@media screen and (max-width: 768px) {
    .testimonial-quote {
        padding: 60px 40px;
    }

    .quote-content {
        flex-direction: column;
        text-align: center;
        padding: 30px;
        gap: 20px;
    }

    .quote-container {
        width: 90%;
    }

    .quote-text blockquote {
        padding-top: 20px;
        border-top: 3px solid var(--primary-color);
        padding-left: 0;
    }
}

@media screen and (max-width: 576px) {
    .testimonial-quote {
        padding: 50px 30px;
    }

    .quote-container {
        width: 85%;
    }

    .quote-content {
        padding: 25px 20px;
    }
}

@media screen and (max-width: 480px) {
    .testimonial-quote {
        padding: 40px 25px;
    }

    .quote-container {
        width: 80%;
    }

    .quote-content {
        padding: 20px 15px;
    }
}

/* Additional Services Section */
.additional-services {
    margin-top: 50px;
    background: #fff;
    position: relative;
    z-index: 7;
}

.additional-services .service-row:first-child {
    margin-top: 50px;
}

@media screen and (max-width: 768px) {
    .additional-services {
        margin-top: 0;
    }
}

/* Service Half Styles */
.service-half {
    background: #fff;
}

.service-half.last-half {
    background: var(--primary-color);
}

/* Additional Services specific styles */
.additional-services .service-half:last-child {
    background: #fff;
}

/* Text colors for service halves */
.service-half .number,
.service-half h3 {
    color: var(--primary-color);
}

.service-half p {
    color: #666;
}

.service-half.last-half .number,
.service-half.last-half h3,
.service-half.last-half p {
    color: #fff;
}

/* Button styles for different backgrounds */
.service-half .service-link {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.service-half .service-link:hover {
    background: transparent;
    color: var(--primary-color);
}

.service-half.last-half .service-link {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.service-half.last-half .service-link:hover {
    background: transparent;
    color: white;
    border-color: white;
}

/* Additional Services specific button styles */
.additional-services .service-half:last-child .service-link {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.additional-services .service-half:last-child .service-link:hover {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Additional Services specific text colors */
.additional-services .service-half:last-child .number,
.additional-services .service-half:last-child h3 {
    color: var(--primary-color);
}

.additional-services .service-half:last-child p {
    color: #666;
}

/* Additional Services specific button styles */
.additional-services .service-half:last-child .service-link {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.additional-services .service-half:last-child .service-link:hover {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}



/* Sección About */
.about {
    padding: 60px 0; /* Ajusta el padding según sea necesario */
    background-color: #f8f9fa; /* Color de fondo para la sección */
    position: relative;
    z-index: 7;
}

.founder-section {
    opacity: 1; /* Asegúrate de que la opacidad sea 1 */
    transform: translateY(0); /* Asegúrate de que no haya transformaciones que oculten la sección */
    transition: opacity 0.3s ease; /* Transición suave para la opacidad */
    position: relative; /* Ensure positioning context for absolute children */
    z-index: 1; /* Lower z-index than squares */
}

.founder-image {
    width: 100%; /* Asegúrate de que la imagen ocupe el ancho completo */
    height: auto; /* Mantiene la proporción de la imagen */
    opacity: 1; /* Asegúrate de que la imagen sea completamente visible */
}

/* Ajustes para pantallas pequeñas */
@media screen and (max-width: 550px) {
    .service-content h3 {
        font-size: 1.5em; /* Reduce el tamaño del título */
    }

    .service-content p {
        font-size: 0.9em; /* Reduce el tamaño del texto */
    }

    .number {
        font-size: 1.5em; /* Reduce el tamaño del número */
    }
}

/* Asegúrate de que todas las secciones tengan overflow hidden */
section {
    overflow: hidden; /* Evita el desbordamiento */
}

/* Sección de Servicios */
.services {
    overflow: hidden; /* Evita el desbordamiento */
}

/* Ajustes para pantallas pequeñas */
@media screen and (max-width: 550px) {
    .service-content h3 {
        font-size: 1.5em; /* Reduce el tamaño del título */
    }

    .service-content p {
        font-size: 0.9em; /* Reduce el tamaño del texto */
    }

    .service-content {
        padding: 0px 0px;
    }

    .number {
        font-size: 1.5em; /* Reduce el tamaño del número */
    }
}

/* Asegúrate de que todas las secciones tengan overflow hidden */
section {
    overflow: hidden; /* Evita el desbordamiento */
}

/* Ajustes para pantallas pequeñas */
@media screen and (max-width: 550px) {
    .testimonial-quote {
        font-size: 0.9em; /* Reduce el tamaño del texto del testimonio */
    }

    .testimonial-quote .author {
        font-size: 1.4em; /* Reduce el tamaño del texto del autor */
    }

    .testimonial-quote .role {
        font-size: 0.8em; /* Reduce el tamaño del texto del rol */
    }

    .testimonial-quote blockquote {
        font-size: 1em;
        padding:  12px;
    }
}

.service-content {
    opacity: 0;
    transform: translateY(100px);
    /* Aseguramos que los elementos empiecen ocultos y desplazados hacia abajo */
}

/* == FACTS PART == */
.facts{
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    height: auto;
    box-sizing: border-box;
    overflow: hidden;
    padding: 100px 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.fact-item{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 20px;
    width: 400px;
    transition: all 400ms ease;
    
    opacity: 0;
    transform: translateY(100px);
}

.fact-icon-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
    background-color: #f1f1f1;
    border-radius: 100px;
    margin-right: 12px;
}

.fact-icon{
    width: 50px;
    height: 50px;
    background-image: url(img/mision.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.fact-right{
    display: flex;
    flex-direction: column;
    width: 250px;
}

.fact-title{
    font-size: 40px;
}

.fact-p{
    font-size: 18px;
}

@media (max-width:800px) {
    .fact-item{
        margin: 30px 20px;
    }

    .fact-icon-container{
        margin-right: 15px;
    }

    .fact-right{
        width: 300px;
    }

    .fact-title{
        font-size: 50px;
    }
}


@media (max-width:700px) {
    .facts{
        margin-top: 0;
    }
    .fact-item{
        margin: 30px 0;
        display: flex;
        flex-direction: column;
        background-color: rgb(247, 247, 247);
        padding: 20px ;
        border-radius: 12px;
    }

    .fact-icon-container{
        margin-right: 0;
        width: 80px;
        height: 80px;
    }

    .fact-icon{
        width: 40px;
        height: 40px;
    }

    .fact-right{
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 300px;
    }

    .fact-title{
        font-size: 30px;
    }
}

@media (max-width:450px) {
    .fact-item{
        margin: 30px 0;
        display: flex;
        flex-direction: column;
        background-color: rgb(247, 247, 247);
        padding: 30px 10px ;
        border-radius: 12px;
        width: 250px;
    }

    .fact-title{
        width: 200px;
    }

    .fact-p{
        width: 200px;
        font-size: 12px;
    }

}

/* == ready section == */
.ready{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    height: auto;
    box-sizing: border-box;
    overflow: hidden;
}

.ready-left{
    width: 50%;
    height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    box-sizing: border-box;
    padding: 40px 40px 40px 10%;

    opacity: 0;
    transform: translateY(40px);
}

.ready-title{
    font-size: 40px;
    text-align: left;
    width: 500px;
    line-height: 40px;
}

.ready-p{
    font-size: 18px;
    margin: 12px 0;
    text-align: left;
    width: 500px;
}


.ready-image {
    position: relative;
    width: 50%;
    height:700px;
    overflow: hidden; /* Ensures the parallax image stays inside the container */
}

.ready-image img {
    position: absolute;
    width: 100%;
    height:100%; /* Maintain aspect ratio */
    object-fit: cover;
    transition: transform 0.1s ease-out; /* Smooth transition */
}


@media (max-width:1300px) {
    .ready-left{
        padding: 40px 50px;
    }
    .ready-title{
        font-size: 40px;
        text-align: left;
        width: 450px;
    }

    .ready-p{
        font-size: 18px;
        margin: 12px 0;
        text-align: left;
        width: 450px;
    }

}

@media (max-width:995px) {
    .ready{
        flex-direction: column-reverse;
        margin-top: 0;
        padding: 40px 0;

    }
    .ready-left{
        width: 100%;
        padding: 0;
        justify-content: center;
        align-items:center;
        height: 450px;
    }

    .ready-image{
        width: 100%;
        border-top-left-radius: 0;
        height:400px;
        border-bottom-left-radius: 0;
    }
}


@media (max-width:550px) {
    .ready-title{
        font-size: 32px;
        text-align: left;
        width: 300px;
    }

    .ready-p{
        font-size: 14px;
        margin: 12px 0;
        text-align: left;
        width: 300px;
    }

    .ready-image{
        height: 200px;
    }

    .ready{
        padding-top: 0;
        margin-top: 0;
    }

    .facts{
        margin-bottom: 0;
        padding-bottom: 20px;
        padding-top: 20px;
    }

}

/* == trust == */
.trust{
    width: 100%;
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    background-color: black;
}

.trust-title{
    font-size: 60px;
    text-align: center;
    color: white;
    z-index:2;
    line-height: 50px;

}

.trust-p{
    font-size: 20px;
    width: 700px;
    text-align: center;
    color: white;
    z-index:2;
    margin: 12px 0;
}

.trustImg{
    width: 100%;
    height:100%;
    position: absolute;
    top: 0;
    left: 0;
    background-image: url(img/inicio/8.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
    opacity: 50%;
}

@media (max-width:670px) {
    .trust-p{
        font-size: 14px;
        width: 400px;
    }
}
@media (max-width:430px) {
    .trust-p{
        font-size: 14px;
        width: 280px;
    }

    .trust-title{
        font-size: 40px;
        text-align: center;
        color: white;
        z-index:2;
        line-height: 38px;
    
    }

}

.footer {
    margin-top: 200px;
}

/* Ajustes para móvil */
@media screen and (max-width: 768px) {
    .hero {
        height: 100vh;
        padding-top: 0; /* Quitar padding superior */
    }

    .hero .container {
        height: 100%;
        padding: 0 20px;
        justify-content: center; /* Centrar verticalmente */
    }

    .hero-content {
        max-width: 100%;
        text-align: left;
        padding: 0;
        margin-top: 0; /* Quitar margen superior */
    }

    .hero h1 {
        font-size: 28px; /* Reducido de 35px a 28px */
        line-height: 1.2;
        margin-bottom: 12px;
        width: 100%;
    }

    .hero p {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 20px;
        width: 100%;
    }

    .cta-button {
        font-size: 14px;
        padding: 12px 25px;
    }
}