/* Variables */
:root {
    --color-primary: #3b82f6;
    --color-secondary: #10b981;
    --color-dark: #1e3a8a;
    --color-gray: #6b7280;
    --color-light: #f3f4f6;
    --gradient-main: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    --gradient-hover: linear-gradient(135deg, #2563eb 0%, #059669 100%);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --logo-bg: #f9fbfa;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    overflow-x: hidden;
}

h2 {
    line-height: 1.12;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navegación */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 0.4rem 0;
}

.navbar-home {
    background: var(--logo-bg);
    backdrop-filter: none;
}

.navbar .container {
    padding-top: 0;
    padding-bottom: 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
    max-width: calc(100% - 44px);
    margin: 8px 0;
}

.logo img {
    height: 56px;
    width: auto;
    max-width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.footer-logo {
    height: 58px;
    width: auto;
    max-width: 100%;
    margin: 8px 0 1rem;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: #374151;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--color-primary);
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn-primary):hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Botón Contacto en navbar - tamaño equilibrado */
.nav-links .btn-primary {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-dark);
    transition: all 0.3s ease;
}

/* Botones */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--color-dark);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-light);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 4rem;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-visual-wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-visual-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(8, 15, 35, 0.88) 0%,
        rgba(8, 15, 35, 0.75) 45%,
        rgba(8, 15, 35, 0.85) 100%
    );
    pointer-events: none;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    text-align: left;
    max-width: 800px;
    margin: 0;
    padding: 1.5rem 0;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.65), 0 1px 3px rgba(0, 0, 0, 0.9);
    animation: fadeInUp 0.8s ease;
    letter-spacing: -0.02em;
    max-width: 700px;
}

.hero .gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title-accent {
    display: block;
    margin-top: calc(16px + 0.35rem);
    font-size: 1em;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: none;
    filter: drop-shadow(0 2px 14px rgba(59, 130, 246, 0.35));
}

.hero-title-br {
    display: none;
}

@media (min-width: 480px) {
    .hero-title-br {
        display: inline;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 2.5rem;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.75);
    animation: fadeInUp 0.8s ease 0.2s backwards;
    max-width: 700px;
    line-height: 1.45;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero .btn-outline {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-color: #ffffff;
}

.hero-stats {
    display: flex;
    justify-content: flex-start;
    gap: 4rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s backwards;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
}

.hero .stat h3 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #93c5fd 0%, #6ee7b7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.hero .stat p {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: white;
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
    z-index: 2;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Sections */
.section, .section-services, .section-why, .section-testimonials, .section-faq, .section-que-hacemos, .section-benefits, .section-use-cases {
    padding: 5rem 0;
}

.section-faq {
    background: var(--color-light, #f9fafb);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--color-gray);
}

.bg-light {
    background: var(--color-light);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.service-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.price-from {
    color: var(--color-gray);
    font-size: 0.9rem;
}

.price-amount {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-features {
    list-style: none;
    margin: 1rem 0;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--color-gray);
}

/* Why Section */
.why-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.lead {
    font-size: 1.2rem;
    color: var(--color-gray);
    margin-bottom: 2rem;
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-item h4 {
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.why-image {
    width: 100%;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    background: var(--gradient-main);
    box-shadow: var(--shadow-lg);
}

.gradient-bg {
    background: var(--gradient-main);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonials-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.testimonials-actions .btn-outline {
    width: 15rem;
    max-width: 100%;
    box-sizing: border-box;
}

.author-avatar {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    flex-shrink: 0;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1;
}

/* CTA Section */
.section-cta {
    background: var(--gradient-main);
    padding: 5rem 0;
    text-align: center;
}

.cta-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.section-cta .btn-primary {
    background: white;
    color: var(--color-primary);
}

.section-cta .btn-primary:hover {
    transform: translateY(-3px);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    padding: 8rem 0 4rem;
    margin-top: 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.12;
    margin-bottom: 1rem;
}

/* Service Detail */
.service-detail-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.service-detail-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-icon-large {
    font-size: 4rem;
}

.service-tagline {
    font-size: 1.1rem;
    color: var(--color-gray);
}

.service-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.service-features-list ul {
    list-style: none;
}

.service-features-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-light);
}

.service-pricing {
    text-align: center;
}

.pricing-badge {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.price-label {
    display: block;
    color: var(--color-gray);
    margin-bottom: 0.5rem;
}

.price-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.comparison-table th {
    background: var(--gradient-main);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--color-light);
}

.comparison-table tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

.note {
    color: var(--color-gray);
    font-size: 0.9rem;
    font-style: italic;
}

/* Primera consulta roadmap */
.primera-consulta-roadmap .lead,
.roadmap-consulta-embed + .lead {
    max-width: 720px;
    margin: 0 auto 2rem;
}

.roadmap-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 0.75rem 0.5rem;
    align-items: stretch;
    margin-bottom: 2rem;
}

.roadmap-flow-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow);
    overflow: hidden;
    min-height: 100%;
}

.roadmap-flow-card-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem 1.25rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.roadmap-flow-card-main:hover {
    background: linear-gradient(180deg, #eff6ff 0%, #fff 100%);
}

.roadmap-flow-card-main:hover .roadmap-flow-cta {
    color: var(--color-primary);
}

.roadmap-flow-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--gradient-main);
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.roadmap-flow-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-secondary);
    margin-bottom: 0.35rem;
}

.roadmap-flow-card h3 {
    font-size: 1.05rem;
    color: var(--color-dark);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.roadmap-flow-card-main p {
    font-size: 0.9rem;
    color: var(--color-gray);
    margin: 0 0 0.75rem;
    flex: 1;
    line-height: 1.45;
}

.roadmap-flow-cta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-dark);
}

.roadmap-flow-ejemplos {
    list-style: none;
    margin: 0;
    padding: 0.5rem 1rem 0.75rem;
    border-top: 1px solid #f3f4f6;
    background: #f9fafb;
}

.roadmap-flow-entregables {
    padding: 0.65rem 1rem 0.35rem;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    font-size: 0.8rem;
}

.roadmap-flow-entregables strong {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-dark);
    margin-bottom: 0.35rem;
}

.roadmap-flow-entregables ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--color-gray);
}

.roadmap-flow-entregables li + li {
    margin-top: 0.2rem;
}

.roadmap-flow-ejemplos li + li {
    margin-top: 0.35rem;
}

.roadmap-flow-ejemplos a {
    font-size: 0.82rem;
    color: var(--color-primary);
    text-decoration: none;
}

.roadmap-flow-ejemplos a:hover {
    text-decoration: underline;
}

.roadmap-flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #93c5fd;
    padding: 0 0.15rem;
}

.roadmap-consulta-cta {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.roadmap-consulta-link-sec {
    font-weight: 600;
    color: var(--color-primary);
}

.roadmap-consulta-embed {
    margin: 1.5rem 0 2.5rem;
}

.roadmap-consulta-embed .roadmap-flow {
    margin-bottom: 0;
}

.bpmn-ejemplo-fig {
    margin: 1.5rem 0 2rem;
    padding: 1rem;
    background: #f9fbfa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.bpmn-ejemplo-fig img {
    width: 100%;
    height: auto;
    display: block;
}

.bpmn-ejemplo-fig figcaption {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--color-gray);
    text-align: center;
}

@media (max-width: 1100px) {
    .roadmap-flow {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .roadmap-flow-arrow {
        display: none;
    }
}

@media (max-width: 640px) {
    .roadmap-flow {
        grid-template-columns: 1fr;
    }
}

/* legacy (removed grid with static image) */
.roadmap-consulta-grid {
    display: none;
}

/* Process Steps */
.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 180px;
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-main);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
}

.portfolio-image-wrap {
    height: 200px;
    width: 100%;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.portfolio-image-wrap .portfolio-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-category {
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tech-badge {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 500;
}

/* Results Grid */
.results-grid, .values-grid, .sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.result-card, .value-card, .sector-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

.result-card h3 {
    font-size: 3rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.value-icon, .sector-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Video testimonials */
.video-testimonial {
    margin-bottom: 3rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-4px);
}

.video-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-placeholder .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    padding-left: 6px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.video-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--color-primary);
}

.video-card h3 {
    padding: 1.25rem 1.5rem 0.5rem;
    font-size: 1.1rem;
}

.video-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--color-gray);
    font-size: 0.95rem;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-method {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.method-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.office-hours {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.contact-form-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--color-light);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.error {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.form-note {
    font-size: 0.85rem;
    color: var(--color-gray);
    text-align: center;
    margin-top: 1rem;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.faq-item h3 {
    color: var(--color-dark);
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-description {
    color: #9ca3af;
    margin-bottom: 1rem;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--color-primary);
}

.footer-col h4 {
    margin-bottom: 1rem;
}

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

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: #9ca3af;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.4);
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1001;
    max-width: 400px;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideInRight 0.3s ease;
}

.alert-success {
    background: #10b981;
    color: white;
}

.alert-error {
    background: #ef4444;
    color: white;
}

/* Aviso idioma EN (accesibilidad) */
.i18n-toast-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}

.i18n-toast {
    position: relative;
    max-width: 520px;
    width: 100%;
    padding: 1.75rem 1.75rem 1.5rem;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.25);
    text-align: center;
    animation: i18nToastIn 0.35s ease;
}

.i18n-toast-label {
    display: inline-block;
    margin: 0 0 0.5rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: #dbeafe;
    color: #1e40af;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.i18n-toast h2 {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
    color: #0f172a;
}

.i18n-toast p {
    margin: 0 0 0.75rem;
    color: #334155;
    line-height: 1.55;
    font-size: 0.98rem;
}

.i18n-toast-note {
    font-size: 0.9rem;
    color: #64748b;
}

.i18n-toast-close {
    position: absolute;
    top: 0.65rem;
    right: 0.85rem;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.i18n-toast .btn-primary {
    margin-top: 0.5rem;
}

@keyframes i18nToastIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Honeypot anti-spam (oculto para usuarios) */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.turnstile-wrap {
    margin-bottom: 1rem;
}

.hero-microcopy {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.hero-stats .stat h3 {
    font-size: 1.1rem;
    line-height: 1.3;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pillar-card {
    background: var(--card-bg, rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
}

.pillar-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.pillar-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.service-audience {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 1rem;
}

.section-cta-inline {
    padding: 3rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.benefit-item {
    padding: 1.25rem;
    border-radius: 10px;
    background: white;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.08));
}

.benefit-item h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-dark, #1e3a8a);
}

.section-note {
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

.use-cases-table-wrap {
    overflow-x: auto;
}

.use-cases-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.use-cases-table th,
.use-cases-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.use-cases-table th {
    font-weight: 600;
    color: var(--primary-dark, #1e3a8a);
    background: rgba(59, 130, 246, 0.06);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.bg-light {
    background: #f8fafc;
}

.close-alert {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.small {
    font-size: 0.875rem;
}

/* Responsive */
/* Overrides para reducir el blanco y modernizar el aspecto */

.section-why {
    background-color: #0f172a;
    color: #f8fafc;
    padding: 6rem 0;
}

.section-why h2, .section-why h4 {
    color: #ffffff;
}

.section-why .lead {
    color: #cbd5e1;
}

.section-why .feature-item p {
    color: #94a3b8;
}

.section-why .feature-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-cta {
    background: var(--gradient-main);
    color: white;
    padding: 5rem 0;
}

.section-cta h2, .section-cta p {
    color: white;
}

.section-cta .btn-primary {
    background: white;
    color: var(--color-primary);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.section-cta .btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero-content {
        text-align: left;
        margin: 0;
    }

    .hero-title,
    .hero-subtitle {
        text-align: left;
        margin-left: 0;
        margin-right: 0;
    }

    .hero-buttons,
    .hero-microcopy,
    .hero-stats {
        text-align: center;
        justify-content: center;
        align-items: center;
    }

    .hero-microcopy {
        width: 100%;
    }

    .hero-stats .stat {
        text-align: center;
    }

    .pillars-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .use-cases-table {
        font-size: 0.85rem;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .logo {
        margin: 0;
        max-width: calc(100% - 40px);
    }

    .logo img {
        height: 53px;
    }

    .footer-logo {
        height: 70px;
        margin: 0 0 1rem;
    }

    .nav-links {
        position: fixed;
        top: 130px;
        left: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow);
        transition: left 0.3s ease;
    }

    .navbar-home .nav-links {
        background: var(--logo-bg);
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .testimonials-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .why-content,
    .service-detail-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

@media (min-width: 992px) {
    .hero-visual-wrap::after {
        background: linear-gradient(
            90deg,
            rgba(8, 15, 35, 0.93) 0%,
            rgba(8, 15, 35, 0.78) 42%,
            rgba(8, 15, 35, 0.35) 100%
        );
    }

    .hero .container {
        display: flex;
        align-items: center;
        min-height: calc(100vh - 120px);
    }

    .hero-content {
        max-width: 720px;
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 4.25rem;
    }

    .hero-subtitle {
        font-size: 1.35rem;
        line-height: 1.65;
    }

    .hero-buttons {
        flex-direction: row;
    }

    .hero-stats {
        flex-direction: row;
        gap: 3.5rem;
    }

    .hero .stat h3 {
        font-size: 2.75rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .hero-content {
        max-width: 780px;
    }

    .hero-title {
        font-size: 4.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 960px;
        margin: 0 auto;
    }
}

/* SEO landings */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-muted, #6b7280);
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}
.breadcrumb a { color: var(--primary, #3b82f6); text-decoration: none; }
.landing-content { max-width: 800px; margin: 0 auto; }
.landing-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; color: #1e3a8a; }
.landing-content p { margin-bottom: 1rem; line-height: 1.7; }
.landing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.landing-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.landing-card h2, .landing-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; color: #1e3a8a; }
.landing-card a { color: var(--primary, #3b82f6); }
.landing-list { margin: 1rem 0 1.5rem 1.5rem; line-height: 1.8; }
.pilar-heading { font-size: 1.75rem; color: #1e3a8a; margin-bottom: 0.5rem; }
.portfolio-badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; margin-bottom: 0.5rem; }
.portfolio-badge-desarrollo { background: #dbeafe; color: #1e40af; }
.portfolio-badge-ia { background: #ede9fe; color: #5b21b6; }
.portfolio-badge-automatización, .portfolio-badge-automatizacion { background: #d1fae5; color: #065f46; }
.legal-content h2 { margin-top: 2rem; font-size: 1.25rem; }
.recursos-date { font-size: 0.85rem; color: #6b7280; }
.recursos-card-thumb { display: block; margin: -0.25rem -0.25rem 1rem; border-radius: 10px; overflow: hidden; }
.recursos-card-thumb img { width: 100%; height: auto; display: block; aspect-ratio: 1200 / 630; object-fit: cover; }

.recursos-section-title { font-size: 1.5rem; margin-bottom: 1rem; }
.recursos-clusters-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.recursos-cluster-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1.25rem; }
.recursos-cluster-card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.recursos-pilar-link { font-size: 0.95rem; margin: 0.75rem 0; }
.recursos-soporte-list { margin: 0.5rem 0 1rem; padding-left: 1.2rem; font-size: 0.92rem; }
.recursos-soporte-list li { margin-bottom: 0.35rem; }
.recursos-badge-pilar { display: inline-block; margin-left: 0.5rem; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.7rem; font-weight: 600; background: #fef3c7; color: #92400e; vertical-align: middle; }
.recursos-feed-intro { color: #64748b; margin-bottom: 1rem; }
.recursos-hub-footer { margin-top: 2rem; }
.articulo-relacionados { margin: 2.5rem 0 1rem; padding: 1.25rem 1.5rem; background: #f8fafc; border-radius: 12px; border: 1px solid #e2e8f0; }
.articulo-relacionados h2 { font-size: 1.25rem; margin: 0 0 0.75rem; }
.articulo-relacionados ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.articulo-relacionados li { margin-bottom: 0.5rem; }
.recursos-ver-mas { margin-top: 1.5rem; }
.recursos-actualidad-pilar { margin-bottom: 1.25rem; padding: 0.75rem 1rem; background: #f0f9ff; border-radius: 8px; border: 1px solid #bae6fd; }
.articulo-noticia-contexto { margin: 1.25rem 0; padding: 1rem 1.25rem; background: #fffbeb; border-left: 4px solid #f59e0b; border-radius: 0 8px 8px 0; font-size: 0.95rem; }
.footer-bottom a { color: #9ca3af; margin-left: 0.5rem; }

/* GEO local pages */
.geo-tree { display: grid; gap: 2rem; margin: 2rem 0; }
@media (min-width: 768px) {
    .geo-tree { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
.geo-tree-group h2 { font-size: 1.25rem; margin-bottom: 1rem; color: #1e3a8a; }
.geo-tree-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.geo-tree-list a {
    display: block;
    padding: 1rem 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.geo-tree-list a:hover { border-color: #93c5fd; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12); }
.geo-tree-list strong { display: block; font-size: 1.05rem; margin-bottom: 0.35rem; color: #1e3a8a; }
.geo-tree-list span { display: block; font-size: 0.9rem; color: #6b7280; line-height: 1.5; }
.geo-hub-links { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #e5e7eb; }
.geo-related-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
.geo-related-links a { color: var(--primary, #3b82f6); text-decoration: none; font-weight: 500; }
.geo-related-links a:hover { text-decoration: underline; }
.geo-benefits-list { margin: 1rem 0 0 1.25rem; line-height: 1.8; }
.geo-benefits-list li { margin-bottom: 0.5rem; }
.geo-service-links { margin-top: 1.5rem; text-align: center; font-size: 0.95rem; }
.geo-service-links a { color: var(--primary, #3b82f6); text-decoration: none; }
.geo-service-links a:hover { text-decoration: underline; }
.section-note { font-size: 0.9rem; color: #6b7280; font-style: italic; margin-top: 0.5rem; }
.geo-cta-section { padding-bottom: 4rem; }
.geo-cta-section .hero-microcopy { margin-top: 1rem; }
.lang-item { display: flex; align-items: center; margin-left: 0.5rem; } .lang-selector { font-weight: 600; padding: 0.25rem 0.5rem; border-radius: 4px; background: #f1f5f9; color: #334155; text-decoration: none; transition: background 0.2s; } .lang-selector:hover { background: #e2e8f0; }
