/*
Theme Name:   Espinos
Theme URI:    https://elementor.com/hello-theme/
Description:  Tema hijo de Hello Elementor para Proyecto Espinos
Author:       Branding Digital
Author URI:   https://brandingdigital.cl
Template:     hello-elementor
Version:      1.0.0
Text Domain:  espinos
*/

/* Agrega tu CSS personalizado debajo de esta línea */


/* Cambia el fondo al hacer scroll */

.text-accent {
    color: #ebaba7;
}

.elementor-sticky--effects {
  background: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Transición suave */
.header-sticky {
  transition: background-color 0.4s ease;
}

/* Oculta logo blanco cuando está sticky */
.elementor-sticky--effects .logo-white {
  display: none;
}

/* Muestra logo color cuando está sticky */
.elementor-sticky--effects .logo-color {
  display: block;
}

/* Logo blanco visible por defecto */
.logo-white {
  display: block;
}

/* Logo color oculto por defecto */
.logo-color {
  display: none;
}

/* Cambia el color de los íconos a negro cuando está sticky */
.elementor-sticky--effects .menu-header a,
.elementor-sticky--effects .menu-header i {
  color: #000000 !important;
}

.elementor-sticky--effects .menu-header .elementor-icon-list-text {
  color: #000000 !important;
}

.elementor-sticky--effects .menu-header a:hover,
.elementor-sticky--effects .menu-header i:hover {
  color: #E84C3C !important;
}

.elementor-sticky--effects .menu-header .elementor-icon-list-text:hover {
  color: #E84C3C !important;
}

/* --- Estilos Timeline--- */
.timeline-container {
  position: relative;
  max-width: 900px; 
  margin-left: auto;
  margin-right: auto;
  margin-top: 5rem; 
  padding: 0 1rem; 
}

/* La línea central */
.timeline-container::after {
  content: '';
  position: absolute;
  width: 3px;
  background-color: #1B263B; 
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1.5px;
}

/* Contenedor base para cada item (izquierda y derecha) */
.timeline-item-left,
.timeline-item-right {
  padding: 1rem 0;
  position: relative;
  width: 50%;
}

/* Items de la izquierda */
.timeline-item-left {
  left: 0;
  padding-right: 2.5rem; /* Espacio hasta el centro */
}

/* Items de la derecha */
.timeline-item-right {
  left: 50%;
  padding-left: 2.5rem; /* Espacio desde el centro */
}

/* El punto (círculo) en la línea */
.timeline-item-left::after,
.timeline-item-right::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #000; 
  border: 4px solid #E5E7EB; 
  top: 24px; /* Ajusta la posición vertical del punto */
  z-index: 1;
}

/* Posición del punto para items izquierdos */
.timeline-item-left::after {
  right: -12px; /* La mitad de su ancho */
}

/* Posición del punto para items derechos */
.timeline-item-right::after {
  left: -12px; /* La mitad de su ancho */
}

/* La tarjeta de contenido */
.timeline-content {
  padding: 1.5rem;
  background-color: #1B263B; 
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  position: relative;
}

/* Alineación de texto para items izquierdos */
.timeline-item-left .timeline-content {
  text-align: right;
}

/* Estilos de texto */
.timeline-year {
  font-size: 1.5rem;
  font-weight: 700;
  color: #9ACBEC;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 600;
  /* Color título: Blanco */
  color: #FFFFFF;
  margin-top: 0.25rem;
}

.timeline-description {
  /* Color descripción: Gris claro (como el texto de 'Por qué elegirnos') */
  color: var(--e-global-color-a022ff7, #AEB7C4); 
  margin-top: 0.5rem;
}

/* --- Media Query para Móviles --- */
@media screen and (max-width: 768px) {
  /* Mueve la línea central */
  .timeline-container::after {
    left: 31px;
  }

  /* Ancho completo para items */
  .timeline-item-left,
  .timeline-item-right {
    width: 100%;
    padding-left: 70px; 
    padding-right: 1rem;
    left: 0;
  }
  
  /* Alinea todo el texto a la izquierda */
  .timeline-item-left .timeline-content,
  .timeline-item-right .timeline-content {
    text-align: left;
  }

  /* Mueve los puntos a la izquierda */
  .timeline-item-left::after,
  .timeline-item-right::after {
    left: 20px; 
  }
}