/* TRANSCOLOMBIA GROUP - ESTILOS OPTIMIZADOS */

:root {
    --primary-color: #10b981;
    --primary-dark: #059669;
    --bg-dark: #0f172a;
    --bg-secondary: #1e293b;
    --text-light: #f1f5f9;
    --text-muted: #cbd5e1;
    --text-subtle: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-light) !important;
    background-color: var(--bg-dark) !important;
    overflow-x: hidden;
}

/* === HEADER STYLES === */
.header {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.navbar-brand.logo {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color) !important;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-weight: bold;
}

.navbar-toggler {
    border: none !important;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2816, 185, 129, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.nav-links .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    margin: 0 0.5rem;
}

.nav-links .nav-link:hover {
    color: var(--primary-color) !important;
}

/* === HERO SECTION === */
.hero {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(
            135deg,
            rgba(15, 23, 42, 0.60) 0%,
            rgba(30, 41, 59, 0.40) 50%,
            rgba(15, 23, 42, 0.60) 100%
        ),
        url("../img/tu-imagen.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--bg-dark);
    position: relative;
    padding-top: 85px !important;
    padding-bottom: 1rem !important;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero .row {
    min-height: 75vh;
    align-items: center;
}

.hero-content {
    padding-right: 3rem;
}

.hero-title {
    font-size: 3.8rem !important;
    font-weight: 900;
    line-height: 1.05 !important;
    margin-bottom: 1.2rem !important;
    color: var(--text-light) !important;
}

.hero-subtitle {
    font-size: 1.25rem !important;
    color: var(--text-muted) !important;
    margin-bottom: 2.5rem !important;
    line-height: 1.6;
    max-width: 90% !important;
}

.hero-image img,
.hero-img-tall {
    width: 100%;
    height: 500px !important;
    min-height: 500px;
    max-height: 650px;
    object-fit: cover;
    aspect-ratio: 4/5;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.highlight {
    color: var(--primary-color) !important;
}

/* === BUTTONS === */
.btn-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    border: none !important;
    padding: 1.1rem 2.2rem !important;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem !important;
    transition: all 0.3s ease;
    color: white !important;
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    color: white !important;
}

.btn-custom-outline {
    background: transparent !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    padding: 1.1rem 2.2rem !important;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem !important;
    transition: all 0.3s ease;
}

.btn-custom-outline:hover {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
}

/* === STATS === */
.stat-card {
    background: var(--glass-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2rem !important;
    font-weight: bold !important;
    color: var(--primary-color) !important;
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-subtle) !important;
    margin-top: 0.5rem;
}

.hero-stats .row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
    margin-top: 3rem !important;
}

.hero-stats .col-md-4 {
    width: auto !important;
    flex: none !important;
    max-width: none !important;
}

/* === SECTION STYLES === */
.section {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 5rem 0 !important;
}

.section-title {
    font-size: 2.5rem !important;
    font-weight: bold;
    color: var(--text-light) !important;
}

.section-subtitle {
    font-size: 1.125rem !important;
    color: var(--text-muted) !important;
    max-width: 600px;
    margin: 0 auto;
}

.section-subtitle-justified {
    font-size: 1.125rem;
    color: var(--text-muted);
    text-align: justify;
    line-height: 1.7;
    margin: 0 auto;
}

/* === VALUE CARDS (QUIÉNES SOMOS) === */
.value-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.15);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.value-title {
    color: var(--text-light);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.value-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.values-list {
    text-align: left;
    max-width: 250px;
    margin: 0 auto;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.value-bullet {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1rem;
    flex-shrink: 0;
}

/* === SERVICES === */
.service-card {
    background: var(--glass-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(16, 185, 129, 0.3) !important;
}

.service-card > * {
    position: relative;
    z-index: 2;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.service-card h3 {
    font-size: 1.25rem !important;
    font-weight: 600;
    color: var(--primary-color) !important;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted) !important;
    line-height: 1.6;
}

/* === COMPANIES === */
.company-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(15, 23, 42, 0.8)) !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.company-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.company-card:hover::before {
    left: 100%;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.3);
}

.company-card > * {
    position: relative;
    z-index: 2;
}

.company-card h3 {
    color: var(--primary-color) !important;
    font-size: 1.25rem !important;
    font-weight: 600;
    margin-bottom: 1rem;
}

.company-card p {
    color: var(--text-muted) !important;
    margin-bottom: 1rem;
}

.company-link {
    color: var(--primary-color) !important;
    font-weight: 600;
    font-size: 0.875rem;
}

/* === CONTACT === */
.contact-title {
    color: var(--primary-color) !important;
    font-size: 2rem !important;
    margin-bottom: 1rem;
}

.contact-subtitle {
    color: var(--text-muted) !important;
    font-size: 1.125rem !important;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--glass-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(16, 185, 129, 0.2) !important;
    border-radius: 8px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.25rem;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.contact-icon:hover svg {
    transform: scale(1.1);
}

.contact-label {
    color: var(--text-light) !important;
    font-weight: 600;
}

.contact-sublabel {
    color: var(--text-subtle) !important;
    font-size: 0.875rem;
}

.contact-link {
    color: inherit;
    text-decoration: none;
}

.contact-link:hover,
.contact-link:focus {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-form {
    background: var(--glass-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px;
    padding: 2rem;
}

.contact-form .form-control {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px;
    color: var(--text-light) !important;
    padding: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form .form-control:focus {
    background: rgba(15, 23, 42, 0.9) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.25) !important;
    color: var(--text-light) !important;
}

.contact-form .form-control::placeholder {
    color: var(--text-subtle) !important;
}

.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

/* === FOOTER === */
.footer {
    background: #020617 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer p {
    color: #64748b !important;
    margin-bottom: 0.5rem;
}

.footer .highlight {
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* === ACCESSIBILITY === */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #10b981;
    color: white;
    padding: 8px;
    text-decoration: none;
    transition: top 0.3s;
    z-index: 1000;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

:focus { outline: none; }
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* === GALERÍA MODAL === */
.btn-gallery-trigger {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-gallery-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    color: white;
}

.gallery-modal-content {
    background: var(--bg-dark);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 0;
}

.gallery-header {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-dark));
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
    padding: 1rem 2rem;
}

.gallery-header .modal-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.25rem;
}

.gallery-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-gallery-control {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem;
    border-radius: 6px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-gallery-control:hover {
    background: var(--primary-color);
    color: white;
}

.gallery-body {
    padding: 0;
    background: var(--bg-dark);
}

.gallery-container {
    height: 80vh;
    display: flex;
    flex-direction: column;
}

.gallery-main-image {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
}

.gallery-main-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-main-image:hover .gallery-overlay {
    opacity: 1;
}

.gallery-nav {
    background: rgba(16, 185, 129, 0.9);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-nav:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.gallery-nav:disabled {
    background: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    transform: none;
}

.gallery-info {
    background: var(--bg-secondary);
    padding: 1rem 2rem;
    border-top: 1px solid rgba(16, 185, 129, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-counter {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.gallery-description p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

.gallery-thumbnails {
    background: var(--bg-secondary);
    padding: 1rem;
    border-top: 1px solid rgba(16, 185, 129, 0.1);
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    max-height: 100px;
}

.gallery-thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    object-fit: cover;
    flex-shrink: 0;
}

.gallery-thumbnail:hover {
    transform: scale(1.05);
    border-color: rgba(16, 185, 129, 0.5);
}

.gallery-thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.gallery-fade-in {
    animation: galleryFadeIn 0.5s ease;
}

@keyframes galleryFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.gallery-playing .gallery-main-image img {
    animation: galleryPulse 3s ease-in-out infinite;
}

@keyframes galleryPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* === SECCIÓN PATROCINIO CAIMANES DEL LLANO === */
.patrocinio-section {
    background: linear-gradient(
        135deg,
        var(--bg-dark) 0%,
        var(--bg-secondary) 50%,
        var(--bg-dark) 100%
    );
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.patrocinio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.patrocinio-container {
    position: relative;
    z-index: 2;
}

.patrocinio-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 2rem;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.patrocinio-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-light), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    color: var(--text-light);
}

.patrocinio-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.team-logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

.logo-divider {
    display: flex;
    align-items: center;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* === LOGOS CONSOLIDADOS === */
.company-logo, 
.team-logo {
    width: 120px;
    height: 120px;
    background: var(--glass-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    padding: 10px;
}

.company-logo::before, 
.team-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.company-logo:hover::before, 
.team-logo:hover::before {
    left: 100%;
}

.company-logo:hover, 
.team-logo:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
}

.logo-image-container {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.company-logo:hover .logo-image,
.team-logo:hover .logo-image {
    transform: scale(1.1);
}

.logo-fallback {
    text-align: center;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.logo-label {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.2;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    position: relative;
    z-index: 2;
}

.company-logo:hover .logo-label,
.team-logo:hover .logo-label {
    color: var(--primary-color);
}

.logo-image[src=""],
.logo-image:not([src]) {
    display: none;
}

.logo-image-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: logoSpin 1s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo-image-container.loading::before {
    opacity: 1;
}

@keyframes logoSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.vs-connector {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
    animation: connectorBounce 2s infinite;
}

@keyframes connectorBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.partnership-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.partnership-stats .stat-item {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.partnership-stats .stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.partnership-stats .stat-item:hover::before {
    opacity: 1;
}

.partnership-stats .stat-item:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.4);
}

.partnership-stats .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.partnership-stats .stat-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.partnership-stats .stat-description {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.gallery-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
}

/* === GALERÍA GRID CORREGIDA - PROBLEMA SOLUCIONADO === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 0;
}

.image-placeholder {
    background: var(--glass-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 220px; /* Altura fija para evitar solapamiento */
    width: 100%;
}

.image-placeholder:hover {
    border-color: var(--primary-color);
    background: rgba(16, 185, 129, 0.1);
    transform: translateY(-5px) scale(1.02);
}

.placeholder-icon {
    font-size: 3rem;
    color: var(--text-subtle);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.image-placeholder:hover .placeholder-icon {
    color: var(--primary-color);
    transform: scale(1.1);
}

.placeholder-text {
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
    padding: 0 1rem;
}

/* === IMÁGENES EN GALERÍA OPTIMIZADAS === */
.image-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.3s ease;
}

.image-placeholder.has-image {
    background: none;
    border: 2px solid var(--primary-color);
}

.image-placeholder.has-image .placeholder-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
    padding: 1.5rem 1rem 1rem 1rem;
    margin: 0;
    text-align: center;
    z-index: 2;
}

.image-placeholder.has-image .placeholder-icon {
    display: none;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: ctaFloat 20s linear infinite;
}

@keyframes ctaFloat {
    0% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-20px) translateX(10px); }
    100% { transform: translateY(0px) translateX(0px); }
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-cta {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: var(--primary-dark);
    text-decoration: none;
}

/* === LIGHTBOX MODAL === */
.image-modal-content {
    background: var(--bg-dark);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
}

.image-modal-header {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-dark));
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px 16px 0 0;
}

.image-modal-header .modal-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.25rem;
}

.image-modal-body {
    padding: 0;
    background: #000;
    border-radius: 0 0 16px 16px;
}

.image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    max-height: 80vh;
    overflow: hidden;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.image-info {
    background: var(--bg-secondary);
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(16, 185, 129, 0.2);
}

.image-caption {
    color: var(--text-light);
    margin: 0;
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.6;
}

/* === UTILIDADES === */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-glass {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.border-primary-custom {
    border-color: var(--primary-color) !important;
}

/* === RESPONSIVE DESIGN OPTIMIZADO === */
@media (max-width: 992px) {
    .hero {
        padding-top: 90px !important;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .hero-image img,
    .hero-img-tall {
        height: 350px !important;
    }
    
    .patrocinio-section {
        padding: 5rem 0;
    }
    
    .patrocinio-title {
        font-size: 3rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 85vh !important;
        padding-top: 85px !important;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.8rem !important;
    }
    
    .hero-image img,
    .hero-img-tall {
        height: 300px !important;
        min-height: 300px;
        max-height: 400px;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .value-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .value-title {
        font-size: 1.3rem;
    }
    
    .values-list {
        max-width: 100%;
    }
    
    .section-subtitle-justified {
        font-size: 1rem;
        text-align: left;
        line-height: 1.6;
    }
    
    .hero-stats .row {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .gallery-info {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .gallery-overlay {
        padding: 1rem;
    }
    
    .gallery-container {
        height: 70vh;
    }
    
    .patrocinio-section {
        padding: 4rem 0;
    }
    
    .patrocinio-title {
        font-size: 2.5rem;
    }
    
    .patrocinio-subtitle {
        font-size: 1.1rem;
    }
    
    .logo-divider {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .vs-connector {
        transform: rotate(90deg);
    }
    
    .partnership-stats {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .image-placeholder {
        height: 200px;
    }
    
    .cta-section {
        padding: 2rem 1rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .company-logo, 
    .team-logo {
        width: 100px;
        height: 100px;
        padding: 8px;
    }
    
    .logo-image-container {
        width: 65px;
        height: 65px;
        margin-bottom: 6px;
    }
    
    .logo-label {
        font-size: 0.6rem;
        max-width: 85px;
    }
    
    .image-container {
        min-height: 50vh;
        max-height: 70vh;
    }
    
    .image-info {
        padding: 1rem;
    }
    
    .image-caption {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem !important;
    }
    
    .hero-image img,
    .hero-img-tall {
        height: 250px !important;
    }
    
    .btn-custom,
    .btn-custom-outline {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
    
    .section-subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .value-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .btn-gallery-trigger {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .gallery-header {
        padding: 0.75rem 1rem;
    }
    
    .gallery-header .modal-title {
        font-size: 1.1rem;
    }
    
    .patrocinio-section {
        padding: 3rem 0;
    }
    
    .patrocinio-title {
        font-size: 2rem;
    }
    
    .company-logo, 
    .team-logo {
        width: 90px;
        height: 90px;
        padding: 6px;
    }
    
    .logo-image-container {
        width: 55px;
        height: 55px;
        margin-bottom: 5px;
    }
    
    .logo-label {
        font-size: 0.55rem;
        max-width: 75px;
    }
    
    .partnership-stats {
        grid-template-columns: 1fr;
    }
    
    .partnership-stats .stat-item {
        padding: 1.5rem;
    }
    
    .gallery-title {
        font-size: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .image-placeholder {
        height: 180px;
    }
}

/* === SECCIÓN EMPRESAS MEJORADA === */

/* Logos de empresas */
.company-logo-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 16px;
    border: 2px solid rgba(16, 185, 129, 0.2);
    transition: all 0.3s ease;
}

.company-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 14px;
    transition: transform 0.3s ease;
}

.company-logo-fallback {
    font-size: 2rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.company-card:hover .company-logo-container {
    border-color: var(--primary-color);
    background: rgba(16, 185, 129, 0.2);
    transform: translateY(-5px);
}

.company-card:hover .company-logo-img {
    transform: scale(1.1);
}

/* Información de la empresa */
.company-info {
    position: relative;
    z-index: 2;
}

.company-description {
    color: var(--text-muted) !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Tags de características */
.company-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.company-card:hover .feature-tag {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--primary-color);
}

/* Link mejorado */
.company-card .company-link {
    color: var(--primary-color) !important;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.company-card:hover .company-link {
    transform: translateY(-2px);
}

/* Estadísticas del grupo empresarial */
.business-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 3rem 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    margin-top: 2rem;
}

.business-stats .stat-item {
    text-align: center;
    padding: 1rem;
    transition: all 0.3s ease;
}

.business-stats .stat-item:hover {
    transform: translateY(-5px);
}

.business-stats .stat-number {
    font-size: 2.5rem !important;
    font-weight: bold !important;
    color: var(--primary-color) !important;
    display: block;
    margin-bottom: 0.5rem;
}

.business-stats .stat-label {
    font-size: 0.9rem;
    color: var(--text-muted) !important;
    font-weight: 500;
}

/* Responsive para empresas */
@media (max-width: 768px) {
    .company-logo-container {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }
    
    .company-description {
        font-size: 0.9rem;
    }
    
    .feature-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    
    .business-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 2rem 1rem;
    }
    
    .business-stats .stat-number {
        font-size: 2rem !important;
    }
}

@media (max-width: 576px) {
    .company-logo-container {
        width: 60px;
        height: 60px;
    }
    
    .company-features {
        gap: 0.3rem;
    }
    
    .feature-tag {
        font-size: 0.65rem;
        padding: 0.15rem 0.5rem;
    }
}

/* === LOGO GRANDE PARA TRANSPORTES GUEVARA === */
.company-logo-large {
    width: 120px !important;
    height: 120px !important;
    margin-bottom: 2rem !important;
}

.company-logo-large .company-logo-img {
    border-radius: 16px;
}

.company-logo-large .company-logo-fallback {
    font-size: 3rem;
}

/* Responsive para logo grande */
@media (max-width: 768px) {
    .company-logo-large {
        width: 100px !important;
        height: 100px !important;
        margin-bottom: 1.5rem !important;
    }
    
    .company-logo-large .company-logo-fallback {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .company-logo-large {
        width: 80px !important;
        height: 80px !important;
    }
    
    .company-logo-large .company-logo-fallback {
        font-size: 2rem;
    }
}