/* Estilos específicos para us-work.html */
.page-container {
    padding-bottom: 0; /* Reduce el espacio debajo del contenido principal */
}
.content-wrapper { max-width: 1440px; margin: 0 auto; padding: 0 5%; }
.intro-section { padding: 50px 7.5%; text-align: left; }
.intro-section h2 { font-size: 36px; font-weight: 700; color: #203f50; margin-bottom: 10px; }
.intro-section p { font-size: 22px; color: #444444; }
.process-section { display: flex; gap: 30px; padding: 0 7.5% 40px; } /* Espaciado inferior eliminado */
.process-image-main { flex-basis: 35%; position: relative; }
.process-image-main img { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.cta-button-alt { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); background-color: #0B809B; color: white; padding: 10px 25px; border-radius: 50px; text-decoration: none; font-weight: 600; }
.process-details { flex-basis: 65%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.process-card { position: relative; overflow: hidden; border-radius: 20px; }
.process-card img { width: 100%; height: 100%; object-fit: cover; }
/* ===== ESTILO DE CARD-OVERLAY CORREGIDO ===== */
.card-overlay {
    position: absolute;
    bottom: 15px; /* Pega el overlay al borde inferior */
    left: 0;   /* Pega el overlay al borde izquierdo */
    right: 0;  /* Pega el overlay al borde derecho */
    background-color: rgba(32, 63, 80, 0.8);
    color: white;
    padding: 2px 15px;
    font-size: 18px;
    border-radius: 0 0 0 0; /* Redondea solo las esquinas inferiores */
    text-align: center;
}
.process-banner { grid-column: 1 / -1; background-color: #0B809B; color: white; padding: 30px; border-radius: 20px; font-size: 18px; font-weight: 600; text-align: left; }
.talent-section { width: 100%; background: linear-gradient(to bottom, #203f50, #0A2834); padding: 60px 0; text-align: center; }
.talent-section h3 { font-size: 38px; font-weight: 700; color: white; margin-bottom: 40px; }
.talent-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-bottom: 50px; }
.talent-card { text-align: center; color: white; }
.icon-container { width: 100%; max-width: 160px; height: 140px; margin: 0 auto 15px; display: flex; justify-content: center; align-items: center; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 10px; padding: 20px; }
.icon-container img { max-width: 100%; max-height: 100%; object-fit: contain; }
.talent-card span { font-size: 20px; font-weight: 500; line-height: 1.3; }
.cta-button-main { display: inline-block; background-color: #008C8C; color: white; padding: 15px 40px; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 20px; border: 2px solid #007a7a; box-shadow: 0 5px 15px rgba(0, 71, 71, 0.4); }

/* ===== ESTILOS CORREGIDOS PARA STACK Y FOOTER ===== */
.stack-section { width: 100%; background-color: #f3f6f7; padding: 80px 0; }
.stack-layout { display: flex; flex-direction: column; gap: 40px; }
.stack-text h2 { font-size: 28px; font-weight: 800; color: #27576b; margin-bottom: 20px; }
.stack-text p { font-size: 18px; color: #203f50; line-height: 1.6; margin-bottom: 20px; }

.stack-visual-container {
    flex-basis: 60%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stack-logos-card {
    background: white;
    border-radius: 30px;
    padding: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f3f6;
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: relative; /* Para anclar el badge */
    height: auto; /* Ajuste al contenido */
    justify-content: center; /* Centra el contenido verticalmente */
}

/* Imagen de StackTecnologico: responsiva y contenida */
.stack-logos {
    width: 100%;
    height: auto;
    max-width: 560px;
    object-fit: contain;
}

.prime-ng-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}
.prime-ng-badge img { height: 40px; }

.tech-item {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Alinea texto y logo */
    gap: 20px;
}
.tech-item p {
    font-size: 16px;
    color: #203f50;
    line-height: 1.5;
    flex-basis: 60%; /* Asigna espacio al texto */
}
.tech-icon {
    height: 80px;
    width: 80px;
    object-fit: contain;
}
.tech-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.contact-banner-section { width: 100%; background-color: #0B809B; padding: 50px 0; }
.contact-banner-layout { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.contact-text h3 { font-size: 28px; font-weight: 700; color: white; }
.contact-text p { font-size: 18px; color: white; font-weight: 500; }
.cta-button-light { display: inline-block; background: #45bcdc; color: white; padding: 12px 35px; border-radius: 15px; text-decoration: none; font-weight: 700; font-size: 24px; }
.footer-section { width: 100%; background-color: #ffffff; padding: 60px 0; }
.footer-layout { display: flex; flex-direction: column; gap: 40px; text-align: center; }
.footer-column h4 { font-size: 17px; font-weight: 700; color: #203f50; margin-bottom: 15px; }
.footer-column a { display: block; color: #272d30; text-decoration: none; font-size: 17px; margin-bottom: 10px; }
.social-icons { display: flex; gap: 20px; justify-content: center;}
.social-icons img { width: 30px; }

/* --- Media Queries --- */
@media (min-width: 768px) {
    .content-wrapper { padding: 0 7.5%; }
    .process-section { flex-direction: row; }
    .talent-grid { grid-template-columns: repeat(3, 1fr); }
    .stack-layout { flex-direction: row; align-items: stretch; } /* Alineación corregida */
    /* Igualar alturas y fondos en desktop */
    .stack-text {
        flex: 1 1 50%;
        background: #ffffff;
        border-radius: 30px;
        padding: 24px;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
        border: 1px solid #f0f3f6;
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    .stack-text .cta-button-main { margin-top: auto; align-self: flex-start; }
    .stack-visual-container { flex: 1 1 50%; align-items: stretch; }
    .stack-logos-card { height: 100%; }
    .contact-banner-layout { flex-direction: row; justify-content: space-between; text-align: left; }
    .cta-button-light { font-size: 30px; }
    
    /* Footer layout corregido a 2 columnas */
    .footer-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        text-align: left;
        gap: 40px;
        max-width: 800px;
        margin: 0 auto;
    }
    .footer-column:nth-child(1) {
        grid-column: 1;
    }
    .footer-column:nth-child(2) {
        grid-column: 2;
    }
    .footer-column:nth-child(3) {
        grid-column: 2;
        margin-top: 0; /* Margen eliminado */
    }
    .social-icons {
        justify-content: flex-start;
    }
}

@media (min-width: 992px) {
    .talent-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Apilar proceso en pantallas medianas y pequeñas: ver media query correspondiente más arriba */

/* 6 columnas en pantallas grandes */
@media (min-width: 1200px) {
    .talent-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 768px) {
    .process-details { grid-template-columns: 1fr; }
    .talent-grid { grid-template-columns: repeat(2, 1fr); }
    .talent-card span { font-size: 16px; }
    .process-banner { font-size: 20px; }
    .stack-layout { flex-direction: column-reverse; }
    .prime-ng-badge { top: 15px; right: 15px; }
    .tech-item { flex-direction: column; text-align: center; }
    .tech-item p { order: 2; }
    .tech-icon, .tech-logo { order: 1; margin-bottom: 10px; }
}

.text-color {
    color: #0a3f4e;
}