:root {
    --color-primary: #0A4D68;
    --color-primary-light: #088395;
    --color-accent: #05BFDB;
    --color-neutral-100: #FAFBFC;
    --color-neutral-200: #F0F4F8;
    --color-neutral-300: #D9E2EC;
    --color-neutral-700: #334E68;
    --color-neutral-900: #102A43;
    --color-success: #47B881;
    --color-warning: #FFB84D;
    --color-urgent: #F76C6C;

    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'DM Sans', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 6rem;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow-sm: 0 2px 8px rgba(16, 42, 67, 0.06);
    --shadow-md: 0 4px 16px rgba(16, 42, 67, 0.08);
    --shadow-lg: 0 8px 32px rgba(16, 42, 67, 0.12);
    --shadow-xl: 0 16px 48px rgba(16, 42, 67, 0.16);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-neutral-700);
    line-height: 1.6;
    background-color: var(--color-neutral-100);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--color-neutral-900);
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    font-size: 1.0625rem;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(18px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(18px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.3rem 2rem;
}

.header.scrolled .nav-container {
    align-items: center;
}

.logo {
    background: transparent;
    display: flex;
    align-items: center;
    animation: logoEntrance 1s ease-out;
}

.logo img {
    height: auto;
    width: 110px;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.15));
}

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

@keyframes logoEntrance {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Logo responsive sizes integrated in system below */

.nav-menu {
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 0.75rem;
    align-items: flex-end;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled .nav-menu {
    flex-direction: row;
    gap: 0.1rem;
}

.nav-menu li {
    transition: all 0.3s ease;
}

.nav-menu a {
    font-weight: 500;
    color: var(--color-neutral-700);
    transition: all 0.3s ease;
    position: relative;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(10, 77, 104, 0.08), rgba(5, 191, 219, 0.08));
    border: 1px solid rgba(10, 77, 104, 0.15);
    display: inline-block;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(10, 77, 104, 0.08);
}

.header.scrolled .nav-menu a {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(10, 77, 104, 0.1);
    box-shadow: 0 2px 4px rgba(10, 77, 104, 0.05);
}

.nav-menu a:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 77, 104, 0.2);
    border-color: transparent;
}

.header.scrolled .nav-menu a:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 77, 104, 0.25);
}

.nav-menu a::after {
    display: none;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    box-shadow: var(--shadow-sm);
}

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

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

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 1001;
}

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

.mobile-toggle:hover span {
    background: var(--color-accent);
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background: linear-gradient(135deg, #f9fafc 0%, #91c4f8 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(5, 191, 219, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-subtitle {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero h1 {
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--color-neutral-900), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--color-neutral-700);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.stat-text {
    font-size: 0.875rem;
    color: var(--color-neutral-700);
}

.stat-number {
    font-weight: 700;
    color: var(--color-neutral-900);
    display: block;
    font-size: 1.125rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hero-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: floatCard 3s ease-in-out infinite;
    z-index: 10;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.card-1 {
    top: 20%;
    left: calc(50% + 2rem);
}

.card-2 {
    bottom: 20%;
    right: 5%;
}

.card-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-success), #3AA76D);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.card-title {
    font-weight: 600;
    color: var(--color-neutral-900);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.card-value {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 1.25rem;
}

section {
    padding: var(--spacing-2xl) 2rem;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.section-subtitle {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-neutral-700);
    max-width: 700px;
    margin: 0 auto;
}

.about {
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: var(--color-neutral-900);
}

.feature-text p {
    font-size: 0.9375rem;
    color: var(--color-neutral-700);
    margin: 0;
}

.about-image {
    position: relative;
}

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

.services {
    background: var(--color-neutral-100);
}

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

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-neutral-700);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--color-neutral-700);
    font-size: 0.9375rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: 700;
}

.service-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #FFF4E6, #FFE8CC);
    color: #CC7A00;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 1rem;
}

.team {
    background: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.team-member {
    text-align: center;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: scale(1.02);
}

.member-photo {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--color-neutral-200), var(--color-neutral-300));
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-photo::after {
    content: none !important;
}

.member-photo.has-image::after {
    display: none;
}

.team-member h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.member-role {
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-bio {
    color: var(--color-neutral-700);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.member-credentials {
    font-size: 0.875rem;
    color: var(--color-neutral-700);
    opacity: 0.8;
}

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

.technology .section-subtitle {
    color: var(--color-accent);
}

.technology .section-description {
    color: white;
}

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

.tech-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.tech-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.tech-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.tech-card h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.tech-benefit {
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.tech-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
}

.testimonials {
    background: var(--color-neutral-100);
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.testimonials-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
}

.testimonial-card {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.testimonial-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
}

.testimonial-info h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.testimonial-treatment {
    color: var(--color-accent);
    font-size: 0.875rem;
}

.testimonial-rating {
    color: #FFB84D;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--color-neutral-700);
    line-height: 1.8;
    font-style: italic;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.faq {
    background: white;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    background: var(--color-neutral-100);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 1.75rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--color-neutral-900);
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--color-neutral-200);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

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

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.75rem;
}

.faq-answer p {
    color: var(--color-neutral-700);
    line-height: 1.7;
}

.cta {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.cta-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
}

.cta-badge-icon {
    font-size: 1.5rem;
}

.contact {
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--color-neutral-900);
}

.info-text p {
    color: var(--color-neutral-700);
    margin: 0;
}

.info-text a {
    color: var(--color-primary);
    font-weight: 600;
}

.form-message {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    display: none;
}

.form-message.error {
    display: block;
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FCA5A5;
}

.form-message.success {
    display: block;
    background: #F0FDF4;
    color: #16A34A;
    border: 1px solid #86EFAC;
}

.contact-form {
    background: var(--color-neutral-100);
    padding: 2.5rem;
    border-radius: var(--radius-md);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--color-neutral-300);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(10, 77, 104, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #DC2626;
}

.form-group .field-error {
    color: #DC2626;
    font-size: 0.8125rem;
    margin-top: 0.375rem;
    display: none;
}

.form-group.error .field-error {
    display: block;
}

.form-checkbox {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.form-checkbox input {
    margin-top: 4px;
    width: auto;
}

.form-checkbox label {
    font-weight: 400;
    font-size: 0.875rem;
}

.form-checkbox.error label {
    color: #DC2626;
}

.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.footer {
    background: var(--color-neutral-900);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 2rem 2rem;
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-section p {
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

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

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

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

.social-icon:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ============================================
   ACCESIBILIDAD & RENDIMIENTO
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
    .hero::before {
        animation: none;
    }
    .floating-card {
        animation: none;
    }
    .ad-bubble {
        animation: none;
    }
    .ad-bubble::after {
        animation: none;
    }
    .service-card:hover {
        transform: none;
    }
    .tech-card:hover {
        transform: none;
    }
}

:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

.btn:focus-visible,
.slider-btn:focus-visible,
.mobile-toggle:focus-visible,
a:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

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

/* ============================================
   RESPONSIVE SYSTEM — Breakpoints completos
   Patrón: Mobile First con ajustes progresivos
   ============================================ */

/* Pantallas: 992px - 1199px */
@media (max-width: 1199px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Pantallas: 768px - 991px */
@media (max-width: 991px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    .hero-image {
        order: -1;
    }
    .hero-image img {
        max-width: 80%;
        margin: 0 auto;
        display: block;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    .about-features {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    .about-image img {
        max-width: 80%;
        margin: 0 auto;
        display: block;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonial-card {
        min-width: 300px;
    }
    .team-member {
        max-width: 400px;
        margin: 0 auto;
    }
    .floating-card {
        display: none;
    }
}

/* Pantallas: 576px - 767px */
@media (max-width: 767px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: min(280px, 45vw);
        height: calc(100vh - 80px);
        height: calc(100dvh - 80px);
        overflow-y: auto;
        overscroll-behavior: contain;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        width: 100%;
        text-align: left;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .header.scrolled .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }

    .header.scrolled .nav-menu a {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        width: 100%;
    }

    .mobile-toggle {
        display: flex;
        z-index: 1000;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-container {
        padding: 0.3rem 1rem;
    }
    .hero {
        min-height: auto;
        padding: 5rem 0 3rem;
    }
    .hero-container {
        padding: 0 1rem;
        gap: 2rem;
    }
    .hero h1 {
        font-size: clamp(2rem, 7vw, 2.5rem);
    }
    .hero-description {
        font-size: 1.0625rem;
    }
    .hero-image img {
        max-width: 100%;
    }
    .hero-stats {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card {
        padding: 1.75rem;
    }
    .tech-grid {
        grid-template-columns: 1fr;
    }
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .team-member {
        max-width: 380px;
    }
    .member-photo {
        width: 180px;
        height: 180px;
    }
    .about-features {
        grid-template-columns: 1fr;
    }
    .about-image img {
        max-width: 100%;
    }
    .section-header {
        margin-bottom: 2.5rem;
    }
    section {
        padding: 3rem 1rem;
    }
    .contact-form {
        padding: 1.5rem;
    }
    .cta-badges {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .cta-badge {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .footer-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .social-links {
        justify-content: center;
    }
    .faq-question {
        padding: 1.25rem 1.25rem;
        font-size: 1rem;
    }
    .faq-item.active .faq-answer {
        padding: 0 1.25rem 1.25rem;
    }
    .testimonial-card {
        min-width: 240px;
        padding: 1.5rem;
    }
    .testimonial-avatar {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    .floating-card {
        display: none;
    }
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .feature-icon {
        width: 40px;
        height: 40px;
    }
    .info-icon {
        width: 40px;
        height: 40px;
    }
    .service-icon {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }
    .tech-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    .btn {
        min-height: 44px;
    }
    h2 {
        font-size: clamp(1.75rem, 5vw, 2rem);
    }
    .contact-info h3 {
        font-size: 1.5rem;
    }
}

/* Pantallas: 480px - 575px */
@media (max-width: 575px) {
    .nav-menu {
        position: fixed;
        width: 45vw;
        right: -100%;
        top: 0;
        height: 100dvh;
        padding: 5rem 0.75rem 2rem;
        gap: 0.75rem;
    }
    .nav-menu a {
        padding: 0.875rem 0.5rem;
        font-size: 0.9375rem;
    }
    .hero {
        padding: 4.5rem 0 2.5rem;
    }
    .hero h1 {
        font-size: clamp(1.75rem, 8vw, 2rem);
    }
    .hero-subtitle {
        font-size: 0.875rem;
    }
    .hero-description {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }
    .hero-buttons {
        margin-top: 1.5rem;
    }
    .hero-stats {
        margin-top: 2rem;
    }
    .stat-number {
        font-size: 1rem;
    }
    .stat-text {
        font-size: 0.8125rem;
    }
    section {
        padding: 2.5rem 0.875rem;
    }
    .section-subtitle {
        font-size: 0.8125rem;
    }
    .section-description {
        font-size: 0.9375rem;
    }
    .service-card {
        padding: 1.5rem;
    }
    .service-card h3 {
        font-size: 1.25rem;
    }
    .service-features li {
        font-size: 0.875rem;
        padding: 0.375rem 0 0.375rem 1.5rem;
    }
    .service-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    .team-member h3 {
        font-size: 1.25rem;
    }
    .member-bio {
        font-size: 0.875rem;
    }
    .member-credentials {
        font-size: 0.8125rem;
    }
    .tech-card {
        padding: 1.5rem;
    }
    .tech-card h3 {
        font-size: 1.125rem;
    }
    .testimonial-card {
        min-width: 220px;
        padding: 1.25rem;
    }
    .testimonial-header {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    .testimonial-text {
        font-size: 0.875rem;
    }
    .testimonial-rating {
        font-size: 1rem;
    }
    .slider-btn {
        width: 42px;
        height: 42px;
        font-size: 0.875rem;
    }
    .contact-form {
        padding: 1.25rem;
    }
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.9375rem;
    }
    .form-group label {
        font-size: 0.875rem;
    }
    .form-checkbox label {
        font-size: 0.8125rem;
    }
    .cta-content h2 {
        font-size: clamp(1.5rem, 6vw, 1.75rem);
    }
    .cta p {
        font-size: 1rem;
    }
    .cta-badge {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    .footer {
        padding: 3rem 1rem 1.5rem;
    }
    .footer-section h4 {
        font-size: 1.125rem;
    }
    .footer-section p {
        font-size: 0.875rem;
    }
    .footer-bottom {
        font-size: 0.8125rem;
    }
    .info-item {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    .info-text h4 {
        font-size: 0.9375rem;
    }
    .info-text p {
        font-size: 0.875rem;
    }
    .about-text p {
        font-size: 0.9375rem;
    }
    .feature-text h4 {
        font-size: 1rem;
    }
    .feature-text p {
        font-size: 0.875rem;
    }
    .logo img {
        width: 90px;
    }
    .logo-wrapper {
        gap: 0.5rem;
    }
    .logo img {
        width: 80px;
    }
}

/* Pantallas muy pequeñas: 320px - 479px */
@media (max-width: 479px) {
    .nav-menu {
        position: fixed;
        padding: 4.5rem 0.5rem 1.5rem;
    }
    .nav-menu a {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }
    .hero {
        padding: 4rem 0 2rem;
    }
    .hero h1 {
        font-size: clamp(1.5rem, 9vw, 1.75rem);
    }
    .hero-subtitle {
        font-size: 0.75rem;
    }
    .hero-description {
        font-size: 0.875rem;
    }
    .hero-container {
        padding: 0 0.75rem;
    }
    section {
        padding: 2rem 0.75rem;
    }
    .service-card {
        padding: 1.25rem;
    }
    .service-icon {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    .service-card h3 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
    .service-card p {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    .service-features li {
        font-size: 0.8125rem;
    }
    .team-member {
        max-width: 100%;
    }
    .member-photo {
        width: 150px;
        height: 150px;
        margin-bottom: 1rem;
    }
    .team-member h3 {
        font-size: 1.125rem;
    }
    .member-role {
        font-size: 0.875rem;
    }
    .member-bio {
        font-size: 0.8125rem;
    }
    .tech-card {
        padding: 1.25rem;
    }
    .tech-icon {
        width: 42px;
        height: 42px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    .tech-card h3 {
        font-size: 1rem;
    }
    .tech-benefit {
        font-size: 0.8125rem;
    }
    .tech-card p {
        font-size: 0.8125rem;
    }
    .testimonial-card {
        min-width: 200px;
        padding: 1rem;
    }
    .testimonial-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .testimonial-info h4 {
        font-size: 0.9375rem;
    }
    .testimonial-treatment {
        font-size: 0.75rem;
    }
    .testimonial-text {
        font-size: 0.8125rem;
    }
    .btn {
        padding: 0.625rem 1rem;
        min-height: 44px;
        font-size: 0.875rem;
    }
    .contact-form {
        padding: 1rem;
    }
    .form-group {
        margin-bottom: 1rem;
    }
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.625rem;
        font-size: 0.875rem;
    }
    .cta-badge {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
    }
    .cta-badge-icon {
        font-size: 1.25rem;
    }
    .footer {
        padding: 2.5rem 0.75rem 1.25rem;
    }
    .footer-grid {
        gap: 1.5rem;
    }
    .footer-bottom {
        padding-top: 1.5rem;
    }
    .faq-question {
        padding: 1rem 1rem;
        font-size: 0.875rem;
    }
    .faq-item.active .faq-answer {
        padding: 0 1rem 1rem;
    }
    .faq-answer p {
        font-size: 0.875rem;
    }
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .info-icon {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
    .slider-controls {
        gap: 0.75rem;
    }
    .slider-btn {
        width: 38px;
        height: 38px;
    }
    .hero-buttons {
        gap: 0.75rem;
    }
    .logo img {
        width: 70px;
    }
    .about-features {
        gap: 1rem;
    }
    .feature-item {
        gap: 0.75rem;
    }
    .feature-icon {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* Ajustes específicos para landscape en móviles */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 4rem 0 2rem;
    }
    .hero h1 {
        font-size: clamp(1.25rem, 4vh, 1.75rem);
        margin-bottom: 0.75rem;
    }
    .hero-description {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    .hero-stats {
        margin-top: 1.5rem;
    }
    .hero-buttons {
        margin-top: 1rem;
    }
    .hero-image {
        max-width: 50%;
        margin: 0 auto;
    }
    .floating-card {
        display: none;
    }
}

/* ============================================
   PRINT — Versión imprimible
   ============================================ */
@media print {
    .header {
        position: static;
        background: white;
        box-shadow: none;
    }
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    .hero-image {
        display: none;
    }
    .floating-card {
        display: none;
    }
    .ad-root {
        display: none !important;
    }
    .mobile-toggle {
        display: none !important;
    }
    .menu-overlay {
        display: none !important;
    }
    .nav-menu {
        display: flex;
        flex-direction: row;
        position: static;
        width: auto;
        height: auto;
        background: none;
        box-shadow: none;
        padding: 0;
    }
    .nav-menu a {
        padding: 0.5rem 1rem;
        background: none;
        border: none;
        box-shadow: none;
    }
    .testimonials-slider {
        overflow: visible;
    }
    .testimonials-track {
        transform: none !important;
        flex-wrap: wrap;
    }
    .testimonial-card {
        min-width: 45%;
    }
    section {
        break-inside: avoid;
        padding: 2rem 0;
    }
    .btn {
        border: 2px solid var(--color-primary) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .btn-primary {
        border: none !important;
    }
    .service-card,
    .tech-card,
    .testimonial-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--color-neutral-300);
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   SCROLL REVEAL ANIMATION
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}/* webhook test */

/* Safe-area para la cabecera (notch / status bar) */
@supports (padding: max(0px)) {
    .header {
        padding-top: max(0px, env(safe-area-inset-top));
    }
    /* El botón flotante de chat respeta la barra inferior de iPhone */
    .ad-bubble {
        bottom: max(20px, env(safe-area-inset-bottom));
        right: max(20px, env(safe-area-inset-right));
    }
}
