/* ============================================
   ODONT ID - CENTRO RADIOLÓGICO DENTAL
   Professional CSS Architecture v2.0
   ============================================ */

/* ============================================
   1. DESIGN TOKENS (Variables)
   ============================================ */
:root {
    /* Brand Colors */
    --color-primary: #1e4a7e;
    --color-primary-dark: #15355c;
    --color-primary-light: #2d6a9f;
    --color-accent: #4a9fd4;
    --color-accent-light: #6ab8e8;
    --color-whatsapp: #25d366;
    
    /* Neutral Colors */
    --color-white: #ffffff;
    --color-gray-50: #f8fafc;
    --color-gray-100: #f1f5f9;
    --color-gray-200: #e2e8f0;
    --color-gray-300: #cbd5e1;
    --color-gray-400: #94a3b8;
    --color-gray-500: #64748b;
    --color-gray-600: #475569;
    --color-gray-700: #334155;
    --color-gray-800: #1e293b;
    --color-gray-900: #0f172a;
    
    /* Legacy aliases for backward compatibility */
    --primary: var(--color-primary);
    --primary-dark: var(--color-primary-dark);
    --primary-light: var(--color-primary-light);
    --accent: var(--color-accent);
    --accent-light: var(--color-accent-light);
    --whatsapp: var(--color-whatsapp);
    --white: var(--color-white);
    --gray-50: var(--color-gray-50);
    --gray-100: var(--color-gray-100);
    --gray-200: var(--color-gray-200);
    --gray-300: var(--color-gray-300);
    --gray-400: var(--color-gray-400);
    --gray-500: var(--color-gray-500);
    --gray-600: var(--color-gray-600);
    --gray-700: var(--color-gray-700);
    --gray-800: var(--color-gray-800);
    --gray-900: var(--color-gray-900);
    
    /* Typography */
    --font-family-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-family-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: var(--font-family-heading);
    --font-body: var(--font-family-body);
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    
    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Layout */
    --container-max: 1200px;
    --section-padding: var(--space-20);
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Z-index Scale */
    --z-dropdown: 100;
    --z-sticky: 500;
    --z-modal: 1000;
    --z-tooltip: 1500;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--gray-900);
}

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.section-title .highlight {
    color: var(--primary);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray-500);
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.section-header.center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.section-header {
    margin-bottom: 2.5rem;
}

.section-header.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-text {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 1.25rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(30, 74, 126, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::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: left 0.5s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 74, 126, 0.35);
    background: var(--primary-light);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-large {
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
}

.btn-full {
    width: 100%;
}

/* ============================================
   HEADER
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.875rem 0;
    transition: background 0.3s, padding 0.3s;
}

.header.scrolled {
    background: rgba(30, 74, 126, 0.98);
    padding: 0.625rem 0;
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 36px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--white);
    position: relative;
    padding: 0.4rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: 0.3s;
}

/* ============================================
   PAGE HEADER (Páginas internas)
   ============================================ */

.page-header {
    position: relative;
    padding: 10rem 0 4rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    text-align: center;
}

.page-header-bg {
    position: absolute;
    inset: 0;
    background: url('../images/tomo3d3.jpg') center/cover;
    opacity: 0.08;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--white);
    margin-bottom: 1rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
    color: var(--white);
    transition: opacity 0.2s;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    overflow: hidden;
    padding: 7rem 0 4rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('../images/tomo3d3.jpg') center/cover;
    opacity: 0.08;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(21, 53, 92, 0.85);
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}

.hero-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-light);
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.65;
}

.hero-subtitle strong {
    color: var(--white);
}

.hero-actions {
    display: flex;
    gap: 0.875rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.375rem;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.image-wrapper img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: var(--primary);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.badge-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.badge-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.feature-item {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.feature-icon svg {
    width: 20px;
    height: 20px;
}

.feature-text h4 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.feature-text p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* ============================================
   MVV SECTION (Institucional)
   ============================================ */

.mvv-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.mvv-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.mvv-card {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: transform 0.25s, box-shadow 0.25s;
}

.mvv-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-xl);
    background: var(--white);
}

.mvv-card {
    will-change: transform;
}

.mvv-number {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
}

.mvv-icon {
    width: 52px;
    height: 52px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.mvv-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.mvv-text {
    font-size: 0.925rem;
    color: var(--gray-500);
    line-height: 1.65;
}

/* ============================================
   INNOVATION & GALLERY
   ============================================ */

.innovation {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.innovation-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s;
}

.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30,74,126,0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.15);
}

/* ============================================
   SERVICES PAGE - DETAIL SECTIONS
   ============================================ */

.service-detail {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.service-detail.alt {
    background: var(--gray-50);
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-detail-grid.reverse {
    direction: rtl;
}

.service-detail-grid.reverse > * {
    direction: ltr;
}

.service-detail-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.service-detail-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.service-detail-content {
    max-width: 540px;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.service-feature {
    display: flex;
    gap: 0.875rem;
}

.service-feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.service-feature-icon svg {
    width: 20px;
    height: 20px;
}

.service-feature h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.service-feature p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.95rem;
    color: var(--gray-600);
}

.service-list li svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--primary);
}

/* ============================================
   APPLICATIONS GRID
   ============================================ */

.applications {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.application-card {
    background: var(--white);
    padding: 1.5rem 1rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s;
}

.application-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.application-card:hover .application-icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.application-icon {
    transition: background 0.3s, color 0.3s, transform 0.3s;
}

.application-icon {
    width: 48px;
    height: 48px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin: 0 auto 0.875rem;
}

.application-icon svg {
    width: 22px;
    height: 22px;
}

.application-card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.application-card p {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ============================================
   ADDITIONAL SERVICES
   ============================================ */

.additional-services {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.additional-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.additional-card {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: transform 0.25s, box-shadow 0.25s;
}

.additional-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-xl);
    background: var(--white);
}

.additional-card:hover .additional-icon {
    transform: scale(1.15) rotate(10deg);
}

.additional-icon {
    transition: transform 0.3s;
}

.additional-icon {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin: 0 auto 1.25rem;
}

.additional-icon svg {
    width: 26px;
    height: 26px;
}

.additional-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.additional-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* ============================================
   CONTACT CTA (Services page)
   ============================================ */

.contact-cta {
    background: var(--gray-50);
    padding: 3rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.contact-cta .section-title {
    margin-bottom: 0.5rem;
}

.contact-cta .section-subtitle {
    margin: 0 auto 1.5rem;
}

.contact-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   SERVICES SECTION (Homepage cards)
   ============================================ */

.services {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.25s;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card {
    will-change: transform;
}

.service-number {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.service-icon {
    width: 50px;
    height: 50px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.25rem;
    transition: 0.25s;
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--white);
}

.service-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary);
}

.service-link svg {
    width: 14px;
    height: 14px;
}

.section-footer {
    margin-top: 2.5rem;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    position: relative;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.cta-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.cta-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.cta-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-light);
    margin-bottom: 0.75rem;
}

.cta-title {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    color: var(--white);
    margin-bottom: 1.25rem;
    line-height: 1.35;
}

.cta-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.75rem;
    line-height: 1.65;
}

.cta-text strong {
    color: var(--white);
}

.cta-author {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--accent);
}

.author-name {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--white);
    font-size: 0.95rem;
}

.author-role {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   LOCATIONS SECTION
   ============================================ */

.locations {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.location-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s, box-shadow 0.25s;
}

.location-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.location-card:hover .location-map iframe {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.location-map iframe {
    transition: filter 0.3s, transform 0.3s;
}

.location-map {
    height: 160px;
    overflow: hidden;
}

.location-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.location-content {
    padding: 1.25rem;
}

.location-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.location-icon svg {
    width: 16px;
    height: 16px;
}

.location-name {
    font-size: 1.1rem;
    margin-bottom: 0.375rem;
}

.location-address {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 0.875rem;
    line-height: 1.5;
}

.location-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary);
}

.location-link svg {
    width: 14px;
    height: 14px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.15rem;
}

.contact-value {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.95rem;
}

.contact-form-wrapper {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-input,
.form-textarea {
    padding: 0.75rem 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--gray-900);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(74, 159, 212, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--gray-400);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-logo {
    height: 36px;
    width: auto;
    margin-bottom: 0.875rem;
}

.footer-text {
    font-size: 0.9rem;
    color: var(--gray-400);
    line-height: 1.6;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-menu li,
.footer-info li {
    margin-bottom: 0.625rem;
}

.footer-menu a {
    font-size: 0.9rem;
    color: var(--gray-400);
    transition: color 0.2s;
}

.footer-menu a:hover {
    color: var(--white);
}

.footer-info li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9rem;
    color: var(--gray-400);
}

.footer-info svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.footer-info a {
    color: var(--gray-400);
    transition: color 0.2s;
}

.footer-info a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: 0.2s;
}

.social-link svg {
    width: 16px;
    height: 16px;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 52px;
    height: 52px;
    background: var(--whatsapp);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    z-index: 999;
    transition: transform 0.2s;
}

.whatsapp-float svg {
    width: 26px;
    height: 26px;
}

.whatsapp-float:hover {
    transform: scale(1.08);
}

/* ============================================
   ANIMACIONES OPTIMIZADAS
   ============================================ */

[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    will-change: opacity, transform;
}

[data-animate="left"] {
    transform: translateX(-20px);
}

[data-animate="right"] {
    transform: translateX(20px);
}

[data-animate].visible {
    opacity: 1;
    transform: translate(0);
}

/* Stagger delays */
.mvv-grid [data-animate]:nth-child(1),
.gallery-grid [data-animate]:nth-child(1),
.requirements-grid [data-animate]:nth-child(1) { transition-delay: 0s; }

.mvv-grid [data-animate]:nth-child(2),
.gallery-grid [data-animate]:nth-child(2),
.requirements-grid [data-animate]:nth-child(2) { transition-delay: 0.1s; }

.mvv-grid [data-animate]:nth-child(3),
.gallery-grid [data-animate]:nth-child(3),
.requirements-grid [data-animate]:nth-child(3) { transition-delay: 0.2s; }

.gallery-grid [data-animate]:nth-child(4) { transition-delay: 0.3s; }

.services-grid [data-animate]:nth-child(1) { transition-delay: 0s; }
.services-grid [data-animate]:nth-child(2) { transition-delay: 0.08s; }
.services-grid [data-animate]:nth-child(3) { transition-delay: 0.16s; }
.services-grid [data-animate]:nth-child(4) { transition-delay: 0.24s; }

.locations-grid [data-animate]:nth-child(1) { transition-delay: 0s; }
.locations-grid [data-animate]:nth-child(2) { transition-delay: 0.1s; }
.locations-grid [data-animate]:nth-child(3) { transition-delay: 0.2s; }

.applications-grid [data-animate]:nth-child(1) { transition-delay: 0s; }
.applications-grid [data-animate]:nth-child(2) { transition-delay: 0.05s; }
.applications-grid [data-animate]:nth-child(3) { transition-delay: 0.1s; }
.applications-grid [data-animate]:nth-child(4) { transition-delay: 0.15s; }
.applications-grid [data-animate]:nth-child(5) { transition-delay: 0.2s; }
.applications-grid [data-animate]:nth-child(6) { transition-delay: 0.25s; }

.additional-grid [data-animate]:nth-child(1) { transition-delay: 0s; }
.additional-grid [data-animate]:nth-child(2) { transition-delay: 0.1s; }
.additional-grid [data-animate]:nth-child(3) { transition-delay: 0.2s; }

/* ============================================
   REQUIREMENTS SECTION (Pacientes)
   ============================================ */

.requirements-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.requirement-card {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s;
}

.requirement-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    background: var(--white);
}

.requirement-card:hover .requirement-icon {
    transform: scale(1.1) rotate(-5deg);
}

.requirement-icon {
    transition: transform 0.3s;
}

.requirement-icon {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin: 0 auto 1.25rem;
}

.requirement-icon svg {
    width: 26px;
    height: 26px;
}

.requirement-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.requirement-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

.requirement-card p strong {
    color: var(--gray-700);
}

/* ============================================
   TESTIMONIAL SECTION (Pacientes)
   ============================================ */

.testimonial-section {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-rating {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
}

.testimonial-rating span {
    color: #fbbf24;
    font-size: 1.5rem;
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--gray-600);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.testimonial-name {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--gray-900);
}

.testimonial-role {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ============================================
   DOWNLOADS SECTION (Profesionales)
   ============================================ */

.downloads-section {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.download-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s;
}

.download-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.download-card:hover .download-icon {
    transform: scale(1.1) rotate(5deg);
}

.download-icon {
    transition: transform 0.3s;
}

.download-icon {
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin: 0 auto 1.25rem;
}

.download-icon svg {
    width: 30px;
    height: 30px;
}

.download-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.download-desc {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* ============================================
   RESULTS SECTION (Profesionales)
   ============================================ */

.results-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.result-card {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: transform 0.25s, box-shadow 0.25s;
}

.result-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    background: var(--white);
}

.result-card:hover .result-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(30, 74, 126, 0.3);
}

.result-icon {
    transition: transform 0.3s, box-shadow 0.3s;
}

.result-icon {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin: 0 auto 1.25rem;
}

.result-icon svg {
    width: 26px;
    height: 26px;
}

.result-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.result-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Content Visibility for off-screen sections */
.about,
.services,
.mvv-section,
.innovation,
.applications,
.additional-services,
.locations,
.contact,
.requirements-section,
.results-section,
.downloads-section,
.testimonial-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

/* CSS Containment for cards */
.service-card,
.mvv-card,
.location-card,
.requirement-card,
.result-card,
.additional-card,
.download-card,
.application-card {
    contain: layout paint;
    will-change: transform;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Display */
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-block { display: block; }
.d-none { display: none; }

/* Text alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Spacing utilities */
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

/* Container queries support */
@supports (container-type: inline-size) {
    .service-card,
    .mvv-card {
        container-type: inline-size;
    }
}

/* ============================================
   RESPONSIVE - DESKTOP SMALL (1024px - 1400px)
   ============================================ */

@media (max-width: 1400px) {
    /* Grids de 4 columnas - reducir gaps */
    .services-grid {
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    /* Grids de 3 columnas - ajustar para evitar 2+1 */
    .mvv-grid,
    .results-grid,
    .requirements-grid,
    .additional-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .mvv-card,
    .result-card,
    .requirement-card,
    .additional-card {
        padding: 1.5rem;
    }
    
    /* Gallery grid ajustada */
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }
    
    /* Downloads grid */
    .downloads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1100px) {
    /* Grids de 3 pasan a 2 columnas */
    .mvv-grid,
    .results-grid,
    .requirements-grid,
    .additional-grid,
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Gallery a 2 columnas */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */

@media (max-width: 1024px) {
    :root {
        --section-padding: 4rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .applications-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid,
    .cta-grid,
    .contact-grid,
    .service-detail-grid {
        gap: 2.5rem;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 768px) {
    :root {
        --section-padding: 3rem;
    }
    
    /* Header */
    .nav-toggle {
        display: flex;
        margin-left: auto;
        margin-right: 0.75rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 280px;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 1.5rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,0.2);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 0.75rem 0;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .header .btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }
    
    /* Hero */
    .hero {
        padding: 6rem 0 3rem;
        min-height: auto;
    }
    
    .hero-content {
        margin-bottom: 2.5rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Page Header */
    .page-header {
        padding: 7rem 0 3rem;
    }
    
    /* Grids */
    .mvv-grid,
    .services-grid,
    .gallery-grid,
    .applications-grid,
    .additional-grid,
    .downloads-grid,
    .results-grid,
    .requirements-grid,
    .about-grid,
    .cta-grid,
    .contact-grid,
    .locations-grid,
    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .about-image,
    .service-detail-image {
        order: -1;
    }
    
    .service-detail-grid.reverse {
        direction: ltr;
    }
    
    .image-wrapper img,
    .cta-image img,
    .service-detail-image img {
        aspect-ratio: 16/10;
    }
    
    .experience-badge {
        right: 10px;
        bottom: -10px;
        padding: 0.75rem 1rem;
    }
    
    .badge-number {
        font-size: 1.5rem;
    }
    
    .badge-text {
        font-size: 0.65rem;
    }
    
    /* Cards */
    .service-card,
    .mvv-card,
    .application-card,
    .additional-card {
        padding: 1.5rem;
    }
    
    .service-icon,
    .mvv-icon,
    .application-icon,
    .additional-icon {
        width: 44px;
        height: 44px;
    }
    
    .service-detail-content {
        max-width: 100%;
    }
    
    .contact-cta {
        padding: 2rem 1.5rem;
    }
    
    .contact-cta-buttons {
        flex-direction: column;
    }
    
    .contact-cta-buttons .btn {
        width: 100%;
    }
    
    /* Contact */
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-logo {
        margin: 0 auto 0.75rem;
    }
    
    .footer-info li {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
    
    .whatsapp-float {
        width: 48px;
        height: 48px;
        bottom: 1rem;
        right: 1rem;
    }
    
    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}

/* ============================================
   SMALL MOBILE
   ============================================ */

@media (max-width: 480px) {
    :root {
        --section-padding: 2.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .mvv-card,
    .service-card,
    .application-card,
    .additional-card,
    .download-card,
    .result-card,
    .requirement-card,
    .contact-form-wrapper {
        padding: 1.25rem;
    }
    
    .experience-badge {
        padding: 0.625rem 0.875rem;
    }
    
    .badge-number {
        font-size: 1.25rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    [data-animate] {
        opacity: 1;
        transform: none;
    }
}
