:root {
    --color-primary: #8B5A6B;
    --color-primary-light: #B08293;
    /* Lighter and more pastel */
    --color-primary-dark: #8B5A6B;
    /* Changed to match primary as requested */
    /* Adjusted for smoother gradient */
    --color-accent: #D4A574;
    --color-accent-dark: #B08355;
    /* Darker sand color */
    --color-accent-light: #E8C9A8;
    --color-bg: #FDFBF9;
    --color-bg-alt: #F7F3EF;
    --color-text: #3D3D3D;
    --color-text-light: #6B6B6B;
    --color-white: #FFFFFF;
    --color-border: #E8E0D8;

    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Outfit', sans-serif;
    --font-credentials: 'Outfit', sans-serif;

    --shadow-sm: 0 2px 8px rgba(139, 90, 107, 0.08);
    --shadow-md: 0 4px 20px rgba(139, 90, 107, 0.12);
    --shadow-lg: 0 8px 40px rgba(139, 90, 107, 0.15);

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

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    font-size: 16px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
}

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

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

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

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
    font-size: 1rem;
    color: var(--color-text-light);
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-xl);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    box-shadow: var(--shadow-sm);
}

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

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

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

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

.btn-whatsapp {
    background: #25D366;
    color: var(--color-white);
}

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

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: row !important;
    /* Force side-by-side */
    align-items: flex-end;
    /* Align bottom */
    gap: 15px;
    z-index: 1000;
}

.float-btn {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Spring effect */
}

.float-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.3);
    color: white;
}

.whatsapp-float {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 30px;
    background-color: #C492B1;
    /* Soft Purple */
    flex-shrink: 0;
    /* Prevent shrinking */
    animation: pulsePurple 3s infinite;
}

.whatsapp-float:hover {
    background-color: #b07a9d;
    animation: none;
    /* Stop pulse on hover */
}

.call-float {
    height: 50px;
    /* Slightly smaller height for the pill */
    width: auto;
    /* Allow growth */
    background-color: var(--color-primary-dark);
    /* Dark Purple */
    border-radius: 25px;
    /* Pill shape */
    padding: 0 25px;
    font-size: 14px;
    font-weight: 700;
    /* Bold */
    letter-spacing: 0.5px;
    gap: 10px;
    white-space: nowrap;
    /* Prevent text overflow */
    margin-bottom: 5px;
    /* Align visually with the circle center if needed, or remove if using flex-end */
    animation: pulseDark 3s infinite;
    animation-delay: 1.5s;
    /* Alternate with whatsapp */
}

.call-float i {
    font-size: 16px;
}

.call-float:hover {
    background-color: #4a2c35;
    animation: none;
}

/* Animations */
@keyframes pulsePurple {
    0% {
        box-shadow: 0 0 0 0 rgba(196, 146, 177, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(196, 146, 177, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(196, 146, 177, 0);
    }
}

@keyframes pulseDark {
    0% {
        box-shadow: 0 0 0 0 rgba(94, 56, 68, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(94, 56, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(94, 56, 68, 0);
    }
}

/* Responsive adjustments for floating buttons */
@media (max-width: 768px) {
    .floating-buttons {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
    }

    .call-float {
        height: 45px;
        padding: 0 20px;
        font-size: 13px;
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(253, 251, 249, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    padding: 4px 0;
    transition: var(--transition);
}

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

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

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

.logo img {
    height: 60px;
    /* Adjusted to 60px */
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.5));
}

@media (max-width: 768px) {
    .logo img {
        height: 60px;
        /* Adjusted to 60px */
    }
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text);
    transition: var(--transition);
    position: relative;
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--color-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-primary);
    cursor: pointer;
    z-index: 1001;
    /* Above menu */
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        padding-bottom: 40px;
        /* Space for the button */
    }

    .nav.active {
        transform: translateY(0);
    }

    .nav-link {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--color-text);
    }

    .nav-btn {
        display: block !important;
        /* Force show button in menu */
        margin-top: 20px;
        width: 80%;
        /* Wider button on mobile */
        text-align: center;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(212, 165, 116, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-accent-light);
    color: var(--color-primary-dark);
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.hero-title {
    color: var(--color-text);
    margin-bottom: 16px;
}

.hero-title span {
    color: var(--color-primary);
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 32px;
    max-width: 500px;
}

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

.hero-credentials {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-light);
}

.credential-item {
    display: inline-block;
}

.credential-item.name {
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
}

.credential-item:not(:last-child)::after {
    content: "•";
    margin: 0 10px;
    color: var(--color-primary-light);
}

@media (max-width: 768px) {
    .hero-credentials {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .credential-item {
        display: block;
    }

    .credential-item:not(:last-child)::after {
        display: none;
    }
}

.hero-image {
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid var(--color-accent);
    border-radius: var(--radius-xl);
    z-index: -1;
}

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

.hero-image-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    text-align: center;
    padding: 40px;
}

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

.section-alt {
    background: var(--color-bg-alt);
    box-shadow: inset 0 0 30px rgba(139, 90, 107, 0.05);
}

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

.section-label {
    display: inline-block;
    font-size: 28px;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-title {
    color: var(--color-text);
    margin-bottom: 16px;
}

.section-description {
    font-size: 1.125rem;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    padding: 60px 40px;
    border-radius: var(--radius-xl);
    text-align: center;
    color: white;
    margin-bottom: 100px;
    box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
    margin-bottom: 16px;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    font-size: 1.125rem;
}

.cta-phones {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.cta-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 600;
}

.cta-phone i {
    font-size: 1.5rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Reduced min-width for better mobile fit */
    gap: 32px;
}

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

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

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-icon i {
    font-size: 28px;
    color: var(--color-primary-dark);
}

.service-card h3 {
    margin-bottom: 16px;
    color: var(--color-text);
}

.service-list {
    list-style: none;
}

.service-list li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--color-text-light);
}

.service-list li i {
    color: var(--color-primary);
    margin-top: 4px;
}

/* Expertise Cards */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.expertise-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.expertise-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.expertise-card i,
.expertise-card .fi {
    font-size: 40px;
    color: var(--color-primary);
    margin-bottom: 20px;
    display: inline-block;
    /* Ensure proper rendering */
}

.expertise-card h4 {
    margin-bottom: 12px;
    color: var(--color-accent-dark);
}

.expertise-card p {
    font-size: 0.9375rem;
}

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

.about-text h2 {
    margin-bottom: 24px;
}

.about-text p {
    margin-bottom: 24px;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.highlight-item i {
    color: var(--color-primary);
    font-size: 20px;
    margin-top: 2px;
}

.highlight-item span {
    font-weight: 500;
}

.about-image {
    position: relative;
}

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

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--color-bg-alt), var(--color-border));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: 1.125rem;
}

/* Credentials Section */
.credentials-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.credentials-box {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.credentials-box h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--color-primary);
}

.credentials-list {
    list-style: none;
}

.credentials-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

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

.credentials-list li i {
    color: var(--color-accent);
    margin-top: 4px;
}

.cedula-number {
    font-family: var(--font-credentials);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Differentiators */
.differentiators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.differentiator-card {
    background: linear-gradient(135deg, var(--color-white), var(--color-bg-alt));
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    border: 2px solid var(--color-accent-light);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.differentiator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.differentiator-card i {
    font-size: 48px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.differentiator-card h4 {
    margin-bottom: 12px;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

/* Removed .testimonial-card::before quote icon */

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

.testimonial-stars {
    color: #FFB800;
    margin-bottom: 16px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 24px;
    font-size: 1.0625rem;
}

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

.testimonial-avatar {
    width: 48px;
    height: 48px;
    background: var(--color-accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-weight: 600;
    flex-shrink: 0;
    /* Ensures it stays circular and isn't compressed */
}

.testimonial-name {
    font-weight: 600;
    color: var(--color-text);
}

.testimonial-source {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* Locations */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.location-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.location-header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    padding: 24px 32px;
}

.location-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.card-location-logo {
    height: 60px;
    width: 100px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    /* Hace que los logos se vean blancos para combinar con el fondo oscuro */
}

.poligono-logo {
    height: 48px !important;
    /* Slightly smaller than 60px */
    width: auto !important;
}

.location-header h3 {
    margin-bottom: 8px;
}

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

.location-body {
    padding: 32px;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.location-item i {
    color: var(--color-primary);
    font-size: 20px;
    margin-top: 2px;
}

.location-item strong {
    display: block;
    margin-bottom: 4px;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-white);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    padding: 24px 32px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--color-text);
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-question i {
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

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

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 32px 24px;
    color: var(--color-text-light);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary-dark));
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

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

.footer-social a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

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

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: white;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

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

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-credentials {
    font-family: var(--font-credentials);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
}

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

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-description {
        margin: 0 auto 32px;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-credentials {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .credentials-container {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 24px;
        box-shadow: var(--shadow-md);
    }

    .nav.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding-top: 100px;
    }

    .section {
        padding: 60px 0;
    }

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

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

    .cta-phones {
        flex-direction: column;
        gap: 16px;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .card-location-logo {
        height: 45px;
        width: auto;
    }

    .biogamma-logo {
        height: 70px !important;
        width: auto !important;
    }

    .poligono-logo {
        height: 32px !important;
        /* Reduced by ~30% from base 45px */
        width: auto !important;
    }

    .location-header h3 {
        font-size: 1.2rem;
    }

    .location-header p {
        font-size: 0.85rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }

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

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

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

/* Booking Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(61, 61, 61, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--color-white);
    width: 90%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-text-light);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--color-primary);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-header h3 {
    color: var(--color-primary);
    margin-bottom: 8px;
    font-size: 1.75rem;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(139, 90, 107, 0.1);
}



/* Custom Icons */
.custom-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
    object-fit: contain;
    filter: invert(42%) sepia(13%) saturate(1453%) hue-rotate(293deg) brightness(91%) contrast(87%);
    /* Matches #8B5A6B */
}

/* Location Buttons */
.location-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 450px;
    /* Reduced from 600px */
    margin: 30px auto;
    width: 100%;
}

.location-btn {
    display: flex;
    flex-direction: row;
    /* Horizontal layout */
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-primary);
    color: white;
    padding: 8px 16px 8px 12px;
    border-radius: 50px;
    /* Pill shape */
    text-decoration: none;
    transition: var(--transition);
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 340px;
    margin: 0 auto 15px;
    height: 70px;
    position: relative;
    gap: 15px;
}

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

/* Add phone icon circle */
.location-btn::after {
    content: '\f095';
    /* FontAwesome Phone */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    background: rgba(255, 255, 255, 0.2);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.location-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center horizontally in its box if slightly wider */
    width: auto;
    max-width: 90px;
    height: 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    padding-right: 12px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.location-logo img {
    display: block;
    max-height: 35px !important;
    /* Limit height */
    width: auto;
    margin-bottom: 0;
}

.location-text {
    width: auto;
    text-align: left;
    padding-left: 0;
    font-weight: 600;
    font-size: 0.8rem;
    /* Slightly larger than mobile 0.75rem */
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

@media (max-width: 480px) {

    /* Mobile-specific tweaks only (if any remain) */
    .location-text {
        font-size: 0.75rem;
    }

    .location-text span:first-child {
        display: none;
    }
}

/* Testimonial Infinite Scroll (Marquee) */
.testimonials-slider-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0 60px;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.testimonials-track {
    display: flex;
    width: max-content;
    gap: 30px;
    transform: translateX(0);
    cursor: grab;
}

.testimonials-track:active {
    cursor: grabbing;
}

.testimonial-slide {
    width: 400px;
    /* Fixed width for cards */
    min-width: 400px;
    flex-shrink: 0;
    padding: 0;
    /* Internal padding handled by card */
}

.testimonial-slide .testimonial-card {
    height: 100%;
    background: white;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--color-border);
}

/* Hide controls for infinite scroll */
.slider-controls {
    display: none;
}

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

    100% {
        transform: translateX(-50%);
        /* Move half way (assuming 2 sets of slides) */
    }
}

@media (max-width: 768px) {
    .testimonial-slide {
        width: 300px;
        /* Slightly smaller on mobile */
        min-width: 300px;
    }

    .testimonial-slide .testimonial-card {
        padding: 20px;
    }

    .testimonials-track {
        gap: 40px;
        /* Increased gap for mobile */
    }
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--color-accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-weight: 600;
    flex-shrink: 0;
    margin-right: 15px;
}

.author-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Adjust section header margin specifically for testimonials */
#testimonios .section-header {
    margin-bottom: 20px;
}

/* Oncological Experience Section */
.oncology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.oncology-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.oncology-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.oncology-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 24px;
    box-shadow: var(--shadow-sm);
}

.oncology-icon.accent-icon {
    background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
    color: var(--color-primary-dark);
}

.oncology-card h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    line-height: 1.3;
}

.oncology-text {
    color: var(--color-text-light);
    margin-bottom: 24px;
    font-size: 1.0625rem;
}

.oncology-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: var(--color-bg-alt);
    color: var(--color-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.tag:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.specialist-badge {
    background: rgba(212, 165, 116, 0.15);
    /* Accent color transparent */
    color: var(--color-accent-dark);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid var(--color-accent);
}

.doctors-list {
    list-style: none;
    margin-bottom: 24px;
    background: var(--color-bg);
    padding: 20px;
    border-radius: var(--radius-md);
}

.doctors-list li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 12px 0;
    color: var(--color-text);
    border-bottom: 1px dashed var(--color-border);
}

.doctor-info {
    display: flex;
    flex-direction: column;
}

.doctor-info strong {
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.doctor-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-bg-alt);
    box-shadow: var(--shadow-sm);
}

.doctor-info strong a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.doctor-info strong a:hover {
    color: var(--color-primary-dark);
}

.doctor-info strong i {
    font-size: 0.9em;
    margin-left: 5px;
    color: #0077b5;
    /* LinkedIn Color */
}

.doctor-info strong i.fa-search {
    color: var(--color-text-light);
}

.doctor-desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-left: 44px;
    /* Align with text (32px + 12px gap) */
}

.enzian-badge {
    background: var(--color-primary-dark);
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .oncology-grid {
        grid-template-columns: 1fr;
    }

    /* Credentials Logos Grid */
}

/* Credentials Logos Grid */
.credentials-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* slightly reduced for better fit */
    gap: 30px;
    margin-top: 40px;
    /* Removed align-items: center to allow grid items to stretch to equal height */
}

.credential-logo-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Center content vertically */
    text-align: center;
    transition: var(--transition);
    height: 100%;
    /* Ensure full height filling */
}

.credential-logo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
}

.credential-logo-card h4 {
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--color-text);
}

.membership-no {
    margin-top: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
}

.logo-box {
    height: 80px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

/* CSS Logos (Placeholders matching branding) */

/* MFM Logo */
.mfm-logo {
    gap: 10px;
}

.mfm-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid #F59E0B;
    /* Orange */
    border-bottom-color: transparent;
    transform: rotate(-45deg);
}

.mfm-text span {
    font-size: 0.7rem;
    color: #555;
    font-weight: 500;
}

/* MFB Logo */
.mfb-logo {
    background: #f8f8f8;
    padding: 10px;
    border-radius: 5px;
    gap: 10px;
}

.mfb-icon {
    font-size: 3rem;
    color: #0EA5E9;
    /* Light Blue */
    font-family: serif;
    line-height: 0.5;
    margin-top: 10px;
}

.mfb-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.mfb-text span {
    font-size: 0.7rem;
    color: #666;
    letter-spacing: 1px;
}

.mfb-text strong {
    font-size: 1rem;
    color: #0EA5E9;
}

/* LASUS Logo */
.lasus-logo {
    background: #6D28D9;
    /* Purple */
    border-radius: 4px;
}

.lasus-logo span {
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

/* ISUOG Logo */
.isuog-logo {
    gap: 5px;
}

.isuog-icon i {
    font-size: 2rem;
    color: #d1d1d1;
}

.isuog-text {
    font-size: 2rem;
    font-weight: 700;
    color: #DC2626;
    /* Red */
    font-family: sans-serif;
    letter-spacing: -1px;
}

.oncology-card {
    padding: 30px 20px;
}

.oncology-card-header {
    flex-direction: column;
    text-align: center;
}

.oncology-card h3 {
    font-size: 1.25rem;
}

.oncology-tags {
    justify-content: center;
}

.oncology-text {
    text-align: center;
}

.location-map {
    margin: 20px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.location-map iframe {
    width: 100%;
    height: 250px;
    border: 0;
    display: block;
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.9375rem;
    min-height: 44px;
}

/* New Special Grid for 'Why Choose Me' inside section header */
.why-choose-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0 20px;
    /* Reduced bottom margin to bring next section closer */
    text-align: left;
    /* Reset alignment because usually headers are centered */
}

.why-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Soft premium shadow */
    border: 1px solid rgba(139, 90, 107, 0.1);
    /* Subtle primary color border */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(139, 90, 107, 0.15);
    border-color: rgba(139, 90, 107, 0.3);
}

.why-icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-white));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    color: var(--color-primary);
    font-size: 1.5rem;
    box-shadow: inset 0 0 10px rgba(139, 90, 107, 0.1);
}

.why-card h4 {
    font-family: var(--font-display);
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.why-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Mobile specific */
@media (max-width: 768px) {
    .why-choose-content {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0 20px;
    }
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
    aspect-ratio: 1 / 1;
    /* Square images for grid consistency */
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Certificate Slider (Infinite) */
.cert-slider-container {
    position: relative;
    width: 100%;
    margin: 40px auto;
    overflow: hidden;
    padding: 20px 0;
    /* Optional mask for fade effect on edges */
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.cert-track {
    display: flex;
    width: max-content;
    gap: 30px;
    animation: scrollCertificates 40s linear infinite;
}

.cert-track:hover {
    animation-play-state: paused;
}

.cert-slide {
    width: 300px;
    /* Fixed width for consistency */
    height: 300px;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 2px solid var(--color-border);
}

.cert-slide:hover {
    transform: scale(1.05);
    border-color: var(--color-primary-light);
}

.cert-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes scrollCertificates {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Ensure we have enough clones */
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius-md);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--color-primary-light);
}