/* Reset and Base Styles */
:root {
    --background: 240 60% 5%; /* Very Dark Indigo/Purple */
    --foreground: 210 20% 98%; /* Off-white */
    --card: 220 40% 8%; /* Slightly lighter dark blue for cards */
    --card-foreground: 210 20% 98%;
    --popover: 224 71% 4%;
    --popover-foreground: 210 20% 98%;
    --primary: 0 72% 51%; /* Vivid Red */
    --primary-foreground: 0 0% 100%; /* White */
    --secondary: 215 28% 17%; /* Darker Blue-Gray for secondary elements */
    --secondary-foreground: 210 20% 98%;
    --muted: 215 28% 17%;
    --muted-foreground: 210 20% 70%; /* Lighter gray for muted text */
    --accent: 0 80% 60%; /* Slightly Brighter Red for accents */
    --accent-foreground: 0 0% 100%; /* White */
    --destructive: 0 63% 31%; /* Darker Red for destructive actions */
    --destructive-foreground: 210 20% 98%;
    --border: 215 20% 25%; /* Adjusted border color */
    --input: 215 28% 17%;
    --ring: 0 72% 51%; /* Vivid Red for rings */
    --radius: 0.5rem;
    --notch-nav-height: 65px; /* Alto total del nav estilo notch */
    --notch-nav-notch-depth: 15px; /* Profundidad de la curva del notch */
    --notch-nav-bottom-radius: 20px; /* Radio de las esquinas inferiores del nav */

    /* Spacing (kept for potential internal use, though not directly mapped to classes) */
    --spacing-unit: 4px;
    --spacing-xs: calc(1 * var(--spacing-unit)); /* 4px */
    --spacing-sm: calc(2 * var(--spacing-unit)); /* 8px */
    --spacing-md: calc(4 * var(--spacing-unit)); /* 16px */
    --spacing-lg: calc(6 * var(--spacing-unit)); /* 24px */
    --spacing-xl: calc(8 * var(--spacing-unit)); /* 32px */
    --spacing-2xl: calc(12 * var(--spacing-unit)); /* 48px */
    --spacing-3xl: calc(16 * var(--spacing-unit)); /* 64px */

    /* Animation Variables */
    --animation-duration-fast: 0.2s;
    --animation-duration-normal: 0.3s;
    --animation-duration-slow: 0.5s;
    --animation-easing: cubic-bezier(0.25, 0.1, 0.25, 1);
    --animation-easing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-color: hsl(var(--border));
    border-width: 0;
    border-style: solid;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body.page-body {
    line-height: 1.5;
    color: hsl(var(--foreground));
    background: linear-gradient(180deg, hsl(240 60% 8%) 0%, hsl(var(--background)) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main.main-content {
    flex-grow: 1;
}

img, picture, video, canvas, svg {
  display: block; /* Prevents bottom margin */
  max-width: 100%; /* Ensures responsiveness */
}

input, button, textarea, select {
  font: inherit; /* Inherit font styles */
}

button {
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
    padding: 0; /* Remove default padding */
}

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

/* Layout Container */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem; /* px-4 */
    padding-right: 1rem;
}

/* Text Highlight Color */
.text-highlight {
     color: hsl(var(--primary));
}

/* Transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.transition-shadow {
    transition-property: box-shadow;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

/* Enhanced Smooth Animations */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn var(--animation-duration-slow) var(--animation-easing) forwards;
}

.animate-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp var(--animation-duration-slow) var(--animation-easing) forwards;
}

.animate-fade-in-down {
    opacity: 0;
    transform: translateY(-30px);
    animation: fadeInDown var(--animation-duration-slow) var(--animation-easing) forwards;
}

.animate-fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInLeft var(--animation-duration-slow) var(--animation-easing) forwards;
}

.animate-fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInRight var(--animation-duration-slow) var(--animation-easing) forwards;
}

.animate-scale-in {
    opacity: 0;
    transform: scale(0.9);
    animation: scaleIn var(--animation-duration-slow) var(--animation-easing) forwards;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp var(--animation-duration-slow) var(--animation-easing) forwards;
}

/* Animation Delays for Staggered Effects */
.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }
.animate-delay-600 { animation-delay: 0.6s; }
.animate-delay-700 { animation-delay: 0.7s; }
.animate-delay-800 { animation-delay: 0.8s; }

/* Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

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

@keyframes scaleIn {
    from { 
        opacity: 0; 
        transform: scale(0.9); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}

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

/* Animations */
@keyframes pulse {
  50% { opacity: .5; }
}
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

@keyframes spin {
  to { transform: rotate(360deg); }
}
.animate-spin { animation: spin 1s linear infinite; }

@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8,0,1,1);
  }
  50% {
    transform: none;
    animation-timing-function: cubic-bezier(0,0,0.2,1);
  }
}
.icon-bounce { animation: bounce 1s infinite; }

/* Apply fade-in animations */
.hero-tagline { animation: fadeInUp 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards 0.2s; opacity: 0; transform: translateY(30px); }
.hero-buttons { animation: fadeInUp 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards 0.4s; opacity: 0; transform: translateY(30px); }
.hero-scroll-indicator { animation: fadeInUp 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards 0.6s; opacity: 0; transform: translateY(30px); }

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: background-color 300ms ease-in-out, box-shadow 300ms ease-in-out;
    background-color: transparent;
}
/* Eliminar el fondo del header principal - mantenerlo siempre transparente */
.site-header.scrolled {
    background-color: transparent;
    backdrop-filter: none;
    box-shadow: none;
}
.header-container {
    display: flex;
    height: 5rem; /* h-20 */
    align-items: center;
    justify-content: space-between;
}

/* Estilos para asegurar que el logo y el botón de menú móvil estén visibles y encima */
.logo-link,
.mobile-menu-trigger {
    z-index: 51; /* Por encima del fondo del header, pero debajo del notch y menú móvil desplegable */
}

/* Logo */
.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* gap-2 */
    font-size: 1.5rem; /* text-2xl */
    color: hsl(var(--foreground)); 
    font-weight: 800; 
    letter-spacing: 1px; 
    line-height: 1.1;
    text-shadow: 0 0 4px hsl(var(--foreground)), 0 0 15px hsla(var(--accent)/0.9), 0 0 35px hsla(var(--accent)/0.7);
    transition: all 300ms ease-in-out;
    border-radius: 15px;
    padding: 12px 16px;
}

.logo-link:hover {
    text-shadow: 0 0 8px hsl(var(--foreground)), 0 0 15px hsla(var(--accent)/0.9), 0 0 35px hsla(var(--accent)/0.7);
}

/* Fondo del logo solo al hacer scroll */
.site-header.scrolled .logo-link {
    background-color: hsla(var(--background) / 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.site-header.scrolled .logo-link:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.logo-icon {
    height: 2rem; /* h-8 */
    width: 2rem; /* w-8 */
    filter: drop-shadow(0 0 4px hsl(var(--foreground))) drop-shadow(0 0 15px hsla(var(--accent)/0.9)) drop-shadow(0 0 35px hsla(var(--accent)/0.7));
    transition: all 300ms ease-in-out;
}

.logo-link:hover .logo-icon {
    filter: drop-shadow(0 0 8px hsl(var(--foreground))) drop-shadow(0 0 15px hsla(var(--accent)/0.9)) drop-shadow(0 0 35px hsla(var(--accent)/0.7));
}

.mobile-logo-icon {
    height: 1.75rem; /* h-7 */
    width: 1.75rem; /* w-7 */
}

/* Eliminar estilos de fondo del header en escritorio - ahora será transparente */

/* --- Navegación Principal Estilo "Notch" (Solo Escritorio) --- */
.main-navigation {
    display: none; /* Oculto por defecto (para móviles) */
}

/* Hamburger Button Espectacular */
.hamburger-button {
    position: relative;
    width: 50px;
    height: 50px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hamburger-button:active {
    transform: scale(0.95);
    transition-duration: 0.1s;
}

/* Contenedor del icono hamburguesa */
.hamburger-icon {
    position: relative;
    width: 24px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

/* Líneas del hamburguesa */
.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, hsl(var(--foreground)), hsl(var(--primary)));
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
    position: relative;
    overflow: hidden;
}

/* Efecto de brillo en las líneas */
.hamburger-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.6s ease;
}

.hamburger-button:hover .hamburger-line::before {
    left: 100%;
}

/* Línea superior */
.hamburger-line-1 {
    width: 100%;
}

/* Línea del medio */
.hamburger-line-2 {
    width: 100%;
    transition-delay: 0.1s;
}

/* Línea inferior */
.hamburger-line-3 {
    width: 100%;
    transition-delay: 0.2s;
}

/* Estado activo - transformación a X */
.hamburger-button.active .hamburger-line-1 {
    transform: translateY(7.5px) rotate(45deg);
    width: 100%;
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
    box-shadow: 0 0 10px hsla(var(--primary)/0.5);
}

.hamburger-button.active .hamburger-line-2 {
    opacity: 0;
    transform: scaleX(0);
    width: 100%;
}

.hamburger-button.active .hamburger-line-3 {
    transform: translateY(-7.5px) rotate(-45deg);
    width: 100%;
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
    box-shadow: 0 0 10px hsla(var(--primary)/0.5);
}

/* Efecto de pulso cuando está activo */
.hamburger-button.active {
    background: hsla(var(--primary)/0.15);
}

/* Animación de entrada para las líneas */
@keyframes hamburgerLineIn {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

.hamburger-line {
    animation: hamburgerLineIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.hamburger-line-1 {
    animation-delay: 0s;
}

.hamburger-line-2 {
    animation-delay: 0.1s;
}

.hamburger-line-3 {
    animation-delay: 0.2s;
}

/* Efectos adicionales para el hover */
.hamburger-button:hover .hamburger-line-1 {
    width: 100%;
    transform: translateX(2px);
}

.hamburger-button:hover .hamburger-line-2 {
    width: 100%;
    transform: translateX(-2px);
}

.hamburger-button:hover .hamburger-line-3 {
    width: 100%;
    transform: translateX(2px);
}

/* Botón de cerrar con estilo hamburger */
.close-button {
    position: absolute;
    top: 1.25rem; /* Centrado verticalmente en el header (5rem height - 2.5rem button height) / 2 */
    right: 1rem; /* Mismo margen que el container */
    width: 50px;
    height: 50px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 52; /* Por encima del contenido del menú móvil */
}

.close-button:hover {
    transform: scale(1.05);
    background: hsla(var(--primary)/0.1);
    box-shadow: 
        0 6px 20px hsla(var(--primary)/0.2),
        0 0 0 2px hsla(var(--primary)/0.3);
}

.close-button:active {
    transform: scale(0.95);
    transition-duration: 0.1s;
}

/* Contenedor del icono de cerrar */
.close-icon {
    position: relative;
    width: 24px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

/* Líneas del botón de cerrar */
.close-line {
    display: block;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, hsl(var(--foreground)), hsl(var(--primary)));
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
    position: relative;
    overflow: hidden;
}

/* Efecto de brillo en las líneas del botón de cerrar */
.close-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.6s ease;
}

.close-button:hover .close-line::before {
    left: 100%;
}

/* Estado por defecto - forma de X */
.close-line-1 {
    transform: translateY(7.5px) rotate(45deg);
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
    box-shadow: 0 0 10px hsla(var(--primary)/0.5);
}

.close-line-2 {
    opacity: 0;
    transform: scaleX(0);
}

.close-line-3 {
    transform: translateY(-7.5px) rotate(-45deg);
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
    box-shadow: 0 0 10px hsla(var(--primary)/0.5);
}

/* Efecto de pulso */
.close-button {
    background: hsla(var(--primary)/0.15);
}

/* Efectos adicionales para el hover */
.close-button:hover .close-line-1 {
    transform: translateY(7.5px) rotate(45deg) translateX(2px);
}

.close-button:hover .close-line-3 {
    transform: translateY(-7.5px) rotate(-45deg) translateX(2px);
}

/* Iconos antiguos - mantener para compatibilidad */
.menu-icon {
    height: 1.5rem;
    width: 1.5rem;
    color: hsl(var(--foreground));
}
.close-icon {
    height: 1.5rem;
    width: 1.5rem;
    color: hsl(var(--foreground));
}


/* Mobile Menu Sheet */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    /* Las transiciones ahora son manejadas por GSAP */
}

.mobile-menu[data-state="open"] {
    /* Estado manejado por GSAP */
}
.mobile-menu-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.75) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    /* Transición manejada por GSAP */
}
.mobile-menu-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Fondo con gradiente moderno y efecto glassmorphism mejorado */
    background: 
        radial-gradient(circle at 25% 25%, hsla(var(--primary)/0.08) 0%, transparent 40%),
        radial-gradient(circle at 75% 75%, hsla(var(--accent)/0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 0%, hsla(var(--primary)/0.03) 0%, transparent 60%),
        linear-gradient(135deg, 
            hsla(var(--background)/0.98) 0%, 
            hsla(var(--card)/0.95) 30%,
            hsla(var(--background)/0.97) 70%,
            hsla(var(--card)/0.99) 100%);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border: none;
    border-radius: 0;
    padding: 2.5rem 2rem;
    /* Sin sombras para pantalla completa */
    box-shadow: none;
    /* Transformación y transición manejadas por GSAP */
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Efecto de brillo mejorado en el contenido del menú móvil */
.mobile-menu-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        hsla(var(--primary)/0.3) 20%, 
        hsla(var(--accent)/0.4) 50%, 
        hsla(var(--primary)/0.3) 80%, 
        transparent 100%);
    border-radius: 0 0 2px 2px;
    z-index: 1;
}

/* Efecto de partículas sutiles */
.mobile-menu-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, hsla(var(--primary)/0.02) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, hsla(var(--accent)/0.02) 1px, transparent 1px);
    background-size: 40px 40px, 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.mobile-menu[data-state="open"] .mobile-menu-content {
    /* Estado manejado por GSAP */
}
.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: 100%;
    position: relative;
    z-index: 2;
}
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    position: relative;
    z-index: 3;
}

/* Línea decorativa del header */
.mobile-menu-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        hsla(var(--primary)/0.2) 20%, 
        hsla(var(--border)/0.4) 50%, 
        hsla(var(--primary)/0.2) 80%, 
        transparent 100%);
}

.mobile-menu-trigger {
    border-radius: 12px;
    background: hsla(var(--background)/0.8);
    border: 1px solid hsla(var(--border)/0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mobile-menu-trigger:hover {
    background: hsla(var(--primary)/0.1);
    border-color: hsla(var(--primary)/0.3);
    transform: scale(1.05);
    box-shadow: 0 4px 12px hsla(var(--primary)/0.2);
}

.mobile-navigation {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
    position: relative;
    z-index: 3;
}

.mobile-nav-link {
    font-size: 1.125rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    padding: 1.25rem 1.75rem;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, 
        hsla(var(--card)/0.4) 0%, 
        hsla(var(--background)/0.6) 50%,
        hsla(var(--card)/0.3) 100%);
    border: 1px solid hsla(var(--border)/0.15);
    backdrop-filter: blur(16px) saturate(1.1);
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
    text-decoration: none;
    display: block;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 hsla(var(--foreground)/0.05);
}

/* Efecto de brillo mejorado para los enlaces del menú móvil */
.mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        hsla(var(--primary)/0.08) 30%, 
        hsla(var(--accent)/0.12) 50%, 
        hsla(var(--primary)/0.08) 70%, 
        transparent 100%);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.mobile-nav-link:hover {
    color: hsl(var(--primary));
    transform: translateX(6px) scale(1.015);
}

.mobile-nav-link:hover::before {
    left: 100%;
}

.mobile-nav-link:active {
    transform: translateX(3px) scale(0.995);
    transition-duration: 0.15s;
    box-shadow: 
        0 6px 16px hsla(var(--primary)/0.1),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Indicador visual mejorado para el enlace activo */
.mobile-nav-link.active {
    background: linear-gradient(135deg, 
        hsla(var(--primary)/0.18) 0%, 
        hsla(var(--card)/0.9) 25%,
        hsla(var(--primary)/0.12) 75%,
        hsla(var(--background)/0.95) 100%);
    border-color: hsla(var(--primary)/0.35);
    color: hsl(var(--primary));
    font-weight: 600;
    transform: translateX(4px);
    box-shadow: 
        0 8px 24px hsla(var(--primary)/0.18),
        0 4px 12px hsla(var(--primary)/0.12),
        inset 0 1px 0 hsla(var(--primary)/0.15),
        inset 0 -1px 0 hsla(var(--primary)/0.08);
    text-shadow: 0 0 12px hsla(var(--primary)/0.4);
}

/* Espaciado adicional para el último elemento */
.mobile-navigation .mobile-nav-link:last-child {
    margin-bottom: 2rem;
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem; /* gap-2 */
    white-space: nowrap;
    border-radius: var(--radius);
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
    outline: none;
    border: 1px solid transparent; /* Base for outline */
    padding: 0.5rem 1rem; /* Default padding */
    height: 2.5rem; /* Default height */
    cursor: pointer;
}
.button:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}
.button:disabled {
    pointer-events: none;
    opacity: 0.5;
}

/* Button Variants */
.button-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary)); /* Ensure border matches bg */
}
.button-primary:hover {
    background-color: hsla(var(--primary) / 0.9);
    border-color: hsla(var(--primary) / 0.9);
}

.button-outline {
    border: 1px solid hsl(var(--input));
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
}
.button-outline:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    border-color: hsl(var(--accent));
}

/* Button Icons */
.button-icon {
    display: inline-block;
    vertical-align: middle; /* Helps align with text */
}
.button-icon.icon-left {
    margin-right: 0.5rem; /* mr-2 */
}
.button-icon.icon-right {
    margin-left: 0.5rem; /* ml-2 */
}
.button .button-icon { /* General icon sizing within buttons */
    height: 1rem; /* h-4 */
    width: 1rem;  /* w-4 */
    align-self: center;
}
.hero-button-outline .button-icon { /* Specific icon sizing */
    height: 1.25rem; /* h-5 */
    width: 1.25rem;  /* w-5 */
}

/* Section Wrapper & Title */
.section-wrapper {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.section-title {
    font-size: 2.25rem; /* Base */
    line-height: 1.1;
    font-weight: 700; /* font-bold */
    margin-bottom: 3rem; /* mb-12 */
    position: relative;
    color: hsl(var(--foreground));
    text-shadow: 0 0 10px hsla(var(--foreground) / 0.5);
    text-align: center;
}

/* Hero Section */
.hero-section {
    min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
    align-items: center; text-align: center; position: relative; overflow: hidden;
}
.hero-container { position: relative; z-index: 10; }
.hero-tagline {
    font-size: 3rem; line-height: 1.05; letter-spacing: -0.03em; font-weight: 800;
    background-image: linear-gradient(to right, hsl(var(--foreground)), hsl(var(--accent)));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    text-shadow: 0 0 35px hsla(var(--accent) / 0.45); margin-bottom: 2rem;
}

.scroll-down-icon {
    height: 2rem; width: 2rem; color: hsl(var(--primary)); animation: bounce 1s infinite;
}

/* Hero Buttons */
.hero-button-primary, .hero-button-outline {
    display: inline-flex; align-items: center; padding: 1.1rem 2.2rem;
    background: radial-gradient(67% 140% at 4.6% 40.8%, hsl(0, 72%, 65%) 0%, hsl(0, 72%, 45%) 100%);
    border-radius: 52px; box-shadow: inset 0px -3px 3px 0px hsla(0, 72%, 75%, 0.5);
    font-weight: 600; position: relative; overflow: hidden; letter-spacing: 0.03em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); font-size: 1.05rem;
    color: hsl(var(--primary-foreground)); text-align: center; white-space: nowrap;
    cursor: pointer; border: none; gap: 0.5rem; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-button-outline {
    background: transparent; color: hsl(var(--foreground)); transition: all 0.3s ease;
}
.hero-button-outline:hover {
    box-shadow: inset 0px 0px 3px 0px hsla(var(--accent) / 0.8);
}
.hero-button-primary::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.6s cubic-bezier(0.25, 1, 0.5, 1); z-index: 1; border-radius: 52px;
}
.hero-button-primary:hover::before { left: 100%; }

/* Static gradient background for hero - same as service cards */
.animated-gradient-bg {
    background: 
        radial-gradient(circle at 20% 80%, hsla(var(--primary)/0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, hsla(var(--accent)/0.3) 0%, transparent 50%),
        linear-gradient(135deg, hsla(var(--primary)/0.1) 0%, hsla(var(--background)/0.95) 50%, hsla(var(--accent)/0.1) 100%);
}

/* Enhanced Card Animations */
.card {
    border-radius: 20px; /* rounded-[20px] */
    border: 1px solid hsla(0, 72%, 51%, 0.15);
    /* Default background gradient */
    background: 
        radial-gradient(circle at 25% 25%, hsla(0, 60%, 40%, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, hsla(0, 72%, 51%, 0.08) 0%, transparent 60%),
        linear-gradient(135deg, hsla(0, 40%, 8%, 0.95) 0%, hsla(240, 60%, 6%, 0.98) 100%);
    color: hsl(var(--card-foreground));
    box-shadow: 
        0 8px 12px -3px rgba(0,0,0,0.15),
        0 4px 6px -2px rgba(0,0,0,0.08),
        inset 0 1px 0 0 hsla(0, 72%, 51%, 0.06);
    transition: all var(--animation-duration-normal) var(--animation-easing);
    overflow: hidden;
    position: relative;
    height: 100%; /* Fill grid cell height */
    display: flex;
    flex-direction: column;
    padding: 0; /* Apply padding to inner elements */
    opacity: 0;
    transform: translateY(30px);
}

/* Card hover animations */
.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 25px -5px rgba(0,0,0,0.25),
        0 10px 10px -5px rgba(0,0,0,0.15),
        inset 0 1px 0 0 hsla(0, 72%, 51%, 0.1);
    border-color: hsla(0, 72%, 51%, 0.25);
}

/* Card animation states */
.card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.card.animate-in:hover {
    transform: translateY(-8px) scale(1.02);
}
.card-header {
    padding: 0;
    position: relative;
}
.card-image {
     width: 100%;
     height: 100%;
     object-fit: cover;
     transition: transform 500ms ease;
     display: block;
}
/* .image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, hsla(0, 0%, 0%, 0.5) 0%, transparent 50%);
} */
.card-content {
    padding: 1.5rem; /* p-6 */
    flex-grow: 1; /* Allows description to push footer down */
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25rem; /* text-xl */
    font-weight: 600; /* font-semibold */
    margin-bottom: 0.75rem; /* mb-3 */
    color: hsl(var(--foreground));
}

.card-description {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem; /* mb-4 */
    font-size: 0.875rem; /* text-sm */
    flex-grow: 1; /* Push tags/footer down */
    line-height: 1.5; /* Ensure consistent line height */
}
.card-footer {
    padding: 1.5rem; /* p-6 */
    padding-top: 0; /* No top padding, handled by content margin */
    position: relative; /* Keep for potential absolute elements */
}

/* Icon Wrapper (used in Service and Rationale cards) */
.icon-wrapper {
    padding: 1rem; /* p-4 */
    border-radius: 9999px; /* rounded-full */
    margin-left: auto; /* Center horizontally */
    margin-right: auto;
    margin-bottom: 1.25rem; /* mb-5 */
    display: flex; /* Cambiar a flex para centrar mejor */
    align-items: center; /* Centrar verticalmente */
    justify-content: center; /* Centrar horizontalmente */
    border-width: 1px;
    border-style: solid;
    position: relative;
    overflow: hidden;
    height: 80px;
    width: 80px;
}
.icon-wrapper.icon-primary {
    background-color: hsla(var(--primary)/0.1); /* bg-primary/10 */
    border-color: hsla(var(--primary)/0.2); /* border-primary/20 */
    box-shadow: 0px 6px 8px 0px rgba(131, 124, 124, 0.06),
                inset 0px 2px 2px 0px hsla(var(--primary) / 0.8),
                inset 2px 0px 2px 0px hsla(var(--primary) / 0.6);
}
.icon-wrapper.icon-accent {
    background-color: hsla(var(--accent)/0.1); /* bg-accent/10 */
    border-color: hsla(var(--accent)/0.2); /* border-accent/20 */
    box-shadow: 0px 6px 8px 0px rgba(131, 124, 124, 0.06),
                inset 0px 2px 2px 0px hsla(var(--accent) / 0.8),
                inset 2px 0px 2px 0px hsla(var(--accent) / 0.6);
}
.icon-wrapper svg { /* Sizing for icons inside wrappers */
     display: block; /* Ensure block for size */
     width: 40px; /* Tamaño fijo para los iconos */
     height: 40px;
     flex-shrink: 0; /* Evitar que se reduzcan */
}

/* Service Section */
.services-section {
    background: linear-gradient(135deg, 
        hsla(0, 45%, 8%, 0.95) 0%, 
        hsla(240, 60%, 5%, 0.98) 30%, 
        hsla(0, 35%, 6%, 0.96) 70%, 
        hsla(240, 60%, 5%, 1) 100%);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 25%, hsla(0, 72%, 51%, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, hsla(0, 80%, 60%, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, hsla(0, 60%, 40%, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.services-section .container {
    position: relative;
    z-index: 1;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr)); /* grid-cols-1 */
    gap: 2rem; /* gap-8 */
}

.service-card {
    text-align: center;
    /* Stunning gradient background with multiple layers */
    background: 
        radial-gradient(circle at 20% 80%, hsla(var(--primary)/0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, hsla(var(--accent)/0.3) 0%, transparent 50%),
        linear-gradient(135deg, hsla(var(--primary)/0.1) 0%, hsla(var(--background)/0.95) 50%, hsla(var(--accent)/0.1) 100%);
    padding: 2.5rem;
    justify-content: center;
    box-shadow: 
        0 20px 25px -5px rgba(0,0,0,0.1),
        0 10px 10px -5px rgba(0,0,0,0.04),
        inset 0 1px 0 0 hsla(var(--primary)/0.1),
        0 0 0 1px hsla(var(--primary)/0.05);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

/* Add a subtle animated shimmer effect */
.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        hsla(var(--primary)/0.1) 50%,
        transparent 70%
    );
    animation: shimmer 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%, 100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 1;
    }
}

/* Enhanced glow effect for service cards */
.service-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(
        45deg,
        hsla(var(--primary)/0.2),
        hsla(var(--accent)/0.15),
        hsla(var(--primary)/0.1)
    );
    border-radius: inherit;
    z-index: -1;
    filter: blur(8px);
    opacity: 0.7;
}
.service-card .service-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    position: relative;
    z-index: 2;
}
.service-card .card-title {
    font-size: 1.625rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, hsl(var(--foreground)) 0%, hsl(var(--primary)) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px hsla(var(--foreground)/0.1);
    letter-spacing: -0.025em;
}

.service-card .card-description {
    color: hsl(var(--muted-foreground));
    margin-bottom: 0;
    flex-grow: 0;
    font-size: 1.125rem;
    line-height: 1.6;
    text-align: center;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}
.service-icon {
    height: 4rem;
    width: 4rem;
    color: hsl(var(--accent));
    filter: drop-shadow(0 4px 8px hsla(var(--accent)/0.5)) brightness(1.2) contrast(1.1);
    display: block;
    margin: 0 auto;
    opacity: 1;
    stroke-width: 1.5;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.05);
    }
}

/* Main service card container */
.main-service-card {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

/* Main service card styling */
.service-card.main-service {
    max-width: 450px;
    width: 100%;
    transition: all var(--animation-duration-normal) var(--animation-easing);
    background: 
        radial-gradient(circle at 20% 80%, hsla(var(--primary)/0.6) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, hsla(var(--accent)/0.5) 0%, transparent 50%),
        linear-gradient(135deg, hsla(var(--primary)/0.2) 0%, hsla(var(--background)/0.9) 50%, hsla(var(--accent)/0.2) 100%);
}

/* Included title styling */
.included-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: hsl(var(--muted-foreground));
    opacity: 0.8;
}

/* Included items styling */
.service-card.included-item {
    transform: perspective(1000px) rotateX(1deg) scale(0.95);
    background: 
        radial-gradient(circle at 20% 80%, hsla(var(--primary)/0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, hsla(var(--accent)/0.15) 0%, transparent 50%),
        linear-gradient(135deg, hsla(var(--primary)/0.05) 0%, hsla(var(--background)/0.98) 50%, hsla(var(--accent)/0.05) 100%);
    border: 1px solid hsla(var(--primary)/0.08);
    opacity: 0.9;
}

.service-card.included-item .card-title {
    font-size: 1.125rem;
    opacity: 0.9;
}

.service-card.included-item .card-description {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Enhanced icon wrapper for service cards */
.service-card .icon-wrapper.icon-primary {
    background: 
        radial-gradient(circle at 30% 30%, hsla(0, 35%, 25%, 0.6) 0%, hsla(0, 35%, 20%, 0.4) 50%, transparent 100%),
        linear-gradient(135deg, hsla(0, 35%, 15%, 0.5) 0%, hsla(0, 35%, 12%, 0.3) 100%);
    border-color: hsla(var(--accent)/0.2);
    box-shadow: 
        0px 6px 8px 0px rgba(131, 124, 124, 0.06),
        inset 0px 2px 2px 0px hsla(var(--accent) / 0.8),
        inset 2px 0px 2px 0px hsla(var(--accent) / 0.6);
    position: relative;
    overflow: visible;
    height: 110px;
    width: 110px;
    /* Animación removida para evitar movimiento */
}

/* Secondary icon wrapper for included items */
.service-card .icon-wrapper.icon-secondary {
    background: 
        radial-gradient(circle at 30% 30%, hsla(0, 35%, 20%, 0.4) 0%, hsla(0, 35%, 15%, 0.3) 50%, transparent 100%),
        linear-gradient(135deg, hsla(0, 35%, 12%, 0.3) 0%, hsla(0, 35%, 10%, 0.2) 100%);
    border-color: hsla(var(--accent)/0.1);
    box-shadow: 
        0px 4px 6px 0px rgba(131, 124, 124, 0.04),
        inset 0px 1px 1px 0px hsla(var(--accent) / 0.4),
        inset 1px 0px 1px 0px hsla(var(--accent) / 0.3);
    position: relative;
    overflow: visible;
    height: 90px;
    width: 90px;
    opacity: 0.8;
}

@keyframes iconWrapperPulse {
    0%, 100% {
        box-shadow: 
            0 8px 16px -4px hsla(var(--primary)/0.3),
            0 4px 8px -2px hsla(var(--primary)/0.2),
            inset 0 2px 4px 0 hsla(var(--primary)/0.1),
            inset 0 -2px 4px 0 hsla(var(--primary)/0.05);
    }
    50% {
        box-shadow: 
            0 12px 24px -4px hsla(var(--primary)/0.4),
            0 6px 12px -2px hsla(var(--primary)/0.3),
            inset 0 2px 4px 0 hsla(var(--primary)/0.15),
            inset 0 -2px 4px 0 hsla(var(--primary)/0.1);
    }
}


.services-footer-text {
    margin-top: 4rem;
    text-align: center;
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
}
.services-footer-text strong {
    font-weight: 600;
}

/* Portfolio Section */
.portfolio-section {
    background: linear-gradient(135deg, 
        hsla(240, 60%, 5%, 1) 0%, 
        hsla(0, 25%, 7%, 0.97) 25%, 
        hsla(215, 28%, 8%, 0.95) 50%, 
        hsla(0, 30%, 6%, 0.98) 75%, 
        hsla(240, 60%, 5%, 1) 100%);
    position: relative;
}

.portfolio-section .container {
    position: relative;
    z-index: 1;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.portfolio-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    background: transparent;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--animation-duration-normal) var(--animation-easing);
    overflow: hidden;
    position: relative;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

.portfolio-card.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.portfolio-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.portfolio-card:hover .card-hover-overlay {
    opacity: 1;
    visibility: visible;
}

/* Portfolio Image */
.portfolio-image-wrapper {
    width: 100%;
    position: relative;
    margin-bottom: 0;
    border-radius: 20px;
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 4px 16px rgba(0, 0, 0, 0.2);
    aspect-ratio: 16/10;
}

.portfolio-card .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(0.9) contrast(1.05);
    transition: transform 0.3s ease;
    border-radius: 20px;
}

.portfolio-card:hover .card-image {
    transform: scale(1.05);
}

/* Card hover overlay */
.card-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 2;
}

.view-details-text {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    padding: 14px 28px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.view-details-text:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        rgba(255, 255, 255, 0.15) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Rationale Section */
.rationale-section {
    background: linear-gradient(45deg, 
        hsla(0, 40%, 7%, 0.98) 0%, 
        hsla(240, 60%, 5%, 0.95) 30%, 
        hsla(0, 35%, 8%, 0.97) 70%, 
        hsla(240, 60%, 5%, 1) 100%);
    position: relative;
    overflow: hidden;
}
.rationale-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 80% 20%, hsla(0, 80%, 60%, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 20% 80%, hsla(0, 72%, 51%, 0.06) 0%, transparent 60%),
        radial-gradient(circle at 50% 10%, hsla(0, 50%, 35%, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.rationale-section .container {
    position: relative;
    z-index: 1;
}
.rationale-intro {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: hsl(var(--muted-foreground));
    margin-bottom: 3rem;
}

.rationale-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.rationale-card {
    text-align: center;
    justify-content: center;
    padding: 1.5rem;
    background: 
        radial-gradient(circle at 50% 15%, hsla(0, 60%, 40%, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 80% 85%, hsla(0, 80%, 60%, 0.06) 0%, transparent 60%),
        linear-gradient(135deg, hsla(0, 40%, 8%, 0.95) 0%, hsla(240, 60%, 6%, 0.98) 100%);
    border: 0px solid hsla(0, 72%, 51%, 0.15);
    box-shadow: 
        0 8px 12px -3px rgba(0,0,0,0.15),
        0 4px 6px -2px rgba(0,0,0,0.08),
        inset 0 1px 0 0 hsla(0, 72%, 51%, 0.08);
    opacity: 0;
    transform: translateY(25px) scale(0.95);
    transition: all var(--animation-duration-normal) var(--animation-easing);
}

.rationale-card.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.rationale-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 12px 20px -3px rgba(0,0,0,0.2),
        0 6px 10px -2px rgba(0,0,0,0.12),
        inset 0 1px 0 0 hsla(0, 72%, 51%, 0.12);
}
.rationale-card .rationale-card-content {
     display: flex;
     flex-direction: column;
     align-items: center;
     height: 100%;
}
.rationale-card .icon-wrapper {
     padding: 0.75rem; /* p-3 */
     margin-bottom: 1rem; /* mb-4 */
}
.rationale-icon {
    height: 2rem; /* h-8 */
    width: 2rem; /* w-8 */
    color: hsl(var(--accent));
}
.rationale-card-title {
    font-size: 1.125rem; /* text-lg */
    margin-bottom: 0.5rem; /* mb-2 */
    color: hsl(var(--foreground)); /* Ensure title color */
}
.rationale-card-description {
    font-size: 0.875rem; /* text-sm */
    color: hsl(var(--muted-foreground));
    margin-bottom: 0;
    flex-grow: 0;
}

/* Reviews Section */
.reviews-section {
    background: linear-gradient(135deg, 
        hsla(240, 60%, 5%, 1) 0%, 
        hsla(0, 30%, 6%, 0.98) 20%, 
        hsla(215, 28%, 7%, 0.96) 50%, 
        hsla(0, 35%, 7%, 0.97) 80%, 
        hsla(240, 60%, 5%, 1) 100%);
    position: relative;
    overflow: hidden;
}

.reviews-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 75%, hsla(0, 72%, 51%, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 25%, hsla(0, 80%, 60%, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.reviews-section .container {
    position: relative;
    z-index: 1;
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr)); /* grid-cols-1 */
    gap: 2rem; /* gap-8 */
}

.review-card {
    background: 
        radial-gradient(circle at 20% 15%, hsla(0, 72%, 51%, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 85%, hsla(0, 60%, 40%, 0.08) 0%, transparent 60%),
        linear-gradient(135deg, hsla(0, 35%, 7%, 0.96) 0%, hsla(240, 60%, 5%, 0.98) 100%);
    border: 0px solid hsla(0, 72%, 51%, 0.12);
    box-shadow: 
        0 8px 12px -3px rgba(0,0,0,0.15),
        0 4px 6px -2px rgba(0,0,0,0.08),
        inset 0 1px 0 0 hsla(0, 72%, 51%, 0.06);
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all var(--animation-duration-normal) var(--animation-easing);
}

.review-card.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.review-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 
        0 15px 25px -3px rgba(0,0,0,0.2),
        0 8px 12px -2px rgba(0,0,0,0.12),
        inset 0 1px 0 0 hsla(0, 72%, 51%, 0.1);
}
.review-card .review-card-header { /* Reuse card-header */
    padding-top: 2.5rem; /* pt-10 */
    padding-left: 1.5rem; /* px-6 */
    padding-right: 1.5rem;
    position: relative;
    z-index: 10; /* Ensure quote is above bg */
}
.review-card .review-card-content { /* Reuse card-content */
    position: relative;
    z-index: 10;
    padding-left: 1.5rem; /* px-6 */
    padding-right: 1.5rem;
    padding-bottom: 0; /* No bottom padding here */
    flex-grow: 1;
}
.review-card .review-card-footer { /* Reuse card-footer */
    display: flex;
    align-items: center;
    gap: 1rem; /* gap-4 */
    margin-top: auto; /* Push to bottom */
    padding-top: 1rem; /* mt-4 approx */
    position: relative;
    z-index: 10;
    padding-left: 1.5rem; /* px-6 */
    padding-right: 1.5rem;
    padding-bottom: 1.5rem; /* pb-6 */
}

.quote-icon {
    position: absolute;
    top: 1rem; /* top-4 */
    left: 1rem; /* left-4 */
    height: 2.5rem; /* h-10 */
    width: 2.5rem; /* w-10 */
    color: hsla(var(--primary) / 0.3);
}
.review-text {
    color: hsl(var(--muted-foreground));
    font-style: italic;
    font-size: 1rem; /* text-base */
    line-height: 1.625; /* leading-relaxed */
}
.avatar {
    height: 3rem; /* h-12 */
    width: 3rem; /* w-12 */
    border-radius: 9999px; /* rounded-full */
    border: 2px solid hsla(var(--primary) / 0.3);
    object-fit: cover;
    flex-shrink: 0; /* Prevent avatar shrinking */
}
.review-author-info {
    flex-grow: 1;
}
.review-author-name {
    font-weight: 600; /* font-semibold */
    color: hsl(var(--foreground));
}
.review-author-title {
    font-size: 0.875rem; /* text-sm */
    color: hsl(var(--muted-foreground));
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, 
        hsla(240, 60%, 5%, 1) 0%, 
        hsla(0, 25%, 7%, 0.97) 25%, 
        hsla(215, 28%, 8%, 0.95) 50%, 
        hsla(0, 30%, 6%, 0.98) 75%, 
        hsla(240, 60%, 5%, 1) 100%);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 75%, hsla(0, 72%, 51%, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 25%, hsla(0, 80%, 60%, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.contact-section .container {
    position: relative;
    z-index: 1;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.contact-intro {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    max-width: 600px;
    margin: 1rem auto 0;
    line-height: 1.6;
}

/* Contact Cards Grid */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

/* Contact Cards */
.contact-card {
    text-align: center;
    background: 
        radial-gradient(circle at 20% 15%, hsla(0, 72%, 51%, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 85%, hsla(0, 60%, 40%, 0.08) 0%, transparent 60%),
        linear-gradient(135deg, hsla(0, 35%, 7%, 0.96) 0%, hsla(240, 60%, 5%, 0.98) 100%);
    border: 1px solid hsla(0, 72%, 51%, 0.12);
    box-shadow: 
        0 8px 12px -3px rgba(0,0,0,0.15),
        0 4px 6px -2px rgba(0,0,0,0.08),
        inset 0 1px 0 0 hsla(0, 72%, 51%, 0.06);
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 25px -5px rgba(0,0,0,0.2),
        0 10px 10px -5px rgba(0,0,0,0.1),
        inset 0 1px 0 0 hsla(0, 72%, 51%, 0.1);
}

.contact-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    position: relative;
    z-index: 2;
}

.contact-card .icon-wrapper {
    margin-bottom: 1.5rem;
}

.contact-card-icon {
    height: 3rem;
    width: 3rem;
    color: hsl(var(--accent));
    filter: drop-shadow(0 4px 8px hsla(var(--accent)/0.5)) brightness(1.2) contrast(1.1);
}

.contact-card .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, hsl(var(--foreground)) 0%, hsl(var(--primary)) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px hsla(var(--foreground)/0.1);
    letter-spacing: -0.025em;
}

.contact-card .card-description {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    max-width: 280px;
    opacity: 0.9;
}

.contact-card-link {
    color: hsl(var(--primary));
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: calc(var(--radius));
    background: hsla(var(--primary) / 0.1);
    border: 1px solid hsla(var(--primary) / 0.2);
}

.contact-card-link:hover {
    background: hsla(var(--primary) / 0.2);
}

.contact-card-info {
    color: hsl(var(--accent));
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    background: hsla(var(--accent) / 0.1);
    border-radius: calc(var(--radius));
    border: 1px solid hsla(var(--accent) / 0.2);
}

/* Contact Form Section */
.contact-form-section {
    position: relative;
    z-index: 1;
}

.contact-form-card {
    background: 
        radial-gradient(circle at 20% 15%, hsla(0, 72%, 51%, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 85%, hsla(0, 60%, 40%, 0.08) 0%, transparent 60%),
        linear-gradient(135deg, hsla(0, 35%, 7%, 0.96) 0%, hsla(240, 60%, 5%, 0.98) 100%);
    border: 1px solid hsla(0, 72%, 51%, 0.12);
    box-shadow: 
        0 8px 12px -3px rgba(0,0,0,0.15),
        0 4px 6px -2px rgba(0,0,0,0.08),
        inset 0 1px 0 0 hsla(0, 72%, 51%, 0.06);
    padding: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-form-content {
    position: relative;
    z-index: 2;
}

.contact-form-card .form-header {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-form-card .icon-wrapper {
    margin-bottom: 1.5rem;
}

.contact-form-card .card-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, hsl(var(--foreground)) 0%, hsl(var(--primary)) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px hsla(var(--foreground)/0.1);
    letter-spacing: -0.025em;
}

.contact-form-card .card-description {
    color: hsl(var(--muted-foreground));
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Legacy form wrapper for compatibility */
.contact-form-wrapper {
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 0;
    position: relative;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: hsl(var(--muted-foreground));
    font-size: 0.95rem;
}

.contact-form {
    /* Spacing handled by form-group margin */
}

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

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

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    display: block;
    width: 100%;
    border-radius: var(--radius);
    border: 2px solid hsl(var(--input));
    background-color: hsla(var(--background) / 0.8);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: hsl(var(--foreground));
    line-height: 1.5;
    transition: all 200ms ease;
    backdrop-filter: blur(5px);
}

.form-input {
    height: 3rem;
}

.form-textarea {
    min-height: 8rem;
    resize: vertical;
    font-family: inherit;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: hsl(var(--muted-foreground));
    opacity: 0.8;
}

.form-input:focus-visible,
.form-textarea:focus-visible {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsla(var(--primary) / 0.2);
    background-color: hsla(var(--background) / 0.95);
}

.form-input:hover,
.form-textarea:hover {
    border-color: hsla(var(--primary) / 0.5);
}

.form-error {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: hsl(var(--destructive));
    min-height: 1.25rem;
    font-weight: 500;
}

/* Anti-bot Protection Styles */
.honeypot-field {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

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

.captcha-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.captcha-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: hsla(var(--muted) / 0.3);
    border: 2px solid hsl(var(--border));
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    backdrop-filter: blur(5px);
}

.captcha-question span {
    font-weight: 600;
    color: hsl(var(--primary));
}

.captcha-refresh {
    background: none;
    border: none;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius);
    transition: all 200ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-refresh:hover {
    color: hsl(var(--primary));
    background: hsla(var(--primary) / 0.1);
}

.captcha-refresh:focus-visible {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 2px;
}

.captcha-input {
    max-width: 175px;
}

.contact-submit-button {
    width: 100%;
    height: 3.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    background: radial-gradient(67% 140% at 4.6% 40.8%, hsl(0, 72%, 65%) 0%, hsl(0, 72%, 45%) 100%);
    border: none;
    border-radius: 52px;
    box-shadow: inset 0px -3px 3px 0px hsla(0, 72%, 75%, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.contact-submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
    border-radius: 52px;
}

.contact-submit-button:hover::before {
    left: 100%;
}

.form-feedback {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    border: 1px solid;
    font-weight: 500;
    animation: slideIn 300ms ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-feedback.success {
    color: hsl(var(--primary-foreground));
    background-color: hsla(var(--primary) / 0.9);
    border-color: hsl(var(--primary));
}

.form-feedback.error {
    color: hsl(var(--destructive-foreground));
    background-color: hsla(var(--destructive) / 0.9);
    border-color: hsl(var(--destructive));
}

.form-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: hsl(var(--muted-foreground));
    text-align: center;
    font-style: italic;
}

/* == Background Unificado para Secciones (Estilo Services) == */
.portfolio-section,
.reviews-section,
.contact-section,
.rationale-section {
    background: linear-gradient(135deg, 
        hsla(0, 45%, 8%, 0.95) 0%, 
        hsla(240, 60%, 5%, 0.98) 30%, 
        hsla(0, 35%, 6%, 0.96) 70%, 
        hsla(240, 60%, 5%, 1) 100%);
    position: relative;
    overflow: hidden;
}

.portfolio-section::before,
.reviews-section::before,
.contact-section::before,
.rationale-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 25%, hsla(0, 72%, 51%, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, hsla(0, 80%, 60%, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, hsla(0, 60%, 40%, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Asegurar que el contenido esté por encima */
.portfolio-section .container,
.reviews-section .container,
.contact-section .container,
.rationale-section .container {
    position: relative;
    z-index: 1;
}

/* Limpiar backgrounds específicos anteriores */
.portfolio-section {
    background-color: transparent !important;
}

/* Footer */
.site-footer {
    position: relative;
    background: linear-gradient(135deg, 
        hsl(240 60% 3%) 0%, 
        hsl(240 50% 5%) 50%, 
        hsl(240 60% 3%) 100%);
    border-top: 1px solid hsla(var(--border) / 0.3);
    padding-top: 3rem;
    padding-bottom: 2rem;
    overflow: hidden;
}

/* Animated Background Elements */
.footer-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-code {
    position: absolute;
    color: hsla(var(--primary) / 0.1);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.5rem;
    animation: float-code 20s infinite linear;
    user-select: none;
}

.floating-code:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    font-size: 2rem;
}

.floating-code:nth-child(2) {
    top: 20%;
    right: 10%;
    animation-delay: -3s;
    font-size: 1.2rem;
}

.floating-code:nth-child(3) {
    top: 60%;
    left: 15%;
    animation-delay: -6s;
    font-size: 1.8rem;
}

.floating-code:nth-child(4) {
    top: 40%;
    right: 20%;
    animation-delay: -9s;
    font-size: 1.4rem;
}

.floating-code:nth-child(5) {
    top: 80%;
    left: 60%;
    animation-delay: -12s;
    font-size: 1.6rem;
}

.floating-code:nth-child(6) {
    top: 30%;
    right: 40%;
    animation-delay: -15s;
    font-size: 1.3rem;
}

@keyframes float-code {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-20px) rotate(360deg);
        opacity: 0;
    }
}

.footer-container {
    position: relative;
    z-index: 2;
    color: hsl(var(--muted-foreground));
}

/* Main Footer Layout */
.footer-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 1rem;
}

/* Brand Section */
.footer-brand {
    max-width: 400px;
}

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

.logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-icon {
    position: relative;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    filter: drop-shadow(0 0 10px hsla(var(--primary) / 0.5));
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3rem;
    height: 3rem;
    background: radial-gradient(circle, hsla(var(--primary) / 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    from {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    to {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.brand-text {
    flex: 1;
}

.footer-agency-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, hsl(var(--foreground)), hsl(var(--primary)));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-tagline {
    font-size: 0.875rem;
    color: hsl(var(--primary));
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-height: 1.25rem;
    display: flex;
    align-items: center;
}

.footer-description {
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
    font-size: 0.95rem;
}

/* Section Titles */
.footer-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, hsl(var(--primary)), transparent);
    border-radius: 1px;
}

/* Navigation Links */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: hsl(var(--muted-foreground));
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
    padding-left: 1rem;
}

.footer-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: hsl(var(--primary));
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    color: hsl(var(--primary));
    transform: translateX(0.25rem);
}

.footer-link:hover::before {
    opacity: 1;
}

/* Service List */
.footer-service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-service-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-service-item:hover {
    color: hsl(var(--foreground));
}

.service-bullet {
    color: hsl(var(--primary));
    flex-shrink: 0;
}

/* Contact Section */
.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.9rem;
}

.contact-icon {
    color: hsl(var(--primary));
    flex-shrink: 0;
}

/* CTA Button */
.footer-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
    color: hsl(var(--primary-foreground));
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px hsla(var(--primary) / 0.3);
}

.footer-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px hsla(var(--primary) / 0.4);
}

.cta-arrow {
    transition: transform 0.3s ease;
}

.footer-cta-button:hover .cta-arrow {
    transform: translate(2px, -2px);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid hsla(var(--border) / 0.3);
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
}

.footer-copyright p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.25rem;
}

.footer-subtitle {
    font-size: 0.75rem;
    color: hsla(var(--muted-foreground) / 0.7);
    font-style: italic;
}

/* Social Section */
.social-title {
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
    font-weight: 500;
}

.footer-social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: hsla(var(--card) / 0.5);
    border: 1px solid hsla(var(--border) / 0.3);
    border-radius: 0.5rem;
    color: hsl(var(--muted-foreground));
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    color: hsl(var(--primary));
    background: hsla(var(--primary) / 0.1);
    border-color: hsl(var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px hsla(var(--primary) / 0.2);
}

.social-icon {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.social-link:hover .social-icon {
    transform: scale(1.1);
}

/* Social Tooltips */
.social-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: hsl(var(--popover));
    color: hsl(var(--popover-foreground));
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    margin-top: 0.5rem;
    border: 1px solid hsla(var(--border) / 0.3);
}

.social-link:hover .social-tooltip {
    opacity: 1;
}

/* Tech Badge */
.footer-tech-badge {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.tech-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: hsla(var(--card) / 0.3);
    border: 1px solid hsla(var(--border) / 0.3);
    border-radius: 2rem;
    backdrop-filter: blur(10px);
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.tech-text {
    font-weight: 500;
}

.tech-icons {
    display: flex;
    gap: 0.25rem;
}

.tech-icon {
    font-size: 1rem;
    animation: bounce-icon 2s ease-in-out infinite;
}

.tech-icon:nth-child(2) {
    animation-delay: 0.2s;
}

.tech-icon:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce-icon {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.modal-content {
    background: linear-gradient(135deg, 
        hsla(240, 60%, 5%, 0.95) 0%, 
        hsla(0, 25%, 7%, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10002;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.modal-close-btn svg {
    color: white;
}

.modal-image-container {
    width: 100%;
    height: 450px;
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: rgba(0, 0, 0, 0.2);
}

.modal-image-gallery {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    position: absolute;
    top: 1.5rem;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.modal-image.active {
    opacity: 1;
}

.modal-image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.modal-nav-btn {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

.modal-nav-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.modal-image-dots {
    position: absolute;
    left: 50%;
    margin-top: 0.5rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.modal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-dot.active {
    background: white;
    transform: scale(1.2);
}

.modal-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.modal-info {
    padding: 2rem;
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.modal-author {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.modal-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-actions {
    display: flex;
    justify-content: center;
}

.modal-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 1.1rem 2.2rem;
    background: radial-gradient(67% 140% at 4.6% 40.8%, hsl(0, 72%, 65%) 0%, hsl(0, 72%, 45%) 100%);
    border-radius: 52px;
    box-shadow: inset 0px -3px 3px 0px hsla(0, 72%, 75%, 0.5);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    font-size: 1.05rem;
    color: hsl(var(--primary-foreground));
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    gap: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.modal-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
    border-radius: 52px;
}

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

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: radial-gradient(67% 140% at 4.6% 40.8%, hsl(0, 72%, 65%) 0%, hsl(0, 72%, 45%) 100%);
    color: hsl(var(--primary-foreground));
    border: none;
    border-radius: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: inset 0px -3px 3px 0px hsla(0, 72%, 75%, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
    overflow: hidden;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.scroll-to-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
    border-radius: 52px;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover::before {
    left: 100%;
}

.scroll-to-top svg {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.scroll-to-top:hover svg {
    transform: translateY(-2px);
}

/* SVG Icons General Styling (Ensure display block if needed) */
svg {
    display: block; /* Default to block for consistency */
}
/* Inline icons within text might need adjustment */
.button-text svg, .contact-link svg {
    display: inline-block; /* Keep icons inline in buttons/links */
    vertical-align: middle;
}

/* ===== LENIS SMOOTH SCROLL STYLES ===== */
/* Estilos para Lenis (importante para que funcione bien) */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important; /* Desactiva el scroll-behavior nativo */
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Base Navigation Styles */
.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    transition: color 150ms ease-in-out;
}
.nav-link:hover {
    color: hsl(var(--primary));
}

.mobile-menu-trigger {
    display: block;
    z-index: 51;
}

/* Hero Elements Base */
.hero-linebreak { 
    display: none; 
}

.hero-buttons {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}
.hero-scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    text-align: center;
}

/* ===== MOBILE FIRST (max-width: 767px) ===== */
@media (max-width: 767px) {

    .hero-tagline {
        padding: 0 0 2rem;
        text-align: left;
    }

    .hero-buttons {
        margin-top: 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: left;
        align-items: flex-start;
        gap: 0.75rem;       
    }

    .hero-button-primary {
        padding: 0.875rem 2rem;
        border-radius: var(--radius);
    }

    .hero-button-outline {
        padding: 0.875rem 2rem;
        border-radius: var(--radius);
    }

    .site-footer {
        padding-top: 3rem;
    }
    
    .footer-main {
        gap: 2rem;
        text-align: center;
    }
    
    .footer-contact-info {
        align-items: center;
    }
    
    .footer-social-links {
        justify-content: center;
    }
    
    .footer-logo {
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-tagline {
        justify-content: center
    }

    .footer-logo .brand-text {
        text-align: center;
    }
    
    .footer-logo .footer-agency-name {
        margin-bottom: 0;
    }
    
    .footer-section-title::after {
        left: 50%;
        transform: translateX(-50%);
        display: none;
    }
    
    .footer-link {
        padding-left: 0;
    }
    
    .footer-link::before {
        display: none;
    }
    
    .scroll-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .contact-info,
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .contact-header {
        margin-bottom: 2rem;
    }
    
    .contact-intro {
        font-size: 1rem;
    }
    
    .contact-subtitle {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        max-height: 95vh;
    }
    
    .modal-info {
        padding: 1.5rem;
        margin-top: -1.5rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    .modal-image{
        top: 0.2rem;
    }
    .modal-image-container {
        height: 300px;
    }

    .modal-image-dots {
        margin-top: -2rem;
    }
}

/* ===== SMALL SCREENS (min-width: 640px) ===== */
@media (min-width: 640px) {
    .container {
        max-width: 640px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .hero-tagline {
        font-size: 4rem;
    }
    
    .hero-linebreak {
        display: block;
    }
    
    .hero-buttons {
        flex-direction: row;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .rationale-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ===== MEDIUM SCREENS (min-width: 768px) ===== */
@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
    
    /* Navigation */
    .main-navigation {
        display: flex;
        gap: 0.5rem;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 1rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 55;
        border-radius: 25px;
        padding: 12px 24px;
        text-align: center;
        transition: all 300ms ease-in-out;
    }
    
    .site-header.scrolled .main-navigation {
        background-color: hsla(var(--background) / 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            0 4px 16px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    .main-navigation .nav-link {
        padding: 0.6rem 1.1rem;
        border-radius: 10px;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        background-color: transparent;
        line-height: 1;
    }
    
    .main-navigation .nav-link:hover {
        color: hsl(var(--primary-foreground));
        background-color: hsl(var(--primary));
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 5px 10px hsla(var(--primary) / 0.3), 0 2px 4px hsla(var(--primary) / 0.2);
    }
    
    .main-navigation .nav-link:active {
        transform: translateY(-1px) scale(1);
        box-shadow: 0 2px 5px hsla(var(--primary) / 0.2);
    }
    
    .mobile-menu-trigger {
        display: none;
    }
    
    .mobile-menu {
        display: none !important;
    }
    
    /* Layout */
    .section-wrapper {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
    
    .section-title {
        margin-bottom: 4rem;
    }
    
    .hero-tagline {
        font-size: 4.5rem;
    }
    
    /* Cards */
    .card-footer {
        padding: 2rem;
    }
    
    .card-content {
        padding: 2rem;
    }
    
    /* Grids */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 2rem;
        padding: 0 2rem;
    }
    
    .reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.5rem;
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4rem;
    }
    
    /* Review Cards */
    .review-card .review-card-header {
        padding-top: 3rem;
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .review-card .review-card-content {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .review-card .review-card-footer {
        padding-left: 2rem;
        padding-right: 2rem;
        padding-bottom: 2rem;
    }
    
    .quote-icon {
        top: 1.5rem;
        left: 1.5rem;
    }
    
    /* Footer */
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .footer-main {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 2rem;
    }
    
    .rationale-intro {
        margin-bottom: 4rem;
    }
}

/* ===== MEDIUM-LARGE SCREENS (min-width: 768px) and (max-width: 1023px) ===== */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        max-width: 900px;
        padding-left: 1.75rem;
        padding-right: 1.75rem;
    }
    
    .hero-tagline {
        font-size: 4.75rem;
    }
    
    .section-title {
        font-size: 3.75rem;
        margin-bottom: 3.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.25rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3.5rem 2.5rem;
        padding: 0 1.5rem;
    }
    
    .reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.25rem;
    }
    
    .rationale-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2.25rem;
        margin-bottom: 4.5rem;
    }
    
    .portfolio-card .card-title,
    .service-card .card-title {
        font-size: 1.75rem;
    }
    
    .card-footer {
        padding: 1.75rem;
    }
    
    .card-content {
        padding: 1.75rem;
    }
    
    .contact-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.25rem;
    }
    
    .contact-card {
        padding: 2.25rem 1.75rem;
    }
    
    .contact-form-card {
        padding: 2.5rem;
    }
    
    .modal-image-container {
        height: 400px;
    }
    
    .section-wrapper {
        padding-top: 5.5rem;
        padding-bottom: 5.5rem;
    }
}

/* ===== LARGE SCREENS (min-width: 1024px) ===== */
@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .hero-tagline {
        font-size: 5.5rem;
    }
    
    .portfolio-card .card-title,
    .service-card .card-title {
        font-size: 1.875rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2.5rem;
        justify-content: center;
    }
    
    .portfolio-grid {
        gap: 4rem 3rem;
    }
    
    .reviews-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .rationale-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 2.5rem;
        margin-bottom: 5rem;
    }
    
    .modal-image-container {
        height: 500px;
    }
    
    /* Contact Form Desktop Layout */
    .contact-form {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .form-row {
        display: flex;
        gap: 1.5rem;
        align-items: flex-start;
    }
    
    .form-row .form-group {
        flex: 1;
        margin-bottom: 0;
    }
    
    .form-group.full-width {
        width: 100%;
    }

    .captcha-group .captcha-container {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .captcha-group .captcha-question {
        flex-grow: 1;
        margin-bottom: 0;
    }

    .captcha-group .form-input.captcha-input {
        max-width: none;
        width: auto;
    }
}

/* ===== EXTRA LARGE SCREENS (min-width: 1280px) ===== */
@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

/* ===== 2XL SCREENS (min-width: 1536px) ===== */
@media (min-width: 1536px) {
    .container {
        max-width: 1536px;
    }
}

/* Responsive Design for Contact Cards */
@media (min-width: 768px) {
    .contact-cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2rem;
    }
    
    .contact-card {
        padding: 2.5rem 2rem;
    }
    
    .contact-form-card {
        padding: 3rem;
    }
}

@media (min-width: 1024px) {
    .contact-cards-grid {
        gap: 2.5rem;
    }
    
    .contact-card {
        padding: 3rem 2.5rem;
    }
    
    .contact-card .card-title {
        font-size: 1.625rem;
    }
    
    .contact-card .card-description {
        font-size: 1.1rem;
        max-width: 320px;
    }
}

@media (max-width: 640px) {
    .contact-section {
        padding: 3rem 0;
    }
    
    .contact-header {
        margin-bottom: 3rem;
    }
    
    .contact-cards-grid {
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-card-icon {
        height: 2.5rem;
        width: 2.5rem;
    }
    
    .contact-card .card-title {
        font-size: 1.25rem;
    }
    
    .contact-card .card-description {
        font-size: 0.9rem;
        max-width: 240px;
    }
    
    .contact-form-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-form-card .card-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 640px) {
    .captcha-question {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .captcha-container {
        gap: 0.5rem;
    }
}