:root {
    --primary-color: #0f3a5d; /* Dark blue from Delfi logo */
    --secondary-color: #4a90b5; /* Light blue from Delfi logo */
    --accent-color: #d9a45b; /* Orange from Delfi logo */
    --text-color: #333333; /* Dark gray for better readability */
    --background-color: #ffffff; /* White background */
    --light-background: #f5f5f5; /* Light gray background */
    --shadow-color: rgba(0, 128, 128, 0.3); /* Adjust this color to match your branding */
    --delfing-dark-blue: #003366;
    --delfing-light-blue: #66a3cc;
    --copper-orange: #d9a45b;
    --card-background: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(15, 58, 93, 0.9) 50%);
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

.logo-container {
    flex: 0 0 auto;
    padding-left: 20px; /* Adjust this value as needed */
}

.logo {
    height: 40px;
    width: auto;
    box-shadow: none;
}

nav {
    flex: 1 1 auto;
    text-align: center;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-color);
}

.language-selector {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    border-radius: 6px;
    margin-left: 20px;
}

.lang-btn {
    background: none;
    border: none;
    color: #ffffff;
    padding: 6px 12px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.lang-btn.active {
    background: var(--copper-orange);
    color: white;
}

.lang-btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 2px;
}

@media (max-width: 768px) {
    .language-selector {
        margin: 10px auto 0;
    }
    
    .lang-btn {
        padding: 4px 10px;
        font-size: 13px;
    }
}

#welcome {
    height: calc(100vh - 60px);
    display: flex;
    margin-top: 60px;
}

.welcome-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    padding: 60px;
}

.welcome-text {
    max-width: 800px; /* Increased from 600px for better text flow */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center; /* Changed from justify to center */
}

.welcome-logo {
    max-width: 500px;
    width: 100%;
    margin-bottom: 40px;
    box-shadow: none;
}

.slogan {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 300;
    color: var(--delfing-dark-blue); /* Changed to match your brand color */
    margin-bottom: 30px;
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center; /* Changed from justify */
    hyphens: none; /* Removed auto hyphenation */
    letter-spacing: -0.5px; /* Added for better readability */
}

.welcome-image {
    flex: 1;
    background-image: url('3b.png');
    background-size: cover;
    background-position: center;
}

@media (max-width: 768px) {
    #welcome {
        flex-direction: column;
    }
    
    .welcome-content, .welcome-image {
        flex: none;
        width: 100%;
    }
    
    .welcome-image {
        height: 300px;
    }
    
    .slogan {
    font-size: 2rem;
    text-align: center;
}
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .logo-container {
        flex: 1 1 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    nav {
        flex: 1 1 100%;
        order: 3;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .language-selector {
        flex: 1 1 100%;
        justify-content: center;
        margin-top: 10px;
    }
}

#welcome {
    height: calc(100vh - 80px); /* Adjust based on your navbar height */
    display: flex;
}

.welcome-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    padding: 40px;
}

.welcome-text {
    max-width: 500px;
    text-align: left;
}

.welcome-logo {
    max-width: 300px;
    margin-bottom: 60px;
}

.slogan {
    font-size: 2.5rem;
    font-weight: 300;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.4;
}

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #007bff;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #0056b3;
}

.welcome-image {
    flex: 1;
    background-image: url('3b.png');
    background-size: cover;
    background-position: center;
}

@media (max-width: 768px) {
    #welcome {
        flex-direction: column;
    }
    
    .welcome-content, .welcome-image {
        flex: none;
        width: 100%;
    }
    
    .welcome-image {
        height: 300px;
    }
    
    .slogan {
        font-size: 1.8rem;
    }
}

.section {
    padding: 80px 20px;
}

.section h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 36px;
    margin-bottom: 40px;
}

.two-columns,
.three-columns,
.four-columns {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.two-columns > div {
    flex-basis: calc(50% - 15px);
}

.three-columns > div {
    flex-basis: calc(33.33% - 20px);
}

.four-columns > div {
    flex-basis: calc(25% - 22.5px);
}

@media (max-width: 768px) {
    .two-columns > div,
    .three-columns > div,
    .four-columns > div {
        flex-basis: 100%;
    }
}

#services {
    background-color: var(--light-background);
}

.service-card {
    background-color: var(--background-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.service-icon {
    font-size: 48px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

#team {
    background-color: var(--light-background);
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0px;
}
.team-image-container {
    width: 180px;
    height: 180px;
    margin: 0 auto 25px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(15, 58, 93, 0.9) 100%);
}

.team-member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--background-color);
}

.team-member h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 5px;
}

.team-member p {
    color: var(delfing-dark-blue);
    font-size: 14px;
}
@media (max-width: 768px) {
    .team-image-container {
        width: 150px;
        height: 150px;
    }
    
    .team-card h3 {
        font-size: 1.1rem;
    }
    
    .team-card p {
        font-size: 0.9rem;
    }
}

footer {
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 40px 20px;
    text-align: center;
}
#company-info {
    background-color: var(--light-background);
    padding: 80px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.08);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--copper-orange);
    transition: width 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card:hover::before {
    width: 6px;
}

.info-card h2 {
    color: var(--delfing-dark-blue);
    font-size: 1.8rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.info-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--copper-orange);
}

.info-content {
    color: var(--text-color);
}

.info-content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.info-content ul {
    list-style: none;
    padding: 0;
}

.info-content li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.info-content li::before {
    content: '\2022';
    color: var(--copper-orange);
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

@media (max-width: 992px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-card.mission {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-card {
        padding: 30px;
    }
    
    .info-card h2 {
        font-size: 1.5rem;
    }
}
.company-extras {
    margin-top: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 0 20px;
}

.section-subtitle {
    color: var(--delfing-dark-blue);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 300;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--copper-orange);
}
.values-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px;
}
.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.values-list li::before {
    content: '•';
    color: var(--copper-orange);
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

.values-list li strong {
    color: var(--delfing-dark-blue);
    margin-right: 8px;
}


.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px; /* Reducido para que las tarjetas no queden tan separadas */
    margin: 0 auto; /* Esto centra el grid */
}

.value-card {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.08);
    transition: transform 0.3s ease;
    text-align: center; /* Centra el contenido dentro de cada tarjeta */
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--copper-orange);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.1);
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: var(--delfing-dark-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.value-icon i {
    font-size: 32px;
    color: white;
}

.value-card:hover .value-icon {
    transform: rotateY(360deg);
}


.value-card h3 {
    color: var(--delfing-dark-blue);
    margin: 0 0 15px 0;
    font-size: 1.2rem;
}

.value-card p {
    margin: 0;
    line-height: 1.5;
    color: var(--text-color);
}

@media (max-width: 1200px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 480px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .company-extras {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
}
#certifications {
    background-color: var(--light-background);
    padding: 20px 0 110px;
}

.cert-logos {
    display: flex;
    justify-content: center;
    gap: 60px;
    align-items: center;
    margin-top: 20px;
}

.cert-logo {
    max-width: 200px;
    height: auto;
    transition: transform 0.3s ease;
}

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

/* Media queries actualizados */
@media (max-width: 1200px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cert-logos {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}
#clientes {
    background-color: var(--light-background);
    padding: 80px 0;
    padding-bottom: 40px;
}

.section-title {
    color: var(--delfing-dark-blue);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 300;
}

.section-title-underline {
    width: 60px;
    height: 3px;
    background-color: var(--copper-orange);
    margin: 0 auto 50px;
}



.client-card {
    flex: 0 0 auto;
    background-color: #ffffff;
    border-radius: 50%;
    width: 150px;  /* Reduced from 180px */
    height: 150px; /* Reduced from 180px */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    padding: 20px;  /* Reduced from 25px */
    border: 2px solid var(--copper-orange);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.client-card::after {
    content: none;
}
html[lang="es"] .client-card.has-details::after {
    content: 'Ver detalles';
}

/* English version */
html[lang="en"] .client-card.has-details::after {
    content: 'View details';
}
.client-card.has-details::after {
    content: 'Ver detalles';
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    height: 40px;
    background: var(--copper-orange);
    color: white;
    text-align: center;
    transition: bottom 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.client-card.has-details:hover::after {
    bottom: 0;
}

.client-card:hover {
    transform: translateY(-5px);
}

.client-logo {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}
@media (max-width: 992px) {
    .client-card {
        width: 130px;
        height: 130px;
        padding: 15px;
    }
    
    .row {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .client-card {
        width: 120px;
        height: 120px;
        padding: 15px;
    }
    
    .row {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .clients-grid {
        gap: 20px;
    }
    
    .row {
        flex-wrap: wrap;
    }
    
    .client-card {
        width: 100px;
        height: 100px;
        padding: 10px;
    }
}

#nuestra-empresa {
    background-image: url('delfin.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 0;
    position: relative;
}

#nuestra-empresa::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8); /* Adjust opacity as needed */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    text-shadow: 2px 2px 4px var(--shadow-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 20px auto 0;
    box-shadow: 2px 2px 4px var(--shadow-color);
}

.mission-vision-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.mission-vision-box {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: transform 0.3s ease;
}

.mission-vision-box:hover {
    transform: translateY(-5px);
}

.mission-vision-box h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
    text-shadow: 1px 1px 2px var(--shadow-color);
}

.mission-vision-box h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
    position: absolute;
    bottom: 0;
    left: 0;
    box-shadow: 1px 1px 2px var(--shadow-color);
}

.mission-vision-box p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
}

/* Apply consistent shadow to all images */

@media (max-width: 768px) {
    .mission-vision-container {
        flex-direction: column;
    }
}

#know-how {
    background-color: var(--background-color);
    padding: 80px 0;
    position: relative;
}
.know-how-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}
#prevKnowHow {
    left: 20px;  /* Add this */
}

#nextKnowHow {
    right: 20px;  /* Add this */
}

.know-how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.know-how-item {
    background: white;
    padding: 30px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

html[lang="en"] .know-how-item::after {
    content: 'View publications';
}

/* Spanish version */
html[lang="es"] .know-how-item::after {
    content: 'Ver publicaciones';
}
.know-how-item::after {
    content: 'Ver publicaciones';
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    padding: 10px;
    background: var(--copper-orange);
    color: white;
    text-align: center;
    transition: bottom 0.3s ease;
    font-size: 0.9rem;
}

.know-how-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(217, 164, 91, 0.2);
}

.know-how-item:hover::after {
    bottom: 0;
}
.pdf-button {
    background-color: var(--copper-orange);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.pdf-button:hover {
    background-color: var(--delfing-dark-blue);
}

.pdf-button i {
    font-size: 14px;
}
.know-how-icon {
    font-size: 2rem;
    color: var(--copper-orange);
    margin-bottom: 15px;
}

.know-how-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.know-how-item p {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .know-how-grid {
        grid-template-columns: 1fr;
    }
    .know-how-nav {
        width: 36px;
        height: 36px;
    }
    
    .know-how-nav svg {
        width: 20px;
        height: 20px;
    }
}

#servicios {
    background-color: var(--light-background);
    padding: 80px 0;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 300;
    line-height: 1.2;
}

.section-title-underline {
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0 auto 40px;
}

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

/* Estilo para centrar el último servicio cuando es impar */
.service-card:last-child:nth-child(3n-1) {
    grid-column: 2; /* Centra el elemento en la segunda columna */
}

.service-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card.invisible {
    visibility: hidden;
    pointer-events: none;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
}

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

.service-card:hover::before {
    height: 8px;
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 20px;
}

.service-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

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

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

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Estilos comunes para grids */
.clients-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.row {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.row-4 {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.row-3 {
    display: flex;
    gap: 30px;
    justify-content: center;
}
.team-card {
    background: linear-gradient(145deg, var(--background-color) 0%, var(--light-background) 100%);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(15, 58, 93, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(74, 144, 181, 0.1);
    position: relative;
    overflow: hidden;
}
.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--copper-orange);
    transition: height 0.3s ease;
}
/* Estilos comunes para cards */
.client-card,
.team-card {
    padding: 40px;
    color: var(--text-color);
    transition: transform 0.3s ease;
}

.client-card:hover{
    transform: translateY(-5px);
}
.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(15, 58, 93, 0.12);
}
.team-card:hover::before {
    height: 6px;
}
.client-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}
.team-card h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
}

.team-card .role {
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.8;
    font-weight: 500;
}

.client-card p {
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
}
.team-card p {
    color: var(--primary-color);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Estilos específicos para la sección de equipo */
.team-card p:first-of-type {
    font-style: italic;
    margin-bottom: 10px;
}
#equipo {
    background-color: #f8f9fa;
    padding: 80px 0;
    padding-top: 40px;
}

@media (max-width: 768px) {
    .clients-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Changed from 5 to 3 */
        gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.team-card {
    background-color: var(--light-background);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}


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

@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}
.team-card {
    background-color: var(--light-background);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
        flex-direction: column;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-5px);
}


.modal {
    display: none;
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.6); /* Adjusted opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 0;
    border: none;
    width: 80%;
    max-width: 900px;
    border-radius: 0;
    overflow: hidden;
    position: relative;
}
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--copper-orange);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.modal-nav:hover {
    background: var(--copper-orange);
}

.modal-nav svg {
    width: 24px;
    height: 24px;
    color: var(--copper-orange);
    transition: color 0.3s ease;
}

.modal-nav:hover svg {
    color: white;
}

.prev-button {
    left: 20px;
}

.next-button {
    right: 20px;
}

@media (max-width: 768px) {
    .modal-nav {
        width: 36px;
        height: 36px;
    }
    
    .modal-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .prev-button {
        left: 10px;
    }
    
    .next-button {
        right: 10px;
    }
}

.close-button {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1000;
    color: #fff;
    text-shadow: 0 0 3px rgba(0,0,0,0.5);
    font-size: 28px;
    cursor: pointer;
}

.modal-flex-container {
    display: flex;
    align-items: stretch;
    min-height: 300px;
}
.modal-image-container {
    flex: 0 0 35%;
    background-color: var(--light-background);
}

.papers-modal {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 800px;
    margin: 40px auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.papers-grid {
    display: grid;
    gap: 20px;
}
.papers-modal-content {
    max-width: 800px;
    padding: 40px;
    background: var(--background-color);
}

.papers-modal h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 500;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.papers-modal ul {
    list-style: none;
    padding: 0;
}

.papers-modal li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.4;
}

.papers-modal li:last-child {
    border-bottom: none;
}
.paper-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 8px;
    background: var(--light-background);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}
.paper-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: white;
}
.paper-info {
    flex: 1;
    padding-right: 20px;
}
.paper-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: var(--delfing-dark-blue);
    margin-bottom: 8px;
    font-weight: 500;
    line-height: 1.4;
}
.paper-actions {
    display: flex;
    gap: 12px;
}
.paper-metadata {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #666;
    margin-top: 8px;
}

.metadata-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.metadata-item i {
    color: var(--copper-orange);
    font-size: 0.9rem;
}
.paper-button {
    background: var(--copper-orange);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.paper-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 51, 102, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.paper-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--copper-orange);
    transition: width 0.3s ease;
}

.paper-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.1);
}

.paper-card:hover::before {
    width: 6px;
}

.paper-button:hover {
    background: var(--delfing-dark-blue);
    transform: translateY(-2px);
}

.paper-button i {
    font-size: 1rem;
}

.external-link {
    color: var(--copper-orange);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.external-link i {
    font-size: 16px;
}

.external-link:hover {
    color: var(--delfing-dark-blue);
    transform: translateX(2px);
}
.download-button {
    background-color: var(--copper-orange);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.download-button:hover {
    background-color: var(--delfing-dark-blue);
}

.download-button i {
    font-size: 14px;
}
#modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from cover to contain */
    display: block;
}

.modal-info {
    flex: 1;
    padding: 40px 50px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#modal-details {
    max-width: 500px;
}

#modal-details p {
    margin: 0 0 20px 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
}
#modal-details p strong {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
    width: 100px;
}

/* Adjust mobile view heights */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-flex-container {
    flex-direction: column;
        min-height: auto;
    }
    
    .modal-image-container {
        flex: 0 0 200px;
    }
    
    .modal-info {
        padding: 30px;
    }
    
    #modal-details p strong {
        width: auto;
        margin-right: 10px;
    }
}

.more-clients {
    text-align: center;
    margin-top: 40px;
    font-style: italic;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.more-clients p {
    position: relative;
    display: inline-block;
}

.more-clients p::before,
.more-clients p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background-color: var(--copper-orange);
}

.more-clients p::before {
    right: 100%;
    margin-right: 20px;
}

.more-clients p::after {
    left: 100%;
    margin-left: 20px;
}

.client-card.has-details {
    cursor: pointer;
}

