/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* =====================================================
   HEADER PRINCIPAL CRC CONSULTING
   ===================================================== */
.crc-header {
  position: fixed;          /* Siempre fijo arriba */
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;            /* Altura fija */
  background: transparent;  /* Fondo transparente al inicio */
  transition: all 0.3s ease;
  z-index: 9999;
  border-bottom: none;      /* Sin borde al inicio */
}

/* Cuando hacemos scroll → fondo azul corporativo */
.crc-header.scrolled {
  background: #0A2540;              /* Azul corporativo CRC */
  border-bottom: 1px solid #081c33; /* Línea sutil */
}

/* Contenedor interior */
.crc-header .crc-header-inner {
  max-width: 1400px;        /* Ancho máximo */
  margin: 0 auto;
  padding: 0 15px;          /* 15px de padding lateral */
  display: flex;
  align-items: center;
  justify-content: space-between; /* Logo a la izquierda / resto a la derecha */
  height: 100%;
}

/* =====================================================
   LOGO
   ===================================================== */
.crc-logo img {
  height: 70px;
  transition: all 0.3s ease;
}

/* =====================================================
   NAVEGACIÓN PRINCIPAL (DESKTOP)
   ===================================================== */
.crc-nav {
  flex: 1;                          /* Ocupa espacio central */
  display: flex;
  justify-content: center;          /* Centrado */
}

.crc-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;                        /* Espacio entre enlaces */
}

.crc-menu li a {
  font-family: "Graphik", sans-serif;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  color: #fff;
  transition: color 0.2s ease;
}

.crc-menu li a:hover {
  color: #c39d7d;                   /* Dorado en hover */
}

.crc-menu li.current-menu-item a,
.crc-menu li.current_page_item a {
  color: #c39d7d;                   /* Dorado activo */
  font-weight: 700;
}

/* =====================================================
   BOTÓN HAMBURGUESA
   ===================================================== */
.crc-menu-toggle {
  display: none;       /* Oculto en desktop */
  font-size: 28px;
  cursor: pointer;
  color: #fff;
  line-height: 1;
}

/* =====================================================
   BANDERAS DE IDIOMAS
   ===================================================== */
.crc-header .crc-right {
  display: flex;
  flex-direction: column; /* banderas arriba, hamburguesa abajo */
  align-items: flex-end;
  gap: 6px;              /* Espacio entre banderas y hamburguesa */
  margin: 0;
}

.crc-header .crc-flags {
  display: flex;
  gap: 8px;
}

.crc-header .crc-flags img {
  width: 28px;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.crc-header .crc-flags img:hover {
  transform: scale(1.1);
}

/* =====================================================
   MENÚ FULLSCREEN (MÓVIL)
   ===================================================== */
.crc-nav-full {
  position: fixed;
  top: 0;
  left: -100%;                      /* Oculto inicialmente */
  width: 100%;
  height: 100vh;
  background: #0A2540;
  transition: left 0.4s ease;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  padding: 80px 40px;
}

.crc-nav-full.active {
  left: 0;                          /* Aparece con clase .active */
}

/* Botón cerrar */
.crc-close {
  position: absolute;
  top: 25px;
  right: 40px;
  font-size: 36px;
  cursor: pointer;
  color: #fff;
}

/* Título menú móvil */
.crc-menu-title {
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #fff;
}

/* Lista menú móvil */
.crc-nav-full ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.crc-nav-full ul li {
  margin: 15px 0;
  border-bottom: 1px solid #344060;
  padding-bottom: 10px;
}

.crc-nav-full ul li a {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  text-decoration: none;
  color: #fff;
  display: block;
  width: 100%;
  transition: color 0.2s ease;
}

.crc-nav-full ul li a:hover {
  color: #CFAF6D;
}

.crc-nav-full ul li.current-menu-item a,
.crc-nav-full ul li.current_page_item a {
  font-weight: 700;
  color: #CFAF6D;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1240px) {
  .crc-nav {
    display: none;      /* Ocultar menú desktop */
  }
  .crc-menu-toggle {
    display: block;     /* Mostrar hamburguesa */
  }
  .crc-logo img {
    height: 50px;       /* Logo más pequeño */
  }
}

@media (min-width: 1241px) {
  .crc-nav {
    display: block !important; /* Menú centrado visible en desktop */
  }
}





/* ===============================
   🔹 Centrado del menú en desktop
   =============================== */
@media (min-width: 1241px) {
  .crc-header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto; /* logo - nav - banderas */
    align-items: center;
    padding: 0 15px;
  }

  /* Menú centrado */
  .crc-nav {
    display: flex !important;
    justify-content: center;
  }

  .crc-menu {
    justify-content: center;
    margin: 0 auto;
  }

  /* Banderas y hamburguesa alineados a la derecha */
  .crc-right {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }
}















/* =====================================================
   TIMELINE RECTO – 3 pasos
   ===================================================== */
.timeline-recto {
  display: flex;                     /* pasos en fila */
  justify-content: space-between;    /* espacio equidistante */
  align-items: flex-start;
  position: relative;
  margin: 60px 0;
  padding: 0 20px;
}

/* Línea azul horizontal */
.timeline-recto::before {
  content: "";
  position: absolute;
  top: 20px;                         /* altura alineada con los círculos */
  left: 0;
  right: 0;
  height: 2px;
  background: #2563eb;               /* azul corporativo */
  z-index: 0;
}

/* Paso individual */
.timeline-recto .step {
  text-align: center;
  flex: 1;                           /* cada paso ocupa el mismo ancho */
  position: relative;
  padding: 0 15px;
}

/* Círculo numerado */
.timeline-recto .circle {
  background: #2563eb;
  color: #fff;
  font-weight: bold;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  margin: 0 auto 15px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  position: relative;
  font-size: 14px;
}

/* Texto debajo */
.timeline-recto .step p {
  font-size: 15px;
  line-height: 1.5;
  color: #111;
  max-width: 260px;
  margin: 0 auto;
}








/* =====================================================
   TIMELINE 2 – ZIGZAG / CURVO (5 pasos)
   ===================================================== */
.timeline-zigzag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin: 60px 0;
  gap: 40px;
}

/* Línea base (recta, puedes reemplazar con SVG curvo si quieres idéntico a tu ejemplo) */
.timeline-zigzag::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: #2563eb;
  border-radius: 40px;               /* Le da una sensación más curva */
  z-index: 0;
}

/* Paso */
.timeline-zigzag .step {
  flex: 1;
  text-align: center;
  position: relative;
  max-width: 180px;
}

/* Círculo numerado */
.timeline-zigzag .circle {
  background: #2563eb;
  color: #fff;
  font-weight: bold;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 0 auto 15px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  position: relative;
}

/* Flechas (simples, → entre pasos) */
.timeline-zigzag .step::after {
  content: "→";
  font-size: 20px;
  color: #2563eb;
  position: absolute;
  top: 10px;
  right: -25px;
}
.timeline-zigzag .step:last-child::after {
  content: "";
}
