/*
  Archivo: styles.css
  Descripción: Estilos principales para el sitio web de Sibell.
  Autor: Gemini
  Fecha: 2025-08-11
*/

/* === Importación de Fuentes === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* === Reseteo y Estilos Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Inter', sans-serif;
    color: #374151;
    background-color: #ffffff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Encabezado de Sección Genérico === */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #2563eb;
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: #5a6a85;
    max-width: 750px;
    margin: 0 auto;
}

.gradient-text {
    background: linear-gradient(90deg, #2563eb, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* === Botones === */
.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.6);
}

.btn-outline {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: transparent;
    border: 2px solid #2563eb;
    color: #2563eb;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #2563eb;
    color: #ffffff;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* Nuevos estilos para botones pequeños */
.btn-small {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}


/* === Navegación === */
.navbar {
    background-color: #ffffff;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo h2 {
    font-size: 2rem;
    color: #1a237e;
    font-weight: 700;
}

.nav-logo a {
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-link {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.language-switcher {
    font-weight: 600;
    color: #4b5563;
}

.lang-switcher {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.lang-switcher:hover {
    color: #2563eb;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #4b5563;
    transition: all 0.3s ease;
}

/* === Sección Hero (index.html) === */
.hero {
    padding: 100px 0;
    background-color: #f9fafb;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
    padding: 0 40px;
    /* Ajuste de padding para index.html */
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: #1a237e;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    color: #5a6a85;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a237e;
}

.stat p {
    font-size: 1rem;
    color: #5a6a85;
    margin-top: 5px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dashboard-mockup {
    width: 100%;
    max-width: 500px;
    height: 400px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.mockup-header {
    background-color: #e5e7eb;
    height: 30px;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.mockup-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.mockup-dots span:nth-child(1) {
    background-color: #ef4444;
}

.mockup-dots span:nth-child(2) {
    background-color: #f97316;
}

.mockup-dots span:nth-child(3) {
    background-color: #22c55e;
}

.mockup-content {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    gap: 2rem;
}

.ai-visualization {
    height: 150px;
    background-color: #f3f4f6;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

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

.metric {
    background-color: #f3f4f6;
    border-radius: 8px;
    padding: 1rem;
    flex: 1;
    text-align: center;
}

.metric h4 {
    font-size: 1.1rem;
    color: #4b5563;
    font-weight: 500;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a237e;
    margin-top: 5px;
}

/* === Sección de Servicios (index.html) === */
.services {
    padding: 80px 0;
    background-color: #f9fafb;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card-v2 {
    background-color: #ffffff;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.service-card-v2:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

/* === Responsive: mover visualmente el formulario debajo de los detalles de contacto en móviles === */
@media (max-width: 767px) {
    .contact-content {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Asegura que el bloque contact-info (detalles) aparezca antes que el formulario */
    .contact-info {
        order: 1;
    }

    .contact-form {
        order: 2;
        width: 100%;
    }

    /* Ajustes visuales para formularios en móvil */
    .contact-form .form-group input,
    .contact-form .form-group select,
    .contact-form .form-group textarea {
        width: 100%;
        padding: 0.85rem;
        border-radius: 8px;
        border: 1px solid #e5e7eb;
        margin-bottom: 0.75rem;
    }

    .nav-menu {
        display: none; /* mobile menu handled by JS/CSS elsewhere */
    }

    .hamburger {
        display: flex;
    }
}

.service-icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 2rem;
    color: #ffffff;
    font-size: 2.5rem;
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.4);
}

.service-card-v2 h3 {
    font-size: 1.5rem;
    color: #1a237e;
    margin-bottom: 1rem;
}

.service-card-v2 p {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.7;
}

/* === Sección "Quiénes Somos" (index.html) === */
.about-v2 {
    padding: 120px 0;
    background-color: #ffffff;
}

.about-content-v2 {
    display: flex;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
}

.about-text-wrapper-v2 {
    flex: 1;
}

.about-text-wrapper-v2 .section-header-v2 {
    text-align: left;
    margin-bottom: 3rem;
}

.section-header-v2 h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.section-header-v2 h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: #2563eb;
    border-radius: 2px;
}

.section-header-v2 p {
    font-size: 1.1rem;
    color: #5a6a85;
    max-width: 750px;
    margin: 0;
}

.about-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.about-card-v2 {
    background-color: #f9fafb;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border-left: 5px solid #2563eb;
}

.about-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.1);
}

.about-card-v2 i {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.about-card-v2 h3 {
    font-size: 1.4rem;
    color: #1a237e;
    margin-bottom: 0.75rem;
}

.about-card-v2 p {
    font-size: 1rem;
    color: #6b7280;
}

.about-image-wrapper-v2 {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 450px;
}

.about-visual-v2 {
    position: relative;
    width: 450px;
    height: 450px;
    background-image: url('images/Screenshot1.png');
    background-size: cover;
    background-position: center;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transform: rotate(5deg);
    transition: transform 0.5s ease-in-out;
}

.about-visual-v2:hover {
    transform: rotate(0deg);
}

/* === Contacto === */
.contact {
    padding: 120px 0;
    background-color: #f9fafb;
}

.contact-content {
    display: flex;
    gap: 5rem;
    align-items: center;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 1.1rem;
    color: #5a6a85;
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    color: #5a6a85;
}

.contact-item i {
    font-size: 1.5rem;
    color: #2563eb;
}

.contact-form {
    flex: 1;
    background-color: #ffffff;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    color: #374151;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* === Footer === */
.footer {
    background-color: #1a237e;
    color: #e5e7eb;
    padding: 80px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 50px;
}

.footer-section {
    flex-basis: 200px;
}

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: #e5e7eb;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #2563eb;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li a {
    text-decoration: none;
    color: #e5e7eb;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #2563eb;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #9ca3af;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.8rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

/* === Botón Flotante de WhatsApp === */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    animation: float-whatsapp 3s ease-in-out infinite;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
    animation-play-state: paused;
}

.whatsapp-float i {
    font-size: 1.8rem;
    color: white;
}

@keyframes float-whatsapp {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* === Estilos para SERVICIOS.HTML (Mejorados) === */

/* Page Header para Servicios */
.page-header-services {
    background: linear-gradient(135deg, #2563eb, #8b5cf6);
    padding: 100px 0;
    /* Aumentado el padding para más espacio vertical */
    text-align: center;
    color: #ffffff;
}

.page-header-content-services h1 {
    font-size: 3.8rem;
    /* Tamaño de fuente ligeramente más grande */
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-header-content-services p {
    font-size: 1.35rem;
    /* Tamaño de fuente ligeramente más grande */
    opacity: 0.9;
    max-width: 800px;
    /* Limita el ancho para mejor legibilidad */
    margin: 0 auto;
}

/* Sección de Visión General de Servicios */
.services-overview-page {
    padding: 100px 0;
    /* Aumentado el padding */
    background-color: #f3f4f6;
    /* Fondo sutilmente diferente */
}

.overview-content-page {
    text-align: center;
    max-width: 900px;
    /* Más ancho para el texto */
    margin: 0 auto;
}

.overview-content-page h2 {
    font-size: 3rem;
    /* Tamaño de fuente ligeramente más grande */
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 25px;
    /* Más espacio */
    line-height: 1.3;
}

.overview-content-page p {
    font-size: 1.2rem;
    /* Tamaño de fuente ligeramente más grande */
    color: #5a6a85;
    line-height: 1.8;
}

/* Servicios Detallados */
.detailed-services-page {
    padding: 100px 0;
    /* Aumentado el padding */
    background-color: #ffffff;
    /* Fondo blanco para contraste con la sección anterior */
}

.service-detail-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 3.5rem;
    /* Aumentado el padding interno */
    margin-bottom: 50px;
    /* Más espacio entre tarjetas */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
    /* Borde sutil */
}

.service-detail-card:hover {
    transform: translateY(-8px);
    /* Efecto de elevación más pronunciado */
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.15);
    /* Sombra más fuerte al pasar el ratón */
}

.service-header-detail {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    /* Más espacio entre icono y texto */
    margin-bottom: 2.5rem;
    padding-bottom: 25px;
    /* Más espacio inferior */
    border-bottom: 1px solid #e5e7eb;
}

.service-icon-large-box {
    width: 100px;
    /* Tamaño de caja más grande */
    height: 100px;
    background: linear-gradient(135deg, #2563eb, #8b5cf6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3.8rem;
    /* Icono más grande */
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.service-info-detail h2 {
    font-size: 2.5rem;
    /* Título de servicio más grande */
    color: #1a237e;
    font-weight: 700;
    margin-bottom: 0.75rem;
    /* Más espacio inferior */
}

.service-info-detail .service-subtitle {
    font-size: 1.15rem;
    /* Subtítulo ligeramente más grande */
    color: #5a6a85;
}

.service-content-detail {
    display: flex;
    gap: 4rem;
    /* Más espacio entre los bloques de descripción y beneficios */
    flex-wrap: wrap;
}

.service-description-block,
.service-benefits-block {
    flex: 1;
    min-width: 320px;
    /* Asegura un buen ancho en pantallas intermedias */
}

.service-description-block p {
    font-size: 1.05rem;
    /* Texto de descripción ligeramente más grande */
    color: #5a6a85;
    line-height: 1.8;
    margin-bottom: 1.8rem;
    /* Más espacio inferior */
}

.service-description-block h3,
.service-benefits-block h3 {
    font-size: 1.5rem;
    /* Títulos de subsecciones más grandes */
    color: #1a237e;
    margin-bottom: 1.2rem;
    /* Más espacio */
    position: relative;
    padding-bottom: 8px;
    /* Espacio para el subrayado */
}

.service-description-block h3::after,
.service-benefits-block h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    /* Subrayado un poco más largo */
    height: 4px;
    /* Subrayado un poco más grueso */
    background-color: #2563eb;
    border-radius: 2px;
}

.service-description-block ul {
    list-style: none;
    padding-left: 0;
}

.service-description-block ul li {
    font-size: 1.05rem;
    /* Tamaño de lista ligeramente más grande */
    color: #5a6a85;
    margin-bottom: 12px;
    /* Más espacio entre ítems de lista */
    position: relative;
    padding-left: 30px;
    /* Más espacio para el checkmark */
}

.service-description-block ul li::before {
    content: "\f00c";
    /* Icono de checkmark */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #22c55e;
    position: absolute;
    left: 0;
    top: 3px;
    /* Ajusta la posición vertical del checkmark */
}

.benefits-grid-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    /* Columnas un poco más anchas */
    gap: 20px;
    /* Más espacio entre beneficios */
}

.benefit-item-detail {
    background-color: #f9fafb;
    /* Fondo sutil para cada beneficio */
    padding: 1.2rem 1.5rem;
    /* Más padding */
    border-radius: 10px;
    /* Bordes más redondeados */
    display: flex;
    align-items: center;
    gap: 12px;
    /* Más espacio entre icono y texto */
    font-size: 1rem;
    /* Tamaño de fuente ligeramente más grande */
    color: #4b5563;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    transition: background-color 0.3s ease;
}

.benefit-item-detail:hover {
    background-color: #eef2ff;
    /* Cambio de color al pasar el ratón */
}

.benefit-item-detail i {
    color: #2563eb;
    font-size: 1.3rem;
    /* Icono un poco más grande */
}

/* Sección de Proceso */
.process-section-page {
    padding: 120px 0;
    /* Aumentado el padding */
    background-color: #f9fafb;
    /* Fondo sutil */
    text-align: center;
}

.process-section-page h2 {
    font-size: 3rem;
    /* Título más grande */
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 70px;
    /* Más espacio */
}

.process-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    /* Pasos un poco más anchos */
    gap: 50px;
    /* Más espacio entre los pasos */
    position: relative;
    padding-top: 30px;
    /* Asegura espacio para la línea horizontal */
}

.process-steps-grid::before {
    content: '';
    position: absolute;
    top: 55px;
    /* Ajuste para que la línea pase por el centro del círculo */
    left: 0;
    right: 0;
    height: 3px;
    background-color: #e5e7eb;
    z-index: 0;
}

.process-step-item {
    position: relative;
    padding-top: 50px;
    /* Espacio para el número del paso */
    text-align: center;
}

.step-number-circle {
    width: 60px;
    /* Círculo más grande */
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #8b5cf6);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    /* Número más grande */
    font-weight: 700;
    margin: 0 auto 25px;
    /* Más espacio inferior */
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    border: 3px solid #ffffff;
    /* Borde blanco para el círculo */
}

.process-step-item h3 {
    font-size: 1.6rem;
    /* Título de paso más grande */
    color: #1a237e;
    margin-bottom: 12px;
    /* Más espacio */
}

.process-step-item p {
    font-size: 1rem;
    color: #5a6a85;
}


/* Sección CTA (Call to Action) */
.cta-section-page {
    background: linear-gradient(135deg, #1a237e, #2563eb);
    padding: 120px 0;
    /* Aumentado el padding */
    text-align: center;
    color: #ffffff;
}

.cta-content-page h2 {
    font-size: 3.5rem;
    /* Título más grande */
    font-weight: 700;
    margin-bottom: 25px;
    /* Más espacio */
    line-height: 1.2;
}

.cta-content-page p {
    font-size: 1.3rem;
    /* Texto más grande */
    opacity: 0.9;
    margin-bottom: 50px;
    /* Más espacio */
    max-width: 900px;
    /* Limita el ancho */
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons-page {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    /* Más espacio entre botones */
    flex-wrap: wrap;
}

.cta-buttons-page .btn-primary {
    background: #ffffff;
    color: #2563eb;
    box-shadow: none;
}

.cta-buttons-page .btn-primary:hover {
    background-color: #f3f4f6;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.cta-buttons-page .btn-outline {
    border-color: #ffffff;
    color: #ffffff;
}

.cta-buttons-page .btn-outline:hover {
    background-color: #ffffff;
    color: #2563eb;
}


/* === Estilos para QUIENES-SOMOS.HTML (Nuevos y Mejorados) === */

/* Page Header para Quienes Somos */
.page-header-about {
    background: linear-gradient(135deg, #1a237e, #2563eb);
    /* Un degradado más oscuro y corporativo */
    padding: 100px 0;
    text-align: center;
    color: #ffffff;
}

.page-header-content-about h1 {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-header-content-about p {
    font-size: 1.35rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* Sección principal de Contenido (Historia) */
.about-main-page {
    padding: 100px 0;
    background-color: #ffffff;
}

.about-intro-section {
    display: flex;
    align-items: center;
    gap: 6rem;
    /* Más espacio entre texto y visual */
    flex-wrap: wrap;
    margin-bottom: 80px;
    /* Espacio antes de la siguiente sección */
}

.about-text-content {
    flex: 1;
    min-width: 350px;
    /* Asegura que el texto no se haga demasiado pequeño */
}

.about-text-content h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 25px;
    line-height: 1.3;
}

.about-text-content .lead-text-about {
    font-size: 1.2rem;
    color: #5a6a85;
    line-height: 1.8;
}

.about-visual-illustration {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 400px;
    /* Asegura un tamaño mínimo para la ilustración */
    height: 400px;
    position: relative;
}

.ai-illustration-sphere {
    position: relative;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #e0f2f7, #a7d9f7);
    /* Esfera central con degradado suave */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.8);
    animation: pulse-sphere 4s infinite alternate ease-in-out;
}

@keyframes pulse-sphere {
    0% {
        transform: scale(1);
        box-shadow: 0 0 40px rgba(37, 99, 235, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.8);
    }

    100% {
        transform: scale(1.03);
        box-shadow: 0 0 55px rgba(37, 99, 235, 0.3), inset 0 0 25px rgba(255, 255, 255, 0.9);
    }
}


.floating-icon {
    position: absolute;
    width: 70px;
    height: 70px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    color: #2563eb;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: orbit-icon 15s linear infinite;
    /* Animación de órbita */
}

.floating-icon.icon-brain {
    top: 10%;
    left: 50%;
    transform: translateX(-50%) rotate(0deg) translateX(150px) rotate(0deg);
    animation-delay: 0s;
}

.floating-icon.icon-chart {
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%) rotate(90deg) translateX(150px) rotate(-90deg);
    animation-delay: -3.75s;
}

.floating-icon.icon-cogs {
    top: 50%;
    right: 10%;
    transform: translateY(-50%) rotate(180deg) translateX(150px) rotate(-180deg);
    animation-delay: -7.5s;
}

.floating-icon.icon-database {
    top: 50%;
    left: 10%;
    transform: translateY(-50%) rotate(270deg) translateX(150px) rotate(-270deg);
    animation-delay: -11.25s;
}

@keyframes orbit-icon {
    0% {
        transform: rotate(0deg) translateX(150px) rotate(0deg);
    }

    100% {
        transform: rotate(360deg) translateX(150px) rotate(-360deg);
    }
}


/* Sección Misión y Visión */
.mission-vision-grid-about {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    /* Más espacio entre tarjetas */
    margin-bottom: 80px;
    /* Espacio antes de la siguiente sección */
}

.mission-card-about,
.vision-card-about {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 3.5rem;
    /* Más padding */
    border-left: 5px solid #2563eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card-about:hover,
.vision-card-about:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.15);
}

.card-icon-about {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.4);
}

.mission-card-about h3,
.vision-card-about h3 {
    font-size: 1.8rem;
    color: #1a237e;
    margin-bottom: 1rem;
    font-weight: 700;
}

.mission-card-about p,
.vision-card-about p {
    font-size: 1.05rem;
    color: #5a6a85;
    line-height: 1.8;
}

/* Sección Propósito */
.purpose-section-about {
    background-color: #f9fafb;
    /* Fondo sutil para destacar */
    padding: 80px 0;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 80px;
}

.purpose-content-about {
    max-width: 900px;
    margin: 0 auto;
}

.purpose-content-about h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 25px;
    line-height: 1.3;
}

.purpose-content-about .purpose-text-about {
    font-size: 1.25rem;
    color: #5a6a85;
    line-height: 1.8;
}

/* Sección Diferenciadores */
.differentiators-section-about {
    padding: 80px 0;
    background-color: #ffffff;
    text-align: center;
}

.differentiators-section-about h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 25px;
}

.differentiators-section-about .section-intro-about {
    font-size: 1.2rem;
    color: #5a6a85;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 60px;
}

.differentiators-grid-about {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.differentiator-card-about {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
}

.differentiator-card-about:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.1);
}

.diff-icon-about {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f6823b, #eb3b25);
    /* Diferente degradado para diferenciar */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: #ffffff;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(235, 99, 37, 0.4);
}

.differentiator-card-about h4 {
    font-size: 1.4rem;
    color: #1a237e;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.differentiator-card-about p {
    font-size: 0.95rem;
    color: #5a6a85;
    line-height: 1.7;
}

/* Sección Metodología */
.methodology-section-about {
    padding: 100px 0;
    background-color: #f3f4f6;
    /* Fondo sutil */
    text-align: center;
}

.methodology-section-about h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 25px;
}

.methodology-section-about .section-intro-about {
    font-size: 1.2rem;
    color: #5a6a85;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 60px;
}

.methodology-steps-about {
    display: flex;
    flex-direction: column;
    gap: 60px;
    /* Espacio entre los pasos */
    align-items: center;
}

.step-about {
    display: flex;
    align-items: flex-start;
    /* Alinea el número con el inicio del contenido */
    gap: 30px;
    max-width: 800px;
    text-align: left;
}

.step-number-about {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #8b5cf6);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    flex-shrink: 0;
    /* Evita que el número se encoja */
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.step-content-about h3 {
    font-size: 1.8rem;
    color: #1a237e;
    margin-bottom: 10px;
    font-weight: 700;
}

.step-content-about p {
    font-size: 1.05rem;
    color: #5a6a85;
    line-height: 1.7;
}


/* === Estilos para CONTACTO.HTML (Nuevos y Mejorados) === */

/* Page Header para Contacto */
.page-header-contact {
    background: linear-gradient(135deg, #1a237e, #2563eb);
    /* Un degradado más oscuro y corporativo */
    padding: 100px 0;
    text-align: center;
    color: #ffffff;
}

.page-header-content-contact h1 {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-header-content-contact p {
    font-size: 1.35rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* Sección principal de Contacto */
.contact-page-main {
    padding: 100px 0;
    background-color: #f9fafb;
    /* Fondo sutil para la sección */
}

.contact-wrapper {
    display: flex;
    gap: 60px;
    /* Espacio entre la información y el formulario */
    flex-wrap: wrap;
    /* Permite que las columnas se apilen en pantallas pequeñas */
    align-items: flex-start;
    /* Alinea los elementos al inicio */
}

/* Sección de Información de Contacto */
.contact-info-section {
    flex: 1;
    min-width: 380px;
    /* Ancho mínimo para mantener la legibilidad */
    padding: 40px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.contact-info-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 20px;
    line-height: 1.3;
}

.contact-info-section p {
    font-size: 1.05rem;
    color: #5a6a85;
    line-height: 1.7;
    margin-bottom: 30px;
}

.contact-methods {
    display: grid;
    grid-template-columns: 1fr;
    /* Una columna para métodos en vertical */
    gap: 25px;
    margin-bottom: 40px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #f3f4f6;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    transition: background-color 0.3s ease;
}

.contact-method:hover {
    background-color: #eef2ff;
}

.method-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb, #8b5cf6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.method-info h3 {
    font-size: 1.25rem;
    color: #1a237e;
    margin-bottom: 5px;
}

.method-info p {
    font-size: 1rem;
    color: #4b5563;
    margin-bottom: 5px;
}

.method-info span {
    font-size: 0.85rem;
    color: #9ca3af;
}

.consultation-info {
    background-color: #eef2ff;
    /* Fondo claro para la información de consulta */
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #c3dafe;
}

.consultation-info h3 {
    font-size: 1.8rem;
    color: #1a237e;
    margin-bottom: 15px;
    font-weight: 700;
}

.consultation-info p {
    font-size: 1rem;
    color: #5a6a85;
    line-height: 1.7;
    margin-bottom: 20px;
}

.consultation-info ul {
    list-style: none;
    padding-left: 0;
}

.consultation-info ul li {
    font-size: 1rem;
    color: #4b5563;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.consultation-info ul li i {
    color: #22c55e;
    position: absolute;
    left: 0;
    top: 3px;
    font-size: 1rem;
}

/* Sección del Formulario de Contacto */
.contact-form-section {
    flex: 1.5;
    min-width: 240px; /* reduced to avoid overflow on narrow screens */
    min-width: 450px;
    /* Ancho mínimo para el formulario */
    padding: 40px;
    background-color: #ffffff;
.service-description-block p,
.service-description-block ul li,
.service-benefits-block p {
    overflow-wrap: break-word;
    word-break: break-word;
}
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.form-container h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 15px;
    line-height: 1.3;
}

.form-container p {
    font-size: 1.05rem;
    color: #5a6a85;
    line-height: 1.7;
    margin-bottom: 30px;
}

.contact-form-styled .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form-styled .form-row .form-group {
    flex: 1;
    margin-bottom: 0;
    /* Elimina el margen inferior para grupos en fila */
}

.contact-form-styled .form-group {
    margin-bottom: 20px;
}

.contact-form-styled label {
    display: block;
    font-size: 0.9rem;
    color: #4b5563;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-form-styled input[type="text"],
.contact-form-styled input[type="email"],
.contact-form-styled input[type="tel"],
.contact-form-styled select,
.contact-form-styled textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #374151;
    background-color: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-styled input:focus,
.contact-form-styled select:focus,
.contact-form-styled textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form-styled textarea {
    resize: vertical;
    /* Permite redimensionamiento vertical */
    min-height: 100px;
}

/* Estilo para checkboxes personalizados */
.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #5a6a85;
    cursor: pointer;
    margin-bottom: 15px;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-label .checkmark {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #e5e7eb;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    margin-right: 10px;
    flex-shrink: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked+.checkmark {
    background-color: #2563eb;
    border-color: #2563eb;
}

.checkbox-label input[type="checkbox"]:checked+.checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.checkbox-label a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    margin-left: 5px;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Sección de Preguntas Frecuentes (FAQ) */
.faq-section-page {
    padding: 100px 0;
    background-color: #ffffff;
    text-align: center;
}

.faq-section-page h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 60px;
}

.faq-grid-page {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
}

.faq-item-page {
    background-color: #f9fafb;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    text-align: left;
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item-page:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1);
}

.faq-item-page h3 {
    font-size: 1.5rem;
    color: #1a237e;
    margin-bottom: 15px;
    font-weight: 600;
}

.faq-item-page p {
    font-size: 1rem;
    color: #5a6a85;
    line-height: 1.7;
}


/* === Estilos para BLOG.HTML (Nuevos y Mejorados) === */

/* Page Header para Blog */
.page-header-blog {
    background: linear-gradient(135deg, #1a237e, #8b5cf6);
    /* Degradado diferente para el blog */
    padding: 100px 0;
    text-align: center;
    color: #ffffff;
}

.page-header-content-blog h1 {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-header-content-blog p {
    font-size: 1.35rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* Sección principal del Blog */
.blog-content-main {
    padding: 100px 0;
    background-color: #f9fafb;
    /* Fondo sutil para la sección */
}

/* Artículo Destacado */
.featured-article-page {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 80px;
    /* Espacio antes de la cuadrícula de blog */
    display: flex;
    flex-wrap: wrap;
    /* Permite envolver en pantallas pequeñas */
    overflow: hidden;
    /* Asegura que la imagen no se desborde */
}

.featured-image-page {
    flex: 1;
    min-width: 400px;
    /* Tamaño mínimo para la imagen destacada */
    height: 450px;
    position: relative;
    overflow: hidden;
}

.featured-image-page img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Asegura que la imagen cubra el contenedor sin distorsionarse */
    border-radius: 12px 0 0 12px;
    /* Redondeo solo en la esquina izquierda */
    transition: transform 0.5s ease-in-out;
}

.featured-article-page:hover .featured-image-page img {
    transform: scale(1.05);
    /* Zoom sutil al pasar el ratón */
}

.featured-content-page {
    flex: 1.2;
    /* El contenido toma más espacio */
    padding: 3.5rem;
    /* Aumentado el padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-meta-page {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1rem;
    display: flex;
    gap: 15px;
}

.category-page {
    font-weight: 600;
    color: #2563eb;
    /* Color de categoría destacado */
    text-transform: uppercase;
}

.featured-content-page h2 {
    font-size: 2.5rem;
    color: #1a237e;
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.featured-content-page p {
    font-size: 1.1rem;
    color: #5a6a85;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Cuadrícula del Blog */
.blog-grid-page {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    /* Más espacio entre tarjetas */
    margin-bottom: 80px;
    /* Espacio antes de la sección de newsletter */
}

.blog-card-page {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
}

.blog-card-page:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.15);
}

.blog-image-page {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-image-page img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-in-out;
}

.blog-card-page:hover .blog-image-page img {
    transform: scale(1.05);
}

.blog-content-page {
    padding: 2rem;
}

.blog-content-page h3 {
    font-size: 1.6rem;
    color: #1a237e;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-content-page p {
    font-size: 1rem;
    color: #5a6a85;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.read-more-page {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.read-more-page:hover {
    gap: 12px;
    /* Efecto de flecha que se mueve */
}

.read-more-page i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

/* Sección Newsletter */
.newsletter-section-blog {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    /* Degradado más vibrante */
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
    border-radius: 12px;
    margin-bottom: 80px;
    /* Espacio antes de las categorías */
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.2);
}

.newsletter-content-blog {
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-content-blog h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.newsletter-content-blog p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.newsletter-form-blog {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: wrap;
    /* Permite envolver en móvil */
}

.newsletter-form-blog input[type="email"] {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #374151;
    min-width: 250px;
    /* Ancho mínimo para el input */
}

.newsletter-form-blog button {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background-color: #1a237e;
    /* Color de botón contrastante */
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form-blog button:hover {
    background-color: #3f51b5;
    /* Tono más claro al pasar el ratón */
}

/* Sección de Categorías */
.categories-section-blog {
    text-align: center;
    padding-bottom: 80px;
    /* Espacio antes del footer */
}

.categories-section-blog h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 40px;
}

.categories-grid-blog {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    /* Espacio entre tags */
}

.category-tag-blog {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #eef2ff;
    /* Fondo sutil para las tags */
    border: 1px solid #c3dafe;
    border-radius: 25px;
    /* Bordes más redondeados */
    color: #2563eb;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.category-tag-blog:hover {
    background-color: #dbeafe;
    /* Fondo más oscuro al pasar el ratón */
    transform: translateY(-3px);
}


/* === Estilos Responsivos Generales === */
@media (max-width: 1200px) {
    .hero-container {
        padding: 0 20px;
    }

    .about-content-v2 {
        flex-direction: column-reverse;
        gap: 40px;
    }

    .about-text-wrapper-v2 .section-header-v2 {
        text-align: center;
    }

    .about-text-wrapper-v2 .section-header-v2 h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-image-wrapper-v2 {
        min-width: unset;
    }

    .about-visual-v2 {
        width: 100%;
        height: 350px;
    }

    .detailed-services-page .service-content-detail {
        flex-direction: column;
        gap: 2rem;
    }

    .process-steps-grid::before {
        top: 0;
        left: 25px;
        height: auto;
        width: 3px;
        bottom: 0;
    }

    .process-step-item {
        padding-top: 0;
        padding-left: 60px;
        text-align: left;
    }

    .step-number-circle {
        top: 0;
        left: 0;
        transform: none;
    }

    /* Quiénes Somos Responsive */
    .about-intro-section {
        flex-direction: column-reverse;
        /* Imagen arriba, texto abajo en móvil */
        text-align: center;
        gap: 3rem;
    }

    .about-text-content h2 {
        text-align: center;
    }

    .about-text-content .lead-text-about {
        text-align: center;
    }

    .about-visual-illustration {
        min-width: unset;
        width: 100%;
        height: 300px;
        /* Ajusta la altura para móviles */
    }

    .ai-illustration-sphere {
        width: 250px;
        height: 250px;
    }

    .floating-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }

    @keyframes orbit-icon {
        0% {
            transform: rotate(0deg) translateX(100px) rotate(0deg);
        }

        /* Radius más pequeño para móvil */
        100% {
            transform: rotate(360deg) translateX(100px) rotate(-360deg);
        }
    }

    .mission-vision-grid-about {
        grid-template-columns: 1fr;
    }

    .purpose-section-about {
        padding: 60px 0;
    }

    .differentiators-section-about .section-intro-about {
        margin-bottom: 40px;
    }

    .methodology-steps-about {
        align-items: flex-start;
        /* Alinea los pasos a la izquierda en móvil */
    }

    .step-about {
        flex-direction: column;
        /* Apila número y contenido */
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .step-number-about {
        margin-bottom: 0;
    }

    /* Contacto Responsive */
    .contact-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .contact-info-section,
    .contact-form-section {
        min-width: unset;
        width: 100%;
    }

    .contact-form-styled .form-row {
        flex-direction: column;
        gap: 0;
        /* Elimina el gap cuando se apilan */
    }

    .contact-form-styled .form-row .form-group {
        margin-bottom: 20px;
        /* Restaura el margen para grupos apilados */
    }

    .faq-grid-page {
        grid-template-columns: 1fr;
    }

    /* Blog Responsive */
    .featured-article-page {
        flex-direction: column;
    }

    .featured-image-page {
        min-width: unset;
        width: 100%;
        height: 250px;
    }

    .featured-image-page img {
        border-radius: 12px 12px 0 0;
        /* Redondeo en la parte superior */
    }

    .featured-content-page {
        padding: 2.5rem;
    }

    .blog-grid-page {
        grid-template-columns: 1fr;
    }

    .newsletter-form-blog {
        flex-direction: column;
        gap: 15px;
    }

    .newsletter-form-blog input[type="email"] {
        min-width: unset;
    }
}

@media (max-width: 992px) {
    .hero-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 40px 0;
    }

    .hero-content {
        width: 100%;
        max-width: 760px;
        padding: 0 18px;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem; /* scaled down for tablets */
        line-height: 1.15;
    }

    .hero-description {
        font-size: 1.03rem;
        max-width: 720px;
        margin: 0 auto 20px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .hero-buttons .btn-large {
        width: 100%;
        max-width: 320px;
    }

    .hero-image {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 0 18px;
    }

    .dashboard-mockup {
        width: 100%;
        max-width: 620px;
        box-shadow: 0 12px 30px rgba(16,24,40,0.06);
    }

    .hero-stats {
        display: flex;
        gap: 12px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-stats .stat {
        min-width: 110px;
        padding: 8px 12px;
    }
    /* Stack service content on medium and smaller screens */
    .service-header-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-bottom: 12px;
    }

    .service-icon-large-box {
        width: 72px;
        height: 72px;
        font-size: 2.4rem;
    }

    .service-info-detail h2 {
        font-size: 1.6rem;
    }

    .service-content-detail {
        flex-direction: column;
        gap: 1.25rem;
    }

    .service-description-block,
    .service-benefits-block {
        min-width: 0;
        width: 100%;
    }

    .service-detail-card {
        padding: 1.6rem;
    }

}

@media (max-width: 768px) {
    .hero-container { padding: 30px 0; }
    .hero-title { font-size: 1.8rem; }
    .hero-description { font-size: 1rem; }

    .dashboard-mockup { max-width: 520px; }
    .mockup-content .ai-visualization { display: none; } /* hide heavy visuals on small devices */

    .hero-buttons .btn-large { max-width: 100%; }

    /* make stats more compact */
    .stat h3 { font-size: 1.25rem; }
    .stat p { font-size: 0.85rem; }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    .hero-container { padding: 24px 0; }
    .hero-title { font-size: 1.6rem; }
    .hero-description { font-size: 0.95rem; }

    .hero-buttons { gap: 10px; }
    .hero-buttons .btn-large { padding: 12px 14px; font-size: 0.95rem; }

    .dashboard-mockup { max-width: 360px; }

    /* ensure hero image not too tall */
    .hero-image { padding-bottom: 10px; }

    /* keep the nav accessible */
    .nav-menu { width: 86%; }
}

/* Hamburger menu styles for mobile */
.hamburger-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 80vw;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 8px rgba(0,0,0,0.08);
    z-index: 9999;
    flex-direction: column;
    padding: 32px 24px 24px 24px;
    transition: transform 0.3s ease;
}
.hamburger-menu.active {
    display: flex;
    transform: translateX(0);
}
.hamburger-menu .language-switcher {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    font-size: 1.1rem;
}
.hamburger-menu .lang-switcher {
    padding: 0 8px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}
.hamburger-menu .lang-switcher.active {
    color: #1a237e;
}
.hamburger-menu span {
    color: #4b5563;
    font-weight: 600;
}

/* Accessibility: focus states for keyboard users */
.nav-link:focus,
.lang-switcher:focus,
.btn-primary:focus,
.btn-outline:focus {
    outline: 3px solid rgba(37,99,235,0.18);
    outline-offset: 3px;
}

/* Utility: center images used as backgrounds responsively */
.about-visual-v2 {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Small tweak: ensure long paragraphs wrap and don't overflow */
p, li, span {
    word-wrap: break-word;
}

/* === Mejoras RESPONSIVE y navegación móvil === */

/* Global: make images and media scale */
img, picture, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure containers have comfortable padding on small screens */
.container {
    padding-left: 20px;
    padding-right: 20px;
}

/* Desktop: keep existing nav layout (assumed present). Mobile: transform nav into off-canvas menu */
.hamburger {
    display: none; /* shown on small screens via media query */
    cursor: pointer;
 width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 8px;
}

.nav-menu {
    display: flex;
    gap: 24px;
    align-items: center;
}

/* Mobile and tablet breakpoints */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }

    .nav-buttons {
        display: none; /* hide language switcher on small screens inside header, keep it in the mobile menu */
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 78%;
        max-width: 360px;
        height: 100vh;
        background: #ffffff;
        box-shadow: -12px 0 30px rgba(16,24,40,0.08);
        flex-direction: column;
        padding: 80px 20px 20px 20px;
        gap: 18px;
        z-index: 1200;
        transition: right 0.32s ease;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        padding: 14px 8px;
        font-size: 1.05rem;
    }

    .language-switcher {
        display: block;
        margin-top: 8px;
    }
}

/* Larger mobile tweaks */
@media (max-width: 768px) {
    html { font-size: 15px; }

    .hero { padding: 40px 0; }
    .hero-title { font-size: 1.9rem; }
    .hero-description { font-size: 1rem; }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card-v2 {
        padding: 1.6rem;
        border-radius: 0.75rem;
    }

    .about-content-v2 {
        flex-direction: column-reverse;
        gap: 24px;
        text-align: center;
    }

    .about-image-wrapper-v2 {
        width: 100%;
        min-width: unset;
    }

    .about-visual-v2 {
        width: 100%;
        height: 260px;
        background-size: cover;
        transform: none;
    }

    .service-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .process-steps {
        flex-direction: column;
        gap: 30px;
    }

    .process-steps::before { display: none; }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        width: 100%;
    }

    .footer-content {
        display: block;
    }

    .footer-section { margin-bottom: 20px; }
}

/* Small phones */
@media (max-width: 480px) {
    html { font-size: 14px; }

    .hero-title { font-size: 1.6rem; }
    .hero-description { font-size: 0.98rem; }

    .section-header h2 { font-size: 1.8rem; }

    .service-icon-box { width: 64px; height: 64px; font-size: 1.8rem; }

    .about-card-v2 { padding: 1.25rem; }

    .whatsapp-float {
        bottom: 18px;
        right: 18px;
    }

    /* make sure off-canvas nav covers properly on tiny screens */
    .nav-menu {
        width: 86%;
        max-width: 320px;
    }
}

/* === Ajustes específicos para la página HOME (hero) === */

@media (max-width: 992px) {
    .hero-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 40px 0;
    }

    .hero-content {
        width: 100%;
        max-width: 760px;
        padding: 0 18px;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem; /* scaled down for tablets */
        line-height: 1.15;
    }

    .hero-description {
        font-size: 1.03rem;
        max-width: 720px;
        margin: 0 auto 20px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .hero-buttons .btn-large {
        width: 100%;
        max-width: 320px;
    }

    .hero-image {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 0 18px;
    }

    .dashboard-mockup {
        width: 100%;
        max-width: 620px;
        box-shadow: 0 12px 30px rgba(16,24,40,0.06);
    }

    .hero-stats {
        display: flex;
        gap: 12px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-stats .stat {
        min-width: 110px;
        padding: 8px 12px;
    }
}

@media (max-width: 768px) {
    .hero-container { padding: 30px 0; }
    .hero-title { font-size: 1.8rem; }
    .hero-description { font-size: 1rem; }

    .dashboard-mockup { max-width: 520px; }
    .mockup-content .ai-visualization { display: none; } /* hide heavy visuals on small devices */

    .hero-buttons .btn-large { max-width: 100%; }

    /* make stats more compact */
    .stat h3 { font-size: 1.25rem; }
    .stat p { font-size: 0.85rem; }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    .hero-container { padding: 24px 0; }
    .hero-title { font-size: 1.6rem; }
    .hero-description { font-size: 0.95rem; }

    .hero-buttons { gap: 10px; }
    .hero-buttons .btn-large { padding: 12px 14px; font-size: 0.95rem; }

    .dashboard-mockup { max-width: 360px; }

    /* ensure hero image not too tall */
    .hero-image { padding-bottom: 10px; }

    /* keep the nav accessible */
    .nav-menu { width: 86%; }
}