/* Zig-Zag Split Feature Sections Component Styles - DronAgro Red & Deep Green Architecture */
.zigzag-section {
    padding: 100px 24px;
}

.zigzag-container {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 56px;
    align-items: center;
}

.zigzag-container.reverse {
    direction: rtl;
}

.zigzag-container.reverse > * {
    direction: ltr;
}

.zigzag-media {
    width: 100%;
}

.zigzag-card {
    background-color: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 12px;
    cursor: pointer;
    position: relative;
}

.zigzag-card::after {
    content: 'Ampliar imagen 🔍';
    position: absolute;
    bottom: 16px;
    right: 16px;
    background-color: rgba(28, 13, 21, 0.9);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.zigzag-card:hover::after {
    opacity: 1;
}

.zigzag-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.zigzag-img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    display: block;
    border-radius: 16px;
}

.zigzag-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.zigzag-tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #15803d; /* Verde Agro Profundo */
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.zigzag-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px 0;
    line-height: 1.25;
}

.zigzag-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    color: #4b5563;
    line-height: 1.65;
    margin: 0 0 28px 0;
}

.zigzag-list {
    list-style: none;
    padding: 0;
    margin: 0 0 36px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.zigzag-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #374151;
    font-weight: 500;
}

.zigzag-check-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #dcfce7;
    color: #15803d;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.zigzag-check-icon svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-zigzag-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    background-color: #dc2626; /* Rojo DronAgro */
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
}

.btn-zigzag-cta:hover {
    background-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35);
}

/* Lightbox Modal Overlay Styles */
.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(28, 13, 21, 0.95); /* Bordó Oscuro */
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(8px);
    padding: 24px;
    box-sizing: border-box;
}

.image-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.image-modal-content {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    object-fit: contain;
    background-color: #ffffff;
    padding: 12px;
    box-sizing: border-box;
}

.image-modal-close {
    position: absolute;
    top: 24px;
    right: 28px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.image-modal-close:hover {
    background: #dc2626;
}

/* Responsive Layout */
@media (max-width: 992px) {
    .zigzag-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .zigzag-container.reverse {
        direction: ltr;
    }
    .zigzag-section {
        padding: 60px 20px;
    }
    .zigzag-title {
        font-size: 1.8rem;
    }
}