/* ============================================
   BANNER NOSOTROS
   ============================================ */
.banner-nosotros
{
    margin-top: -130px;
}

.banner-nosotros .scroll-caret
{
    position: absolute;
    bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.25px solid rgba(255, 255, 255, 0.9);
    color: #ffffff;
    font-size: 1.05rem;
    text-decoration: none;
    cursor: pointer;
    z-index: 20;
    animation: banner-nosotros-caret-bounce 2s ease-in-out infinite;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.banner-nosotros .scroll-caret:hover,
.banner-nosotros .scroll-caret:focus
{
    background: rgba(255, 255, 255, 0.32);
    border-color: #ffffff;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
    animation-play-state: paused;
}

@keyframes banner-nosotros-caret-bounce
{
    0%,
    100%
    {
        transform: translateX(-50%) translateY(0);
        opacity: 0.85;
    }
    50%
    {
        transform: translateX(-50%) translateY(6px);
        opacity: 1;
    }
}

@media (max-width: 782px)
{
    .banner-nosotros .scroll-caret
    {
        bottom: max(4rem, calc(env(safe-area-inset-bottom, 0px) + 3rem));
        animation-name: banner-nosotros-caret-bounce-mobile;
    }
}

@keyframes banner-nosotros-caret-bounce-mobile
{
    0%,
    100%
    {
        transform: translateX(-50%) translateY(0);
        opacity: 0.85;
    }
    50%
    {
        transform: translateX(-50%) translateY(4px);
        opacity: 1;
    }
}

/* ============================================
   TEAM MEMBERS GRID — Promocat brand styles
   Overrides plugin defaults with promocat colors
   ============================================ */

/* --- Contenedor principal --- */
.team-members-grid-container
{
    width: 100%;
    padding: 0;
    margin: 0;
}

/* --- Grid layout --- */
.team-members-grid
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    padding: 10px 0;
}

/* --- Tarjeta de miembro --- */
.team-member-card
{
    position: relative;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.team-member-card:hover
{
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(111, 21, 38, 0.16);
    border-color: rgba(111, 21, 38, 0.15);
}

/* --- Wrapper de imagen --- */
.team-member-image-wrapper
{
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background-color: #f5f0e8;
}

.team-member-image
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-member-card:hover .team-member-image
{
    transform: scale(1.06);
}

/* --- Overlay en hover --- */
.team-member-overlay
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(111, 21, 38, 0.75) 0%, rgba(111, 21, 38, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 2;
}

.team-member-card:hover .team-member-overlay
{
    opacity: 1;
}

.team-member-view-more
{
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 12px 28px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    transition: all 0.3s ease;
    background: transparent;
}

.team-member-card:hover .team-member-view-more
{
    background-color: #ffffff;
    color: #8E2C3B;
}

/* --- Información del miembro --- */
.team-member-info
{
    padding: 22px 20px 24px;
    text-align: center;
    background: #ffffff;
}

.team-member-name
{
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #1a1a1a;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.team-member-position
{
    font-size: 0.85rem;
    color: #8E2C3B;
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.4;
}

/* --- Línea decorativa sutil debajo del nombre --- */
.team-member-info::before
{
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: #8E2C3B;
    margin: 0 auto 12px;
    border-radius: 1px;
    opacity: 0.5;
}

/* ============================================
   MODAL STYLES — Promocat brand
   ============================================ */
.team-modal-content
{
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 32px;
}

.team-modal-image
{
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.team-modal-image img
{
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.team-modal-details
{
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.team-modal-details h3
{
    font-size: 1.7rem;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.team-modal-position
{
    font-size: 0.95rem;
    color: #8E2C3B;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 8px 0;
}

.team-modal-description
{
    font-size: 0.98rem;
    line-height: 1.75;
    color: #4b5563;
    text-align: left;
}

.team-modal-description p
{
    margin-bottom: 12px;
}

.team-modal-contact
{
    padding: 16px 0;
    border-top: 1px solid #e9ecef;
    text-align: left;
}

.team-modal-contact p
{
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: #4b5563;
}

.team-modal-contact a
{
    color: #8E2C3B;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.team-modal-contact a:hover
{
    color: #6F1526;
    text-decoration: underline;
}

.team-modal-languages
{
    font-size: 0.92rem;
    color: #4b5563;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
    margin: 0;
}

.team-modal-languages strong
{
    color: #1a1a1a;
    font-weight: 600;
    margin-right: 4px;
}

.teamModalLanguagesText
{
    text-transform: capitalize;
}

/* --- Modal Bootstrap override/fix --- */
.modal
{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
}

.modal.show
{
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop
{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background: rgba(17, 24, 39, 0.28);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
}

.modal-dialog
{
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 20px;
    pointer-events: none;
}

.modal-dialog-centered
{
    display: block;
    width: 100%;
}

.modal-content
{
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    outline: 0;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-lg
{
    max-width: 800px;
}

@media (min-width: 576px)
{
    .modal-dialog
    {
        max-width: 500px;
        margin: 1.75rem auto;
    }

    .modal-dialog-centered
    {
        min-height: calc(100% - 3.5rem);
    }
}

@media (min-width: 992px)
{
    .modal-lg
    {
        max-width: 800px;
    }
}

/* --- Modal header/body/footer --- */
.modal-header
{
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: calc(0.3rem - 1px);
    border-top-right-radius: calc(0.3rem - 1px);
}

.modal-title
{
    margin-bottom: 0;
    line-height: 1.5;
}

.modal-body
{
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.btn-close
{
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: 0.25em;
    color: #000;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: 0.25rem;
    opacity: 0.5;
    cursor: pointer;
}

.btn-close:hover
{
    opacity: 0.75;
}

/* --- Modal animation disabled to prevent scroll issues --- */
.modal.fade .modal-dialog
{
    transition: none;
    transform: none;
}

.modal.show .modal-dialog
{
    transform: none;
}

/* --- Promocat custom modal styles --- */
#teamMemberModal .modal-header
{
    border-bottom: 1px solid #e9ecef;
    padding: 20px 28px;
}

#teamMemberModal .modal-title
{
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
}

#teamMemberModal .modal-body
{
    padding: 28px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 992px)
{
    .team-members-grid
    {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 22px;
    }

    .team-modal-content
    {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .team-modal-image
    {
        max-height: 360px;
    }

    .team-modal-image img
    {
        height: 100%;
    }
}

@media (max-width: 768px)
{
    .team-members-grid
    {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 18px;
    }

    .team-member-info
    {
        padding: 18px 14px 20px;
    }

    .team-member-name
    {
        font-size: 1.05rem;
    }

    .team-member-position
    {
        font-size: 0.78rem;
    }

    .team-member-view-more
    {
        font-size: 0.8rem;
        padding: 10px 22px;
    }

    #teamMemberModal .modal-body
    {
        padding: 20px;
    }

    .team-modal-details h3
    {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px)
{
    .team-members-grid
    {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 14px;
    }

    .team-member-info
    {
        padding: 14px 10px 16px;
    }

    .team-member-name
    {
        font-size: 0.95rem;
    }

    .team-member-position
    {
        font-size: 0.72rem;
        letter-spacing: 0.04em;
    }
}