
/* --- NOSOTROS PAGE SPECIFIC STYLES --- */

/* Global Reset for this page to remove gaps */
main {
    padding-bottom: 0; /* Remove padding if any on main */
}
main section {
    margin-bottom: 0 !important; /* Force remove bottom margins on sections */
    border-radius: 0 !important; /* Remove border radius */
    padding: 0; /* Reset padding */
}

/* Hero Section */
.nosotros-hero {
    position: relative;
    height: 48vh; /* Reduced 20% from 60vh */
    min-height: 350px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #000;
    /* Ensure no gap at bottom */
    margin: 0;
    padding: 0;
}

.nosotros-hero video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
    object-fit: cover;
    /* Fix for whitespace below video */
    display: block; 
}

/* Use the same pattern as home page */
.video-overlay-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../imagenes/PatronPuntos.png');
    background-repeat: repeat;
    background-size: 5px 5px; /* Match home page size */
    opacity: 0.5; /* Match home page opacity */
    z-index: 1;
}

.nosotros-hero .hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.nosotros-hero h2 {
    font-size: 3em;
    font-weight: normal;
    margin-bottom: 0px; /* Reduced to bring p closer */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.nosotros-hero p {
    font-size: 1.2em;
    font-weight: 300;
    font-style: italic; /* Added italic */
    margin-top: -5px; /* Bring closer to h2 */
}

.nosotros-hero .yellow-separator img {
    height: 90px; /* Increased 50% from 60px */
    margin-top: 20px;
}

/* CEO Message Section */
.ceo-message-section {
    position: relative;
    padding: 80px 20px;
    color: #fff;
    text-align: center;
    background-color: #000;
    overflow: hidden;
    margin-top: -1px;
    border-bottom: 4px solid rgb(232, 223, 56); /* Added yellow border */
}

.ceo-message-section .bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
    object-fit: cover;
    opacity: 1; /* Let the overlay handle dimming */
}

.video-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.ceo-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}

.ceo-title {
    font-size: 2.5em;
    font-weight: normal;
    margin-bottom: 30px;
}

.ceo-text {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 60px;
    padding: 0 20px;
}

/* CEO Card */
.ceo-card {
    background-color: rgba(30, 30, 30, 0.95);
    display: inline-block;
    padding: 60px 120px; /* Much wider padding */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    text-align: center;
    min-width: 600px; /* Wider card */
}

.ceo-image-container {
    width: 200px; /* Larger circular image */
    height: 200px;
    margin: 0 auto 30px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.ceo-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Internal layout elements */
.ceo-label {
    display: block;
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.ceo-name {
    color: rgb(232, 223, 56);
    font-size: 2em;
    font-weight: normal;
    text-transform: uppercase;
    margin-bottom: 35px;
    letter-spacing: 2px;
}

.ceo-social {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin-top: 10px;
}

.ceo-social img {
    height: 45px; /* Slightly larger general height */
    width: auto;
    transition: opacity 0.3s, transform 0.3s;
}

.ceo-social .linkedin-icon {
    height: 40px; /* Specific larger height for LinkedIn as requested */
}

.ceo-social img:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

/* Specific fix for white email icon */
.white-icon {
    /* brightness(0) invert(1) forces white regardless of original color */
    filter: brightness(0) invert(1); 
}

/* Responsive */
@media (max-width: 768px) {
    .nosotros-hero h2 {
        font-size: 2em;
    }
    
    .ceo-card {
        padding: 40px 20px;
        min-width: unset;
        width: 100%;
    }
    
    .ceo-image-container {
        width: 150px;
        height: 150px;
    }
}
