/*Paleta de colores
-#025a8c azul fuerte
-#04c1c5 azul claro
*/

:root {
    /* Colores */
    --blog-bg-main: #0f172a;
    --blog-text-muted: #6b7280;
    --blog-text-title-footer: #fff;
    --blog-border-soft: rgba(255, 255, 255, 0.12);

    /* Tipografías */
    --blog-font-title: 'Montserrat', sans-serif;
    --blog-font-body: 'Lato', sans-serif;
}

html {
    font-family: 'Montserrat';
}

.logo {
    max-width: 100%;
    height: auto;
}

.pmenu {
    transition: 0.3s;
    color: #000;
    font-size: 15px;
    cursor: pointer;
    opacity: 0.7;
}

.pmenu:hover {
    color: #025A8C;
}

.bg-headersimulador {
    background-color: #025A8C;
}

.custom-card-bg {
    background-color: #025A8C !important;
    /* color índigo */
    color: white;
    /* asegúrate de que el texto sea legible */
}

.custom-rouded-card {
    border-radius: 20px !important;
}

.bg-presentacion {
    background-image: url('/img/cochito3.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 82vh;
    display: flex;
    align-items: center;
}

.p-presentacion {
    font-size: 5vw;
    margin: 20px 20px 20px 40px;
    max-width: 50%;
    user-select: none;
    background-color: rgba(2, 90, 140, 0.8);
    padding: 30px;
    /*border-top-right-radius: 100px;*/
    /*border-bottom-right-radius: 100px;*/
    border-radius: 100px;
}

@font-face {
    font-family: 'Lato';
    src: url('/fonts/Lato-Regular.ttf') format('ttf');
    font-weight: normal;
    font-style: normal;
}



.font-lato {
    font-family: 'Lato', sans-serif;
}

.maxw {
    max-width: 100%;
    height: auto;
}

.vertical-line {
    border-left: 1px solid #000;
    /* Grosor y color de la línea vertical */
    height: 35px;
    /* Altura de la línea vertical */
}

.bg-login {
    min-height: 100vh;
    background: url('/img/fondo1.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover !important;
}

.bg-tyc {
    min-height: 100vh;
    background: url('/img/tyc.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover !important;
}

.bg-sa {
    min-height: 100vh;
    background: url('/img/sa0.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover !important;
}

.bg-logologin {
    background-color: rgba(0, 0, 0, 0.8);

}

.bg-logologinsesion {
    background-color: rgba(242, 233, 228, 0.8);

}

.card-slide {
    animation: slide-in 1s ease-in-out;
}

@keyframes slide-in {
    0% {
        opacity: 0;
        transform: translate(0, -100%);
    }

    100% {
        opacity: 1;
        transform: translate(0, 0);
    }
}

.nav-header1 {
    background-color: #000
}

.nav-header2 {
    background-color: #025a8c;
}

.bg-linesimage {
    min-height: 100vh;
    background: url('/img/lbg.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover !important;
    /*position: fixed;*/
    z-index: -1;
}

.principalshow {
    align-items: center;
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
}

.bg-imageprincipal {
    opacity: 0.1;
    max-width: 100%;
    /*width: auto;*/
    height: auto;

}

@keyframes animacion-principal {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.animation {
    animation: animacion-principal 0.7s ease-in-out;
}

.pagos-hover {
    transition: 0.3s ease-in-out;
}

.pagos-hover:hover {
    background-color: #025A8C !important;
    color: white;
}

.animated-text {
    display: inline-block;
    animation: fadeInZoom 1s ease-in-out;
    cursor: pointer;
}

.highlighted-alert {
    display: inline-block;
    font-weight: bold;
    font-size: 1.25rem;
    padding: 8px 16px;
    border-radius: 8px;
    background: linear-gradient(90deg, #0f2027, #203a43, #2c5364);
    color: white;
    box-shadow: 0 0 15px rgba(0, 216, 255, 0.6);
    cursor: pointer;
    animation: bounceGlow 2s ease-in-out infinite alternate;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlighted-alert:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(249, 212, 35, 0.9);
}

@keyframes bounceGlow {
    0% {
        transform: translateY(0);
        box-shadow: 0 0 15px rgba(0, 216, 255, 0.6);
    }

    50% {
        transform: translateY(-4px);
        box-shadow: 0 0 25px rgba(0, 216, 255, 1);
    }

    100% {
        transform: translateY(0);
        box-shadow: 0 0 15px rgba(0, 216, 255, 0.6);
    }
}


/*  CSS BLOG */

.blog-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background-color: #f2f3f8;
    min-height: 120px;
}

/* CONTENEDOR INTERNO */
.blog-header__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

/* Logo */
.blog-header__logo {
    display: flex;
    justify-content: center;
}

.blog-header__logo img {
    height: 60px;
}

/* Divider */
.blog-header__divider {
    width: 60%;
    margin: 5px auto 24px auto;
    border: none;
    border-top: 1px solid #6e6c6c;
}

/* Navigation */
.blog-header__nav ul {
    display: flex;
    justify-content: center;
    gap: 32px;
    list-style: none;
    padding: 0;
    margin-top: 16px;
    transition: all 0.3s ease;
}

.blog-header__nav a {
    text-decoration: none;
    color: #1E1E1E;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.4px;
    transition: color 0.2s ease;
}

.blog-header__nav a:hover {
    color: #04c1c5;
}

@media (max-width: 768px) {
    .blog-header__nav ul {
        gap: 20px;
        font-size: 14px;
    }

    .blog-header__logo img {
        height: 48px;
    }
}

.blog-titulos {
    text-align: center;
    padding: 64px;
    background-color: #f2f3f8;
}

.blog-titulos h1 {
    font-family: var(--blog-font-title);
    font-size: 38px;
    margin-bottom: 12px;
}

.blog-titulos p {
    font-family: var(--blog-font-body);
    font-size: 14px;
    color: var(--blog-text-muted);
}

.blog-header--scrolled .blog-header__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 12px 32px;
}

.blog-header--scrolled .blog-header__logo img {
    height: 40px;
}

.blog-header--scrolled .blog-header__nav ul {
    margin-top: 0;
}

/* Layout general del blog */
.blog-layout {
    min-height: 100vh;
    /* ocupa todo el alto del monitor */
    display: flex;
    flex-direction: column;
    background-color: #f2f3f8;
}

/* El contenido crece si hace falta */
.blog-content {
    flex: 1;
    /* EMPUJA el footer hacia abajo */
}



.blog-footer {
    background-color: var(--blog-bg-main);
    border-top: 1px solid var(--blog-border-soft);
    text-align: center;
}

.blog-footer p {
    font-family: var(--blog-font-body);
    font-size: 14px;
    color: var(--blog-text-muted);
    margin: 0;
}

.blog-footer .blog-header {
    background-color: var(--blog-bg-main);
    box-shadow: none !important;
}

/* Ajustes de texto para contraste */
.blog-footer .blog-header__nav a {
    color: #e5e7eb;
}

.blog-footer .blog-header__nav a:hover {
    color: #04c1c5;
}

/* Logo (opcional si es imagen clara) */
.blog-footer .blog-header__logo img {
    filter: brightness(0) invert(1);
}

/* Container centrado */
.blog-footer__container {
    max-width: 1200px;
    /* mismo ancho que quieras usar en header */
    margin: 0 auto;
}

.blog-footer h4{
    font-family: var(--blog-font-body);
    color: var(--blog-text-title-footer);
    font-weight: bold;
}

.blog-icons {
  display: flex;
  gap: 16px;               /* separación entre iconos */
  justify-content: center;
  align-items: center;
}

.blog-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;

  background-color: #1f2933;   /* fondo del círculo */
  color: #e5e7eb;              /* color del icono */

  border-radius: 50%;          /* círculo */
  text-decoration: none;

  transition: all 0.25s ease;
}

.blog-icon:hover {
  background-color: #04c1c5;   /* hover background */
  color: #ffffff;              /* icono */
  transform: translateY(-2px);
}

.pointer{
    cursor: pointer;
}

.blog-footer__title {
  font-family: var(--blog-font-title);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
  color: #ffffff;
}

.blog-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-footer__links li {
  margin-bottom: 10px;
}

.blog-footer__links a {
  font-family: var(--blog-font-body);
  font-size: 14px;
  color: var(--blog-text-muted);
  text-decoration: none;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

/* Hover elegante, sin exagerar */
.blog-footer__links a:hover {
  color: #ffffff;
  padding-left: 6px;
}

/* Sidebar */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

/* Cards del sidebar */
.blog-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.blog-card h5 {
  font-family: var(--blog-font-heading);
  margin-bottom: 12px;
  color: #025a8c;
}

/* Lista últimos posts */
.blog-latest-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-latest-posts li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.blog-latest-posts img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
}

.blog-latest-posts a {
  font-family: var(--blog-font-body);
  font-size: 14px;
  color: #1E1E1E;
  text-decoration: none;
  transition: color 0.25s ease;
}

.blog-latest-posts a:hover {
  color: #04c1c5;
}

.home-hero {
  position: relative;
  height: 80vh;
  background: url('/img/libro-hero.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}



/* Artículos destacados */
.home-featured-articles h2 {
  font-family: var(--blog-font-heading);
  font-size: 2rem;
  margin-bottom: 24px;
  text-align: center;
}

.article-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: 0.25s;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.article-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.article-card h5 {
  font-family: var(--blog-font-heading);
  font-size: 1.1rem;
  margin: 12px;
}

.article-card p {
  font-family: var(--blog-font-body);
  font-size: 0.9rem;
  margin: 0 12px 12px 12px;
}

.btn-link {
  display: inline-block;
  margin: 0 12px 12px 12px;
  color: #025a8c;
  text-decoration: underline;
}

.btn-link:hover {
  color: #04c1c5;
}

/* Autor */
.home-author {
  margin: 60px 0;
  text-align: center;
}

.author-card {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.author-card img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h5 {
  font-family: var(--blog-font-heading);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.author-info p {
  font-family: var(--blog-font-body);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.home-hero-modern {
  position: relative;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
      rgba(2, 90, 140, 0.6), 
      rgba(4, 193, 197, 0.3)
    ),
    url('/img/imglibro.jpg') center/cover no-repeat;
  border-radius: 20px;
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  text-align: center;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.home-hero-modern:hover {
  transform: translateY(-3px);
}

.home-hero-modern__content h1 {
  font-family: var(--blog-font-title);
  font-size: clamp(2rem, 5vw, 3rem); /* adaptable al tamaño de pantalla */
  margin-bottom: 16px;
}

.home-hero-modern__content p {
  font-family: var(--blog-font-body);
  font-size: 1.2rem;
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  background-color: #04c1c5;
  color: #fff;
  padding: 12px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn-primary:hover {
  background-color: #025a8c;
  transform: translateY(-2px);
}


.blog-capitulos {
  margin-top: 64px;
}

.blog-capitulos h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 28px;
}

.blog-capitulos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.capitulo-card {
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
}

.capitulo-card:hover {
  transform: translateY(-4px);
}

.capitulo-num {
  font-size: 12px;
  color: #04c1c5;
  font-weight: 600;
  text-transform: uppercase;
}

.capitulo-card h3 {
  margin: 12px 0;
  font-size: 18px;
}

.capitulo-card p {
  font-size: 14px;
  color: #555;
  margin-bottom: 16px;
}

.capitulo-link {
  text-decoration: none;
  font-weight: 600;
  color: #025a8c;
}

.capitulo-link:hover {
  text-decoration: underline;
}

.inicio-text-parrafo p{
    font-size: 16px;
    font-family: var(--blog-font-body);
}

.inicio-title h3{
    font-family: var(--blog-font-title);
}