/* nosotros.css */

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
}

.navbar-section {
    background: linear-gradient(135deg, #000000 0%, #0f2066 100%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: #0dd30e;
}

.list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    margin: 0 15px;
}

.nav-link a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link a:hover {
    background-color: rgba(13, 211, 14, 0.1);
    color: #0dd30e;
    transform: translateY(-2px);
}

.Tittle {
    margin-bottom: 1rem;
    text-align: center;
    color: #0f2066;
    font-size: 2.5rem;
    font-weight: bold;
}

.main-section {
    background-image: url(img/Finanza.jpeg);  
    background-size: cover;
    background-attachment: fixed; 
    background-color: #0f2066; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 80vh; 
    color: #ffffff;
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

.main-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 1;
}

.main-section .Tittle,
.main-section p {
    position: relative;
    z-index: 2; 
}

.main-section .Tittle {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-size: 3rem; 
}

.main-section p {
    color: #ffffff;
    font-size: 1.5rem;
    max-width: 700px;
    margin-top: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    text-align: center;
}

/* ===== info-section: fondo azul por defecto, con 2 variantes claras ===== */
.info-section {
    background-color: #0f2066;
    padding: 60px 20px;
    border-top: 5px solid #0dd30e; 
}

/* Gris claro (Visión, Mercados) */
.info-section.section-light {
    background-color: #f9f9f9;
}

/* Blanco (Valores, Áreas de Enfoque) — conserva el border-top verde
   y agrega el border-bottom azul, igual que el original */
.info-section.section-white {
    background-color: #ffffff;
    border-bottom: 5px solid #0f2066;
}

.section-title {
    color: #000000;
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.info-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.image-info {
    width: 100%;
    max-width: 400px; 
    height: auto;
    border-radius: 15px; 
    box-shadow: 0 8px 20px rgba(13, 211, 14, 0.3); 
    justify-self: center;
    border: 3px solid #0dd30e;
    transition: transform 0.3s ease;
}

.image-info:hover {
    transform: scale(1.05); 
}

.info-content h2 {
    color: #0dd30e; 
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.info-content div p {
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-top: 20px;
}

.vision-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.vision-text {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.8;
}

.submain-section {
    background: linear-gradient(135deg, #0f2066 0%, #0dd30e 100%);
    width: 100%;
    height: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.submain-section .Subtitle {
    color: #ffffff;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.submain-section .content .Text {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.image-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-item:hover {
    transform: translateY(-10px); 
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.image-item img {
    width: 100%;
    height: 250px; 
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.image-item:hover img {
    transform: scale(1.1);
}

.overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(13, 211, 14, 0.95);
    color: #ffffff;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

.image-item:hover .overlay-text {
    opacity: 1;
}

.text-content {
    line-height: 1.6;
    color: #333;
    font-size: 1.1rem;
}

.values-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.value-card {
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 8px;
    border: 2px solid #0dd30e;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-card h3 {
    color: #0f2066;
}

.value-card p {
    color: #555;
    font-size: 0.95rem;
    margin-top: 10px;
}

.service-box {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #0dd30e;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.service-box h3 {
    color: #0f2066;
    margin-top: 0;
    margin-bottom: 10px;
}

.service-box p {
    color: #444;
    margin: 0;
}

.focus-content {
    max-width: 800px;
    margin: 0 auto;
}

.btn-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background-color: #0dd30e;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-link:hover {
    background-color: #0baf0c;
}

.image-grid div {
    text-align: center;
    padding: 30px;
    background-color: #f4f4f4;
    border-radius: 15px;
    border: 2px solid #0dd30e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-grid div:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.image-grid h3 {
    color: #0f2066;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.image-grid p {
    color: #000000;
    font-size: 1.1rem;
    line-height: 1.6;
}

.market-tags {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.market-tag {
    padding: 8px 18px;
    background: #0f2066;
    color: #fff;
    border-radius: 20px;
    font-size: 0.9rem;
}

.footer-section {
    background: linear-gradient(135deg, #000000 0%, #0f2066 100%);
    color: #ffffff;
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.footer-info, .footer-social, .footer-legal {
    flex: 1;
    min-width: 200px;
}

.footer-info h3, .footer-social h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #0dd30e;
}

.footer-info p, .footer-social a, .footer-legal p, .footer-legal a {
    margin: 5px 0;
    font-size: 14px;
    text-decoration: none;
    color: #ffffff;
}

.footer-social a:hover {
    color: #0dd30e;
}

.footer-legal a {
    color: #cccccc;
}

.footer-legal a:hover {
    color: #0dd30e;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
    .main-section {
        height: 70vh;
    }

    .info-content {
        gap: 25px;
    }

    .image-grid,
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .navbar-container {
        flex-direction: column;
        gap: 15px;
    }

    .list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .nav-link {
        margin: 0 8px;
    }

    .main-section {
        height: 60vh;
        padding: 20px;
        background-attachment: scroll;
    }
    
    .main-section .Tittle {
        font-size: 2rem;
    }
    
    .main-section p,
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .info-section {
        padding: 40px 15px;
    }

    .section-title {
        font-size: 2rem;
    }

    .info-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .image-info {
        max-width: 100%;
    }

    .info-content h2 {
        font-size: 2rem;
    }

    .info-content div p {
        font-size: 1.05rem;
    }

    .vision-text {
        font-size: 1rem;
    }

    .submain-section {
        padding: 40px 15px;
    }
    
    .image-grid,
    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .image-item img {
        height: 200px;
    }
    
    .submain-section .Subtitle {
        font-size: 2rem;
    }

    .submain-section .content .Text {
        font-size: 1.1rem;
    }

    .service-box {
        padding: 20px;
    }

    .market-tag {
        padding: 7px 15px;
        font-size: 0.85rem;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
    }
    
    .footer-info, .footer-social, .footer-legal {
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 480px) {

    .logo a {
        font-size: 20px;
    }

    .nav-link a {
        padding: 8px 10px;
        font-size: 14px;
    }

    .main-section {
        height: 50vh;
        padding: 15px;
    }

    .main-section .Tittle {
        font-size: 1.7rem;
    }

    .main-section p,
    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .info-content h2 {
        font-size: 1.6rem;
    }

    .info-content div p {
        font-size: 0.95rem;
    }

    .vision-text {
        font-size: 0.95rem;
    }

    .submain-section .Subtitle {
        font-size: 1.6rem;
    }

    .submain-section .content .Text {
        font-size: 0.95rem;
    }

    .image-item img {
        height: 170px;
    }

    .image-grid div {
        padding: 20px;
    }

    .value-card {
        padding: 15px;
    }

    .image-grid h3,
    .value-card h3 {
        font-size: 1.3rem;
    }

    .image-grid p,
    .value-card p {
        font-size: 0.9rem;
    }

    .service-box {
        padding: 15px;
    }

    .btn-link {
        padding: 8px 18px;
        font-size: 0.9rem;
    }

    .market-tag {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .footer-section {
        padding: 25px 15px;
    }

    .footer-info p, .footer-social a, .footer-legal p, .footer-legal a {
        font-size: 13px;
    }
}