/* ==========================================================================
   APLYWEB - Main Stylesheet
   ========================================================================== */

/* --- Variables --- */
:root {
    --primary: #D10000;
    --primary-dark: #A30000;
    --primary-light: #FFECEC;
    --text-main: #333333;
    --text-muted: #666666;
    --text-light: #999999;
    --bg-body: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-card: #FFFFFF;
    --border-color: #EAEAEA;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-main);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -1px; }
h2 { font-size: clamp(2rem, 3vw, 2.5rem); letter-spacing: -0.5px; }
h3 { font-size: 1.25rem; }

.text-primary { color: var(--primary); }
.text-center { text-align: center; }

.subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

p { margin-bottom: 16px; color: var(--text-muted); }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(209, 0, 0, 0.2);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background-color: var(--bg-light);
}

.btn-white {
    background-color: white;
    color: var(--text-main);
}

.btn-white:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* --- Top Bar --- */
.top-bar {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.top-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.top-bar-text i {
    margin-right: 8px;
    color: var(--text-light);
}

.top-bar-flags-wrapper {
    display: block;
}

.top-bar-flags {
    display: flex;
    gap: 24px;
}

.flag-item.mobile-only-flag {
    display: none !important;
}

.flag-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

/* --- Header --- */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.header.scrolled {
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 2rem;
    color: var(--primary);
}

.logo-text {
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.logo-text small {
    font-weight: 400;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-menu a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-menu a:hover::after, .nav-menu a.active::after {
    width: 100%;
}

/* --- Dropdown Menu --- */
.has-dropdown {
    position: relative;
}

.dropdown-icon {
    font-size: 0.75rem;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.has-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 260px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    z-index: 100;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
    margin: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-menu a i {
    width: 18px;
    text-align: center;
    color: var(--primary);
    font-size: 0.88rem;
    flex-shrink: 0;
}

.dropdown-menu a::after {
    display: none; /* remove the underline effect for dropdown items */
}

.dropdown-menu a:hover {
    background: rgba(209, 0, 0, 0.05); /* very light primary red */
    color: var(--primary);
    padding-left: 30px; /* little indent effect */
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    padding: 120px 0 140px;
    overflow: hidden;
    position: relative;
    background-color: #FAFCFF;
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: floatOrb 20s infinite ease-in-out alternate;
}

.orb-1 { width: 400px; height: 400px; background: rgba(209, 0, 0, 0.15); top: -100px; right: -100px; }
.orb-2 { width: 500px; height: 500px; background: rgba(0, 123, 255, 0.08); bottom: -200px; left: -100px; animation-delay: -5s; }
.orb-3 { width: 300px; height: 300px; background: rgba(255, 193, 7, 0.1); top: 40%; left: 40%; animation-delay: -10s; }

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

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

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: center;
}

.badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 24px;
    border: 1px solid rgba(0,0,0,0.03);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

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

.hero-title {
    font-size: clamp(2.8rem, 4.5vw, 4.2rem);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 520px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.btn-glow {
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 8px 25px rgba(209, 0, 0, 0.3);
    transition: all 0.4s ease;
    border: none;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn-glow:hover::before { left: 100%; }
.btn-glow:hover { box-shadow: 0 12px 35px rgba(209, 0, 0, 0.4); transform: translateY(-3px); }

.moving-arrow { transition: transform 0.3s ease; }
.btn-glow:hover .moving-arrow { transform: translateX(5px) translateY(-5px); }

.hero-trust {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 32px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.avatars { display: flex; align-items: center; }
.avatars img { width: 45px; height: 45px; border-radius: 50%; border: 3px solid white; margin-left: -15px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.avatars img:first-child { margin-left: 0; }
.avatar-more { width: 45px; height: 45px; border-radius: 50%; background: var(--bg-light); border: 3px solid white; margin-left: -15px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: var(--text-main); z-index: 1; }

.trust-text .stars { color: #FFC107; font-size: 0.9rem; margin-bottom: 4px; }
.trust-text span { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

/* Container adjustments */
.hero-images {
    position: relative;
    height: 650px;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background lines */
.bg-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.line-circle {
    position: absolute;
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 50%;
}
.c-1 { width: 300px; height: 300px; }
.c-2 { width: 500px; height: 500px; }
.c-3 { width: 700px; height: 700px; }
.c-4 { width: 900px; height: 900px; }

/* Image wrappers */
.image-wrapper {
    position: absolute;
    transition: transform 0.1s ease-out;
}
.laptop-wrapper {
    width: 85%;
    z-index: 2;
    top: 10%;
    left: 5%;
}
.laptop-img {
    width: 100%;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 40px 50px rgba(0,0,0,0.1));
    transform: scaleX(-1);
}

.tablet-wrapper {
    width: 35%;
    z-index: 3;
    top: 25%;
    right: 18%;
}
.tablet-img {
    width: 100%;
    mix-blend-mode: multiply;
    filter: drop-shadow(10px 25px 35px rgba(0,0,0,0.15));
}

.phone-wrapper {
    width: 30%;
    z-index: 4;
    bottom: -2%;
    right: 2%;
}
.phone-img {
    width: 100%;
    mix-blend-mode: multiply;
    filter: drop-shadow(-20px 30px 40px rgba(0,0,0,0.15));
}

/* Design Cards */
.design-card {
    position: absolute;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    padding: 24px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    animation: floatElement 6s ease-in-out infinite alternate;
}

.card-seo {
    top: 5%;
    left: -15%;
    width: 240px;
}

.card-ventas {
    bottom: 10%;
    left: -5%;
    width: 220px;
    animation-duration: 7s;
    animation-direction: alternate-reverse;
}

.card-ads {
    top: 25%;
    right: -10%;
    width: 200px;
    z-index: 1; /* Behind phone, but in front of laptop */
    animation-duration: 8s;
}

/* Typography inside cards */
.card-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}
.card-value {
    font-size: 1rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 16px;
}
.card-value-large {
    font-size: 1.8rem;
    font-weight: 800;
    color: #000;
    margin-top: 4px;
}
.card-subtitle {
    font-size: 0.8rem;
    color: #888;
}
.card-subtitle-small {
    font-size: 0.75rem;
    color: #000;
    font-weight: 600;
}
.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.icon-circle {
    width: 32px;
    height: 32px;
    background: rgba(209, 0, 0, 0.08);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

/* Charts & Badges */
.chart-line {
    width: 100%;
    height: 45px;
    margin: 10px 0;
}
.mt-2 { margin-top: 16px; }

.card-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #F0F0F0;
}
.badge-percentage {
    background: #F4F6F8;
    color: #333;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
}
.badge-text {
    font-size: 0.75rem;
    color: #888;
}
.icon-red {
    color: var(--primary);
    margin-left: auto;
    font-size: 0.85rem;
}

/* Bar Chart */
.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 45px;
    margin-top: 16px;
    justify-content: flex-end;
}
.bar {
    width: 14px;
    background: #E0E0E0;
    border-radius: 4px 4px 0 0;
}
.bar:last-child {
    background: var(--primary);
}
.bar-1 { height: 40%; }
.bar-2 { height: 60%; }
.bar-3 { height: 80%; }
.bar-4 { height: 100%; }

@keyframes floatElement {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-15px); }
}

/* --- Tech Stack --- */
.tech-stack {
    background-color: #080A1A;
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.tech-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #FF4D4D;
    margin-bottom: 40px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.tech-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

/* En escritorio, el primer grupo mantiene la cuadrícula y el segundo se oculta para no duplicar */
.tech-grid .tech-group {
    display: contents;
}
.tech-grid .tech-group[aria-hidden="true"] {
    display: none;
}

/* Animación de marquesina solo en teléfonos móviles */
@media (max-width: 768px) {
    .tech-grid {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0;
        position: relative;
        overflow: hidden;
        padding: 30px 0 40px 0; /* Más espacio vertical para que no se corten los nombres */
        width: 100vw;
        margin-left: 50%;
        transform: translateX(-50%);
    }
    

    
    .tech-grid .tech-group,
    .tech-grid .tech-group[aria-hidden="true"] {
        display: flex;
        animation: scroll-tech 15s linear infinite;
        flex-shrink: 0;
        gap: 40px;
        padding-right: 40px;
    }
}

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

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.tech-item:hover {
    transform: translateY(-8px);
}

.tech-item i {
    font-size: 3.5rem;
    height: 65px;
    line-height: 65px;
    display: block;
    text-align: center;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.tech-item .fa-wordpress,
.tech-item .fa-shopify {
    position: relative;
    top: 6px; /* Nudge down to optically align with the rest */
}

.tech-item span {
    color: #A0AABF;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.tech-item:hover span {
    color: #FFFFFF;
}

/* --- Services --- */
.services {
    padding: 100px 0;
    background-color: #FFFFFF;
}

.services .section-header {
    margin-bottom: 60px;
}
.services .section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: #FFFFFF;
    border: 1px solid #F0F0F0;
    padding: 32px;
    border-radius: 16px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.service-card.anim-done {
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    transform: translateY(-8px) !important;
    border-color: #FFFFFF;
}

.service-icon {
    width: 55px;
    height: 55px;
    background: #F8F9FA;
    border: 1px solid #F0F0F0;
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #111;
}

.service-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #777;
    margin-bottom: 30px;
    flex-grow: 1;
}

.service-link {
    position: absolute;
    bottom: 24px;
    right: 24px;
    color: var(--primary);
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.service-card:hover .service-link {
    transform: translateX(4px);
}

/* Overlay link - hace toda la tarjeta clickeable */
.service-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: var(--radius-md);
}

/* Título como link sin decoración visual */
.service-card h3 a {
    color: #111;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.service-card:hover h3 a {
    color: var(--primary);
}

/* --- Process & Stats --- */
.process-stats {
    padding: 100px 0;
}

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

.process-stats-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.timeline {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
}

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

.timeline-item {
    display: flex;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.timeline-icon {
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.timeline-content h4 {
    color: var(--primary);
    margin-bottom: 8px;
}

.impact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 40px;
}

.impact-item {
    background: white;
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.impact-item:hover {
    transform: translateY(-8px) !important;
    box-shadow: var(--shadow-md) !important;
}

.impact-icon {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 16px;
}

.impact-item h3 {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

/* --- AgendaP Bonus --- */
.agendap-bonus {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.agendap-card {
    background: linear-gradient(135deg, var(--primary-light), #FFFFFF);
    border: 1px solid rgba(209, 0, 0, 0.1);
    border-radius: var(--radius-lg);
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: 0 15px 35px rgba(209, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.agendap-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.1;
}

.agendap-content {
    flex: 1;
    z-index: 1;
}

.bonus-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.agendap-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: #111;
}

.agendap-content h2 span {
    color: var(--primary);
}

.agendap-content p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 24px;
}

.agendap-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.agendap-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
}

.agendap-benefits li i {
    color: var(--primary);
    background: white;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.agendap-visual {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.agendap-icon-wrapper {
    width: 140px;
    height: 140px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(209, 0, 0, 0.15);
    font-size: 4rem;
    color: var(--primary);
    position: relative;
}

.agendap-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: -10px;
    border: 2px dashed var(--primary);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
    opacity: 0.3;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .agendap-card {
        flex-direction: column;
        padding: 32px;
        text-align: center;
    }
    .agendap-benefits li {
        justify-content: center;
    }
}

/* --- Testimonials --- */
.testimonials {
    background-color: #05060F; /* Deep dark blue, matching the tech stack */
    padding: 100px 0;
    overflow: hidden;
}

.testimonials-header {
    margin-bottom: 60px;
}

.testimonials-subtitle {
    color: #3b82f6; /* Blue subtitle like image */
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.testimonials h2 {
    color: #FFFFFF;
    font-size: 2.2rem;
    font-weight: 700;
}

.testimonials-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.testimonials-marquee-wrapper::before,
.testimonials-marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.testimonials-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #05060F, transparent);
}

.testimonials-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #05060F, transparent);
}

.testimonials-marquee {
    display: flex;
    width: max-content;
    animation: marquee 45s linear infinite;
}

.testimonials-marquee:hover {
    animation-play-state: paused;
}

.testimonial-group {
    display: flex;
    gap: 30px;
    padding-right: 30px; /* Space between groups */
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px;
    width: 400px;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.02), 0 10px 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.user-avatar {
    display: none;
}

.user-info h4 {
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.user-info span {
    color: #8C9BB4;
    font-size: 0.85rem;
}

.testimonial-card p {
    color: #A0AABF;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.testimonial-card .stars {
    color: #FBBF24; /* Yellow stars */
    font-size: 0.9rem;
    display: flex;
    gap: 4px;
}

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

/* --- Portfolio --- */
.portfolio {
    padding: 100px 0;
    overflow: hidden;
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 64px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.ig-post {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
    background: #111;
    border-radius: 0;
}

.portfolio-card:hover {
    transform: none;
    box-shadow: none;
}

.ig-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ig-post:hover img {
    transform: scale(1.05);
}

.ig-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ig-post:hover .ig-overlay {
    opacity: 1;
}

.ig-stats {
    display: flex;
    gap: 24px;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.ig-stats span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ig-title {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    padding: 0 16px;
}

@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }
    .ig-stats {
        font-size: 0.9rem;
        gap: 12px;
    }
    .ig-title {
        display: none;
    }
}

.portfolio-tags {
    display: flex;
    gap: 12px;
}

.tag {
    background: var(--bg-light);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.tag.highlight {
    background: var(--primary-light);
    color: var(--primary);
}

/* --- CTA Bottom --- */
.cta-bottom {
    background-color: var(--primary);
    padding: 80px 0;
}

.cta-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: none;
}

.cta-text h2 {
    color: white;
    margin-bottom: 16px;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 1.125rem;
}

.cta-buttons {
    display: flex;
    gap: 16px;
}

.cta-buttons .btn-primary {
    background-color: var(--primary-dark);
}

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* --- Footer --- */
/* --- Centered Dynamic Footer --- */
.footer {
    background: #FFFFFF;
    padding: 70px 0 35px;
    position: relative;
    overflow: hidden;
}

/* Dynamic background element for premium feel */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 150px;
    background: radial-gradient(circle, rgba(209,0,0,0.03) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
    pointer-events: none;
}

.footer-centered-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 auto 48px auto;
    width: 100%;
}

.footer-logo-centered {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-logo-centered:hover {
    transform: scale(1.06);
}

.footer-logo-img {
    height: 54px;
    width: auto;
    max-width: 100%;
    transition: var(--transition);
}

.footer-tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.social-links-centered {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
}

.social-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #F8F9FA;
    border: 1px solid #ECEFF1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
    overflow: hidden;
}

.social-btn i {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

/* Modern hover background swell animation */
.social-btn::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    transition: top 0.3s ease;
    z-index: 1;
}

.social-btn:hover {
    color: white !important;
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(209,0,0,0.15);
}

.social-btn:hover::before {
    top: 0;
}

/* Unique color profiles on hover */
.social-btn.facebook:hover::before { background: #1877F2; }
.social-btn.facebook:hover { border-color: #1877F2; box-shadow: 0 10px 20px rgba(24,119,242,0.2); }

.social-btn.instagram:hover::before { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-btn.instagram:hover { border-color: #d6244f; box-shadow: 0 10px 20px rgba(214,36,79,0.2); }

.social-btn.youtube:hover::before { background: #FF0000; }
.social-btn.youtube:hover { border-color: #FF0000; box-shadow: 0 10px 20px rgba(255,0,0,0.25); }

.social-btn.whatsapp:hover::before { background: #25D366; }
.social-btn.whatsapp:hover { border-color: #25D366; box-shadow: 0 10px 20px rgba(37,211,102,0.2); }

.social-btn.calendar:hover::before { background: #EA580C; }
.social-btn.calendar:hover { border-color: #EA580C; box-shadow: 0 10px 20px rgba(234,88,12,0.25); }

.footer-bottom {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0;
    color: var(--text-light);
    font-size: 0.8rem;
}

.legal-links {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.legal-links a {
    color: var(--text-light);
}

.legal-links a:hover {
    color: var(--text-main);
}

.footer-bottom-sep {
    color: var(--border-color);
    margin: 0 8px;
}

.separator {
    margin: 0 8px;
    color: var(--border-color);
}

/* --- About Creative Section --- */
.about-creative {
    padding: 120px 0;
    background-color: #111111;
    color: white;
    overflow: hidden;
    position: relative;
}
.about-creative .subtitle {
    color: var(--primary-light);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-text h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 24px;
}
.about-text p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}
.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.feature-item i {
    font-size: 1.5rem;
    color: var(--primary);
    background: rgba(209, 0, 0, 0.1);
    padding: 16px;
    border-radius: 12px;
}
.feature-item h4 {
    color: white;
    margin-bottom: 8px;
    font-size: 1.2rem;
}
.feature-item p {
    font-size: 0.95rem;
    margin: 0;
    color: rgba(255,255,255,0.7);
}

/* Visual Side */
.about-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-circle-center {
    width: 140px;
    height: 140px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 40px rgba(209, 0, 0, 0.5);
    z-index: 10;
    position: relative;
}
.floating-circle-center .logo-icon {
    font-size: 4rem;
    color: white;
}

/* Orbiting items */
.float-item {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: float-anim 6s ease-in-out infinite alternate;
    z-index: 5;
}
.float-item i {
    color: var(--primary-light);
}

.float-item.web { top: 5%; left: 0%; animation-delay: 0s; }
.float-item.seo { top: 75%; left: 5%; animation-delay: 1s; }
.float-item.shop { top: 20%; right: -5%; animation-delay: 2s; }
.float-item.ads { bottom: 10%; right: 5%; animation-delay: 1.5s; }
.float-item.social { top: -10%; left: 30%; animation-delay: 0.5s; }

@keyframes float-anim {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(-20px) translateX(15px); }
}

.about-visual .bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}
.about-visual .shape-1 {
    width: 300px;
    height: 300px;
    background: rgba(209, 0, 0, 0.3);
    top: -50px;
    right: -50px;
}
.about-visual .shape-2 {
    width: 250px;
    height: 250px;
    background: rgba(40, 40, 40, 0.8);
    bottom: -20px;
    left: -20px;
}

/* --- Pages: Contacto --- */
.page-hero {
    padding: 120px 0 60px;
    background-color: var(--bg-light);
}
.page-hero .hero-title {
    font-size: 3rem;
    margin: 16px 0;
}
.page-hero .hero-description {
    max-width: 600px;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0 auto;
}
.contact-page {
    padding: 60px 0 100px;
    background-color: #fafbfc;
}
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 1100px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}
.contact-info-panel {
    background-color: #0b1641;
    color: white;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.contact-info-panel h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 16px;
}
.contact-info-panel p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 40px;
}
.contact-visual-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    margin: 0 0 25px 0;
    background: linear-gradient(135deg, rgba(209, 0, 0, 0.2) 0%, rgba(209, 0, 0, 0.05) 100%);
    border: 1.5px solid rgba(209, 0, 0, 0.4);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(209, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: visible;
    animation: floatIcon 4s ease-in-out infinite alternate;
}
.contact-visual-icon i {
    font-size: 2rem;
    color: #ff4b4b;
    filter: drop-shadow(0 4px 6px rgba(209, 0, 0, 0.4));
}
/* Outer dashed rotating border */
.contact-visual-icon::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 1.5px dashed rgba(209, 0, 0, 0.4);
    border-radius: 24px;
    animation: rotateDashed 25s linear infinite;
    pointer-events: none;
}
/* Inner pulse glow */
.contact-visual-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: rgba(209, 0, 0, 0.3);
    z-index: -1;
    animation: iconPulse 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes floatIcon {
    0% { transform: translateY(0); }
    100% { transform: translateY(-6px); }
}
@keyframes rotateDashed {
    100% { transform: rotate(360deg); }
}
@keyframes iconPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.35); opacity: 0; }
}
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}
.method-item {
    display: flex;
    gap: 20px;
    align-items: center;
}
.method-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: var(--transition);
}
.method-item:hover .method-icon {
    background-color: var(--primary);
    transform: scale(1.1);
}
.method-item h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.method-item p {
    margin: 0;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
}
.method-item a {
    color: white;
    transition: var(--transition);
}
.method-item a:hover {
    color: var(--primary);
}
.contact-social-wrap h4 {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.social-links-row {
    display: flex;
    gap: 12px;
}
.social-links-row .social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    transition: var(--transition);
}
.social-links-row .social-btn:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}
.social-links-row .social-btn.calendar:hover {
    background-color: #28a745;
}

/* Contact Form Panel */
.contact-form-panel {
    padding: 50px;
    background-color: #ffffff;
}
.contact-form-panel h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}
.contact-form-panel p {
    color: var(--text-muted);
    margin-bottom: 30px;
}
.form-group-pill {
    margin-bottom: 30px;
}
.form-label-pill {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-main);
    font-size: 0.95rem;
}
.service-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.pill {
    padding: 10px 18px;
    background-color: var(--bg-light);
    border: 1px solid #e1e4e6;
    border-radius: 30px;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    user-select: none;
}
.pill i {
    font-size: 0.95rem;
}
.pill:hover {
    background-color: #e9ecef;
    color: var(--text-main);
}
.pill.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(209, 0, 0, 0.2);
}
.form-group-field {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group-field label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}
.form-group-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.custom-form-control {
    width: 100%;
    padding: 14px 20px;
    background-color: var(--bg-light);
    border: 1px solid #e1e4e6;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition);
}
.custom-form-control::placeholder {
    color: var(--text-light);
}
.custom-form-control:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(209, 0, 0, 0.1);
}
.text-area-control {
    min-height: 120px;
    resize: vertical;
}
.form-actions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 30px;
}
.form-actions-grid .btn {
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
}
.form-actions-grid .btn i {
    font-size: 1.1rem;
}
.btn-success {
    background-color: #25d366;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}
.btn-success:hover {
    background-color: #1ebe57;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
}
.submit-btn-loading:hover {
    transform: translateY(-2px);
}
.submit-btn-loading.loading {
    background-color: var(--primary-dark);
    pointer-events: none;
}

/* Response status messages */
.alert-status-msg {
    margin-top: 25px;
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius-sm);
    align-items: flex-start;
    animation: slideIn 0.3s ease;
}
.alert-status-msg .alert-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}
.alert-status-msg h4 {
    margin-bottom: 4px;
    font-size: 1.1rem;
}
.alert-status-msg p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}
.alert-status-msg.success-msg {
    background-color: #eafaf1;
    border-left: 5px solid #28a745;
    color: #155724;
}
.alert-status-msg.success-msg .alert-icon {
    color: #28a745;
}
.alert-status-msg.success-msg h4 {
    color: #155724;
}
.alert-status-msg.error-msg {
    background-color: #fdf2f2;
    border-left: 5px solid #dc3545;
    color: #721c24;
}
.alert-status-msg.error-msg .alert-icon {
    color: #dc3545;
}
.alert-status-msg.error-msg h4 {
    color: #721c24;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-info-panel {
        padding: 40px 30px;
    }
    .contact-form-panel {
        padding: 40px 30px;
    }
    .form-group-field-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .form-actions-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
/* --- Pages: Services Detail --- */
.service-detail-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}
.service-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}
.service-hero-text h1 {
    font-size: 3.5rem;
    margin: 16px 0 24px;
    line-height: 1.2;
}
.service-hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}
.service-hero-btns {
    display: flex;
    gap: 20px;
}
.service-hero-visual {
    font-size: 15rem;
    color: var(--primary);
    opacity: 0.1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.fa-spin-slow {
    animation: fa-spin-slow-keyframes 15s linear infinite;
}
@keyframes fa-spin-slow-keyframes {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.service-section {
    padding: 100px 0;
}
.service-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}
.feature-box {
    padding: 40px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}
.feature-box i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 24px;
}
.feature-box h3 {
    margin-bottom: 16px;
}
.feature-box p {
    color: var(--text-muted);
}


/* --- Pages: Portafolio --- */
.portfolio-page {
    padding: 80px 0 120px;
}
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* --- Index: Portfolio Section --- */
.idx-portfolio {
    padding: 100px 0;
    background: var(--bg-light);
}

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

/* All cards span 1 col in a 3-column grid */
.idx-pf-item {
    grid-column: span 1 !important;
}

/* Card base */
.idx-pf-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
}

.idx-pf-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* Image wrap + overlay */
.idx-pf-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.idx-pf-featured .idx-pf-img-wrap {
    aspect-ratio: 16/9;
}

.idx-pf-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.idx-pf-item:hover .idx-pf-img-wrap img {
    transform: scale(1.06);
}

/* Overlay */
.idx-pf-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.idx-pf-item:hover .idx-pf-overlay {
    opacity: 1;
}

.idx-pf-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.idx-pf-tags span {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(6px);
    color: white;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.idx-pf-overlay h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}

.idx-pf-featured .idx-pf-overlay h3 {
    font-size: 1.5rem;
}

.idx-pf-overlay p {
    color: rgba(255,255,255,0.82);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.idx-pf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    width: fit-content;
    transition: background 0.3s ease, transform 0.3s ease;
}

.idx-pf-btn:hover {
    background: var(--primary-dark);
    transform: translateX(3px);
    color: white;
}

/* Meta (below image) */
.idx-pf-meta {
    padding: 14px 18px;
    background: white;
}

.idx-pf-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
}

.idx-pf-meta h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
    margin: 0;
}

/* Responsive: tablet */
@media (max-width: 1024px) {
    .idx-pf-featured { grid-column: span 12; }
    .idx-pf-item:not(.idx-pf-featured) { grid-column: span 6; }
    .idx-pf-item:nth-child(3),
    .idx-pf-item:nth-child(4),
    .idx-pf-item:nth-child(5) { grid-column: span 6; }
    .idx-pf-overlay { opacity: 1; }
}

/* Responsive: mobile */
@media (max-width: 768px) {
    .idx-portfolio-grid { grid-template-columns: 1fr; gap: 20px; }
    .idx-pf-featured,
    .idx-pf-item { grid-column: span 1 !important; }
    .idx-pf-overlay { opacity: 1; padding: 14px; }
    .idx-pf-overlay h3 { font-size: 0.95rem; }
    .idx-pf-overlay p { display: none; }
    .idx-pf-btn { font-size: 0.75rem; padding: 6px 12px; }
}


.blog-page {
    padding: 80px 0 120px;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.blog-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}
.blog-img {
    position: relative;
    height: 220px;
}
.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.blog-content {
    padding: 30px;
}
.blog-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 15px;
}
.blog-meta i {
    color: var(--primary);
    margin-right: 5px;
}
.blog-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}
.blog-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.95rem;
}
.blog-link {
    color: var(--primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .badge-modern { margin: 0 auto 24px; }
    .hero-description { margin: 0 auto 40px; }
    .hero-buttons { justify-content: center; }
    .hero-trust { justify-content: center; flex-direction: column; text-align: center; }
    .avatars img:first-child { margin-left: auto; }
    .hero-images { margin-top: 64px; height: 500px; perspective: none; }
    .laptop-wrapper { width: 80%; left: 50%; transform: translateX(-50%) !important; right: auto; }
    .phone-wrapper { right: 10%; bottom: 0; transform: none !important; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .process-stats-container { grid-template-columns: 1fr; }
    .cta-card { flex-direction: column; text-align: center; gap: 40px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .about-visual { height: 400px; margin-top: 40px; }
    .float-item.shop { right: 5%; }
    .float-item.web { left: 5%; }
    .contact-grid { grid-template-columns: 1fr; }
    .service-hero-grid { grid-template-columns: 1fr; text-align: center; }
    .service-hero-text h1 { font-size: 2.5rem; }
    .service-hero-btns { justify-content: center; }
    .service-hero-visual { display: none; }
    .service-features-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .navbar {
        height: 60px !important;
        justify-content: center !important;
    }
    .logo img {
        height: 42px !important;
    }
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 0;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 0;
        gap: 0; /* Remove gaps between list items */
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        z-index: 1000;
        display: flex;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    }
    .nav-menu.active {
        max-height: 100vh;
        padding-bottom: 20px;
    }
    .mobile-overlay {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0,0,0,0.2);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 900;
    }
    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    .nav-menu li {
        width: 100%;
        text-align: left;
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }
    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.2s;
    }
    .nav-menu li a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 24px;
        font-size: 1.05rem;
        font-weight: 500;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    .has-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        display: none;
        background: #fdfdfd;
        box-shadow: none;
        width: 100%;
        padding: 0;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
    }
    .has-dropdown.active .dropdown-menu {
        display: block;
    }
    .has-dropdown.active .dropdown-icon {
        transform: rotate(180deg);
    }
    .dropdown-menu li a {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 11px 28px !important;
        font-size: 0.95rem !important;
        color: var(--text-muted) !important;
    }
    .dropdown-menu li a i {
        width: 18px;
        text-align: center;
        color: var(--primary);
        font-size: 0.9rem;
        flex-shrink: 0;
    }
    .nav-cta { display: none; }
    .mobile-toggle { display: block; z-index: 1100; position: relative; }
    
    /* Mobile Top Bar Left-Align & Infinite Loop Scrolling */
    .top-bar-content {
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        gap: 16px !important;
        overflow: hidden;
        width: 100%;
    }
    .top-bar-text {
        white-space: nowrap;
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }
    .top-bar-flags-wrapper {
        overflow: hidden;
        width: 100%;
        display: flex;
        align-items: center;
        mask-image: linear-gradient(to right, transparent, black 12px, black calc(100% - 12px), transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 12px, black calc(100% - 12px), transparent);
    }
    .top-bar-flags {
        display: flex !important;
        gap: 24px !important;
        flex-wrap: nowrap !important;
        animation: topBarMarquee 18s linear infinite;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .mobile-only-flag {
        display: flex !important;
    }
    @keyframes topBarMarquee {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }

    .services-grid { grid-template-columns: 1fr; }
    .impact-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .impact-item { padding: 20px 12px; }
    .portfolio-item { min-width: 300px; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* --- Heart Pulse Animation --- */
.heart-pulse {
    display: inline-block;
    animation: heartBeat 0.8s ease-in-out infinite;
    transform-origin: center;
    margin: 0 4px;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.5); }
    50% { transform: scale(1); }
    75% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* ==========================================================================
   SERVICIOS: DETAILS POPUP MODAL (Premium & Dynamic)
   ========================================================================== */

/* Prevent page scrolling when modal is open */
body.sd-modal-open {
    overflow: hidden !important;
}

/* Base Modal Container */
.sd-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.sd-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Glassmorphism Overlay */
.sd-modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(5, 6, 15, 0.65);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    transition: opacity 0.4s ease;
}

/* Modal Content Wrapper */
.sd-modal-wrapper {
    position: relative;
    z-index: 10001;
    width: 100%;
    max-width: 1140px;
    max-height: 90vh;
    background: #FFFFFF;
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4), 
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sd-modal.active .sd-modal-wrapper {
    transform: scale(1);
}

/* Close Button (Header Floating) */
.sd-modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 10005;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 26px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sd-modal-close:hover {
    background: #FFFFFF;
    color: var(--primary);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Modal Header with Dynamic Gradient background */
.sd-modal-header {
    position: relative;
    padding: 50px 50px 40px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 30px;
    overflow: hidden;
    flex-shrink: 0;
}

.sd-header-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    opacity: 0.7;
    pointer-events: none;
}

.sd-header-bg-icon {
    position: absolute;
    right: -30px;
    bottom: -45px;
    font-size: 14rem;
    color: rgba(255, 255, 255, 0.08);
    pointer-events: none;
    z-index: 1;
    transform: rotate(-15deg);
}

.sd-header-icon-box {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #FFFFFF;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15), inset 0 2px 2px rgba(255,255,255,0.2);
    position: relative;
    z-index: 2;
}

.sd-header-content {
    position: relative;
    z-index: 2;
}

.sd-header-content h2 {
    color: #FFFFFF;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.sd-header-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    margin: 0;
    font-weight: 500;
}

/* Scrollable Modal Body */
.sd-modal-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 45px 50px;
    background-color: #FAFAFB;
}

/* Columns Grid */
.sd-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.sd-column {
    background: #FFFFFF;
    border: 1px solid #ECEFF1;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.02);
    height: 100%;
}

.sd-col-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 1.5px solid #F1F3F5;
    padding-bottom: 16px;
}

.sd-col-title i {
    font-size: 1.25rem;
    color: var(--primary);
    background: rgba(209, 0, 0, 0.08);
    padding: 10px;
    border-radius: 10px;
}

.sd-col-stages .sd-col-title i {
    color: #0b1641;
    background: rgba(11, 22, 65, 0.08);
}

.sd-col-benefits .sd-col-title i {
    color: #28a745;
    background: rgba(40, 167, 69, 0.08);
}

.sd-col-title h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0b1641;
    margin: 0;
}

/* Features List styling */
.sd-list-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sd-list-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: transform 0.2s ease, color 0.2s ease;
}

.sd-list-features li:hover {
    transform: translateX(3px);
    color: #0b1641;
}

.sd-list-features li i {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(209, 0, 0, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(209, 0, 0, 0.05);
}

/* Timeline/Stages styling */
.sd-timeline {
    position: relative;
    padding-left: 32px;
}

.sd-timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 10px;
    bottom: 24px;
    width: 2.5px;
    background: linear-gradient(to bottom, #0b1641, rgba(11, 22, 65, 0.1));
}

.sd-timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.sd-timeline-item:last-child {
    margin-bottom: 0;
}

.sd-timeline-badge {
    position: absolute;
    left: -32px;
    top: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0b1641;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 0 0 5px #FFFFFF, 0 4px 8px rgba(11, 22, 65, 0.15);
    z-index: 2;
}

.sd-timeline-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0b1641;
    margin: 0 0 2px 0;
}

.sd-timeline-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Benefits Card & List styling */
.sd-benefits-card {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.01) 0%, rgba(40, 167, 69, 0.04) 100%);
    border-radius: 14px;
}

.sd-list-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sd-list-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: transform 0.2s ease;
}

.sd-list-benefits li:hover {
    transform: translateY(-2px);
}

.sd-badge-check {
    font-size: 1.15rem;
    line-height: 1.2;
    flex-shrink: 0;
}

.sd-benefit-text strong {
    display: block;
    font-size: 0.95rem;
    color: #0b1641;
    font-weight: 700;
    margin-bottom: 2px;
}

.sd-benefit-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Modal Footer */
.sd-modal-footer {
    padding: 24px 50px;
    background: #FFFFFF;
    border-top: 1.5px solid #F1F3F5;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.sd-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px !important;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(209, 0, 0, 0.18);
}

.sd-cta-btn i {
    transition: transform 0.3s ease;
}

.sd-cta-btn:hover i {
    transform: translateX(4px);
}

.sd-close-btn-action {
    padding: 14px 24px !important;
    color: var(--text-main);
    border-color: #DDE2E5 !important;
    font-weight: 600;
}

.sd-close-btn-action:hover {
    background-color: #F8F9FA !important;
    color: #0b1641 !important;
    border-color: #CFD6DA !important;
}

/* Responsive Customization */
@media (max-width: 992px) {
    .sd-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .sd-column {
        height: auto;
    }
    
    .sd-modal-wrapper {
        max-height: 94vh;
    }
    
    .sd-modal-header {
        padding: 40px 35px 30px;
    }
    
    .sd-modal-body {
        padding: 30px 35px;
    }
    
    .sd-modal-footer {
        padding: 20px 35px;
    }
}

@media (max-width: 768px) {
    .sd-modal {
        padding: 12px;
    }

    .sd-modal-wrapper {
        border-radius: 20px;
        max-height: 96vh;
    }

    .sd-modal-header {
        padding: 25px 20px 20px;
        gap: 15px;
    }
    
    .sd-header-icon-box {
        width: 55px;
        height: 55px;
        border-radius: 14px;
        font-size: 1.4rem;
    }
    
    .sd-header-content {
        padding-right: 35px;
    }

    .sd-header-content h2 {
        font-size: 1.4rem;
        line-height: 1.25;
    }
    
    .sd-header-content p {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .sd-modal-body {
        padding: 20px 20px;
    }
    
    .sd-grid {
        gap: 16px;
    }
    
    .sd-column {
        padding: 20px 16px;
    }
    
    .sd-modal-footer {
        padding: 15px 20px;
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 8px;
    }
    
    .sd-modal-footer .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px !important;
        font-size: 0.95rem;
    }
    
    .sd-modal-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION
   ========================================================================== */

/* Hidden on desktop */
#mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {

    /* Add padding so page content doesn't hide behind the bottom nav */
    body {
        padding-bottom: 65px;
    }

    /* ---- Bottom Nav Container ---- */
    #mobile-bottom-nav {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 2000;
    }

    /* ---- Tabs Bar ---- */
    .mbn-tabs {
        display: flex;
        align-items: center;
        justify-content: space-around;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        height: 62px;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    }

    .mbn-tab {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        flex: 1;
        height: 100%;
        background: none;
        border: none;
        outline: none;
        cursor: pointer;
        color: #999;
        text-decoration: none;
        font-family: 'Inter', sans-serif;
        transition: color 0.2s ease;
        padding: 0;
    }

    .mbn-tab i {
        font-size: 1.2rem;
        transition: transform 0.2s ease, color 0.2s ease;
    }

    .mbn-tab span {
        font-size: 0.65rem;
        font-weight: 600;
        letter-spacing: 0.3px;
    }

    .mbn-tab:active i {
        transform: scale(0.88);
    }

    .mbn-tab.mbn-active,
    .mbn-tab.mbn-active i {
        color: var(--primary);
    }

    /* ---- Services Floating Panel ---- */
    #mobile-services-panel {
        position: fixed;
        bottom: 62px; /* just above the tab bar */
        left: 12px;
        right: 12px;
        background: #fff;
        border-radius: 20px 20px 16px 16px;
        box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18);
        border: 1px solid rgba(0, 0, 0, 0.06);
        overflow: hidden;
        transform: translateY(20px);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.3s ease,
                    visibility 0.3s ease;
        z-index: 2100;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
    }

    #mobile-services-panel.msp-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    /* Panel header */
    .msp-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px 12px;
        border-bottom: 1px solid #f0f0f0;
    }

    .msp-header span {
        font-size: 0.85rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--text-muted);
    }

    #msp-close {
        background: none;
        border: none;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #f5f5f5;
        cursor: pointer;
        color: #666;
        font-size: 0.9rem;
        transition: background 0.2s;
    }
    #msp-close:active { background: #eee; }

    /* Panel list */
    .msp-list {
        list-style: none;
        padding: 8px 0;
        margin: 0;
    }

    .msp-list li a {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 13px 20px;
        color: var(--text-main);
        font-size: 0.95rem;
        font-weight: 500;
        text-decoration: none;
        transition: background 0.2s ease;
        border-bottom: 1px solid #f8f8f8;
    }

    .msp-list li:last-child a {
        border-bottom: none;
    }

    .msp-list li a:active {
        background: rgba(209, 0, 0, 0.05);
    }

    .msp-list li a i {
        width: 36px;
        height: 36px;
        background: rgba(209, 0, 0, 0.08);
        color: var(--primary);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
        flex-shrink: 0;
    }

    /* Backdrop overlay */
    #msp-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 2050;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    #msp-backdrop.msp-open {
        opacity: 1;
        visibility: visible;
    }

    /* Make sure the panel is above the backdrop */
    #mobile-services-panel {
        z-index: 2100;
    }

    /* Auto-hide header and footer on mobile */
    .header {
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
    }
    .header.header-hidden {
        transform: translateY(-100%) !important;
    }
    #mobile-bottom-nav {
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
    #mobile-bottom-nav.nav-hidden {
        transform: translateY(100%) !important;
    }
}

