/* Custom fonts */
:root {
    --color-primary: #1a1a1a;
    --color-secondary: #6b6b6b;
    --color-accent: #8c8c8c;
    --color-muted: #f8f6f3;
    --color-border: #e8e5e0;
    --color-overlay: rgba(26, 26, 26, 0.85);
    --color-white: #ffffff;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-primary);
    background-color: #fefefe;
    letter-spacing: -0.01em;
}

/* Typography */
.font-canela {
    font-family: 'Canela', serif;
    font-weight: 300;
    letter-spacing: -0.02em;
}

.font-mono {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
}

/* Text sizes */
.text-display {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    font-weight: 300;
}

.text-heading {
    font-size: clamp(1.75rem, 4vw, 3rem);
    line-height: 1.2;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.text-subheading {
    font-size: clamp(1.125rem, 2.2vw, 1.5rem);
    line-height: 1.4;
    font-weight: 300;
    color: var(--color-secondary);
    margin-bottom: 2.5rem;
}

.text-body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.text-caption {
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

/* Layout containers */
.container-premium {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 8vw;
}

.section-padding {
    padding: 12rem 0;
}

.section-light {
    background-color: var(--color-gray-50);
}

.section-intro {
    max-width: 48rem;
    margin-bottom: 4rem;
}

/* Grid layouts */
.grid-asymmetric {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 8rem;
    align-items: center;
}

.grid-asymmetric-reverse {
    grid-template-columns: 1.5fr 1fr;
}

.grid-editorial {
    display: grid;
    grid-template-columns: 0.75fr 1fr 0.75fr;
    gap: 6rem;
    align-items: start;
}

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

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

/* Navigation */
.nav-premium {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
    transition: all 0.3s ease;
    height: 64px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.nav-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid var(--color-border);
}

/* Premium navigation enhancements */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.nav-brand:hover {
    transform: scale(1.05);
}

.logo {
    height: 2rem;
    width: auto;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-scrolled .logo {
    filter: brightness(0.9);
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 3rem;
    height: 100%;
}

.nav-link {
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    height: 100%;
    margin-bottom: 0;
    position: relative;
}

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

.nav-link:hover {
    opacity: 0.7;
}

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

.nav-link.active {
    color: var(--color-primary);
    font-weight: 500;
}

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

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.logo {
    height: 2rem;
    width: auto;
    cursor: pointer;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 3rem;
    height: 100%;
}

.nav-link {
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-primary);
    text-decoration: none;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    height: 100%;
    margin-bottom: 0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 100%;
}

.nav-link:hover {
    opacity: 0.7;
}

.lang-desktop {
    display: flex;
    gap: 0.5rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--color-primary);
    cursor: pointer;
}

/* Mobile menu */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 30;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 80%;
    max-width: 24rem;
    background: var(--color-white);
    z-index: 40;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-gray-200);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-gray-600);
    cursor: pointer;
}

.mobile-nav {
    flex: 1;
    padding: 1.5rem;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 0;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.875rem;
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.mobile-lang {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-gray-200);
}

.mobile-lang-label {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    margin-bottom: 0.75rem;
}

.mobile-lang-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Hero section */
.hero-premium {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.7) 0%,
        rgba(26, 26, 26, 0.4) 50%,
        rgba(26, 26, 26, 0.6) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 50%;
    padding-left: 8vw;
}

.hero-title {
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.hero-description {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 32rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Enhanced Service Cards - Modern & Distinct */
.service-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2.5rem;
    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: 4px;
    height: 0;
    background: linear-gradient(to bottom, var(--color-accent), var(--color-gray-400));
    transition: height 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px) rotateX(2deg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: transparent;
    border: 2px solid var(--color-gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

.service-card:hover .service-icon {
    border-color: var(--color-accent);
    background: var(--color-accent);
    transform: scale(1.1) translateY(-2px);
}

.service-icon i {
    color: var(--color-gray-500);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon i {
    color: var(--color-white);
    transform: scale(1.05);
}

.service-title {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
    font-weight: 400;
    position: relative;
    padding-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.service-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.service-card:hover .service-title::after {
    width: 50%;
}

.service-description {
    color: var(--color-gray-600);
    line-height: 1.7;
    font-weight: 300;
}

/* Enhanced Why Panama section */
.why-panama-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}
/* Responsive adjustments for Why Panama grid */
@media (max-width: 1200px) {
    .why-panama-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    .advantage-card {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .why-panama-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .advantage-card {
        padding: 1.75rem;
    }
    .advantage-title {
        font-size: 1.25rem;
    }
    .advantage-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .why-panama-grid {
        gap: 1rem;
    }
    .advantage-icon {
        width: 3.5rem;
        height: 3.5rem;
    }
}

.advantage-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.12);
    border-color: var(--color-gray-300);
}

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

.advantage-icon {
    width: 4rem;
    height: 4rem;
    background: var(--color-gray-50);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.advantage-card:hover .advantage-icon {
    background: var(--color-primary);
    transform: scale(1.05);
}

.advantage-icon i {
    font-size: 1.5rem;
    color: var(--color-gray-600);
    transition: color 0.3s ease;
}

.advantage-card:hover .advantage-icon i {
    color: var(--color-white);
}

.advantage-title {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.advantage-description {
    color: var(--color-gray-600);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.collapsible-card.expanded .advantage-description {
    margin-bottom: 2.5rem;
}

/* Collapsible advantage cards */
.collapsible-card {
    cursor: pointer;
    position: relative;
    padding: 2rem;
    transition: box-shadow 0.3s ease;
}

.advantage-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.advantage-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.advantage-card-toggle {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gray-50);
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.advantage-card-toggle i {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    transition: transform 0.3s ease;
}

.collapsible-card:hover .advantage-card-toggle {
    background: var(--color-primary);
}

.collapsible-card:hover .advantage-card-toggle i {
    color: var(--color-white);
}

.advantage-highlight {
    margin-bottom: 1rem;
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.3s ease;
    opacity: 0;
    padding: 0 0 0 0;
}

.collapsible-card.expanded .collapsible-content {
    max-height: 500px;
    opacity: 1;
    padding: 1rem 0 2.5rem 0;
}

.advantage-card-toggle {
    transition: transform 0.3s ease;
}

.collapsible-card.expanded .advantage-card-toggle i {
    transform: rotate(180deg);
}

/* Adjust icon positioning for collapsible cards */
.collapsible-card .advantage-icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

.advantage-title {
    margin: 0;
    font-size: 1.25rem;
}

/* Ensure smooth transitions for description */
.advantage-description {
    margin: 0;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.advantage-highlight {
    padding: 0.75rem 1rem;
    background: var(--color-gray-50);
    border-radius: 6px;
    border-left: 3px solid var(--color-gray-400);
}

.highlight-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-700);
    font-family: 'IBM Plex Mono', monospace;
}

.why-panama-cta {
    text-align: center;
    margin-top: 3rem;
}

.why-panama-cta .btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
}

.why-panama-cta .btn-premium i {
    transition: transform 0.3s ease;
}

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

/* Feature list */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.feature-item i {
    color: var(--color-gray-400);
    margin-top: 0.25rem;
}

.about-image {
    width: 100%;
    height: 24rem;
    object-fit: cover;
}

/* Testimonials */
.testimonial-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 3rem;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    color: var(--color-accent);
    opacity: 0.3;
    font-family: 'Canela', serif;
}

.testimonial-text {
    color: var(--color-gray-700);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 3rem;
    height: 3rem;
    background: var(--color-gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-600);
    font-weight: 600;
}

.author-name {
    font-weight: 600;
}

.author-title {
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

/* Contact section */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.contact-item i {
    color: var(--color-gray-400);
    margin-top: 0.25rem;
}

.contact-label {
    font-weight: 600;
}

.contact-value {
    color: var(--color-gray-600);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-700);
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-gray-300);
    transition: border-color 0.3s ease;
    font-family: inherit;
    font-size: 1rem;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-gray-500);
}

.form-textarea {
    resize: vertical;
    min-height: 6rem;
}

/* Premium Micro-interactions */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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

/* Enhanced hover effects for service cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::after {
    left: 100%;
}

/* Premium text selection */
::selection {
    background: var(--color-primary);
    color: var(--color-white);
}

::-moz-selection {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Smooth scrolling enhancement */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Premium focus styles */
:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Enhanced form elements */
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

/* Premium loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

/* Enhanced animations */
.animate-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Premium gradient backgrounds */
.gradient-premium {
    background: linear-gradient(135deg, var(--color-gray-900) 0%, var(--color-gray-700) 50%, var(--color-gray-800) 100%);
}

.gradient-subtle {
    background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-white) 50%, var(--color-muted) 100%);
}

/* Enhanced shadows */
.shadow-premium {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.shadow-premium-hover:hover {
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.15);
}

/* Premium border radius */
.radius-premium {
    border-radius: 12px;
}

.radius-large {
    border-radius: 16px;
}

/* Enhanced typography */
.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Premium spacing utilities */
.spacing-premium {
    padding: 6rem 0;
}

.spacing-large {
    padding: 8rem 0;
}

/* Enhanced mobile menu */
.mobile-menu {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.98);
}

/* Footer */
.footer-premium {
    background: var(--color-gray-900);
    color: var(--color-white);
    padding: 4rem 0;
}

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

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    height: 2rem;
    width: auto;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--color-gray-400);
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--color-gray-400);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid var(--color-gray-800);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--color-gray-400);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

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

.modal-content {
    background: var(--color-white);
    border-radius: 0.5rem;
    padding: 2rem;
    max-width: 42rem;
    width: 100%;
    margin: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay:not(.hidden) .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-gray-500);
    cursor: pointer;
    transition: color 0.3s ease;
}

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

/* Calendly Modal Specific Styles */
.calendly-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
    transition: opacity 0.3s ease;
}

.calendly-modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.calendly-modal-content {
    background: var(--color-white);
    border-radius: 0.75rem;
    width: 90%;
    max-width: 1000px;
    height: 90vh;
    max-height: 700px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.calendly-modal-header {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-white);
    z-index: 10;
}

.calendly-modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--color-gray-500);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
}

.calendly-modal-close:hover {
    background: var(--color-gray-100);
    color: var(--color-primary);
}

.calendly-inline-widget {
    flex: 1;
    min-width: 320px;
    height: 100%;
    width: 100%;
}

/* Responsive Calendly Modal */
@media (max-width: 768px) {
    .calendly-modal-content {
        width: 95%;
        height: 95vh;
        max-height: none;
        border-radius: 0.5rem;
    }
    
    .calendly-modal-header {
        padding: 0.75rem;
    }
    
    .calendly-modal-close {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .calendly-modal-content {
        width: 100%;
        height: 100vh;
        max-height: none;
        border-radius: 0;
    }
    
    .calendly-modal-header {
        padding: 1rem;
        border-bottom: 1px solid var(--color-gray-200);
    }
}

/* Buttons */
.btn-premium {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 3rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    background: var(--color-primary);
    color: var(--color-white);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border-radius: 4px;
}

.btn-premium::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.6s ease;
    z-index: 1;
}

.btn-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover::after {
    transform: scaleX(1);
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.btn-premium span {
    position: relative;
    z-index: 2;
}

.btn-premium i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

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

.btn-outline {
    border: 2px solid var(--color-gray-300);
    background: transparent;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-outline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -2;
}

.btn-outline:hover::before {
    left: 0;
}

.btn-outline:hover {
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(220, 220, 220, 0.2);
    border-color: var(--color-gray-800);
}

/* Light background outline button for sections */
.btn-outline.btn-light {
    border-color: var(--color-gray-300);
    color: var(--color-primary);
}

.btn-outline.btn-light:hover {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-full {
    width: 100%;
}

/* Premium button variants for different sections */
.btn-premium.btn-dark {
    background: var(--color-gray-900);
    border-color: var(--color-gray-900);
}

.btn-premium.btn-dark:hover {
    background: var(--color-gray-800);
    border-color: var(--color-gray-800);
}

.btn-premium.btn-accent {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.btn-premium.btn-accent:hover {
    background: var(--color-gray-700);
    border-color: var(--color-gray-700);
}

/* Language toggle */
.lang-toggle-premium {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-secondary);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    cursor: pointer;
}

.lang-toggle-premium.active {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

.animate-reveal {
    animation: reveal 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-reveal-delay-1 { animation-delay: 0.2s; }
.animate-reveal-delay-2 { animation-delay: 0.4s; }
.animate-reveal-delay-3 { animation-delay: 0.6s; }

/* Hover effects */
.hover-opacity {
    transition: opacity 0.3s ease;
}

.hover-opacity:hover {
    opacity: 0.7;
}

/* Utility classes */
.hidden {
    display: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-muted);
}

::-webkit-scrollbar-thumb {
    background: var(--color-secondary);
    border-radius: 3px;
}

/* Medium screen optimization (13-15 inch laptops) */
@media (max-width: 1400px) {
    .container-premium {
        max-width: 1200px;
        padding: 0 4vw;
    }
    
    .section-padding {
        padding: 8rem 0;
    }
    
    .hero-premium {
        height: 100vh;
        min-height: 600px;
    }
    
    .hero-content {
        max-width: 55%;
        padding-left: 4vw;
    }
    
    .grid-asymmetric {
        gap: 5rem;
    }
    
    .grid-asymmetric-reverse {
        gap: 5rem;
    }
    
    .grid-editorial {
        gap: 4rem;
    }
}

@media (max-width: 1200px) {
    .container-premium {
        max-width: 1000px;
        padding: 0 3vw;
    }
    
    .section-padding {
        padding: 7rem 0;
    }
    
    .hero-premium {
        height: 100vh;
        min-height: 550px;
    }
    
    .hero-content {
        max-width: 60%;
        padding-left: 3vw;
    }
    
    .grid-asymmetric,
    .grid-asymmetric-reverse {
        gap: 4rem;
    }
    
    .grid-editorial {
        gap: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1.5rem;
    }
}

/* Tablet-specific optimization (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .container-premium {
        max-width: 100%;
        padding: 0 3rem;
    }
    
    .section-padding {
        padding: 5rem 0;
    }
    
    /* Optimize grid layouts for tablet screens */
    .grid-asymmetric,
    .grid-asymmetric-reverse {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: left;
    }
    
    .grid-editorial {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* Adjust hero section for tablet aspect ratios */
    .hero-premium {
        height: 100vh;
        min-height: 768px;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 6rem 4vw 0;
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }
    
    /* Optimize service cards for tablet touch targets */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .service-card {
        padding: 2rem;
        min-height: 280px;
    }
    
    /* Optimize testimonials for tablet reading */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .testimonial-card {
        padding: 2.5rem;
        max-width: 600px;
        margin: 0 auto;
    }
    
    /* Ensure navigation is tablet-friendly */
    .nav-desktop {
        gap: 2rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0 0.5rem;
    }
    
    /* Optimize text scaling for tablet readability */
    .text-display {
        font-size: clamp(2rem, 5vw, 3.5rem);
    }
    
    .text-heading {
        font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    }
    
    .text-subheading {
        font-size: clamp(1rem, 2vw, 1.25rem);
    }
    
    /* Ensure buttons are touch-friendly on tablets */
    .btn-premium {
        min-height: 48px;
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
    }
}

/* Tablet and smaller screens (original breakpoint) */
@media (max-width: 978px) {
    .container-premium {
        padding: 0 5vw;
    }
    
    .section-padding {
        padding: 6rem 0;
    }
    
    .grid-asymmetric,
    .grid-asymmetric-reverse {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .grid-editorial {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        max-width: 100%;
        padding-left: 5vw;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-desktop,
    .lang-desktop {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 100%;
        max-width: none;
    }
    
    .hero-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
    
    .hero-premium {
        height: 100vh;
        min-height: 450px;
    }
}

    /* WhatsApp Button */
    .whatsapp-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: #25D366;
        color: white;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 30px;
        cursor: pointer;
        z-index: 1000;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        transition: transform 0.3s ease;
        text-decoration: none;
    }

    .whatsapp-button:hover {
        transform: scale(1.1);
    }

    @media (max-width: 768px) {
        .whatsapp-button {
            width: 50px;
            height: 50px;
            font-size: 24px;
            bottom: 15px;
            right: 15px;
        }
    }
/* Form submission success message */
.success-message {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 0.5rem;
    color: #155724;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.success-message.show {
    opacity: 1;
    transform: translateY(0);
}

#submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background-color: #6c757d !important;
    transform: none;
}

#submit-btn.sending {
    background-color: #007bff !important;
}
.btn-premium i.fa-check {
    margin-right: 0.5rem;
}