/* === Segovia Tech Brand Variables === */
:root {
    --st-primary: #06B6D4;
    --st-primary-dark: #0E7490;
    --st-ink: #0F172A;
    --st-muted: #64748B;
    --st-bg: #f0f9ff;
    --st-bg-gradient: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
    
    /* Aliases para otras páginas */
    --color-brand: var(--st-primary);
    --color-brand-accent: var(--st-primary-dark);
    --color-text: var(--st-ink);
    --color-text-secondary: var(--st-muted);
    --color-text-heading: var(--st-ink);
    --color-background: #ffffff;
    --color-background-soft: #f8fafc;
    --color-border: #e5e7eb;
    
    /* Shadow Variables */
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --card-hover: 0 20px 40px -15px rgba(6, 182, 212, 0.2);
}

/* ===== RESET & BASE STYLES ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'Manrope', Arial, sans-serif;
    background: var(--st-bg);
    color: var(--st-ink);
    line-height: 1.6;
}

.page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* ===== LAYOUT UTILITIES ===== */
.site-main {
    flex: 1 0 auto;
}

.site-main > *:last-child {
    margin-bottom: 0;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--st-primary) 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight-text {
    font-size: 1.25rem;
    color: var(--st-primary-dark);
    font-weight: 600;
    margin-bottom: 20px;
    border-left: 4px solid var(--st-primary);
    padding-left: 15px;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

header.scrolled {
    padding: 8px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

/* Brand Badge */
.brand-badge {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    color: inherit;
}

.brand-badge img {
    height: 36px;
    width: auto;
}

.brand-badge strong {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 800;
    letter-spacing: -.02em;
    font-size: 20px;
}

.brand-accent {
    color: var(--st-primary);
}

/* Navigation Menu */
#nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

#nav-menu li {
    margin-left: 25px;
}

#nav-menu li a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    transition: color 0.3s ease;
}

#nav-menu li a:hover,
#nav-menu li a.active {
    color: var(--st-primary);
}

.nav-cta {
    background: var(--st-primary);
    color: white !important;
    padding: 8px 20px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.nav-cta:hover {
    background: var(--st-primary-dark);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 28px;
    color: var(--st-ink);
    cursor: pointer;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--st-primary);
    color: white;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.6);
    background: var(--st-primary-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--st-ink);
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--color-background-soft);
    border-color: var(--st-primary);
}

.btn-whatsapp-large {
    background: #25D366;
    color: white;
    padding: 16px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-large:hover {
    transform: scale(1.05);
}

.btn-text {
    color: var(--st-primary);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s;
}

.btn-text:hover {
    gap: 12px;
    color: var(--st-primary-dark);
}

/* ===== HERO SECTIONS ===== */
/* Modern Hero */
.hero-modern {
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
    background: var(--st-bg);
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
    filter: blur(60px);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.badge-pill {
    display: inline-block;
    background: rgba(6, 182, 212, 0.1);
    color: var(--st-primary-dark);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.hero-modern h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    color: var(--st-ink);
}

.hero-modern p {
    font-size: 1.25rem;
    color: var(--st-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Robot Image in Hero */
.hero-modern .hero-robot {
    position: absolute;
    right: 5%;
    bottom: 45%;
    max-width: 380px;
}

.hero-modern .hero-robot img {
    width: 100%;
    height: auto;
    display: block;
}

/* Internal Hero (for service pages) */
.hero-internal {
    padding: 80px 0 60px;
}

.hero-internal h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

/* ===== SERVICES SECTIONS ===== */
/* Services Section (Homepage) */
.services {
    padding: 100px 0;
    background: var(--st-bg-gradient);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
}

.section-header h2::after {
    content: "";
    width: 80px;
    height: 4px;
    background: var(--st-primary);
    border-radius: 3px;
    display: block;
    margin: .6rem auto 0;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.bento-card {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 32px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.bento-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--color-background) 0%, rgba(6, 182, 212, 0.05) 100%);
}

.bento-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover);
    border-color: var(--st-primary);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--st-primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.bento-card h3 {
    font-size: 1.4rem;
    color: var(--st-ink);
    margin: 0 0 12px;
    font-weight: 700;
}

.bento-card p {
    color: var(--st-muted);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

.link-arrow {
    margin-top: 20px;
    color: var(--st-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

/* Detailed Services Grid */
.services-detailed {
    padding: 40px 0 100px;
    background: var(--st-bg);
}

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

.service-detail-card {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.service-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover);
    border-color: var(--st-primary);
}

.service-detail-card .card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(6, 182, 212, 0.2));
    color: var(--st-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
}

/* Feature Lists */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    width: 100%;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--st-ink);
    font-weight: 500;
}

.feature-list li i {
    color: #10b981;
    font-size: 1rem;
}

/* ===== SERVICE SPLIT LAYOUT ===== */
.service-split {
    padding: 60px 0;
    background: var(--color-background);
}

.story-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-image {
    position: relative;
}

.story-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.story-image:hover img {
    transform: rotate(0deg);
}

.img-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: white;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-weight: 700;
    color: var(--st-ink);
    display: flex;
    align-items: center;
    gap: 8px;
}

.img-badge i {
    color: #10b981;
}

/* ===== BENEFITS MINI GRID ===== */
.benefits-mini {
    padding: 60px 0;
    background: var(--color-background-soft);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mini-card {
    background: var(--color-background);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    text-align: center;
    transition: transform 0.2s;
}

.mini-card:hover {
    transform: translateY(-5px);
    border-color: var(--st-primary);
}

.mini-card i {
    font-size: 2rem;
    color: var(--st-primary);
    margin-bottom: 15px;
    display: inline-block;
}

.mini-card h4 {
    margin: 0 0 8px;
    color: var(--st-ink);
    font-size: 1.1rem;
}

.mini-card p {
    font-size: 0.9rem;
    color: var(--st-muted);
    margin: 0;
}

/* ===== PROCESS TIMELINE ===== */
.process-section {
    padding: 100px 0;
    background: var(--color-background-soft);
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-border);
    z-index: 0;
}

.timeline-item {
    position: relative;
    z-index: 1;
}

.timeline-number {
    width: 50px;
    height: 50px;
    background: var(--st-primary);
    color: white;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
    box-shadow: 0 0 0 8px var(--color-background-soft);
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--st-ink);
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--st-muted);
    line-height: 1.5;
}

/* ===== ABOUT US SECTION ===== */
.our-story {
    padding: 80px 0;
    background: var(--st-bg);
}

.story-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--st-ink);
}

.story-stat {
    margin-top: 30px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--st-primary);
}

.stat-label {
    font-size: 1.1rem;
    color: var(--st-muted);
    font-weight: 600;
}

/* ===== VALUES GRID ===== */
.core-values-section {
    padding: 100px 0;
    background: var(--st-bg-gradient);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 24px;
}

.value-card {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    padding: 30px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover);
    border-color: var(--st-primary);
}

.main-value {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
}

.small-value {
    text-align: center;
    padding: 25px;
}

.value-icon {
    width: 50px;
    height: 50px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--st-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.value-icon.mini {
    margin: 0 auto 15px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
}

.value-card h3,
.value-card h4 {
    color: var(--st-ink);
    margin: 0 0 10px;
    font-weight: 700;
}

.value-card p {
    color: var(--st-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* ===== TEAM SECTION ===== */
.team-modern {
    padding: 80px 0;
    background: var(--st-bg);
}

.team-grid-modern {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.team-card {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    overflow: hidden;
    max-width: 520px;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 32px 36px;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.member-photo {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.member-photo img {
    width: 180px;
    height: 180px;
    border-radius: 24px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.team-card:hover .member-photo img {
    transform: scale(1.03);
}

.role-badge {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
}

.role-badge.software {
    background: #06B6D4;
    color: #0F172A;
}

.role-badge.hardware {
    background: #f97316;
    color: #111827;
}

.member-info {
    flex: 1;
    text-align: left;
    padding: 0;
}

.member-info h3 {
    margin: 0 0 6px;
    font-size: 1.4rem;
    color: var(--st-ink);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.member-info .position {
    display: block;
    color: var(--st-primary);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.member-info p {
    color: var(--st-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 14px;
}

.social-mini {
    display: flex;
    gap: 12px;
}

.social-mini a {
    color: var(--st-muted);
    font-size: 1.1rem;
    transition: color 0.2s;
}

.social-mini a:hover {
    color: var(--st-primary);
}

/* ===== CONTACT DASHBOARD ===== */
.hero-contact {
    padding-bottom: 60px;
}

.contact-dashboard-section {
    padding: 20px 0 80px;
    background: var(--st-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 24px;
}

.contact-card {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--card-shadow);
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover);
    border-color: var(--st-primary);
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--st-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--st-ink);
}

/* WhatsApp Card */
.whatsapp-card {
    grid-column: span 2;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    border: none;
    padding: 40px;
}

.whatsapp-card:hover {
    box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.4);
    transform: translateY(-5px) scale(1.01);
}

.whatsapp-card .card-content {
    position: relative;
    z-index: 2;
}

.whatsapp-card .icon-circle {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.whatsapp-card h2 {
    font-size: 2rem;
    margin: 0 0 10px;
    font-weight: 800;
}

.whatsapp-card p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 80%;
}

.action-btn {
    background: white;
    color: #059669;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: gap 0.2s;
}

.whatsapp-card:hover .action-btn {
    gap: 15px;
}

.card-bg-icon {
    position: absolute;
    right: -20px;
    bottom: -40px;
    font-size: 12rem;
    color: rgba(255, 255, 255, 0.1);
    transform: rotate(-15deg);
    pointer-events: none;
}

/* Email Card */
.email-card {
    padding: 30px;
    justify-content: center;
}

.email-card .icon-circle.email {
    background: rgba(6, 182, 212, 0.1);
    color: var(--st-primary);
}

.email-card h3 {
    margin: 0 0 5px;
    font-size: 1.2rem;
    color: var(--st-ink);
}

.email-card p {
    color: var(--st-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.link-text {
    color: var(--st-primary);
    font-weight: 600;
    word-break: break-all;
}

/* Location Card */
.location-card {
    grid-row: span 2;
    position: relative;
    min-height: 300px;
}

.location-card iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.location-card:hover iframe {
    filter: grayscale(0%);
}

.location-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 15px;
    border-radius: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.location-info .icon-circle.map {
    width: 40px;
    height: 40px;
    margin-bottom: 0;
    background: var(--st-primary);
    color: white;
    font-size: 1rem;
}

.location-info h3 {
    margin: 0;
    font-size: 1rem;
    color: #0F172A;
}

.location-info p {
    margin: 0;
    font-size: 0.8rem;
    color: #64748B;
}

/* Social Card */
.social-card {
    padding: 30px;
    text-align: center;
    justify-content: center;
}

.social-card h3 {
    margin: 0 0 20px;
    color: var(--st-ink);
}

.social-links-row {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
    background: var(--color-background-soft);
    color: var(--st-muted);
}

.social-btn:hover {
    color: white;
    transform: scale(1.1);
}

.social-btn.fb:hover {
    background: #1877F2;
}

.social-btn.ig:hover {
    background: #E4405F;
}

/* Hours Section */
.hours-section {
    padding: 0 0 60px;
    text-align: center;
}

.hours-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-background-soft);
    padding: 10px 24px;
    border-radius: 50px;
    color: var(--st-muted);
    font-weight: 500;
    border: 1px solid var(--color-border);
}

/* ===== TECH MARQUEE ===== */
.tech-marquee {
    background: var(--st-bg);
    padding: 30px 0;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
    border-top: 1px solid var(--color-border);
    position: relative;
}

.marquee-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: scroll 20s linear infinite;
}

.marquee-track span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--st-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.marquee-track span i {
    color: var(--st-primary);
    font-size: 1.5rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ===== WHY US STATS ===== */
.why-us {
    padding: 60px 0;
    border-bottom: 1px solid var(--color-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 30px;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--st-primary);
    margin: 0;
}

.stat-item p {
    margin: 5px 0 0;
    color: var(--st-muted);
    font-weight: 600;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: 56px 0;
    background: #f8f9fa;
    text-align: center;
}

.testimonials h2 {
    font-size: 32px;
    margin-bottom: 1.8rem;
    color: var(--st-ink);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .05);
    border-left: 5px solid var(--st-primary);
}

.testimonial-text {
    font-style: italic;
    color: var(--st-muted);
    line-height: 1.6;
    margin: 0 0 15px;
}

.testimonial-author {
    color: var(--st-primary-dark);
    font-weight: 600;
    display: block;
}

/* ===== CTA SECTIONS ===== */
.cta-final {
    padding: 100px 0;
    text-align: center;
    background: var(--st-bg);
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(-45deg, #1e2a38, var(--st-ink), var(--st-primary-dark), var(--st-primary));
    background-size: 400% 400%;
    animation: gradientMove 10s ease infinite;
    color: #e3e8f0;
    text-align: center;
    padding: 30px 0;
    margin-top: auto;
    position: relative;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand h3 {
    color: white;
    margin: 0 0 8px;
    font-size: 1.5rem;
}

.footer-brand p {
    margin: 0;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #e3e8f0;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: #00e5ff;
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.2s;
}

.footer-social a:hover {
    color: #fff;
    transform: scale(1.25);
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #d0d6e0;
    opacity: .9;
}

/* ===== DARK MODE ===== */
body.dark-mode {
    --st-ink: #e5e7eb;
    --st-muted: #9ca3af;
    --st-bg: #111827;
    --st-bg-gradient: #0f172a;
    --color-text: var(--st-ink);
    --color-text-secondary: var(--st-muted);
    --color-text-heading: #ffffff;
    --color-background: #0f172a;
    --color-background-soft: #0f172a;
    --color-border: #1f2937;
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --card-hover: 0 20px 40px -15px rgba(6, 182, 212, 0.15);
}

body.dark-mode header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode header ul li a {
    color: var(--st-muted);
}

body.dark-mode header ul li a:hover,
body.dark-mode header ul li a.active {
    color: var(--st-primary);
}

body.dark-mode .hero-glow {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
}

body.dark-mode .badge-pill {
    background: rgba(6, 182, 212, 0.15);
    color: #fff;
    border-color: rgba(6, 182, 212, 0.3);
}

body.dark-mode .bento-card {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .bento-card:hover {
    background: #1e293b;
    border-color: var(--st-primary);
}

body.dark-mode .btn-secondary {
    color: #fff;
    border-color: #475569;
}

body.dark-mode .story-image img {
    opacity: 0.9;
}

body.dark-mode .img-badge {
    background: #1e293b;
    color: #fff;
}

body.dark-mode .value-card {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .team-card {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .location-info {
    background: rgba(15, 23, 42, 0.9);
    color: #fff;
}

body.dark-mode .location-info h3 {
    color: #fff;
}

body.dark-mode .location-info p {
    color: #cbd5e1;
}

body.dark-mode .whatsapp-card {
    background: linear-gradient(135deg, #065f46 0%, #059669 100%);
}

body.dark-mode .social-btn {
    background: #1f2937;
    color: #9ca3af;
}

body.dark-mode .timeline-number {
    box-shadow: 0 0 0 8px #0f172a;
}

body.dark-mode .service-detail-card .card-icon {
    background: rgba(6, 182, 212, 0.15);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 900px) {
    .team-grid-modern {
        grid-template-columns: repeat(2, minmax(0, 480px));
        justify-content: center;
        column-gap: 60px;
    }
    
    .testimonial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .values-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .main-value {
        grid-column: span 3;
    }
    
    .small-value {
        grid-column: span 2;
    }
}

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bento-card.featured {
        grid-column: span 2;
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .whatsapp-card {
        grid-column: span 2;
    }
    
    .location-card {
        grid-column: span 2;
        height: 300px;
    }
    
    .timeline {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .timeline::before {
        width: 2px;
        height: 100%;
        left: 24px;
        top: 0;
    }
    
    .timeline-item {
        display: flex;
        gap: 20px;
    }
    
    .timeline-number {
        flex-shrink: 0;
        margin-bottom: 0;
    }
    
    .story-layout {
        grid-template-columns: 1fr;
    }
    
    .story-image {
        margin-top: 40px;
        width: 100%;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .img-badge {
        left: 50%;
        transform: translateX(-50%);
        bottom: -25px;
        width: max-content;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    header nav {
        flex-wrap: wrap;
    }
    
    #nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #fff;
        border-top: 1px solid #ddd;
        margin-top: 10px;
        padding: 15px 0;
    }
    
    #nav-menu.show {
        display: flex;
    }
    
    #nav-menu li {
        margin: 10px 0;
        margin-left: 0;
        text-align: center;
    }
    
    #nav-menu li a {
        font-size: 16px;
        color: var(--st-ink);
    }
    
    .hero-modern .hero-robot {
        display: none;
    }
    
    .hero-modern h1 {
        font-size: 32px;
    }
    
    .hero-modern p {
        font-size: 16px;
    }
    
    .team-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 20px;
    }
    
    .member-photo {
        align-items: center;
    }
    
    .member-info {
        text-align: center;
    }
    
    .social-mini {
        justify-content: center;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 500px;
    }
    
    .team-member {
        padding: 30px 20px;
    }
    
    .team-member img {
        width: 150px;
        height: 150px;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-image {
        margin-bottom: 20px;
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-card.featured {
        grid-column: span 1;
    }
    
    .hero-modern h1 {
        font-size: 2.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-card {
        grid-column: span 1;
    }
    
    .location-card {
        grid-column: span 1;
    }
    
    .whatsapp-card h2 {
        font-size: 1.5rem;
    }
    
    .whatsapp-card .card-bg-icon {
        font-size: 8rem;
    }
    
    .common-topics {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-card-unified {
        padding: 2rem 1.5rem;
        margin: 2.5rem auto;
    }
    
    .mini-grid {
        grid-template-columns: 1fr;
    }
    
    .detailed-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-modern h1 {
        font-size: 26px;
        line-height: 1.3;
        padding: 0 10px;
    }
    
    .hero-modern p {
        font-size: 15px;
        margin-bottom: 20px;
        padding: 0 15px;
    }
    
    .footer {
        padding: 25px 10px;
    }
    
    .footer-logo {
        font-size: 22px;
    }
    
    .footer-social a {
        font-size: 22px;
        margin: 0 8px;
    }
    
    .footer-copy {
        font-size: 13px;
    }
}

/* ===== ANIMATIONS & TRANSITIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.services .container > *,
.testimonials .container > *,
.faq .container > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.services .container > *.active,
.testimonials .container > *.active,
.faq .container > *.active {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth transitions for theme switching */
html,
body,
.hero,
.testimonials,
footer {
    transition: background-color 0.4s ease, color 0.4s ease;
}

.service-card i,
.service-card h3,
.service-card p,
footer a,
footer p,
.footer-social a,
.testimonial-card,
.testimonial-text {
    transition: color 0.4s ease, transform 0.3s ease;
}

/* ===== UTILITY CLASSES ===== */
.contact-divider {
    border: 0;
    border-top: 1px solid var(--color-border);
    margin: 40px 0;
}

.tiny-note {
    font-size: 0.85rem;
    color: var(--st-muted);
    margin-top: 10px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    align-items: center;
    text-align: center;
}

.benefit {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 600;
    color: var(--st-ink);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .03);
}

.benefit i {
    color: var(--st-primary);
    margin-right: 8px;
}

.footer-nav {
    margin: 1rem 0;
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav li {
    margin: 0;
}

.footer-nav a {
    color: #9ca3af;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.footer-nav a:hover {
    color: #ffffff;
    border-bottom-color: #06B6D4;
}

/* Para pantallas pequeñas */
@media (max-width: 768px) {
    .footer-nav ul {
        gap: 1.5rem;
    }
    
    .footer-nav a {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .footer-nav ul {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}



/* === MODO OSCURO GLOBAL === */
body.dark-mode {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
}

/* Textos principales */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #f8fafc !important;
}

body.dark-mode p,
body.dark-mode span,
body.dark-mode li,
body.dark-mode .text-gradient,
body.dark-mode .highlight-text {
    color: #cbd5e1 !important;
}

/* Secciones y tarjetas */
body.dark-mode section,
body.dark-mode .hero-modern,
body.dark-mode .service-split,
body.dark-mode .benefits-mini,
body.dark-mode .cta-final,
body.dark-mode .card,
body.dark-mode .mini-card {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

/* Pie de página */
body.dark-mode footer {
    background-color: #111827 !important;
    color: #d1d5db !important;
}

body.dark-mode .footer-nav a {
    color: #9ca3af !important;
}

body.dark-mode .footer-nav a:hover {
    color: #06B6D4 !important;
}

/* Botones y enlaces */
body.dark-mode .btn-primary {
    background-color: #06B6D4 !important;
    color: white !important;
}

body.dark-mode a:not(.nav-cta):not(.btn-primary) {
    color: #60a5fa !important;
}

/* Listas y elementos específicos */
body.dark-mode .feature-list li {
    color: #cbd5e1 !important;
}

body.dark-mode .feature-list i {
    color: #06B6D4 !important;
}

/* Para el texto específico que mencionaste en el index */
body.dark-mode .hero-modern h1,
body.dark-mode .hero-modern p {
    color: #f1f5f9 !important;
}

/* === TESTIMONIOS EN MODO OSCURO === */
body.dark-mode .testimonios-section h2,
body.dark-mode .testimonios-section h3,
body.dark-mode .testimonios-section h4 {
    color: #f8fafc !important;
}

body.dark-mode .testimonios-section p,
body.dark-mode .testimonios-section blockquote,
body.dark-mode .testimonios-section .testimonial-text {
    color: #cbd5e1 !important;
}

/* Si los testimonios están en tarjetas/bloques */
body.dark-mode .testimonial-card,
body.dark-mode .testimonial-block {
    background-color: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #e2e8f0 !important;
}

/* Para las citas específicas como "El chatbot nos ahorra..." */
body.dark-mode blockquote,
body.dark-mode .quote {
    color: #d1d5db !important;
    border-left-color: #06B6D4 !important;
}

/* Para los nombres de clientes */
body.dark-mode .client-name,
body.dark-mode .client-role {
    color: #94a3b8 !important;
}