/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 90px;
    background-color: #000;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.5; /* Dark overlay effect for text legibility */
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 66, 127, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-content .subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-style: italic;
    opacity: 0.9;
}

.hero-content .title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero-content .highlight {
    color: var(--primary-light); /* Accent color on dark background */
}

.hero-content .description {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.hero-wave {
    position: absolute;
    bottom: -2px; /* Prevent sub-pixel gap */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 4;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.hero-wave .shape-fill {
    fill: var(--white);
}

/* Productos Section */
.productos-section {
    padding: 6rem 0;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-blue);
    font-weight: 800;
    margin-bottom: 1rem;
}

.separator {
    width: 80px;
    height: 4px;
    background-color: var(--primary-light);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.card-producto {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.card-producto:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(10, 66, 127, 0.1);
    border-color: var(--accent-blue);
}

.card-img {
    width: 90px;
    height: 90px;
    background-color: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.card-producto:hover .card-img {
    background-color: var(--primary-blue);
}

.icon-large {
    font-size: 2.5rem;
    color: var(--primary-blue);
    transition: var(--transition);
}

.card-producto:hover .icon-large {
    color: var(--white);
}

.card-body h3 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

.card-body p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Creative Client Card Hover Effect */
.client-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    width: 100%;
    max-width: 140px; /* Tamaño mucho más reducido, a pedido del cliente */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    aspect-ratio: 1/1; /* Tarjeta más cuadrada para logos circulares más pequeños */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(24, 110, 209, 0) 0%, rgba(24, 110, 209, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.client-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(24, 110, 209, 0.15);
    border-color: var(--primary-light);
}

.client-card:hover::before {
    opacity: 1;
}

.client-card img {
    transition: transform 0.5s ease;
    z-index: 1;
}

.client-card:hover img {
    transform: scale(1.1) rotate(5deg);
}

/* Nuevos Estilos Visuales (Diagonales, Imágenes, etc.) */
.hero-diagonal {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 90px;
    background-color: #000;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10vw), 0 100%);
    padding-bottom: 15vw;
}

.hero-diagonal-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../img/rollos.jpeg'); /* fallback or standard image */
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    z-index: 1;
}

/* Client Grid */
.client-grid-container {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
    justify-items: center;
}

@media (max-width: 576px) {
    .client-grid-container {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 1.5rem !important;
    }
    
    .client-card {
        width: 120px;
        max-width: 120px; /* Tamaño mucho más chico en celulares */
        padding: 0.8rem;
        margin: 0 auto;
    }
}

.hero-diagonal::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(10, 66, 127, 0.85) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
}

.hero-diagonal .container {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    margin: 0 auto;
}

.diagonal-up {
    clip-path: polygon(0 10vw, 100% 0, 100% 100%, 0 100%);
    padding-top: calc(6rem + 10vw);
}

.diagonal-down {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10vw), 0 100%);
    padding-bottom: calc(6rem + 10vw);
    margin-bottom: -10vw;
}

.split-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}
.split-text { flex: 1; }
.split-image { flex: 1; position: relative; }
.split-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    object-fit: cover;
    aspect-ratio: 4/3;
    transition: transform 0.5s cubic-bezier(0.1, 0.7, 0.1, 1);
}
.split-image img:hover {
    transform: scale(1.03);
}

.bg-image-overlay {
    position: relative;
    background-image: url('../img/coils.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.bg-image-overlay::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 66, 127, 0.9);
    z-index: 1;
}
.bg-image-overlay > .container {
    position: relative;
    z-index: 2;
}

.mx-auto { margin-left: auto; margin-right: auto; }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}





/* Responsive Design for Home */
@media (max-width: 992px) {
    .hero-content .title { font-size: 3rem; }
}

@media (max-width: 768px) {
    .hero-content .title { font-size: 2.5rem; }
    
    .split-layout {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .split-text {
        text-align: center !important;
    }
    
    .split-text .section-desc {
        text-align: center !important;
    }

    .split-text .separator {
        margin: 0 auto 1.5rem auto !important;
    }
    
    .split-text .check-list {
        text-align: left;
        display: inline-block;
    }
    
    .hero-buttons {
        flex-wrap: wrap;
    }
    
    .hero-diagonal {
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5vw), 0 100%);
        padding-bottom: 10vw;
    }
    
    .diagonal-up {
        clip-path: polygon(0 5vw, 100% 0, 100% 100%, 0 100%);
        padding-top: calc(4rem + 5vw);
        margin-top: -5vw;
    }
}

@media (max-width: 480px) {
    .hero-content .title { font-size: 2rem; }
    .hero-content .description { font-size: 1rem; }
    .grid-productos { grid-template-columns: 1fr; }
}
