
/** 1. Contenedor Principal **/
.tagline.contenedor {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/** 2. Título **/
.titulo-header {
    font-weight: 900;
    font-size: 32px;
    color: var(--blanco);
    display: inline-block; /* Cambiado de inline a inline-block para respetar min-height */
    animation: microZoom 10s ease-in-out infinite;
    
    /* SOLUCIÓN AL SALTO EN MÓVIL */
    min-height: 4.1em; /* Reserva espacio para 2 líneas de texto aprox */
    vertical-align: top;
}

/* Desktop: Volvemos a la normalidad */
@media (min-width: 768px) {
    .titulo-header {
        font-size: 48px;
        min-height: auto; /* En escritorio no suele saltar tanto, o hay más espacio */
        display: inline; /* Volvemos al valor original de escritorio si prefieres */
    }
}
/** 3. El Cursor "Inteligente" **/
#hero-typing {
    display: inline-block;
    white-space: pre-wrap;
    padding-right: 0; /* Eliminamos el padding anterior */
    border-right: none !important; /* Quitamos el borde que causaba la barra gigante */
}

/* Creamos el cursor con un pseudoelemento */
#hero-typing::after {
    content: "";
    display: inline-block;
    width: 3px;
    height: 1.1em; /* Altura proporcional a la línea actual */
    background-color: var(--primario);
    margin-left: 4px;
    vertical-align: middle;
    animation: blink-cursor 0.8s step-end infinite;
}

/** KEYFRAMES **/

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes blink-cursor {
    from, to { opacity: 0; }
    50% { opacity: 1; }
}

@keyframes microZoom {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.slogan {
  color: var(--blanco);
   font-weight: 400;
    opacity: 0.85;
  transform: translateY(10px);
  animation: fadeSlideIn 1.2s ease forwards;
}

@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/** Comentarios **/
.comentarios {
    width: min(95%, 60rem);
    margin: 5rem auto 0 auto;
}
.comment-reply-title {
    color: var(--primario);
    text-align: center;
}

.logged-in-as a {
    color: var(--primario);
}
.comment-form-comment label {
    font-weight: 700;
    margin: 2rem 0;
    display: block;
}

/* --- Nueva animación: Fade + Zoom suave --- */
.animar-fade-zoom {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.animar-fade-zoom.visible {
  opacity: 1;
  transform: scale(1);
}

/*primera sesión: Muestra plantilla wp */

.seccion-header {
    text-align: center;
    margin-bottom: 5rem;
}

.seccion-header h2 {
    font-size: 3.4rem;
    color: var(--primario)
}

.seccion-header p {
    color: var(--color-text-main);
    font-size: 1.9rem;
}


/* --- NUEVO LAYOUT PARA SECCIÓN SISTEMAS --- */

.sistemas-flex-container {
    display: flex;
    align-items: center; 
    justify-content: space-between;
    gap: 4rem;
    margin-top: 5rem;
}

/* Contenedor de la Tarjeta */
.sistemas-card-wrapper {
    flex: 0 0 700px; 
    max-width: 55%;  
}

.sistemas-card-wrapper .templates-grid {
    display: block !important;
}

/* Contenedor del Texto */
.sistemas-info-wrapper {
    flex: 1; 
    text-align: left;
}

/* Eliminamos el !important y el tamaño fijo de 2.2rem */
.descripcion-sistemas {
    font-size: 1.8rem; /* Bajamos un pelín el tamaño para que el párrafo largo no abrume */
    line-height: 1.7;   /* Más espacio entre líneas para facilitar la lectura */
    color: var(--color-text-main);
    margin: 0;
    text-align: left;
    margin-top: -4rem;
}

.descripcion-sistemas strong {
    color: var(--primario);
    font-weight: 700;
}

/* Espaciado extra si usas el <br> */
.descripcion-sistemas br {
    content: "";
    margin: 10px 0;
    display: block;
}
/* Línea decorativa */
.decoracion-linea {
    width: 60px; /* Un poco más discreta */
    height: 4px;
    background: var(--gradiente-pro);
    margin-top: 2rem;
    border-radius: 5px;
}

/* --- RESPONSIVE --- */

@media (max-width: 1200px) {
    .sistemas-card-wrapper {
        flex: 0 0 550px; 
    }
}

@media (max-width: 991px) {
    .sistemas-flex-container {
        flex-direction: column; 
        text-align: center;
        gap: 3rem; /* Menos espacio en móvil */
    }

    .sistemas-card-wrapper {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .sistemas-info-wrapper {
        text-align: center;
        padding: 0;
    }

    /* Reducimos un poco el texto en móvil para que no sea gigante */
    .descripcion-sistemas {
        font-size: 1.7rem; 
    }

    .decoracion-linea {
        margin: 2rem auto; 
    }
}
