/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Quanvek Brand Colors - HSL Format */
    --background: hsl(165, 6%, 16%);  /* #252b2b dark-gray */
    --foreground: hsl(36, 54%, 87%);  /* #efdfc5 beige */
    --card: hsl(345, 54%, 14%);  /* #380f17 primary-dark-red */
    --card-foreground: hsl(36, 54%, 87%);
    --primary: hsl(354, 83%, 31%);  /* #8f0b13 accent-red */
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(165, 6%, 16%);
    --muted: hsl(165, 7%, 30%);
    --border: hsl(36, 54%, 67%);
    --radius: 0.75rem;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(354, 83%, 31%), hsl(36, 54%, 87%));
    --gradient-hero: linear-gradient(135deg, hsl(345, 54%, 14%) 0%, hsl(165, 6%, 16%) 100%);
    
    /* Shadows */
    --shadow-elegant: 0 10px 30px -10px hsl(354 83% 31% / 0.3);
    --shadow-glow: 0 0 40px hsl(354 83% 31% / 0.4);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
#navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s ease;
    padding: 1.25rem 0;
}

#navigation.scrolled {
    background: hsl(345 54% 14% / 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    padding: 0.75rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}


.language-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--primary);
    color: var(--primary-foreground);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    height: 36px; /* opcional: unifica altura para mejor centrado */
    box-sizing: border-box;
}

.language-toggle img {
    display: block;         /* evita offset baseline */
    width: 24px;
    height: 24px;
    object-fit: cover;
}

.lang-text {
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
    font-weight: 600;
}

/* conservar efecto hover original */
.language-toggle:hover {
    background: hsl(354, 83%, 25%);
    transform: translateY(-2px);
}

/* versión móvil (ajusta si quieres tamaños distintos) */
.language-toggle.mobile-lang {
    padding: 0.4rem 0.6rem;
    height: 32px;
    gap: 0.4rem;
}


/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--foreground);
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 40;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-backdrop.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 16rem;
    background: var(--card);
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
    z-index: 50;
    transform: translateX(100%);
    transition: transform 0.3s;
    padding-top: 5rem;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    padding: 0 1.5rem;
}

.mobile-nav-link {
    color: var(--foreground);
    text-decoration: none;
    padding: 1rem 0;
    font-size: 1.125rem;
    font-weight: 500;
    border-bottom: 1px solid hsl(354 83% 31% / 0.1);
    transition: color 0.3s;
}

.mobile-nav-link:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 0;
}

.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, hsl(354 83% 31% / 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, hsl(36 54% 87% / 0.05) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 56rem;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--foreground), white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    margin-bottom: 1rem;
    color: hsl(36, 54%, 87%, 0.9);
}

.rotating-service {
    display: inline-block;
    min-width: 300px;
    color: var(--primary);
    font-weight: 600;
    animation: fadeIn 0.5s ease-in-out;
}

.hero-text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2.5rem;
    color: hsl(36, 54%, 87%, 0.9);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-elegant);
}

.btn-primary:hover {
    background: hsl(354, 83%, 25%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border: 2px solid var(--foreground);
}

.btn-outline:hover {
    background: var(--foreground);
    color: var(--background);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: hsl(36, 54%, 87%, 0.7);
    opacity: 0;
    animation: fadeIn 1s 1s forwards;
}

.scroll-text {
    font-size: 0.875rem;
}

.chevron-down {
    animation: scrollDown 2s infinite;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: var(--card);
    position: relative;
    overflow: hidden;
}

/* Fondo tech sutil */
.services::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: 
        repeating-linear-gradient(
            0deg,
            var(--primary) 0px,
            var(--primary) 1px,
            transparent 1px,
            transparent 50px
        ),
        repeating-linear-gradient(
            90deg,
            var(--primary) 0px,
            var(--primary) 1px,
            transparent 1px,
            transparent 50px
        );
    pointer-events: none;
    z-index: 0;
}

.services > * {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--foreground);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 2px;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: hsl(36, 54%, 87%, 0.8);
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 75rem;
    margin: 0 auto;
}

.service-card {
    background: linear-gradient(135deg, hsl(165, 6%, 16%, 0.6) 0%, hsl(165, 6%, 14%, 0.4) 100%);
    border: 1px solid hsl(354 83% 31% / 0.15);
    border-radius: calc(var(--radius) * 1.5);
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Efecto de brillo en hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(143, 11, 19, 0.1),
        transparent
    );
    transition: left 0.6s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    border-color: hsl(354 83% 31% / 0.4);
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px hsl(354 83% 31% / 0.3),
        0 0 0 1px hsl(354 83% 31% / 0.1) inset;
    background: linear-gradient(135deg, hsl(165, 6%, 18%, 0.7) 0%, hsl(165, 6%, 16%, 0.5) 100%);
}

.service-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.service-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, hsl(354 83% 31% / 0.15), hsl(354 83% 31% / 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s;
    position: relative;
    border: 1px solid hsl(354 83% 31% / 0.2);
}

.service-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, hsl(354 83% 31% / 0.25), hsl(354 83% 31% / 0.1));
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px hsl(354 83% 31% / 0.4);
}

.service-card:hover .service-icon::after {
    opacity: 0.3;
}

.service-icon svg {
    width: 2rem;
    height: 2rem;
    stroke: var(--primary);
    stroke-width: 2;
    transition: all 0.3s;
}

.service-card:hover .service-icon svg {
    stroke: var(--primary);
    filter: drop-shadow(0 0 8px rgba(143, 11, 19, 0.6));
}

.service-badge {
    background: linear-gradient(135deg, hsl(354 83% 31% / 0.2), hsl(354 83% 31% / 0.1));
    color: var(--primary);
    padding: 0.4rem 0.9rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid hsl(354 83% 31% / 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px hsl(354 83% 31% / 0.2);
}

.service-card:hover .service-badge {
    background: linear-gradient(135deg, hsl(354 83% 31% / 0.3), hsl(354 83% 31% / 0.15));
    box-shadow: 0 4px 12px hsl(354 83% 31% / 0.4);
    transform: translateY(-2px);
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--foreground);
    transition: color 0.3s;
    letter-spacing: -0.5px;
}

.service-card:hover h3 {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(143, 11, 19, 0.3);
}

.service-card p {
    color: hsl(36, 54%, 87%, 0.9);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Línea decorativa inferior */
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::after {
    width: 100%;
}
/* Partners Section */
.partners {
    padding: 5rem 0;
    background: var(--background);
}

.partners-carousel {
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
    /* Degradado en los bordes para efecto profesional */
    mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
}

.partners-track {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: scroll 30s linear infinite;
}

/* Pausar al hacer hover para ver mejor los logos */
.partners-track:hover {
    animation-play-state: paused;
}

.partner-item {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 150px;
}

.partner-item a {
    display: block;
    text-decoration: none;
}

.partner-logo {
    max-width: 150px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-item:hover .partner-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.partner-name {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    white-space: nowrap;
}

.partner-item:hover .partner-name {
    color: var(--primary);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Team Section */
.team {
    padding: 5rem 0;
    background: var(--card);
    position: relative;
    overflow: hidden;
}

.team-watermark {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: 
        repeating-linear-gradient(
            0deg,
            var(--primary) 0px,
            var(--primary) 1px,
            transparent 1px,
            transparent 50px
        ),
        repeating-linear-gradient(
            90deg,
            var(--primary) 0px,
            var(--primary) 1px,
            transparent 1px,
            transparent 50px
        ),
        radial-gradient(circle at center, var(--primary) 2px, transparent 2px);
    background-size: 50px 50px, 50px 50px, 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.network-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 75rem;
    margin: 0 auto;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-8px);
}

.team-avatar {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--card);
  border: 4px solid var(--primary);
  box-shadow: 0 10px 30px -10px rgba(143, 11, 19, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-avatar:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px -10px rgba(143, 11, 19, 0.6);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-avatar:hover img {
  transform: scale(1.1);
}

.team-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  font-weight: bold;
  color: var(--primary);
  background: linear-gradient(135deg, var(--card) 0%, var(--background) 100%);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.team-linkedin-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, 
    rgba(143, 11, 19, 0.9) 0%,
    rgba(143, 11, 19, 0.7) 50%,
    rgba(143, 11, 19, 0.4) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-avatar:hover .team-linkedin-overlay {
  opacity: 1;
  transform: translateY(0);
}

.team-linkedin-overlay svg {
  width: 32px;
  height: 32px;
  fill: white;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.team-linkedin-overlay:hover svg {
  transform: scale(1.2);
}

.team-member h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.team-member p {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
}

/* Why Us Section */
.why-us {
    padding: 5rem 0;
    background: var(--background);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 5rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid hsl(354 83% 31% / 0.1);
}

.stat-number {
    font-size: clamp(2.5rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-number::after {
    content: '+';
}

.stat-number[data-target="90"]::after {
    content: '%';
}

.stat-label {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    color: hsl(36, 54%, 87%, 0.8);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.advantage-card {
    background: var(--card);
    border: 1px solid hsl(354 83% 31% / 0.1);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    transition: all 0.3s;
}

.advantage-card:hover {
    border-color: hsl(354 83% 31% / 0.3);
    transform: translateY(-4px);
}

.advantage-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    background: hsl(354 83% 31% / 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke: var(--primary);
}

.advantage-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.advantage-card p {
    color: hsl(36, 54%, 87%, 0.8);
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--card);
}

.contact-form-wrapper {
    max-width: 42rem;
    margin: 0 auto;
}

.contact-form {
    background: hsl(165, 6%, 16%, 0.5);
    padding: 3rem;
    border-radius: 1rem;
    border: 1px solid hsl(354 83% 31% / 0.1);
    box-shadow: var(--shadow-elegant);
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: var(--card);
    border: 1px solid hsl(354 83% 31% / 0.2);
    border-radius: 0.5rem;
    color: var(--foreground);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: hsl(36, 54%, 87%, 0.5);
    pointer-events: none;
    transition: all 0.3s;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 0.75rem;
    background: var(--card);
    padding: 0 0.25rem;
    color: var(--primary);
}

.form-group textarea {
    resize: none;
}

.btn-full {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Footer */
.footer {
    background: var(--card);
    border-top: 1px solid hsl(354 83% 31% / 0.1);
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: hsl(36, 54%, 87%, 0.7);
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: hsl(36, 54%, 87%, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: hsl(36, 54%, 87%, 0.7);
}

.footer-contact svg {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    stroke: var(--primary);
    margin-top: 0.125rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid hsl(354 83% 31% / 0.1);
    text-align: center;
    color: hsl(36, 54%, 87%, 0.6);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--card);
    border: 1px solid hsl(354 83% 31% / 0.3);
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-elegant);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
    z-index: 100;
    max-width: 24rem;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-color: hsl(142, 76%, 36%);
}

.toast.error {
    border-color: var(--primary);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollDown {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding-top: 4rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 20rem;
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .services-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .toast {
        right: 1rem;
        left: 1rem;
        bottom: 1rem;
    }
}
/* ============================================
   NUEVOS ESTILOS - REDES SOCIALES Y PÁGINAS LEGALES
   ============================================ */

/* Social Links */
.social-links {
    display: flex;
    gap: 0.875rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.625rem;
    background: hsl(354 83% 31% / 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid hsl(354 83% 31% / 0.2);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), hsl(354, 83%, 40%));
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link svg {
    width: 1.375rem;
    height: 1.375rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.social-link:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 25px hsl(354 83% 31% / 0.5);
    border-color: transparent;
}

.social-link:hover svg {
    color: white;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

/* Colores específicos por red social */
.social-link.linkedin:hover {
    box-shadow: 0 10px 25px rgba(10, 102, 194, 0.5);
}

.social-link.linkedin:hover::before {
    background: linear-gradient(135deg, #0a66c2, #004182);
}

.social-link.instagram:hover {
    box-shadow: 0 10px 25px rgba(225, 48, 108, 0.5);
}

.social-link.instagram:hover::before {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.facebook:hover {
    box-shadow: 0 10px 25px rgba(24, 119, 242, 0.5);
}

.social-link.facebook:hover::before {
    background: linear-gradient(135deg, #1877f2, #0d5dbf);
}

.social-link.twitter:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.social-link.twitter:hover::before {
    background: linear-gradient(135deg, #000000, #1a1a1a);
}

/* Footer Legal Links */
.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-legal-link {
    color: hsl(36, 54%, 87%, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s;
    position: relative;
    padding: 0.25rem 0.5rem;
}

.footer-legal-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s;
}

.footer-legal-link:hover {
    color: var(--primary);
}

.footer-legal-link:hover::after {
    width: 100%;
}

.footer-separator {
    color: hsl(36, 54%, 87%, 0.3);
    font-weight: 300;
}

/* Brand Link Clickeable */
.brand {
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.3s;
}

.brand:hover {
    transform: scale(1.05);
}

/* ============================================
   PÁGINAS LEGALES (TÉRMINOS Y PRIVACIDAD)
   ============================================ */

.legal-page {
    min-height: 100vh;
    padding: 8rem 0 5rem;
    background: var(--background);
    position: relative;
}

.legal-page::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: 
        repeating-linear-gradient(
            0deg,
            var(--primary) 0px,
            var(--primary) 1px,
            transparent 1px,
            transparent 50px
        ),
        repeating-linear-gradient(
            90deg,
            var(--primary) 0px,
            var(--primary) 1px,
            transparent 1px,
            transparent 50px
        );
    pointer-events: none;
}

.legal-content {
    max-width: 52rem;
    margin: 0 auto;
    background: var(--card);
    padding: 3.5rem;
    border-radius: 1.25rem;
    border: 1px solid hsl(354 83% 31% / 0.15);
    box-shadow: var(--shadow-elegant);
    position: relative;
    z-index: 1;
}

.legal-content h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.legal-intro {
    font-size: 1.125rem;
    color: hsl(36, 54%, 87%, 0.95);
    line-height: 1.8;
    margin-bottom: 3rem;
    padding: 1.75rem;
    background: linear-gradient(135deg, hsl(354 83% 31% / 0.08), hsl(354 83% 31% / 0.03));
    border-left: 4px solid var(--primary);
    border-radius: 0.75rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.legal-section {
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease-out;
}

.legal-section h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid hsl(354 83% 31% / 0.25);
    position: relative;
}

.legal-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary);
}

.legal-section h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--foreground);
    margin: 2rem 0 1rem;
    position: relative;
    padding-left: 1rem;
}

.legal-section h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 4px;
    height: 1.2rem;
    background: var(--primary);
    border-radius: 2px;
}

.legal-section p {
    color: hsl(36, 54%, 87%, 0.9);
    line-height: 1.9;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.legal-section ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    list-style: none;
}

.legal-section li {
    color: hsl(36, 54%, 87%, 0.9);
    line-height: 1.9;
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.legal-section li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.legal-footer {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 2px solid hsl(354 83% 31% / 0.25);
    text-align: center;
    color: hsl(36, 54%, 87%, 0.7);
    font-size: 0.95rem;
}

.legal-footer p {
    margin-bottom: 0.5rem;
}

.legal-footer strong {
    color: var(--primary);
    font-weight: 600;
}

/* Animación de scroll suave para secciones legales */
.legal-section {
    scroll-margin-top: 100px;
}

/* ============================================
   RESPONSIVE - PÁGINAS LEGALES Y REDES
   ============================================ */

@media (max-width: 768px) {
    .legal-content {
        padding: 2.5rem 1.75rem;
        border-radius: 1rem;
    }
    
    .legal-content h1 {
        font-size: 1.75rem;
    }
    
    .legal-intro {
        padding: 1.25rem;
        font-size: 1rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section h3 {
        font-size: 1.125rem;
    }
    
    .legal-section ul {
        margin-left: 1rem;
    }
    
    .legal-section li {
        padding-left: 1.25rem;
    }
    
    .social-links {
        gap: 0.625rem;
    }
    
    .social-link {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .social-link svg {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .footer-bottom-content {
        text-align: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .legal-page {
        padding: 6rem 0 3rem;
    }
    
    .legal-content {
        padding: 2rem 1.25rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
}

/* opciones adiocionales de las banderas*/
#lang-flag,
#lang-flag-mobile {
    display: block;
    width: 40px; 
    height: 24px; 
    border: 2px solid #363636; 
    border-radius: 4px; 
    box-sizing: border-box;
    background: #fff;
    object-fit: cover;
}