/* ============================
   RESET BÁSICO
============================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
	color-scheme: light;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1f2933;
    background-color: #f3f4f6; /* gris claro */
    line-height: 1.6;
}

html,
body {
    margin: 0;
    padding: 0;
    background-color: #f3f4f6;
}

/* Links */

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Utilidades */

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================
   HEADER
============================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #f0f0f3;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo a {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.02em;
    color: #1f3c88; /* azul contable */
}

.logo span {
    color: #00a878; /* verde confianza */
}

.nav-toggle {
	display: none; /* se muestra solo en mobile */
}
	
.main-nav {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #555;
    position: relative;
    padding-bottom: 2px;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0f5fff, #00b894);
    border-radius: 999px;
    transition: width 0.2s ease;
}

.main-nav a:hover {
    color: #111;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Mobile nav (simple) */
@media (max-width: 768px) {
	.site-header {
        position: relative !important;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 100;
        padding: 14px 0;
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
		backdrop-filter: none;
    }
	
    .header-inner {
        /*flex-direction: column;*/
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }
	
	/* Botón hamburguesa visible en mobile */
    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 28px;
        height: 24px;
        background: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
        z-index: 110;
    }

    .nav-toggle span {
        display: block;
        height: 2px;
        width: 100%;
        background-color: #111827;
        border-radius: 999px;
        transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
    }
	
	/* Logo más compacto */
    .logo a {
        font-size: 1rem;
        line-height: 1.2;
        display: block;
		padding: 5px;
    }

    /* Menú vertical para que no se amontone */


    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        padding: 80px 1.5rem 1.5rem;
        background: rgba(15, 23, 42, 0.96);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease;
        z-index: 100;
    }

    .main-nav a {
        padding: 8px 0;
        font-size: 1rem;
        display: block;
        width: 100%;
    }
	
	.main-nav a {
        color: #f9fafb;
        font-size: 1.05rem;
        text-decoration: none;
        width: 100%;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    /* Cuando el menú está ABIERTO (body.nav-open) */
    body.nav-open .main-nav {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    body.nav-open .nav-toggle span {
        background-color: #f9fafb;
    }

    /* Animación de la hamburguesa a "X" */
    body.nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    body.nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }
    body.nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
	
	.site-main {
        position: relative;
        z-index: 1;
    }
	
    /* Empujar el resto del contenido hacia abajo */
    .site-main,
    .hero {
		padding-top: 1.5rem;
    }
	
	.hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
        width: 100%;
        max-width: 360px;  /* opcional, para que no sea tan ancho */
    }

    .hero-text .hero-actions {
        margin-top: 1rem;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
    }
}

/* ============================
   HERO
============================ */

.hero {
    padding: 3.5rem 0 3rem;
    background: radial-gradient(circle at top left, #e5edff 0, #f3f4f6 45%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(31,60,136,0.20), transparent 70%);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-text h1 {
    font-family: "Montserrat", sans-serif;
    font-size: 2.2rem;
    line-height: 1.25;
    margin: 0 0 1rem;
    color: #121212;
}

.hero-text p {
    margin: 0 0 1.5rem;
    max-width: 34rem;
    color: #555;
    font-size: 1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #1f3c88, #273c75);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(31, 60, 136, 0.18);
}

.btn-primary:hover {
    box-shadow: 0 14px 26px rgba(15, 95, 255, 0.24);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    border-color: #cbd5f5;
    color: #1f2933;
}

.btn-outline:hover {
    background-color: #e5e7f5;
    border-color: #1f3c88;
    color: #1f3c88;
}

/* Hero side card */

.hero-side {
    display: flex;
    justify-content: flex-end;
}

.hero-card {
    background-color: #ffffff;
    border-radius: 1.1rem;
    padding: 1.5rem 1.7rem;
    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.06),
        0 0 0 1px rgba(148, 163, 184, 0.15);
}

.hero-card h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 1.2rem;
    margin: 0 0 0.75rem;
}

.hero-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-card li {
    padding-left: 1.7rem;
    position: relative;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #444;
}

.hero-card li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0.05rem;
    font-size: 0.9rem;
    color: #00b894;
}

/* Hero responsive */

@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .hero-side {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 2.5rem 0 2rem;
    }

    .hero-text h1 {
        font-size: 1.7rem;
    }

    .hero-text p {
        font-size: 0.95rem;
    }
}

/* ============================
   SECCIONES GENERALES
============================ */

.section {
    padding: 3rem 0;
}

.section-light {
    background-color: #e5e7eb; /* gris medio suave */
}

/* Títulos de sección */

.section h2,
.section h1 {
    font-family: "Montserrat", sans-serif;
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #111827;
}

.section p {
    margin-top: 0;
}

.services-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
    gap: 2rem;
    align-items: flex-start;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
    gap: 2rem;
    align-items: center;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 2rem;
    margin-top: 2rem;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .services-layout {
        grid-template-columns: 1fr;
    }

    .services-layout h1 {
        font-size: 1.4rem;
    }

    .services-layout p {
        font-size: 0.95rem;
    }
	
	.about-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-layout h2 {
        font-size: 1.25rem;
    }

    .about-layout p {
        font-size: 0.95rem;
    }
	
	.contact-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .contact-layout form {
        max-width: 100%;
    }
}

/* ============================
   CARDS GENERALES
============================ */

/* Cards grid responsive */
.cards-grid {
	margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: #f9fafb;
    border-radius: 1rem;
    padding: 1.4rem 1.5rem;
    border: 1px solid #d1d5db;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 0.6rem;
    color: #111827;
}

.card p {
    margin: 0;
    color: #4b5563;
    font-size: 0.95rem;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    border-color: #cbd5f5;
}

@media (max-width: 960px) {
    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================
   BLOG (LISTADO)
============================ */

.blog-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.blog-card h3 a {
    font-size: 1.15rem;
    color: #111827;
}

.blog-card h3 a:hover {
    color: #0f5fff;
}

/* Listado general blog.php */

.blog-list {
    margin-top: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog-item {
    padding: 1.5rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.03);
}

.blog-item h2 a {
    font-family: "Montserrat", sans-serif;
    font-size: 1.3rem;
    color: #111827;
}

.blog-item h2 a:hover {
    color: #0f5fff;
}

.blog-item p {
    margin-bottom: 0.5rem;
}

/* Meta info */

.meta {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.6rem;
}

.link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #0f5fff;
    text-decoration: none;
}

.link::after {
    content: "→";
    font-size: 0.9rem;
}

.link:hover {
    text-decoration: underline;
}

/* ============================
   DETALLE DE POST
============================ */

.post-detail {
    max-width: 760px;
    margin: 0 auto 2.5rem;
	word-break: break-word;
    overflow-wrap: anywhere;
}

.post-detail h1 {
	font-family: "Montserrat", sans-serif;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: #111827;
}

.post-detail .meta {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Contenido del post */
.post-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
    
    /* EVITAR que el texto se salga */
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Imágenes dentro del contenido */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 0.75rem 0;
}

.post-content p {
    margin-bottom: 1rem;
}

/* Separador */

hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 2.2rem 0;
}

/* ============================
   COMENTARIOS
============================ */

.comments {
    max-width: 760px;
    margin: 0 auto;
    padding-top: 1.5rem;
}

.comments h2,
.comments h3 {
    font-family: "Montserrat", sans-serif;
    margin-top: 0;
}

.comments h2 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.alert {
    padding: 0.9rem 1rem;
    border-radius: 0.7rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.alert.success {
    background-color: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #166534;
}

.alert.error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.comments-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-item {
    padding: 0.8rem 0.9rem;
    border-radius: 0.8rem;
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
    margin-bottom: 0.8rem;
}

.comment-header {
    font-size: 0.85rem;
    color: #4b5563;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.3rem;
}

.comment-header strong {
    color: #111827;
}

.comment-item p {
    font-size: 0.9rem;
    color: #111827;
    margin: 0;
    
    /* EVITA que el comentario se salga del cuadro */
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Formulario de comentarios */

.comment-form {
    margin-top: 1.5rem;
}

.comment-form {
    margin-top: 1.5rem;
}

.comment-form .form-group {
    margin-bottom: 0.9rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form select,
.comment-form textarea {
    width: 100%;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 0.9rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: #374151;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 0.6rem;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #0f5fff;
    box-shadow: 0 0 0 1px rgba(15, 95, 255, 0.15);
}

/* ============================
   FOOTER
============================ */

.site-footer {
    margin-top: 2.5rem;
    border-top: 1px solid #d1d5db;
    background-color: #e5e7eb;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: #4b5563;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
    align-items: center;
}

.footer-inner strong {
    font-family: "Montserrat", sans-serif;
    color: #111827;
}

@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================
   BODY MAIN SPACING
============================ */

.site-main {
    min-height: calc(100vh - 150px);
    padding-top: 0.5rem;
	background-color: #f3f4f6;
}

.section,
.hero,
.site-footer,
.site-header {
    background-color: #ffffff;
}

/* ============================
   PEQUEÑOS DETALLES
============================ */

/* Suavizar scroll anclas */
:target {
    scroll-margin-top: 80px;
}

/* Selección de texto */
::selection {
    background-color: rgba(15, 95, 255, 0.1);
}

/* Estilo para botones dentro de formularios (usa la clase .btn también si quieres) */
button.btn {
    border: none;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

.hero-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    right: 1rem;
    background-color: rgba(249, 250, 251, 0.95);
    backdrop-filter: blur(4px);
    border-radius: 0.9rem;
    padding: 0.9rem 1rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
}

.clients-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.client-item img {
    max-width: 140px;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(70%);
    opacity: 0.85;
    transition: 0.3s ease;
}

.client-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    width: 100%;
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.toggle-password:hover {
    opacity: 1;
}

/* ===== BLOG LIST STYLING ===== */

.section-blog {
    padding-top: 3rem;
    padding-bottom: 3.5rem;
}

.blog-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.blog-intro {
    max-width: 560px;
    color: #4b5563;
    font-size: 0.98rem;
}

.blog-highlight {
    max-width: 320px;
    background: #eef2ff;
    border-radius: 0.9rem;
    padding: 0.9rem 1rem;
    border: 1px solid #c7d2fe;
    font-size: 0.88rem;
    color: #374151;
}

.blog-badge {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    color: #1f3c88;
    background: #e0e7ff;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    margin-bottom: 0.4rem;
}

@media (max-width: 768px) {

    .blog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
        margin-bottom: 1.8rem;
    }

    .blog-header h1 {
        font-size: 1.4rem;
        margin-bottom: 0.3rem;
    }

    .blog-intro {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .blog-highlight {
        max-width: 100%;
        width: 100%;
        font-size: 0.86rem;
    }
}

/* Layout: lista + sidebar */
.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr);
    gap: 2rem;
}

.blog-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}

.blog-item-card {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 1.3rem 1.4rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
	box-sizing: border-box;
    overflow: hidden;
    max-width: 100%;
}

.blog-item-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5f5;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09);
}

.blog-item-card h2 {
    font-size: 1.05rem;
    margin: 0 0 0.25rem;
}

.blog-item-card h2 a {
    display: block;
    font-size: 1.1rem;
    line-height: 1.3;
    color: #111827;
    text-decoration: none;

    /* Evita que palabras largas rompan la card */
    word-break: break-word;
    overflow-wrap: anywhere;

    /* Opcional: limitar el título a 2 líneas */
    display: -webkit-box;
    -webkit-line-clamp: 2;          /* pon 1 si quieres aún más compacto */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-item-card h2 a:hover {
    color: #1f3c88;
}

.blog-date {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    background-color: #fef3c7;
    color: #92400e;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
}

.blog-rating-count {
    font-size: 0.75rem;
    opacity: 0.85;
}

.blog-excerpt {
    font-size: 0.9rem;
    color: #4b5563;
    margin: 0 0 0.8rem;

    /* Que no se salga horizontalmente */
    word-break: break-word;
    overflow-wrap: anywhere;

    /* Limitar a 3–4 líneas máximo */
    display: -webkit-box;
    -webkit-line-clamp: 3;      /* cambia a 4 si quieres */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-actions {
    display: flex;
    justify-content: flex-start;
}

.btn-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1f3c88;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

.btn-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70%;
    height: 1px;
    background-color: #1f3c88;
    opacity: 0.5;
    transition: width 0.15s ease, opacity 0.15s ease;
}

.btn-link:hover::after {
    width: 100%;
    opacity: 0.9;
}

/* Sidebar */

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-sidebar-card h3 {
    margin-top: 0;
    margin-bottom: 0.6rem;
}

.blog-sidebar-card p {
    font-size: 0.88rem;
    color: #4b5563;
}

.blog-tags {
    list-style: none;
    padding: 0;
    margin: 0.4rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.blog-tags li span {
    display: inline-block;
    font-size: 0.78rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background-color: #eef2ff;
    color: #1f3c88;
}

/* Responsive */

@media (max-width: 900px) {
    .blog-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Estrellas elegantes estilo moderno */
.stars {
    display: inline-flex;
    gap: 2px;
    transform: translateY(1px);
}

.star {
    font-size: 1rem;
    line-height: 1;
}

.star.full {
    color: #fbbf24; /* Azul corporativo sofisticado */
}

.star.half {
    color: #9ca3af; /* Gris elegante */
}

.star.empty {
    color: #d1d5db; /* Gris claro */
}

/* blog-meta general */
.blog-meta {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0 0 0.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* línea específica de rating */
.rating-line {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Texto del rating */
.rating-text {
    font-size: 0.82rem;
    color: #374151;
}

.blog-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: #f9fafb;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
    margin-top: 1rem;
}

.blog-empty h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    color: #1f3c88;
}

.blog-empty p {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Tarjetas del blog en el home */
.blog-card {
    box-sizing: border-box;
    overflow: hidden;
}

/* Título por si también se hace enorme */
.blog-card h3 a {
    display: block;
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 0.25rem;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Excerpt controlado */
.blog-excerpt {
    font-size: 0.9rem;
    color: #4b5563;
    margin: 0 0 0.8rem;
    
    /* NO permitir que el texto se “salga” */
    word-break: break-word;
    overflow-wrap: anywhere;

    /* Limitar a 3 líneas + cortar lo demás */
    display: -webkit-box;
    -webkit-line-clamp: 3;      /* prueba 3 o 4 líneas según te guste */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* FAB ADMIN */
.admin-fab {
    position: fixed;
    bottom: 90px;
    right: 10px;
    z-index: 9999;
}

.admin-fab a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 56px;
    height: 56px;
    background: #1f3c88;
    color: white;
    text-decoration: none;
    border-radius: 50%;
    font-size: 26px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    transition: 0.25s ease all;
}

.admin-fab a:hover {
    background: #162d66;
    transform: translateY(-3px);
}

.admin-fab a:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .admin-fab {
        display: none !important;
    }
}

/* Service cards uniform */
.service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    min-height: 200px;
}

/* Content stays centered */
.service-content h3 {
    margin-top: 0;
    margin-bottom: 0.6rem;
	text-align: left;
}

.service-content p {
    margin: 0;
    color: #4b5563;
	text-align: left;
}

/* Footer button */
.service-footer {
    margin-top: 1.2rem;
}

/* WhatsApp button */
.service-btn {
    display: inline-block;
    padding: 0.55rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    text-decoration: none;
    transition: 0.25s ease all;
    font-weight: 500;
	border: 2px solid #2F4F9C;  
    color: #2F4F9C;             
    background: #ffffff;       
}

.service-btn:hover {
    background: #2F4F9C;   
    color: #ffffff;      
    transform: translateY(-2px);
}