/*
Theme Name: Divi Child
Theme URI: http://www.elegantthemes.com/gallery/divi/
Template: Divi
Author: Elegant Themes
Author URI: http://www.elegantthemes.com
Description: Smart. Flexible. Beautiful. Divi is the most powerful theme in our collection.
Version: 4.27.4.1740903648
Updated: 2025-03-02 08:20:48

*/

/* ==========================================================
   Scroll apilado #servicios — cada panel se queda fijo,
   ocupando todo el wrapper, y el siguiente crece desde el
   centro tapando al anterior. Solo activo desde 981px.
   ========================================================== */

/* ==========================================================
   Scroll apilado #servicios — cada panel se queda fijo,
   ocupando todo el wrapper, y el siguiente crece desde el
   centro tapando al anterior. Solo activo desde 981px.
   ========================================================== */

@media (min-width: 981px) {
  .servicios-stack-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100vh; /* ajusta si el contenido más alto no cabe */
  }

  /* Máxima especificidad para ganarle a las reglas propias de Divi
     (.et_pb_row trae por defecto width:80%/max-width/margin:auto) */
  #servicios .servicios-stack-wrapper .servicios-stack-panel.et_pb_row {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
    padding-left: 5% !important;
    padding-right: 5% !important;
    transform-origin: center center;
    /* Importante: cada panel necesita un fondo sólido para tapar
       de verdad al anterior. Si tu .servicio no trae ya un color de
       fondo (et_pb_bg_layout_light suele traerlo), añade uno aquí
       o por fila si hace falta, si no verás el panel de detrás
       transparentándose por los huecos del layout interno. */
    background-color: #ffffff;
  }

  /* Fila fija: se queda anclada abajo del wrapper, visible durante
     todo el efecto, sin animarse. z-index alto y fijo para no
     depender del orden del DOM. */
  #servicios .servicios-stack-wrapper .servicios-fijo {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    z-index: 999 !important;
  }
}