/**
 * Theme Name:     Alu
 * Author:         Alu
 * Template:       generatepress
 * Text Domain:	   alu
 * Description:    Este es un tema desarrollado por el equipo experto y genial de ALU.
 * Theme URI:      https://alusolsc.com/
 * Author URI:     https://alusolsc.com/
 * Version:        1.0
 */

body,html{overflow-x:hidden}
.gp-top-info{font-size: 0.89rem;}
.gp-top-info{font-size:.98rem;background:#0f243e;padding:12px;text-align:center;color:#d3d0cb}
.gp-top-info a{margin-left:9px;color:#e7e5df}
.gp-top-info a:hover{color:#fff}
.main-navigation a{font-size: 1.2rem}
.page article{padding:2.3vw;}
.page .entry-header{height:69vh;display:flex;flex-direction:column;justify-content:center;padding:0 20px;box-sizing:border-box}
.entry-title {
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    line-height: 1.2; font-weight: lighter;
}
.gp-action-buttons {
    display: flex;
    flex-wrap: wrap; /* que se ajusten en pantallas pequeñas */
    gap: 15px; /* espacio entre botones */
   
    margin-top: 28px; width:100vw;
}

.gp-action-buttons .gp-btn {
    padding: 12px 9px;
    font-size: 1rem;
    color: #333; /* color del texto */
    text-decoration: none;
    border: 2px solid #D3D0CB; /* solo contorno */
    border-radius: 8px; /* esquinas ligeramente redondeadas */
    background: transparent;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1); /* sombra sutil */
    transition: all 0.3s ease; /* transición suave para hover */
	flex: 1 1 139px;       /* crece igualmente, mínimo 150px */
    max-width: 179px;      /* opcional: para que no crezcan demasiado */
    text-align: center;
}

.gp-action-buttons .gp-btn:hover {
    transform: translateY(-3px); /* ligero movimiento hacia arriba */
    box-shadow: 4px 6px 12px rgba(0,0,0,0.2); /* sombra más intensa */
    color: #0F243E; /* opcional: cambiar color al pasar el mouse */
	border: 2px solid #0F243E;
}

.bga {
  margin-left: -2.3vw; width: 100vw;
}

.bga > .wp-block-group__inner-container {
  padding: 0; background: linear-gradient(to bottom, white 50%, #0F243E 50%); margin: 0; position: relative; max-width: 100vw !important;
}
.bgaXD figure {max-height: 98vh;
  overflow: hidden;}

.bga figure img {
  width: 82vw;
}

.bgat{background: #fff; width: 33vw; max-width: 569px; top: 50vh; left: 9vw;}

footer{padding:2.3vw;}
.mdc {font-size: 1.9rem; font-weight: lighter;}
.mdcb {font-size: clamp(2rem, 4vw, 2.8rem); font-weight: lighter; position: relative;}
.lmdcb a {color: #0F243E;}



/* Subrayado estático (siempre visible) */
.underline_static {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px; /* Separación entre el texto y el subrayado */
  width: 100%;
  height: 2px;
  background-color: #E7E5DF; /* Color claro del subrayado estático */
  transition: background-color 0.3s ease;
}

/* Subrayado dinámico (inicialmente invisible) */
.underline {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 0; /* Inicialmente no es visible */
  height: 2px;
  background-color: #3498db; /* Color vivo para el subrayado */
  transition: width 0.3s ease, background-color 0.3s ease;
}

/* Efecto hover para el subrayado dinámico */
.mdcb:hover .underline {
  width: 100%; /* El subrayado se extiende de izquierda a derecha */
  background-color: #0F243E; /* El color cambia a un tono más vibrante */
}

#nombre, #correo, #mensaje {
  border: none;
  border-bottom: solid 2px #D3D0CB;
  width: 100%;
  background: #fefefe;}


.dir {margin-top:123px;}

.footer-credits {
  margin-top: 89px;
  text-align: right;
}

.display {
  position: relative; margin: 9vw 0 19vw -2.3vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Fondo azul con 60vw */
.bgazul {
  position: absolute;
  left: 0;
  top: 0;
  width: 60vw;
  height: 100%;
 background-image: linear-gradient(90deg, #0F243E, #245694);
    background-color: #0F243E;
  z-index: 0;
}

/* Tarjeta blanca */
.card {
  position: absolute;
  top: 50%;
  left: 60vw;              
  transform: translate(-50%, -50%); 
  
  display: flex;
  align-items: flex-start;  /* 🔹 Importante: texto inicia desde arriba */
  background: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-radius: 4px;
  z-index: 1;
  padding: 6vw;
  min-height: 400px; 
}



/* Imagen */
.card-img {
  position: absolute; 
  top: -19px;          width:23vw; padding:2.3vw;
  left: 0;
  transform: translate(-50%, 0); box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    background-color: #fff;
}

.card-img img {
  height: 159px;
  object-fit: contain;
  display: block; 
}

/* Texto */
.card-text {
  margin-left: 200px; text-align: center; 
  color: #0F243E;
}


.card-text .nombre {
  font-weight: bold;
}


/* Botón */
.scroll-down button {
  background: none;
  border: 2px solid #003366;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 20px;
  color: #003366;
  transition: background 0.3s, color 0.3s;
}

.scroll-down button:hover {
  background: #003366;
  color: #fff;
}

.scroll-down {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.scroll-down button {
  background: none;
  border: 2px solid #003366;
  border-radius: 48%; padding:12px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 20px;
  color: #003366;
  transition: background 0.3s, color 0.3s;

  /* Animación */
  animation: bounce 1.5s infinite;
}

.scroll-down button:hover {
  background: #003366;
  color: #fff;
}

/* Animación rebote */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px); /* baja un poco */
  }
}

.mobile, .search .entry-summary {
  display: none;
}

#primary {
  display: flex;
  gap: 1rem; /* espacio entre columnas */
}

/* Sidebar izquierdo: más pequeño */
#left-sidebar {
  flex: 1;        /* ~15-20% */
  flex-shrink: 0; position: relative;
}

/* Main: contenido principal */
main {
  flex: 4;        /* ~60-65% */
}

/* Sidebar derecho: más ancho que el izquierdo */
#right-sidebar {
  flex: 2;        /* ~25-30% */
  flex-shrink: 0; /* no se encoja */
}

.single #primary {display: flex; padding: 0 2.3vw 9vw 2.3vw}
.single main {margin-top:53px !important;}
.single .featured-image {height:456px;  overflow: hidden;}
.single .wp-post-image {width: 100%;
  height: 100%;
  object-fit: cover; object-position: top;}

/* Estilo toc */
.toc {font-size: 1rem; margin-top:89px; padding:19px; border: solid 1px #D3D0CB;}
.toc ul {
  list-style: none;
  margin: 0;
  padding-left: 0;  list-style-position: inside; 
}

.toc li {
  margin: 0.3rem 0;
}

/* Nivel H2 */
.toc .toc-h2 {
  margin-left: 0;
  font-weight: 600;
  font-size: 1em;
  list-style-type: disc;
}

/* Nivel H3 */
.toc .toc-h3 {
  margin-left: 1.5rem;
  font-size: 0.95em;
  font-weight: 500;
  list-style-type: circle;
  opacity: 0.95;
}

/* Nivel H4 */
.toc .toc-h4 {
  margin-left: 3rem;
  font-size: 0.9em;
  font-weight: 400;
  list-style-type: square;
  opacity: 0.9;
}

/* Nivel H5 */
.toc .toc-h5 {
  margin-left: 4.5rem;
  font-size: 0.85em;
  font-weight: 400;
  list-style-type: "– "; /* guion en lugar de viñeta */
  opacity: 0.85;
}

/* Nivel H6 */
.toc .toc-h6 {
  margin-left: 6rem;
  font-size: 0.8em;
  font-weight: 300;
  list-style-type: "• "; /* punto más simple */
  opacity: 0.8;
}

/* Enlaces */
.toc a {
  text-decoration: none;
  color: #333;
  transition: color 0.2s;
}

.toc a:hover {
  color: #0073aa;
}

/* ------------- Blog list: base (mobile) ------------- */
.blog h1 {padding-top:14vh;}
.blog .page-content {margin:0 0 14vh 0;}

.blog h2.entry-title, .search h2.entry-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem); /* ajusta a tu gusto */
  line-height: 1.3; /* opcional: mejorar legibilidad */
  margin-bottom: 0.5em; /* separar un poco del contenido */
}

.blog .content-area#primary .site-main, .search .site-main {
  display: block;
  gap: 1.5rem;
}

.blog .content-area#primary .site-main > article, .search .site-main > article {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.blog .content-area#primary .site-main > article img, .search .site-main > article img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

/* Igualar altura de títulos solo en blog */
.blog .content-area#primary .site-main > article .entry-title, .search .site-main > article .entry-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3em;
}

.blog .content-area#primary .site-main > article .entry-summary, .search .site-main > article .entry-summary {
  flex-grow: 1;
}

.blog .content-area#primary .site-main > article footer {
  margin-top: auto;
}

.blog .post-image, .search .post-image {
  margin-top: 0;
}

.error404 #primary {
  height: 76vh;
  padding: 2.3vw;
  align-items: center;
  text-align: center;
}

.error404 .display {
  margin-top: 0;
}

.search .page-header {
  width: 100% !important;
  text-align: center;
  margin: 6vw 0 3vw 0;
}

.lmdc {display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem;}

/* ------------- Desktop / Tablet: patrón 2 then 3 ------------- */
@media (min-width: 768px) {
  .blog .content-area#primary .site-main, .search .site-main {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: stretch;
	padding: 2.3vw; position: relative;
  }

	.blog .nav-links {position: absolute; bottom: 0;}
	
	.blog .entry-title{margin-bottom:0;}

 /* Primeros 2 artículos del ciclo (2 columnas) */
.blog .content-area#primary .site-main > article:nth-of-type(5n+1),
.search .site-main > article:nth-of-type(5n+1),
.blog .content-area#primary .site-main > article:nth-of-type(5n+2),
.search .site-main > article:nth-of-type(5n+2) {
  flex: 0 0 calc(50% - (1.5rem / 2));
  max-width: calc(50% - (1.5rem / 2));
}

/* Siguientes 3 artículos del ciclo (3 columnas) */
.blog .content-area#primary .site-main > article:nth-of-type(5n+3),
.search .site-main > article:nth-of-type(5n+3),
.blog .content-area#primary .site-main > article:nth-of-type(5n+4),
.search .site-main > article:nth-of-type(5n+4),
.blog .content-area#primary .site-main > article:nth-of-type(5n+5),
.search .site-main > article:nth-of-type(5n+5) {
  flex: 0 0 calc(33.333% - (1.5rem * 2 / 3));
  max-width: calc(33.333% - (1.5rem * 2 / 3));
}
}

/* ------------- Móvil ------------- */
@media (max-width: 768px) {
	.mobile {display: block;}
  .card-img { width: auto; top: -48px; }
  .card-text { width: 59vw; margin: 0; padding: 48px 9px 23px 9px; }
  .card-img img { width: 159px; height: auto; }

  #primary {
    flex-direction: column;
    padding: 1rem;
  }

  #primary > main,
  .left-sidebar,
  .right-sidebar {
    order: initial;
    flex: none;
    width: 100%;
  }

  .left-sidebar,
  .right-sidebar {
    margin-top: 1.5rem;
  }
	
	.toc {margin-top: 39px;}
	
	.blog .single .featured-image { height: auto; }
}
