/* ==========================================================================
   MIVAC TECH - DESIGN SYSTEM & STYLES
   ========================================================================== */

   :root {
    /* Colors */
    --color-white: #ffffff;
    --color-black: #0a0a0a;
    --color-black-light: #1a1a1a;
    --color-purple: #7b2cbf;
    --color-purple-light: #9d4edd;
    --color-purple-dark: #5a189a;
    --color-gray-100: #f8f9fa;
    --color-gray-200: #e9ecef;
    --color-gray-800: #343a40;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    
    /* Layout */
    --max-width: 1200px;
    --nav-height: 80px;
    
    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-purple: 0 10px 30px -10px rgba(123, 44, 191, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  /* ==========================================================================
     RESET & BASE
     ========================================================================== */
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: var(--font-body);
    color: var(--color-black);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--color-black);
  }
  
  a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
  }
  
  ul {
    list-style: none;
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: var(--transition);
  }
  
  /* ==========================================================================
     BACKGROUND & UTILITIES
     ========================================================================== */
  
  /* Cow Spots Background (SVG Pattern via Data URI) */
  .cow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.04;
    background-color: var(--color-white);
    background-image: url("data:image/svg+xml,%3Csvg width='400' height='400' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M83.5 130.5c-20 25-45 35-50 65-5 35 25 55 45 65 30 15 50-10 65-25 20-20 15-45 5-65-15-25-45-65-65-40zm180-50c-25-10-45 10-60 25-15 15-25 40-10 60 15 20 45 25 65 15 25-10 35-30 40-50 5-25-10-40-35-50zm-120 180c-20 15-30 40-20 60 10 20 35 30 55 20 20-10 30-35 20-55-10-25-35-40-55-25zm150 40c-15-5-30 5-40 15-10 10-15 25-5 35 10 10 25 15 40 5 15-10 20-30 5-55z' fill='%23000000'/%3E%3C/svg%3E");
    pointer-events: none;
  }
  
  .gradient-text {
    background: linear-gradient(135deg, var(--color-purple), var(--color-purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .section-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(123, 44, 191, 0.1);
    color: var(--color-purple);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  section {
    padding: 3rem 2rem;
  }
  
  .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
  }
  
  .section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
  }
  
  .section-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-800);
  }
  
  /* Buttons */
  .btn-primary {
    background: var(--color-purple);
    color: var(--color-white);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.125rem;
    box-shadow: var(--shadow-purple);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .btn-primary:hover {
    background: var(--color-purple-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -10px rgba(123, 44, 191, 0.6);
  }
  
  .btn-outline {
    background: transparent;
    color: var(--color-black);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.125rem;
    border: 2px solid var(--color-black);
  }
  
  .btn-outline:hover {
    background: var(--color-black);
    color: var(--color-white);
  }
  
  /* ==========================================================================
     NAVBAR
     ========================================================================== */
  
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
  }
  
  .navbar.scrolled {
    height: 70px;
    box-shadow: var(--shadow-sm);
  }
  
  .nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .nav-logo {
    display: flex;
    align-items: center;
  }
  
  .logo-img {
    height: 50px;
    transition: var(--transition);
  }
  
  .navbar.scrolled .logo-img {
    height: 40px;
  }
  
  .nav-links {
    display: flex;
    gap: 2rem;
  }

  .nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
  }
  
  .nav-link {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-gray-800);
    position: relative;
  }
  
  .nav-link:hover, .nav-link.active {
    color: var(--color-purple);
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-purple);
    transition: var(--transition);
  }
  
  .nav-link:hover::after, .nav-link.active::after {
    width: 100%;
  }
  
  .btn-cta-nav {
    background: var(--color-black);
    color: var(--color-white);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
  }
  
  .btn-cta-nav:hover {
    background: var(--color-purple);
    transform: translateY(-2px);
  }

  .btn-acceder-nav {
    background: var(--color-purple);
    color: var(--color-white);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
  }

  .btn-acceder-nav:hover {
    background: var(--color-black);
    transform: translateY(-2px);
  }
  
  .hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 30px;
  }
  
  .hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-black);
    transition: var(--transition);
  }
  
  /* ==========================================================================
     MOBILE DRAWER
     ========================================================================== */
  
  .drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  
  .drawer-overlay.open {
    opacity: 1;
    visibility: visible;
  }
  
  .mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--color-white);
    z-index: 1000;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .mobile-drawer.open {
    right: 0;
  }
  
  .drawer-close {
    align-self: flex-end;
    font-size: 1.5rem;
    color: var(--color-black);
    margin-bottom: 2rem;
  }
  
  .drawer-logo {
    height: 40px;
    margin-bottom: 3rem;
    align-self: flex-start;
  }
  
  .drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .drawer-link {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-black);
    border-bottom: 1px solid var(--color-gray-200);
    padding-bottom: 0.5rem;
  }
  
  .drawer-link:hover {
    color: var(--color-purple);
    padding-left: 10px;
  }
  
  /* ==========================================================================
     HERO SECTION
     ========================================================================== */
  
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 2.5rem);
    padding-bottom: 2.5rem;
    display: flex;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    gap: 4rem;
  }
  
  .hero-content {
    flex: 1;
  }
  
  .hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-gray-100);
    border: 1px solid var(--color-gray-200);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-gray-800);
    margin-bottom: 2.5rem;
    max-width: 600px;
  }
  
  .hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
  }
  
  .hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  
  .stat-number {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--color-black);
  }
  
  .stat-plus {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-purple);
  }
  
  .stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--color-gray-800);
    font-weight: 500;
  }
  
  .stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-gray-200);
  }
  
  .hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .hero-card {
    background: var(--color-black);
    border-radius: 30px;
    padding: 3rem;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(123, 44, 191, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    animation: pulseGlow 4s infinite alternate;
  }
  
  @keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
  }
  
  .floating {
    animation: floating 6s ease-in-out infinite;
  }
  
  @keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
  }
  
  .hero-logo-big {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 2rem;
    background: white;
    padding: 1rem;
  }
  
  .tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }
  
  .pill {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  /* ==========================================================================
     SERVICES SECTION
     ========================================================================== */
  
  .services {
    background: #0b091a;
    position: relative;
    padding: 8rem 2rem;
    overflow: hidden;
  }
  
  .services::before {
    content: '';
    position: absolute;
    top: -10%; left: -10%; width: 40%; height: 40%;
    background: radial-gradient(circle, rgba(123, 44, 191, 0.15), transparent 70%);
    pointer-events: none;
  }

  .services .section-title {
    color: white;
  }

  .services .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
  }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
    align-items: start;
  }
  
  .service-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    padding: 2.2rem 1.5rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    color: white;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    height: fit-content; /* Se adapta al contenido visible */
  }
  
  .service-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-purple);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transform: translateY(-5px);
  }

  .service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(123, 44, 191, 0.1);
    border-radius: 18px;
    margin: 0 auto 1.5rem;
    color: var(--color-purple-light);
    border: 1px solid rgba(123, 44, 191, 0.2);
    transition: all 0.4s ease;
  }

  .service-icon i {
    width: 28px;
    height: 28px;
  }
  
  .service-card:hover .service-icon {
    transform: scale(1.1);
    background: var(--color-purple);
    color: white;
  }

  .service-content h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0;
    transition: margin 0.4s;
    color: white;
  }

  .service-card:hover h3 {
    margin-bottom: 0.5rem;
    color: white;
  }

  /* Contenido extra oculto inicialmente */
  .service-reveal {
    max-height: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
    overflow: hidden;
    pointer-events: none;
  }

  .service-card:hover .service-reveal {
    max-height: 500px; /* Expansión suave del contenido extra */
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    margin-top: 1.5rem;
  }

  .service-content p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
  }

  .service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
    text-align: left;
  }

  .service-features li {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .service-price {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
  }

  .service-price small {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
  }

  .service-price span {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--secondary);
  }
  
  .service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(123, 44, 191, 0.1);
    border-radius: 20px;
    color: var(--color-purple-light);
    border: 1px solid rgba(123, 44, 191, 0.2);
    transition: all 0.4s ease;
  }

  .service-icon i {
    width: 32px;
    height: 32px;
  }
  
  .service-card:hover .service-icon {
    transform: scale(1.1) rotate(12deg);
    background: var(--color-purple);
    color: white;
    box-shadow: 0 10px 20px rgba(123, 44, 191, 0.3);
  }
  
  /* ==========================================================================
     ABOUT SECTION
     ========================================================================== */
  
  .about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: var(--max-width);
    margin: 0 auto;
  }
  
  .about-text {
    flex: 1;
  }
  
  .about-description {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--color-gray-800);
  }
  
  .about-values {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .value-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .value-icon {
    font-size: 1.5rem;
    background: var(--color-gray-100);
    padding: 0.8rem;
    border-radius: 12px;
  }
  
  .value-item strong {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    display: block;
    margin-bottom: 0.2rem;
  }
  
  .about-visual {
    flex: 1;
    position: relative;
  }
  
  .about-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-gray-200);
    position: relative;
    z-index: 2;
  }
  
  .about-logo {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 1.5rem;
  }
  
  .about-tagline {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-weight: 700;
    color: var(--color-black);
    font-size: 1rem;
  }
  
  .floating-badges {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
  }
  
  .fbadge {
    position: absolute;
    background: var(--color-white);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-gray-100);
    animation: floating 4s ease-in-out infinite;
  }
  
  .fbadge-1 { top: -20px; right: -20px; animation-delay: 0s; color: var(--color-purple); }
  .fbadge-2 { bottom: 40px; left: -30px; animation-delay: 1s; }
  .fbadge-3 { bottom: -20px; right: 20px; animation-delay: 2s; }
  
  /* ==========================================================================
     PROCESS SECTION
     ========================================================================== */
  
  .process {
    background: var(--color-black);
    color: var(--color-white);
  }
  
  .process .section-title {
    color: var(--color-white);
  }
  
  .process .section-subtitle {
    color: var(--color-gray-200);
  }
  
  .process-steps {
    display: flex;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 4rem auto 0;
    position: relative;
  }
  
  .process-step {
    flex: 1;
    position: relative;
    padding: 0 1rem;
    text-align: center;
  }
  
  .step-number {
    width: 80px;
    height: 80px;
    background: var(--color-black-light);
    border: 2px solid var(--color-purple);
    color: var(--color-purple-light);
    font-size: 2rem;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 20px rgba(123, 44, 191, 0.3);
  }
  
  .step-content h3 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .step-content p {
    color: var(--color-gray-200);
    font-size: 0.95rem;
  }
  
  .step-connector {
    position: absolute;
    top: 40px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: dashed 2px var(--color-purple-dark);
    z-index: 1;
  }
  
  /* ==========================================================================
     CONTACT SECTION
     ========================================================================== */
  
  .contact-wrapper {
    display: flex;
    gap: 4rem;
    max-width: var(--max-width);
    margin: 0 auto;
    background: var(--color-white);
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--color-gray-200);
  }
  
  .contact-info {
    flex: 1;
    background: var(--color-black);
    color: var(--color-white);
    padding: 4rem;
  }
  
  .contact-info h3 {
    color: var(--color-white);
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: center;
  }
  
  .contact-icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }
  
  .contact-item strong {
    font-size: 1.125rem;
    font-family: var(--font-heading);
  }
  
  .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
  }
  
  .social-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
  }
  
  .social-btn:hover {
    background: var(--color-purple);
    transform: translateY(-5px);
  }
  
  .contact-form {
    flex: 1.5;
    padding: 4rem;
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-gray-200);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--color-gray-100);
    transition: var(--transition);
  }
  
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: var(--color-purple);
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(123, 44, 191, 0.1);
  }
  
  .btn-full {
    width: 100%;
  }
  
  .form-success, .form-error {
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    text-align: center;
    font-weight: 600;
  }
  
  .form-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
  }
  
  .form-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
  }
  
  /* ==========================================================================
     FOOTER
     ========================================================================== */
  
  .footer {
    background: var(--color-black-light);
    color: var(--color-white);
    padding: 4rem 2rem 2rem;
  }
  
  .footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
  }
  
  .footer-brand {
    flex: 2;
    min-width: 300px;
  }
  
  .footer-logo {
    height: 60px;
    margin-bottom: 1.5rem;
    background: white;
    padding: 5px;
    border-radius: 10px;
  }
  
  .footer-brand p {
    color: var(--color-gray-200);
  }
  
  .footer-links {
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-links h4 {
    color: var(--color-white);
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .footer-links a {
    color: var(--color-gray-200);
  }
  
  .footer-links a:hover {
    color: var(--color-purple-light);
    padding-left: 5px;
  }
  
  .footer-bottom {
    max-width: var(--max-width);
    margin: 2rem auto 0;
    display: flex;
    justify-content: space-between;
    color: var(--color-gray-200);
    font-size: 0.875rem;
  }
  
  /* ==========================================================================
     RESPONSIVE DESIGN
     ========================================================================== */
  
  @media (max-width: 992px) {
    .hero {
      flex-direction: column;
      text-align: center;
      padding-top: calc(var(--nav-height) + 2rem);
    }
  
    .hero-subtitle {
      margin: 0 auto 2.5rem;
    }
  
    .hero-actions {
      justify-content: center;
    }
  
    .hero-stats {
      justify-content: center;
    }
  
    .about-content {
      flex-direction: column;
      gap: 2rem;
    }
  
    .about-visual {
      margin-top: 3rem;
      width: 100%;
      position: relative;
      display: flex;
      justify-content: center;
      padding: 0 2rem; /* Espacio para que las etiquetas floten */
    }

    .about-card {
      padding: 1.2rem;
      width: 100%;
      max-width: 260px; /* Más pequeña para dejar espacio lateral */
      margin: 0 auto;
    }

    .about-tagline {
      gap: 0.5rem;
      font-size: 0.75rem;
      font-weight: 800;
    }

    .floating-badges {
      position: absolute !important;
      top: 0; left: 0; width: 100%; height: 100%;
      pointer-events: none;
    }

    .fbadge {
      position: absolute !important;
      display: block !important;
      font-size: 0.7rem !important;
      padding: 6px 12px !important;
      white-space: nowrap;
      box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
      z-index: 10;
    }

    .fbadge-1 { top: -15px !important; right: 15% !important; left: auto !important; }
    .fbadge-2 { bottom: 60px !important; left: 10% !important; }
    .fbadge-3 { bottom: -10px !important; right: 15% !important; }
  
    .value-item {
      text-align: left;
    }
  
    .process-steps {
      flex-direction: column;
      gap: 3rem;
    }
  
    .step-connector {
      display: none;
    }
  
    .contact-wrapper {
      flex-direction: column;
    }
  
    .contact-info, .contact-form {
      padding: 2.5rem;
    }
  }
  
  @media (max-width: 768px) {
    .nav-links, .btn-cta-nav {
      display: none;
    }
  
    .hamburger {
      display: flex;
    }
  
    .section-title {
      font-size: 2rem;
    }
  
    .hero-actions {
      flex-direction: column;
    }
  
    .hero-stats {
      flex-wrap: wrap;
    }
  
    .footer-content {
      flex-direction: column;
      gap: 2rem;
    }
  
    .footer-bottom {
      flex-direction: column;
      text-align: center;
      gap: 1rem;
    }
  }
  

/* BOTÓN FLOTANTE WHATSAPP */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    color: white;
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: white;
    color: #333;
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
    .whatsapp-tooltip {
        display: none;
    }
}

/* BOTÓN FLOTANTE YUKI (IA) */
.yuki-float {
    position: fixed;
    bottom: 105px; /* Ubicado arriba del WhatsApp */
    right: 30px;
    width: 70px;
    height: 70px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 50%; /* Molde circular */
    overflow: hidden; /* Recorta las esquinas */
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.yuki-float:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.yuki-float img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajuste perfecto al círculo */
    border-radius: 50%;
}

.yuki-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff0054;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid #1a1a1a;
}

/* BOTÓN FLOTANTE CARRITO (Servicios) */
.cart-float {
    position: fixed;
    bottom: 185px; /* Ubicado arriba de Yuki */
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #7b2cbf, #5a189a);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    font-size: 24px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-float:hover {
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff0054;
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #1a1a1a;
}

/* VENTANA DE CHAT YUKI */
.yuki-window {
    position: fixed !important;
    bottom: 90px !important;
    right: 20px !important;
    left: auto !important;
    width: 360px !important;
    max-width: 90vw !important;
    height: 500px !important;
    background: #0f0f0f !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    z-index: 999999 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

.yuki-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.yuki-header {
    padding: 15px 20px;
    background: linear-gradient(90deg, rgba(123, 44, 191, 0.8), rgba(76, 201, 240, 0.8));
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.yuki-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.yuki-header-info img {
    width: 35px;
    height: 35px;
    background: white;
    padding: 2px;
    border-radius: 50%;
}

.yuki-header-info h4 {
    color: white;
    font-size: 0.9rem;
    margin: 0;
}

.yuki-header-info span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 4px;
}

.online-dot {
    width: 6px;
    height: 6px;
    background: #4df0a2;
    border-radius: 50%;
    box-shadow: 0 0 10px #4df0a2;
}

.yuki-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
}

.yuki-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.yuki-msg {
    max-width: 80%;
    padding: 10px 15px;
    font-size: 0.85rem;
    line-height: 1.4;
    border-radius: 15px;
}

.yuki-ai {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-bottom-left-radius: 2px;
}

.yuki-user {
    align-self: flex-end;
    background: linear-gradient(135deg, #7b2cbf, #5a189a);
    color: white;
    border-bottom-right-radius: 2px;
}

.yuki-footer {
    padding: 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.yuki-footer input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 10px;
    color: white;
    font-size: 0.85rem;
}

.yuki-footer button {
    background: #4cc9f0;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: #1a1a1a;
    cursor: pointer;
    transition: transform 0.2s;
}

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

/* Scrollbar personalizado para el chat */
.yuki-body::-webkit-scrollbar {
    width: 4px;
}
.yuki-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .yuki-window {
        width: calc(100% - 40px);
        bottom: 160px;
        right: 20px;
    }
    .yuki-float {
        bottom: 85px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
}

/* REFUERZO DE VISIBILIDAD MÓVIL Y NAVBAR */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px !important;
        right: 20px !important;
        z-index: 99999 !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .yuki-float {
        bottom: 85px !important;
        right: 20px !important;
        width: 55px !important;
        height: 55px !important;
    }

    .cart-float {
        bottom: 150px !important;
        right: 20px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 20px !important;
    }

    .yuki-window {
        z-index: 100000 !important;
        width: 100% !important;
        height: 100% !important;
        bottom: 0 !important;
        right: 0 !important;
        border-radius: 0 !important;
    }

    .hamburger {
        z-index: 10001 !important;
        display: flex !important;
    }
}

/* FIX DRAWER ACTIVE STATE */
.mobile-drawer.active {
    transform: translateX(0);
}
.drawer-overlay.active {
    display: block;
    opacity: 1;
}

/* REPARACIÓN DEFINITIVA NAVEGACIÓN MÓVIL */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: #0a0a0a !important; /* Fondo sólido */
    z-index: 20000 !important; /* Por encima de todo */
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.mobile-drawer.active {
    transform: translateX(0);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 19999 !important;
    display: none;
}

.drawer-overlay.active {
    display: block;
}

/* ESCONDER BOTONES CUANDO EL MENÚ ESTÁ ABIERTO */
body.drawer-open .whatsapp-float,
body.drawer-open .yuki-float {
    display: none !important;
}

/* BOTÓN CERRAR DRAWER */
.drawer-close {
    align-self: flex-end;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    margin-bottom: 2rem;
}

/* ESTILO DE ENLACES EN EL MENÚ MÓVIL */
.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.drawer-link {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s;
}

.drawer-link:hover {
    color: #00d4ff !important;
    padding-left: 10px;
}

.mobile-drawer .drawer-logo {
    width: 120px;
    margin-bottom: 1rem;
    border-radius: 10px;
}

/* ESTILOS LEGALES EN FOOTER */
.footer-legal {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 10px 0;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #7b2cbf;
}
