/* ================================================
   CENTRO INTEGRAL DE DIAGNÓSTICO - MODERN CSS
   Paleta: Azul oscuro #0A2E5C / Azul claro #00A3E0
   ================================================ */

/* --- CSS Custom Properties --- */
:root {
    --primary: #0A2E5C;
    --primary-light: #0D3F7A;
    --accent: #00A3E0;
    --accent-light: #33B5E8;
    --accent-glow: rgba(0, 163, 224, 0.15);
    --white: #FFFFFF;
    --off-white: #F6F9FC;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    --text: #334155;
    --text-light: #64748B;
    --shadow-sm: 0 1px 3px rgba(10, 46, 92, 0.06);
    --shadow-md: 0 4px 16px rgba(10, 46, 92, 0.08);
    --shadow-lg: 0 12px 40px rgba(10, 46, 92, 0.12);
    --shadow-xl: 0 20px 60px rgba(10, 46, 92, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    max-width: 100vw;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

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

/* --- Section Base --- */
.section {
    padding: 100px 0;
}

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

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.7;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent), #0077B6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================================================
   HEADER
   ================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(10, 46, 92, 0.06);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 12px;
    max-width: 100%;
    overflow: hidden;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
}

.logo-img { height: 44px; width: auto; max-width: 180px; }

.main-nav {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(10, 46, 92, 0.05);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-right: 4px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ================================================
   BUTTONS
   ================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #0077B6);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(0, 163, 224, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 163, 224, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.btn-whatsapp-sm {
    background: #25D366;
    color: var(--white);
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 20px;
}

.btn-whatsapp-sm:hover {
    background: #20BA5A;
    transform: translateY(-1px);
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent), #0077B6);
    border: none;
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font);
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 163, 224, 0.25);
    margin-top: auto;
    width: fit-content;
}

.btn-text:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 163, 224, 0.35);
    color: var(--white);
}

.btn-text i {
    transition: var(--transition);
    font-size: 12px;
}

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

.btn-block { width: 100%; justify-content: center; }

/* ================================================
   HERO
   ================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-bg-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-bg-img.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 46, 92, 0.92) 0%, rgba(10, 46, 92, 0.75) 50%, rgba(0, 119, 182, 0.65) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 60px;
}

.hero-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent);
    background: rgba(0, 163, 224, 0.12);
    padding: 8px 20px;
    border-radius: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 163, 224, 0.2);
}

.hero h1 {
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 520px;
    margin-bottom: 32px;
    line-height: 1.7;
}

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

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat { text-align: left; }

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
}

/* Consult Card */
.consult-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-xl);
}

.consult-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.consult-card h3 i {
    color: var(--accent);
    font-size: 22px;
}

.consult-form .form-group {
    margin-bottom: 16px;
}

.consult-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 6px;
}

.consult-form input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 15px;
    color: var(--gray-800);
    background: var(--gray-50);
    transition: var(--transition);
}

.consult-form input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.consult-form input::placeholder { color: var(--gray-400); }

.consult-form .btn { margin-top: 8px; height: 48px; }

/* Hero Scroll */
.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.hero-scroll a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    font-size: 16px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ================================================
   SERVICES
   ================================================ */
.services-section { background: var(--off-white); }

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

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 0;
    transition: var(--transition);
    border: 1px solid var(--gray-100);
    display: flex;
    flex-direction: row;
    overflow: hidden;
    min-height: 200px;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.service-icon {
    width: 220px;
    min-width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    overflow: hidden;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-icon img {
    transform: scale(1.05);
}

.service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 28px 32px;
}

.service-content h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.service-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 16px;
}

/* ================================================
   INSTANT REPORTS BANNER
   ================================================ */
.instant-reports-banner {
    background: linear-gradient(135deg, var(--accent), #0077B6);
    padding: 40px 24px;
    position: relative;
    overflow: hidden;
}

.instant-reports-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.instant-reports-banner::after {
    content: '';
    position: absolute;
    bottom: -60%;
    right: -5%;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.instant-reports-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.instant-reports-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--white);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
}

.instant-reports-text {
    text-align: center;
}

.instant-reports-text h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.instant-reports-text p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

@media (max-width: 640px) {
    .instant-reports-content {
        flex-direction: column;
        text-align: center;
    }

    .instant-reports-text h2 {
        font-size: 22px;
    }
}

/* ================================================
   TECHNOLOGY
   ================================================ */
.tech-section {
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

.tech-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(0, 163, 224, 0.05);
}

.tech-section .section-tag {
    background: rgba(0, 163, 224, 0.15);
}

.tech-section .section-header h2 {
    color: var(--white);
}

.tech-section .section-header p {
    color: rgba(255, 255, 255, 0.65);
}

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

.tech-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.tech-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    border-color: rgba(0, 163, 224, 0.3);
}

.tech-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 163, 224, 0.12);
    border-radius: 16px;
    color: var(--accent);
    font-size: 28px;
}

.tech-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.tech-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 16px;
}

.tech-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(0, 163, 224, 0.12);
    padding: 4px 14px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================================================
   ABOUT
   ================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.about-experience {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--accent), #0077B6);
    color: var(--white);
    padding: 24px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.exp-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}

.exp-text {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
}

.about-content .section-tag { margin-bottom: 12px; }

.about-content h2 {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.about-content > p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 32px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: 12px;
    color: var(--accent);
    font-size: 20px;
}

.feature-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

/* ================================================
   TEAM
   ================================================ */
.team-section { background: var(--off-white); }

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

.team-feature {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.team-feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.tf-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 16px;
    color: var(--white);
    font-size: 26px;
}

.team-feature h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.team-feature p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ================================================
   GALLERY
   ================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 46, 92, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay i {
    color: var(--white);
    font-size: 28px;
    transform: scale(0.5);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* ================================================
   FAQ
   ================================================ */
.faq-section { background: var(--off-white); }

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.faq-content .section-tag { margin-bottom: 12px; }

.faq-content h2 {
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.faq-content p {
    font-size: 16px;
    color: var(--text-light);
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion-item {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-100);
    overflow: hidden;
    transition: var(--transition);
}

.accordion-item.active {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(0, 163, 224, 0.1);
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    text-align: left;
    transition: var(--transition);
}

.accordion-header i:first-child {
    color: var(--accent);
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.accordion-icon {
    margin-left: auto;
    font-size: 12px;
    color: var(--gray-400);
    transition: var(--transition);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
    color: var(--accent);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.accordion-item.active .accordion-body {
    max-height: 300px;
}

.accordion-body p {
    padding: 0 20px 18px 56px;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ================================================
   CONTACT
   ================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--off-white);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.contact-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.cc-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), #0077B6);
    border-radius: 12px;
    color: var(--white);
    font-size: 18px;
}

.contact-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.contact-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

.contact-card a {
    color: var(--accent);
    font-weight: 500;
}

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

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 400px;
    box-shadow: var(--shadow-md);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
    background: var(--gray-900);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    height: 40px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 20px;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--gray-400);
    font-size: 16px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
    color: var(--white);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 14px;
    color: var(--gray-400);
}

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

.footer-contact p {
    font-size: 14px;
    color: var(--gray-400);
    margin-bottom: 10px;
}

.footer-contact p a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-contact p a:hover {
    color: var(--accent);
}

.footer-contact i {
    color: var(--accent);
    width: 16px;
    text-align: center;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--gray-500);
}

/* ================================================
   WHATSAPP FLOAT
   ================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ================================================
   BACK TO TOP
   ================================================ */
.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(10, 46, 92, 0.3);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0, 163, 224, 0.4);
}

/* ================================================
   MODALS
   ================================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.show {
    display: flex;
}

.modal-dialog {
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.modal-dialog::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid var(--gray-100);
}

.modal-header-custom h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 16px;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

.modal-scroll-btn {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(10, 46, 92, 0.3);
    transition: var(--transition);
    z-index: 10;
    animation: bounce-down 1.5s infinite;
}

.modal-scroll-btn:hover {
    background: var(--accent);
    transform: translateX(-50%) translateY(-3px);
}

.modal-scroll-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes bounce-down {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

.modal-content {
    position: relative;
}

.modal-body-custom {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    padding: 32px;
}

.modal-img img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.modal-text h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin: 20px 0 10px;
}

.modal-text h5:first-child { margin-top: 0; }

.modal-text p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 8px;
}

.modal-list {
    margin: 12px 0;
}

.modal-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text);
    padding: 6px 0;
}

.modal-list li i {
    color: var(--accent);
    font-size: 14px;
}

.instant-report-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent), #0077B6);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 163, 224, 0.3);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 4px 15px rgba(0, 163, 224, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(0, 163, 224, 0.5); }
}

.instant-report-badge i {
    font-size: 18px;
    animation: flash 1.5s infinite;
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.modal-gallery {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
}

.modal-gallery h5 {
    font-size: 14px;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
}

.modal-gallery h5 i {
    color: var(--accent);
}

.modal-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.modal-gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4/3;
    display: block;
}

.modal-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.modal-gallery-item:hover img {
    transform: scale(1.05);
}

.modal-gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 46, 92, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.modal-gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.modal-gallery-item .gallery-overlay i {
    color: var(--white);
    font-size: 24px;
}

@media (max-width: 640px) {
    .modal-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.modal-prep {
    background: var(--off-white);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-top: 20px;
    border-left: 3px solid var(--accent);
}

.modal-prep h5 {
    font-size: 14px;
    margin: 0 0 8px;
}

.modal-prep p {
    font-size: 13px;
    margin-bottom: 4px;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-desc { margin: 0 auto 32px; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-card { max-width: 420px; margin: 0 auto; }

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

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

    .about-grid,
    .faq-grid,
    .contact-grid { grid-template-columns: 1fr; }

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

    .modal-body-custom { grid-template-columns: 1fr; }
    .modal-img { display: none; }
}

@media (max-width: 768px) {
    .section { padding: 70px 0; }

    .container { padding: 0 16px; }

    .header-inner {
        gap: 8px;
        padding: 0;
    }

    .site-header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .logo {
        flex-shrink: 1;
        min-width: 0;
    }

    .logo-img {
        height: 36px;
        max-width: 140px;
    }

    .main-nav {
        display: none !important;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        flex: none !important;
        padding: 16px 24px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--gray-100);
        overflow-y: auto;
        z-index: 9999;
    }

    .main-nav.open {
        display: flex !important;
    }

    .main-nav .nav-link {
        display: block;
        padding: 16px;
        font-size: 16px;
        color: var(--gray-700);
        border-bottom: 1px solid var(--gray-100);
        text-align: left;
        border-radius: 0;
        width: 100%;
    }

    .main-nav .nav-link:hover,
    .main-nav .nav-link.active {
        color: var(--primary);
        background: rgba(10, 46, 92, 0.05);
    }

    .menu-toggle {
        display: flex;
        flex-shrink: 0;
    }

    .btn-whatsapp-sm { display: none; }

    .hero { min-height: auto; padding-top: 100px; padding-bottom: 60px; }

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

    .service-card {
        flex-direction: column;
    }

    .service-icon {
        width: 100%;
        min-width: 100%;
        height: 180px;
    }

    .tech-grid { grid-template-columns: 1fr; }

    .team-features { grid-template-columns: 1fr; }

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

    .footer-grid { grid-template-columns: 1fr; }

    .hero-stats { flex-wrap: wrap; gap: 24px; }

    .modal {
        padding: 12px;
        align-items: flex-end;
    }

    .modal-dialog {
        max-width: 100%;
        max-height: 85vh;
    }

    .modal-content {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .modal-header-custom {
        padding: 20px 20px;
    }

    .modal-header-custom h3 {
        font-size: 18px;
    }

    .modal-body-custom {
        padding: 20px;
    }

    .modal-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-buttons .btn { justify-content: center; }
}
