/* ==========================================================================
   CSS CUSTOM VARIABLES: Dark Luxury Theme - Púrpura/Dorado
   ========================================================================== */
:root {
    /* Backgrounds */
    --bg-primary: #000000;
    --bg-secondary: #09090B;
    --bg-tertiary: #18181B;

    /* Primary Accent (Purple #A855F7 & Gold interactions) */
    --primary-50: #f5f3ff;
    --primary-100: #ede9fe;
    --primary-200: #ddd6fe;
    --primary-300: #c4b5fd;
    --primary-400: #c084fc;
    --primary-500: #A855F7;
    /* Main Accent Requested */
    --primary-600: #9333ea;
    --primary-700: #7e22ce;
    --primary-800: #6b21a8;
    --primary-900: #581c87;

    /* Variables para uso en RGBA (A855F7 es 168, 85, 247) */
    --primary-rgb: 168, 85, 247;

    /* Secondary Accent (Gold) for contrast */
    --gold: #D4AF37;
    --gold-rgb: 212, 175, 55;

    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #E4E4E7;
    --text-tertiary: #A1A1AA;
    --text-quaternary: #71717A;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    position: relative;
}

h1,
h2,
h3,
.section-label,
.metric-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

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

ul {
    list-style: none;
}

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

.section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
.hero-title {
    font-size: clamp(3rem, 5vw, 4.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-subtitle,
.section-subtitle,
.section-subtitle-center {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.section-subtitle-center {
    max-width: 600px;
    margin: 0 auto 48px;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 12px;
}

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

.glow-text {
    background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        0 0 10px rgba(var(--primary-rgb), 0.5),
        0 0 20px rgba(var(--primary-rgb), 0.3);
}

/* ==========================================================================
   BUTTONS & CTAs
   ========================================================================== */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-500) 30%, var(--primary-400) 60%, var(--primary-500) 100%);
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
    color: #ffffff;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow:
        0 0 0 1px rgba(var(--primary-rgb), 0.4),
        0 4px 24px rgba(var(--primary-rgb), 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.1);
    box-shadow:
        0 0 0 2px rgba(var(--primary-rgb), 0.8),
        0 8px 40px rgba(var(--primary-rgb), 0.6);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.pulse-glow {
    animation: pulse-glow-anim 3s ease-in-out infinite;
}

/* ==========================================================================
   GLASSMORPHISM
   ========================================================================== */
.glass-card {
    background: linear-gradient(135deg,
            rgba(var(--primary-rgb), 0.08) 0%,
            rgba(var(--primary-rgb), 0.03) 50%,
            rgba(var(--primary-rgb), 0.08) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: 20px;
    padding: 32px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.3),
        0 2px 4px -2px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(var(--primary-rgb), 0.35);
    box-shadow: 0 25px 50px -12px rgba(var(--primary-rgb), 0.35);
    transform: translateY(-4px);
}

.glow-primary {
    filter: drop-shadow(0 0 20px rgba(var(--primary-rgb), 0.4)) drop-shadow(0 0 40px rgba(var(--primary-rgb), 0.2));
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    padding: 16px 0;
}

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

.logo img {
    height: 115px;
    width: auto;
    display: block;
    transform: scale(1.8);
    transform-origin: left center;
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

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

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

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

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    transition: right 0.4s ease;
}

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

.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 600;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
}

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

.label-top {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-300);
    margin-bottom: 24px;
}

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

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    width: 100%;
    max-width: 500px;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ==========================================================================
   METRICS SECTION
   ========================================================================== */
.metrics-section {
    padding: 60px 0;
    background: linear-gradient(to right, transparent, rgba(var(--primary-rgb), 0.05), transparent);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.metric-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(var(--gold-rgb), 0.4);
}

.metric-label {
    color: var(--text-tertiary);
    font-weight: 500;
}

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

.about-visual.masonry-vertical {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.rounded-image {
    border-radius: 24px;
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Modificador para altura de imágenes en sobre mi */
.rounded-image.portrait {
    aspect-ratio: 4/5;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 30px;
}

.social-icon {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--primary-500);
    border-color: var(--primary-500);
}

/* ==========================================================================
   CERTIFICATIONS SECTION
   ========================================================================== */
.certifications-section {
    padding: 80px 0 40px;
    background: linear-gradient(to right, transparent, rgba(var(--primary-rgb), 0.05), transparent);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.certifications-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    margin-top: 40px;
}

.cert-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px;
    height: 140px;
    width: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(var(--primary-rgb), 0.3);
}

.cert-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.3s ease;
}

/* Ajustes específicos de tamaño para balance visual */
.cfia-card img {
    transform: scale(1.5);
}

.civiles-card img {
    transform: scale(1.1);
}

.icv-card img {
    transform: scale(1.2);
}

.cacr-card img {
    transform: scale(0.75);
}

/* ==========================================================================
   SERVICES (EXPAND CARDS)
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card-expand {
    position: relative;
    overflow: hidden;
    padding: 0;
    height: 420px;
    border-radius: 20px;
    cursor: pointer;
    background-color: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-expand:hover .service-image,
.service-card-expand.expanded .service-image {
    transform: scale(1.1);
}

.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 24px 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 60%, transparent 100%);
    transform: translateY(calc(100% - 90px));
    /* Deja visible solo el título */
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-expand:hover .service-content,
.service-card-expand.expanded .service-content {
    transform: translateY(0);
}

.service-title {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    height: 50px;
    display: flex;
    align-items: center;
}

.service-details {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.service-card-expand:hover .service-details,
.service-card-expand.expanded .service-details {
    opacity: 1;
    transform: translateY(0);
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    font-size: 0.75rem;
    padding: 6px 12px;
    background: rgba(var(--primary-rgb), 0.15);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 20px;
    color: var(--text-primary);
}

/* ==========================================================================
   SHOWCASE / PORTFOLIO
   ========================================================================== */
.showcase-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    margin-top: 40px;
    padding-bottom: 20px;
}

/* Custom scrollbar para que el usuario sepa que puede deslizar */
.showcase-grid::-webkit-scrollbar {
    height: 8px;
}
.showcase-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}
.showcase-grid::-webkit-scrollbar-thumb {
    background: var(--primary-500);
    border-radius: 4px;
}
.showcase-grid::-webkit-scrollbar-thumb:hover {
    background: var(--primary-400);
}

.showcase-card {
    flex: 0 0 calc(50% - 15px);
    padding: 0;
    overflow: hidden;
    scroll-snap-align: start;
}

.showcase-image-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.showcase-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.showcase-card:hover .showcase-image-wrapper img {
    transform: scale(1.05);
}

.showcase-info {
    padding: 24px;
}

.showcase-info h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--gold);
}

.showcase-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rating {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.quote {
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 24px;
    flex-grow: 1;
}

.author strong {
    display: block;
    color: #fff;
    font-size: 1.1rem;
}

.author span {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.cta-section {
    padding: 120px 0;
}

.cta-container {
    position: relative;
    background: var(--bg-secondary);
    border-radius: 32px;
    padding: 80px 40px;
    text-align: center;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    overflow: hidden;
}

.cta-gradient-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(var(--primary-rgb), 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.cta-button {
    font-size: 1.1rem;
    padding: 20px 40px;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 1;
    text-align: left;
}

.form-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.form-row input,
.form-row textarea {
    flex: 1;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(var(--primary-rgb), 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-input::placeholder {
    color: var(--text-tertiary);
}

.form-input:focus {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

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

.form-submit-btn {
    width: 100%;
    margin-top: 10px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0 30px;
}

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

.footer-logo {
    height: 200px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-tertiary);
    max-width: 300px;
    line-height: 1.6;
}

.footer-col-title {
    color: #fff;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

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

.footer-links a {
    color: var(--text-secondary);
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    color: var(--text-quaternary);
    font-size: 0.9rem;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   ANIMATIONS & EFFECTS
   ========================================================================== */
/* Partículas */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary-400);
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(var(--primary-rgb), 0.6);
    opacity: 0;
}

/* Background Spot */
.bg-gradient-spot {
    position: fixed;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.08) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* Utility Animations */
@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-element {
    opacity: 0;
}

.animate-in {
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-15px) rotate(1deg);
    }

    50% {
        transform: translateY(-5px) rotate(-1deg);
    }

    75% {
        transform: translateY(-20px) rotate(0.5deg);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float-particle {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.1;
    }

    25% {
        transform: translate(50px, -50px);
        opacity: 0.6;
    }

    50% {
        transform: translate(-25px, -100px);
        opacity: 0.3;
    }

    75% {
        transform: translate(-50px, -50px);
        opacity: 0.6;
    }
}

@keyframes pulse-glow-anim {

    0%,
    100% {
        box-shadow:
            0 0 0 1px rgba(var(--primary-rgb), 0.5),
            0 4px 24px rgba(var(--primary-rgb), 0.4);
    }

    50% {
        box-shadow:
            0 0 0 2px rgba(var(--primary-rgb), 0.8),
            0 8px 40px rgba(var(--primary-rgb), 0.6);
    }
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ==========================================================================
   RESPONSIVE (MOBILE / TABLET)
   ========================================================================== */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
}

@media (max-width: 1024px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .certifications-grid {
        gap: 20px;
    }

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

    .showcase-grid {
        display: flex;
    }
    .showcase-card {
        flex: 0 0 100%;
    }

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

@media (max-width: 768px) {
    .d-none-mobile {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        margin-top: 40px;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-visual {
        order: -1;
    }

    .certifications-grid {
        flex-direction: column;
    }

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

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

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

    .footer-logo {
        margin: 0 auto 20px;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    /* Expand card mobile support */
    .service-card-expand {
        height: 420px;
    }

    /* Form mobile support */
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
}

/* ==========================================================================
   CAROUSEL MODAL
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.3);
}

.carousel-images {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.carousel-images img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    flex-shrink: 0;
}

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

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

.carousel-prev,
.carousel-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    color: white;
    font-size: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
    user-select: none;
    z-index: 2001;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(var(--primary-rgb), 0.5);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* ==========================================================================
   WHATSAPP BUTTON
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
    filter: brightness(0) invert(1);
}

@media screen and (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
    
    .nav-actions {
        gap: 8px !important;
    }
}