/* ==========================================
   DIVIDERS - Separadores curvos entre secciones
   ========================================== */

.section-divider,
.wave-separator {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin: 0;
    padding: 0;
}

.section-divider svg,
.wave-separator svg {
    display: block;
    width: calc(100% + 1.3px);
    position: relative;
    left: 0;
}

/* Variantes de altura */
.section-divider--sm {
    height: 60px;
}

.section-divider--md {
    height: 100px;
}

.section-divider--lg {
    height: 150px;
}

.wave-separator--bottom,
.wave-separator--footer {
    height: 100px;
}

/* Colores de fondo para los divisores */
.section-divider--white {
    background: var(--blanco);
}

.section-divider--gray {
    background: var(--gris-ultra-claro);
}

.section-divider--blue {
    background: var(--azul-oscuro);
}

.section-divider--gradient {
    background: linear-gradient(180deg, var(--gris-ultra-claro) 0%, var(--blanco) 100%);
}

/* Colores del path SVG */
.section-divider svg path,
.wave-separator svg path {
    fill: var(--blanco);
}

.section-divider--fill-gray svg path {
    fill: var(--gris-ultra-claro);
}

.section-divider--fill-blue svg path {
    fill: var(--azul-oscuro);
}

.section-divider--fill-gradient {
    background: linear-gradient(180deg, var(--blanco) 0%, var(--gris-ultra-claro) 100%);
}

/* Orientación */
.section-divider--flip {
    transform: rotate(180deg);
}

.section-divider--flip-x {
    transform: scaleX(-1);
}

/* Animación sutil opcional */
.section-divider--animate svg {
    animation: wave 8s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-20px);
    }
}

/* Estilos para secciones con divisores */
.section-with-divider {
    position: relative;
}

.section-with-divider-top {
    padding-top: 0;
}

.section-with-divider-bottom {
    padding-bottom: 0;
}

/* Divisores específicos para mejor integración */
.divider-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

.divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

/* Asegurar que el contenido esté por encima de los divisores */
.section-with-divider > .container,
.section-with-divider > * {
    position: relative;
    z-index: 2;
}

/* Responsive */
@media (max-width: 768px) {
    .section-divider--sm {
        height: 40px;
    }

    .section-divider--md {
        height: 60px;
    }

    .section-divider--lg {
        height: 80px;
    }

    .wave-separator--bottom,
    .wave-separator--footer {
        height: 60px;
    }
    
    .section-divider svg,
    .wave-separator svg {
        height: 100%;
    }
}
