/* Hero Section */
.brands-hero {
    position: relative;
    min-height: 100vh; /* Match index hero height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    background: #ffffff; /* Pure white background */
    overflow: hidden;
}

.brands-hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

/* Updated Text Styles to match Index Hero */
.brands-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 800;
    color: var(--color-text-main); /* Dark text for white background */
}

/* Highlight effect */
.brands-hero .highlight {
    color: var(--color-primary); /* Blue highlight */
    position: relative;
    display: inline-block;
}

.brands-hero .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: rgba(0, 212, 255, 0.2);
    z-index: -1;
    transform: skewX(-10deg);
}

.brands-hero .subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text-light); /* Dark gray text */
    font-weight: 400; /* Regular weight */
}

/* Hero Buttons */
.brands-hero .cta-buttons {
    display: flex;
    gap: 20px; /* Space between buttons */
    justify-content: center;
    flex-wrap: wrap;
}

/* Secondary Button Hover Effect */
.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #ffffff; /* White background */
    border-color: var(--color-secondary); /* Secondary Color (Cyan) Border */
    color: var(--color-primary); /* Primary Blue Text ("color de las demas") */
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.2); /* Cyan shadow */
}

/* Remove old dark hero overlays */
.brands-hero::before {
    display: none;
}

/* Brands Grid (Logos) */
.client-brands-section {
    padding: 100px 0;
    background: var(--color-white);
}

.brands-showcase {
    display: flex; /* Kept Flex for centering */
    flex-wrap: wrap;
    justify-content: center; /* Centers cards */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.brand-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 30px;
    
    /* Dimensions for Flex */
    flex: 0 0 280px; /* Base width for text content */
    width: 280px; /* Fallback */
    
    display: flex;
    flex-direction: column; /* Stack image and text */
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    height: 100%; /* Equal height */
    min-height: 250px; /* Ensure space */
}

/* Responsive adjustment for Flexbox cards */
@media (max-width: 600px) {
    .brand-card {
        flex: 1 0 100%; /* Full width on mobile */
        width: 100%;
    }
}

.brand-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--color-secondary);
}

.brand-logo-wrapper {
    height: 100px; /* Fixed height for logo area */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
}

.brand-card img {
    max-width: 100%;
    max-height: 70px;
    /* No grayscale filter */
    transition: transform 0.3s ease;
}

.brand-card:hover img {
    transform: scale(1.05);
}

.brand-info {
    margin-top: auto; /* Push to bottom if space allows, or just flow */
    width: 100%;
}

.brand-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text-main);
}

.brand-info p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* Branding Services (Process/Features) */
.branding-services {
    background-color: var(--color-bg-light);
    padding: 100px 0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.process-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.process-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    border-top-color: var(--color-primary);
}

.process-step {
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-secondary-light);
    position: absolute;
    top: 10px;
    right: 20px;
    opacity: 0.5;
    line-height: 1;
}

.process-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    display: inline-block;
}

.process-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.process-card p {
    color: var(--color-text-light);
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

/* CTA - Redesigned to White */
#cta {
    background: #ffffff; /* White background as requested */
    color: var(--color-text-main); /* Dark text for contrast */
    text-align: center;
    border-top: 1px solid var(--color-border); /* Subtle separation */
    padding: 100px 0;
}

#cta .section-header h2 {
    color: var(--color-text-main); /* Ensure title is dark */
    font-size: 2.5rem;
    margin-bottom: 15px;
}

#cta .section-header p {
    color: var(--color-text-light);
    font-size: 1.2rem;
}

#cta .btn-primary {
    background: var(--color-primary); /* Blue button */
    color: white; /* White text */
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0, 86, 179, 0.3); /* Blue shadow */
    border: none;
    margin-top: 30px;
}

#cta .btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 86, 179, 0.4);
}
