﻿:root {
      --bg-body: #fafbfc;
      --bg-white: #ffffff;
      --bg-dark: #0A0A0A;
      --text-main: #1a1a1a;
      --text-muted: #666666;
      --accent-black: #0A0A0A;
      --accent-silver: #8A8A8A;
      --accent-cyan: #3b82f6;
      --header-height: 100px;
      --radius: 8px;
      --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html, body {
      overflow-x: hidden;
      width: 100%;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background-color: var(--bg-white);
      color: var(--text-main);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      font-weight: 400;
      letter-spacing: -0.01em;
    }

    h1, h2, h3, h4 {
      font-family: 'Inter', sans-serif;
      font-weight: 700;
      line-height: 1.2;
      color: var(--accent-black);
      letter-spacing: -0.04em;
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    ul {
      list-style: none;
    }

    img {
      max-width: 100%;
      display: block;
    }

    /* Header */
    .site-header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: var(--header-height);
      background: transparent;
      backdrop-filter: none;
      border-bottom: 1px solid transparent;
      z-index: 1000;
      display: flex;
      align-items: center;
      transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    }

    .site-header.scrolled {
      background: rgba(10, 10, 10, 0.98);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .site-header.scrolled .menu-toggle span {
      background: #ffffff;
    }
    
    /* En páginas internas, el header SIEMPRE tiene fondo negro */
    .internal-page .site-header {
      background: rgba(10, 10, 10, 0.98);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .internal-page .site-header .nav-links a {
      color: #ffffff;
    }
    
    .internal-page .site-header .language-current {
      color: #ffffff;
    }
    
    .internal-page .site-header .menu-toggle span {
      background: #ffffff;
    }

    .header-container {
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 24px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 16px;
      text-decoration: none;
      transition: opacity 0.3s ease;
    }

    .logo:hover {
      opacity: 0.8;
    }

    .logo-img {
      height: 120px;
      width: auto;
      display: block;
      transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    }

    .logo-text {
      font-family: 'Cormorant Garamond', serif;
      font-size: 2.2rem;
      font-weight: 600;
      color: #0A0A0A;
      letter-spacing: 0.03em;
      line-height: 1;
      transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    }

    .logo-light {
      font-weight: 600;
      color: #0A0A0A;
    }

    .site-header.scrolled .logo-text {
      color: #ffffff;
    }

    .site-header.scrolled .logo-light {
      color: #ffffff;
    }

    .site-footer .logo-text {
      color: #ffffff !important;
    }

    .site-footer .logo-light {
      color: #ffffff !important;
    }

    .site-footer .logo-img {
      height: 80px;
      width: auto;
      filter: brightness(0) invert(1);
    }

    .site-footer .logo-text {
      font-size: 1.8rem;
    }

    /* Scroll Animation */
    .scroll-animate {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .scroll-animate.animate-in {
      opacity: 1;
      transform: translateY(0);
    }

    .scroll-animate-left {
      opacity: 0;
      transform: translateX(-50px);
      transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .scroll-animate-left.animate-in {
      opacity: 1;
      transform: translateX(0);
    }

    .scroll-animate-right {
      opacity: 0;
      transform: translateX(50px);
      transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .scroll-animate-right.animate-in {
      opacity: 1;
      transform: translateX(0);
    }

    .nav-links {
      display: flex;
      gap: 32px;
      align-items: center;
    }

    .nav-links a {
      font-size: 0.95rem;
      font-weight: 500;
      color: #ffffff;
      position: relative;
      transition: opacity 0.2s ease;
      letter-spacing: 0.02em;
      font-family: 'Inter', sans-serif;
      padding: 8px 0;
    }

    .nav-links a::before {
      display: none;
    }

    .nav-links a:hover,
    .nav-links a.active {
      color: #ffffff;
    }

    .site-header.scrolled .nav-links a {
      color: #ffffff;
    }

    .site-header.scrolled .nav-links a:hover,
    .site-header.scrolled .nav-links a.active {
      color: #ffffff;
    }

    .nav-links a::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 0;
      height: 2px;
      background: #ffffff;
      transition: width 0.25s ease;
    }

    .site-header.scrolled .nav-links a::after {
      background: #ffffff;
    }

    .nav-links a:hover::after,
    .nav-links a.active::after {
      width: 100%;
    }

    /* Language Selector */
    .language-selector {
      position: relative;
      display: flex;
      align-items: center;
    }

    .language-current {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 0;
      cursor: pointer;
      transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      font-size: 0.95rem;
      font-weight: 500;
      color: #ffffff;
      position: relative;
      letter-spacing: 0.02em;
    }

    .language-current::before {
      display: none;
    }

    .language-current:hover {
      color: #ffffff;
      opacity: 0.85;
    }

    .language-current::after {
      display: none;
    }

    .site-header.scrolled .language-current {
      color: #ffffff;
    }

    .site-header.scrolled .language-current:hover {
      color: #ffffff;
    }

    .flag-img {
      width: 18px;
      height: auto;
      border-radius: 2px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }

    .language-current .lang-code {
      font-size: 0.95rem;
      font-weight: 500;
      letter-spacing: inherit;
    }

    .language-current .chevron {
      width: 12px;
      height: 12px;
      transition: transform 0.3s ease;
      opacity: 0.7;
    }

    .language-selector:hover .chevron {
      transform: rotate(180deg);
      opacity: 1;
    }

    /* Puente invisible que cubre el hueco entre el trigger y el dropdown */
    .language-selector::after {
      content: '';
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      height: 16px;
    }

    .language-dropdown {
      position: absolute;
      top: 100%;
      right: 0;
      background: rgba(10, 10, 10, 0.98);
      backdrop-filter: blur(20px);
      border-radius: 8px;
      padding: 8px 0;
      min-width: 120px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
      border: 1px solid rgba(255, 255, 255, 0.1);
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
      z-index: 1000;
      margin-top: 8px;
    }

    .language-selector:hover .language-dropdown {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .language-dropdown::before {
      content: '';
      position: absolute;
      top: -4px;
      right: 16px;
      width: 8px;
      height: 8px;
      background: rgba(10, 10, 10, 0.98);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-bottom: none;
      border-right: none;
      transform: rotate(45deg);
    }

    .language-dropdown li {
      list-style: none;
    }

    .language-dropdown a {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 6px 12px;
      color: rgba(255, 255, 255, 0.9);
      text-decoration: none;
      font-size: 0.85rem;
      font-weight: 500;
      transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
      border: none;
      position: relative;
    }

    .language-dropdown a:hover {
      background: rgba(255, 255, 255, 0.1);
      color: #ffffff;
      transform: translateX(2px);
    }

    .language-dropdown a::before,
    .language-dropdown a::after {
      display: none;
    }

    .language-dropdown .flag-img {
      width: 16px;
      height: auto;
    }

    .flag-emoji {
      font-size: 16px;
      width: 16px;
      display: inline-block;
      text-align: center;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 14px 32px;
      border-radius: 8px;
      font-weight: 600;
      font-size: 1rem;
      transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      border: 2px solid rgba(255, 255, 255, 0.3);
      cursor: pointer;
      font-family: 'Inter', sans-serif;
      background: transparent;
      color: #ffffff;
      position: relative;
      overflow: hidden;
      will-change: transform;
      backface-visibility: hidden;
      transform: translateZ(0);
    }

    .btn::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(192, 192, 192, 0.3), transparent);
      transition: left 0.6s;
    }

    .btn:hover::before {
      left: 100%;
    }

    .btn:hover {
      background: rgba(192, 192, 192, 0.15);
      border-color: rgba(192, 192, 192, 0.8);
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(192, 192, 192, 0.3);
    }

    .btn-primary {
      background: transparent;
      color: #fff;
      border: 2px solid rgba(255, 255, 255, 0.3);
    }

    .btn-primary:hover {
      background: rgba(192, 192, 192, 0.15);
      border-color: rgba(192, 192, 192, 0.8);
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(192, 192, 192, 0.3);
    }

    .btn-dark {
      background: var(--accent-black);
      color: #fff;
      border: 2px solid var(--accent-black);
    }

    .btn-dark:hover {
      background: #1a1a1a;
      transform: translateY(-2px);
    }

    .btn-outline {
      background: transparent;
      border: 2px solid rgba(255, 255, 255, 0.3);
      color: #ffffff;
    }

    .btn-outline:hover {
      background: rgba(192, 192, 192, 0.15);
      border-color: rgba(192, 192, 192, 0.8);
      color: #fff;
    }

    .menu-toggle {
      display: none;
      background: none;
      border: none;
      cursor: pointer;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 5px;
      padding: 8px;
      z-index: 1001;
      width: 44px;
      height: 44px;
    }

    .menu-toggle span {
      display: block;
      width: 24px;
      height: 2px;
      background: #ffffff;
      transition: transform 0.3s, opacity 0.3s;
      border-radius: 2px;
    }

    /* Timeline Approach */
    .timeline-item:hover {
      transform: translateX(8px);
    }

    .timeline-item:hover > div {
      background: #0A0A0A;
      transform: scale(1.3);
      box-shadow: 0 0 0 4px rgba(10, 10, 10, 0.1);
    }

    .timeline-item:hover h4 {
      color: #0A0A0A;
      letter-spacing: 0.02em;
    }

    .timeline-item:hover p {
      color: #4A4A4A;
    }

    /* Sections general */
    section {
      scroll-margin-top: 100px;
    }

    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 24px;
    }

    .section-title {
      font-size: 2.2rem;
      margin-bottom: 12px;
      text-align: center;
    }

    .section-subtitle {
      text-align: center;
      color: var(--text-muted);
      max-width: 600px;
      margin: 0 auto 48px;
      font-size: 1.05rem;
    }

    /* Hero */
    .hero {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding-top: var(--header-height);
      position: relative;
      overflow: hidden;
    }

    .hero-video {
      position: absolute;
      top: 50%;
      left: 50%;
      min-width: 100%;
      min-height: 100%;
      width: auto;
      height: auto;
      transform: translate(-50%, -50%);
      object-fit: cover;
      z-index: 0;
    }

    .hero-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.6) 100%);
      z-index: 1;
    }

    .hero .container {
      position: relative;
      z-index: 2;
    }

    .hero h1 {
      font-size: 3.2rem;
      margin-bottom: 24px;
      color: #ffffff;
      font-weight: 700;
      letter-spacing: -0.04em;
      text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
      line-height: 1.1;
    }

    /* Hero Title Animation */
    .hero-title {
      opacity: 0;
      transform: translateY(20px);
      animation: fadeSlideIn 1s ease-out forwards;
    }

    @keyframes fadeSlideIn {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .hero h1 em {
      font-style: normal;
      color: #ffffff;
      font-weight: 700;
    }

    .hero p {
      font-size: 1.05rem;
      color: rgba(255, 255, 255, 0.9);
      margin-bottom: 36px;
      line-height: 1.7;
      font-weight: 400;
      text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
    }

    .hero-buttons {
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
    }

    /* Services */
    .services {
      padding: 100px 0;
      background: var(--bg-body);
    }

    .services-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
      row-gap: 48px;
    }

    .service-card {
      background: #ffffff;
      border-radius: 16px;
      padding: 40px 32px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
      transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
      border: 1px solid #e5e5e5;
      position: relative;
      overflow: hidden;
      will-change: transform;
      backface-visibility: hidden;
      transform: translateZ(0);
    }

    .service-card::before {
      content: '';
      position: absolute;
      top: 1px;
      left: -100%;
      right: 0;
      bottom: 1px;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6), transparent);
      transition: left 0.6s ease-out;
      z-index: 1;
      border-radius: 16px;
    }

    .service-card:hover::before {
      left: 100%;
    }

    .service-card:hover {
      background: #000000 !important;
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
      border-color: #000000 !important;
    }

    .service-card > * {
      position: relative;
      z-index: 2;
    }

    .service-icon {
      width: 56px;
      height: 56px;
      margin-bottom: 24px;
      color: #000000;
      transition: color 0.25s ease;
    }

    .service-card:hover .service-icon {
      color: #ffffff !important;
    }

    .service-card h3 {
      font-size: 1.3rem;
      margin-bottom: 16px;
      font-weight: 700;
      transition: color 0.25s ease;
      min-height: 2.6rem;
      color: #000000;
    }

    .service-card h2 {
      font-size: 1.3rem;
      margin-bottom: 16px;
      font-weight: 700;
      transition: color 0.25s ease;
      min-height: 2.6rem;
      color: #000000;
    }

    .service-card:hover h3,
    .service-card:hover h2 {
      color: #F5F5F5 !important;
    }

    .service-card p {
      font-size: 0.95rem;
      color: var(--text-muted);
      line-height: 1.6;
      transition: color 0.25s ease;
    }

    .service-card:hover p {
      color: #F5F5F5 !important;
    }

    /* Market Areas */
    .market-areas {
      padding: 100px 0;
      background: var(--bg-white);
      position: relative;
    }

    .market-content {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 60px;
      align-items: center;
    }

    .market-text h2 {
      font-family: 'Cormorant Garamond', serif;
      font-size: 2.8rem;
      font-weight: 600;
      color: #0A0A0A;
      margin-bottom: 40px;
      letter-spacing: 0.02em;
      line-height: 1.2;
    }

    .market-options {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .market-option {
      padding: 24px 32px;
      background: var(--bg-white);
      border: 2px solid #e5e5e5;
      border-radius: 12px;
      font-size: 1.05rem;
      font-weight: 600;
      color: #0A0A0A;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      cursor: pointer;
      transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      position: relative;
      overflow: hidden;
      text-align: left;
      white-space: nowrap;
    }

    .market-option::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(10, 10, 10, 0.03), transparent);
      transition: left 0.6s;
      z-index: 1;
    }

    .market-option:hover::before {
      left: 100%;
    }

    .market-option::after {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 4px;
      background: linear-gradient(180deg, #0A0A0A, #4A4A4A);
      transform: scaleY(0);
      transform-origin: bottom;
      transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .market-option:hover::after {
      transform: scaleY(1);
    }

    .market-option:hover {
      background: linear-gradient(135deg, rgba(10, 10, 10, 0.02), rgba(10, 10, 10, 0.05));
      border-color: #0A0A0A;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    }

    .market-option:hover span {
      transform: translateX(8px);
    }

    .market-option span {
      position: relative;
      z-index: 2;
      display: inline-block;
      transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .market-image {
      position: relative;
      height: 500px;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
      transition: background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), color 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .market-image:hover {
      transform: scale(1.02);
      box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    }

    .market-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .market-image:hover img {
      transform: scale(1.05);
    }

    .market-image::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(10, 10, 10, 0.3), rgba(10, 10, 10, 0.1));
      pointer-events: none;
    }

    /* Sectors */
    .sectors {
      padding: 100px 0;
      background: var(--bg-white);
      position: relative;
    }

    .sectors-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 24px;
      text-align: center;
    }

    .sector-item {
      padding: 40px 20px;
      border-radius: 12px;
      background: #ffffff;
      border: 1px solid #e5e5e5;
      transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
      position: relative;
      overflow: hidden;
      cursor: pointer;
      height: 200px;
      display: flex;
      align-items: center;
      justify-content: center;
      will-change: transform;
      backface-visibility: hidden;
      transform: translateZ(0);
    }

    .sector-item::before {
      content: '';
      position: absolute;
      top: 1px;
      left: -100%;
      right: 0;
      bottom: 1px;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6), transparent);
      transition: left 0.6s ease-out;
      z-index: 1;
      border-radius: 12px;
    }

    .sector-item:hover::before {
      left: 100%;
    }

    .sector-content {
      position: relative;
      z-index: 2;
      text-align: center;
      transition: opacity 0.25s ease;
    }

    .sector-item:hover {
      background: #000000;
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
      border-color: #000000;
    }

    .sector-item svg {
      width: 48px;
      height: 48px;
      margin-bottom: 16px;
      color: #000000;
      transition: color 0.25s ease;
    }

    .sector-content svg {
      width: 48px;
      height: 48px;
      margin-bottom: 16px;
      color: #000000;
      transition: color 0.25s ease;
    }

    .sector-item:hover svg,
    .sector-item:hover .sector-content svg {
      color: #ffffff !important;
      stroke: #ffffff !important;
    }

    .sector-item h4,
    .sector-item h3 {
      font-size: 1.05rem;
      color: #000000;
      font-weight: 600;
      transition: color 0.25s ease;
    }

    .sector-item:hover h4,
    .sector-item:hover h3 {
      color: #ffffff !important;
    }

    /* Cases */
    .cases {
      padding: 100px 0;
      background: var(--bg-body);
    }

    .cases-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }

    .case-card {
      background: var(--bg-white);
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
      transition: background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), color 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
      border: 1px solid #e5e5e5;
      position: relative;
      will-change: transform;
      backface-visibility: hidden;
      transform: translateZ(0);
    }

    .case-card::before {
      content: '';
      position: absolute;
      top: 1px;
      left: -100%;
      right: 0;
      bottom: 1px;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6), transparent);
      transition: left 0.6s ease-out;
      z-index: 1;
    }

    .case-card:hover::before {
      left: 100%;
    }

    .case-card::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(90deg, #0A0A0A, #4A4A4A, #0A0A0A);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
      z-index: 2;
    }

    .case-card:hover::after {
      transform: scaleX(1);
    }

    .case-card:hover {
      transform: translateY(-12px) scale(1.02);
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
      border-color: #0A0A0A;
    }

    .case-image {
      height: 200px;
      background: linear-gradient(135deg, #0A0A0A 0%, #1a1a1a 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #ffffff;
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.5rem;
      font-weight: 600;
      letter-spacing: 0.05em;
      position: relative;
      overflow: hidden;
      transition: background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), color 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .case-image::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1), transparent);
      transform: translateX(-100%) rotate(45deg);
      transition: transform 0.6s;
    }

    .case-card:hover .case-image::before {
      transform: translateX(100%) rotate(45deg);
    }

    .case-card:hover .case-image {
      background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
      letter-spacing: 0.1em;
    }

    .case-body {
      padding: 32px;
      position: relative;
      z-index: 2;
    }

    .case-body h4 {
      font-size: 1.2rem;
      margin-bottom: 12px;
      transition: all 0.3s;
      font-weight: 700;
    }

    .case-card:hover .case-body h4 {
      color: #0A0A0A;
      letter-spacing: 0.01em;
    }

    .case-body p {
      font-size: 0.95rem;
      color: var(--text-muted);
      margin-bottom: 20px;
      line-height: 1.7;
      transition: color 0.3s;
    }

    .case-card:hover .case-body p {
      color: #4A4A4A;
    }

    .case-result {
      display: inline-block;
      font-size: 0.85rem;
      font-weight: 700;
      color: #0A0A0A;
      background: linear-gradient(135deg, rgba(10, 10, 10, 0.08), rgba(10, 10, 10, 0.12));
      padding: 8px 16px;
      border-radius: 6px;
      transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      border: 1px solid rgba(10, 10, 10, 0.1);
      letter-spacing: 0.05em;
    }

    .case-card:hover .case-result {
      background: linear-gradient(135deg, #0A0A0A, #1a1a1a);
      color: #ffffff;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(10, 10, 10, 0.3);
      border-color: #0A0A0A;
    }

    /* Team */
    .team {
      padding: 100px 0;
      background: var(--bg-white);
    }

    .team-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 24px;
    }

    .team-member {
      text-align: center;
      padding: 32px 24px;
      background: var(--bg-white);
      border-radius: 12px;
      border: 1px solid #e5e5e5;
      transition: background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), color 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
      position: relative;
      overflow: hidden;
      will-change: transform;
      backface-visibility: hidden;
      transform: translateZ(0);
    }

    .team-member::before {
      content: '';
      position: absolute;
      top: 1px;
      left: -100%;
      right: 0;
      bottom: 1px;
      background: linear-gradient(90deg, transparent, rgba(10, 10, 10, 0.03), transparent);
      transition: left 0.6s ease-out;
      z-index: 1;
    }

    .team-member:hover::before {
      left: 100%;
    }

    .team-member::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(90deg, #0A0A0A, #4A4A4A, #0A0A0A);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
      z-index: 2;
    }

    .team-member:hover::after {
      transform: scaleX(1);
    }

    .team-member:hover {
      transform: translateY(-12px) scale(1.02);
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
      border-color: #0A0A0A;
    }

    .team-member > * {
      position: relative;
      z-index: 2;
    }

    .team-avatar {
      width: 180px;
      height: 180px;
      border-radius: 50%;
      background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
      margin: 0 auto 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Cormorant Garamond', serif;
      font-size: 2.2rem;
      font-weight: 700;
      color: var(--accent-black);
      transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .team-avatar-image {
      background: none;
      overflow: hidden;
      padding: 0;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .team-avatar-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      display: block;
      image-rendering: auto;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    .team-member:hover .team-avatar {
      transform: scale(1.08);
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    }
    
    .team-member:hover .team-avatar-image {
      background: none;
    }

    .team-member h4 {
      font-size: 1.1rem;
      margin-bottom: 4px;
    }

    .team-member .role {
      font-size: 0.85rem;
      color: var(--accent-silver);
      font-weight: 600;
      margin-bottom: 10px;
      display: block;
    }

    .team-member p {
      font-size: 0.9rem;
      color: var(--text-muted);
      line-height: 1.5;
    }

    /* Testimonials */
    .testimonials {
      padding: 100px 0;
      background: var(--bg-body);
    }

    .testimonials-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }

    .testimonial-card {
      background: var(--bg-white);
      border-radius: 12px;
      padding: 36px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
      position: relative;
      border: 1px solid #e5e5e5;
      transition: background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), color 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
      overflow: hidden;
    }

    .testimonial-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(10, 10, 10, 0.03), transparent);
      transition: left 0.6s;
      z-index: 1;
    }

    .testimonial-card:hover::before {
      left: 100%;
    }

    .testimonial-card::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(90deg, #0A0A0A, #4A4A4A, #0A0A0A);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
      z-index: 2;
    }

    .testimonial-card:hover::after {
      transform: scaleX(1);
    }

    .testimonial-card:hover {
      transform: translateY(-12px) scale(1.02);
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
      border-color: #0A0A0A;
    }

    .testimonial-card > * {
      position: relative;
      z-index: 2;
    }

    .testimonial-card::before {
      content: ' ';
      font-family: 'Space Grotesk', sans-serif;
      font-size: 4rem;
      line-height: 1;
      color: var(--accent-silver);
      opacity: 0.3;
      position: absolute;
      top: 16px;
      left: 20px;
    }

    .testimonial-text {
      font-size: 1rem;
      color: var(--text-main);
      margin-bottom: 24px;
      position: relative;
      z-index: 1;
      line-height: 1.7;
    }

    .testimonial-author {
      font-weight: 600;
      font-size: 0.95rem;
      color: var(--accent-black);
    }

    .testimonial-company {
      font-size: 0.85rem;
      color: var(--text-muted);
    }

    /* CTA */
    .cta {
      padding: 100px 0;
      background: linear-gradient(135deg, #fafbfc 0%, #f5f5f5 100%);
      text-align: center;
      position: relative;
      overflow: hidden;
      margin-bottom: 0;
    }

    .cta::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(10, 10, 10, 0.03), transparent);
      transition: left 0.8s;
    }

    .cta:hover::before {
      left: 100%;
    }

    .cta .container {
      position: relative;
      z-index: 2;
    }

    .cta h2 {
      color: #0A0A0A;
      font-size: 2.5rem;
      margin-bottom: 16px;
      font-family: 'Cormorant Garamond', serif;
      font-weight: 600;
      letter-spacing: 0.02em;
      transition: all 0.3s;
    }

    .cta:hover h2 {
      letter-spacing: 0.05em;
    }

    .cta p {
      color: #666666;
      font-size: 1.1rem;
      margin-bottom: 32px;
      max-width: 600px;
      margin-left: auto;
      margin-right: auto;
    }

    .cta .btn-primary {
      background: #0A0A0A;
      color: #ffffff;
      border: 2px solid #0A0A0A;
      font-weight: 600;
      transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      position: relative;
      overflow: hidden;
    }

    .cta .btn-primary::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
      transition: left 0.6s;
    }

    .cta .btn-primary:hover::before {
      left: 100%;
    }

    .cta .btn-primary:hover {
      background: #1a1a1a;
      transform: translateY(-4px) scale(1.05);
      box-shadow: 0 12px 40px rgba(10, 10, 10, 0.3);
    }
    
    /* CTA Dark - Solo para index.html */
    .cta-dark {
      background: var(--accent-black);
    }
    
    .cta-dark::before {
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    }
    
    .cta-dark h2 {
      color: #ffffff;
    }
    
    .cta-dark p {
      color: rgba(255, 255, 255, 0.85);
    }
    
    .cta-dark .btn-primary {
      background: #ffffff;
      color: #0A0A0A;
      border: 2px solid #ffffff;
    }
    
    .cta-dark .btn-primary::before {
      background: linear-gradient(90deg, transparent, rgba(10, 10, 10, 0.1), transparent);
    }
    
    .cta-dark .btn-primary:hover {
      background: #f5f5f5;
      box-shadow: 0 12px 40px rgba(255, 255, 255, 0.3);
    }

    /* Newsletter */
    .newsletter {
      padding: 100px 0;
      background: var(--bg-white);
    }

    .newsletter-form {
      max-width: 500px;
      margin: 0 auto;
      display: flex;
      gap: 12px;
    }

    .newsletter-form input {
      flex: 1;
      padding: 14px 18px;
      border: 1px solid #d1d5db;
      border-radius: 6px;
      font-family: 'Inter', sans-serif;
      font-size: 0.95rem;
      outline: none;
      transition: border-color 0.2s;
    }

    .newsletter-form input:focus {
      border-color: var(--accent-black);
    }

    /* Contact */
    .contact {
      padding: 100px 0;
      background: var(--bg-body);
    }

    .contact-wrapper {
      max-width: 900px;
      margin: 0 auto;
      background: var(--bg-white);
      border-radius: 16px;
      padding: 48px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
      border: 1px solid #e5e5e5;
      transition: background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), color 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
      position: relative;
      overflow: hidden;
    }

    .contact-wrapper::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(10, 10, 10, 0.03), transparent);
      transition: left 0.6s;
      z-index: 1;
    }

    .contact-wrapper:hover::before {
      left: 100%;
    }

    .contact-wrapper::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(90deg, #0A0A0A, #4A4A4A, #0A0A0A);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
      z-index: 2;
    }

    .contact-wrapper:hover::after {
      transform: scaleX(1);
    }

    .contact-wrapper:hover {
      transform: translateY(-8px);
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
      border-color: #0A0A0A;
    }

    .contact-wrapper > * {
      position: relative;
      z-index: 2;
    }

    .contact-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 48px;
      align-items: start;
    }

    .contact-form {
      background: transparent;
      padding: 0;
      border-radius: 0;
      box-shadow: none;
    }

    .form-group {
      margin-bottom: 20px;
    }

    .form-group label {
      display: block;
      font-size: 0.85rem;
      font-weight: 600;
      margin-bottom: 6px;
      color: var(--text-main);
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
      width: 100%;
      padding: 12px 14px;
      border: 1px solid #d1d5db;
      border-radius: 6px;
      font-family: 'Inter', sans-serif;
      font-size: 0.95rem;
      outline: none;
      transition: border-color 0.2s;
      background: #fff;
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
      border-color: var(--accent-black);
    }

    .form-group textarea {
      resize: vertical;
      min-height: 120px;
    }

    .contact-info h3 {
      font-size: 1.5rem;
      margin-bottom: 20px;
    }

    .contact-info p {
      color: var(--text-muted);
      margin-bottom: 24px;
      line-height: 1.7;
    }

    .contact-detail {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      margin-bottom: 16px;
      color: var(--text-main);
      font-size: 0.95rem;
    }

    .contact-detail svg {
      width: 20px;
      height: 20px;
      color: var(--accent-silver);
      flex-shrink: 0;
      margin-top: 2px;
    }

    /* Footer */
    .site-footer {
      background: #000000;
      color: rgba(255, 255, 255, 0.9);
      padding: 40px 0 20px;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 40px;
      margin-bottom: 24px;
      align-items: start;
    }

    .footer-brand {
      display: flex;
      flex-direction: column;
    }

    .footer-brand .logo {
      color: #fff;
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 16px;
      height: 80px;
    }

    .footer-brand p {
      font-size: 0.85rem;
      line-height: 1.5;
      max-width: 280px;
      margin-top: 0;
      margin-bottom: 20px;
    }
    
    .social-links {
      display: flex;
      gap: 16px;
      margin-top: 8px;
    }
    
    .social-links a {
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 50%;
      color: rgba(255, 255, 255, 0.9);
      transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
      text-decoration: none;
    }
    
    .social-links a:hover {
      background: rgba(255, 255, 255, 0.2);
      color: #ffffff;
      transform: translateY(-2px);
    }
    
    .social-links svg {
      width: 18px;
      height: 18px;
    }

    .footer-col {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
    }

    .footer-col h3 {
      color: #fff;
      font-size: 0.9rem;
      margin-bottom: 16px;
      font-family: 'Inter', sans-serif;
      font-weight: 600;
      margin-top: 0;
      height: 80px;
      display: flex;
      align-items: center;
      position: relative;
      transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      cursor: default;
    }

    .footer-col h3::after {
      content: '';
      position: absolute;
      bottom: 20px;
      left: 0;
      width: 0;
      height: 2px;
      background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.3));
      transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .footer-col:hover h3 {
      letter-spacing: 0.05em;
    }

    .footer-col:hover h3::after {
      width: 40px;
    }

    .footer-col ul li {
      margin-bottom: 8px;
    }

    .footer-col ul li a {
      font-size: 0.85rem;
      transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      position: relative;
      display: inline-block;
      padding: 4px 0;
    }

    .footer-col ul li a::before {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
      transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .footer-col ul li a::after {
      content: '';
      position: absolute;
      top: 0;
      left: -4px;
      right: -4px;
      bottom: 0;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
      opacity: 0;
      transform: scaleX(0);
      transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      border-radius: 3px;
      z-index: -1;
    }

    .footer-col ul li a:hover {
      color: #ffffff;
      transform: translateX(6px);
      letter-spacing: 0.02em;
    }

    .footer-col ul li a:hover::before {
      width: 100%;
    }

    .footer-col ul li a:hover::after {
      opacity: 1;
      transform: scaleX(1);
    }

    .social-links {
      display: flex;
      gap: 14px;
      margin-top: 20px;
    }

    .social-links a {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      position: relative;
      overflow: hidden;
    }

    .social-links a::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.4), transparent);
      transform: translateX(-100%) translateY(-100%) rotate(45deg);
      transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
      pointer-events: none;
    }

    .social-links a:hover::before {
      transform: translateX(100%) translateY(100%) rotate(45deg);
    }

    .social-links a:hover {
      background: rgba(255, 255, 255, 0.2);
      transform: translateY(-2px) scale(1.1);
      box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
    }

    .social-links svg {
      width: 16px;
      height: 16px;
      color: #fff;
    }

    .footer-bottom {
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      padding-top: 16px;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 0.8rem;
      text-align: center;
    }

    /* Responsive */
    @media (max-width: 1024px) {
      .services-grid,
      .cases-grid,
      .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .team-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .sectors-grid {
        grid-template-columns: repeat(3, 1fr) !important;
      }

      .footer-grid {
        grid-template-columns: 1fr 1fr;
      }

      /* Sobre Nosotros: imagen con altura fija -> auto en tablet */
      .about-us .scroll-animate-right {
        height: 400px !important;
      }
    }

    @media (max-width: 768px) {
      :root {
        --header-height: 70px;
      }

      /* Evitar desbordamiento lateral en movil */
      html, body {
        overflow-x: hidden !important;
        width: 100% !important;
      }

      /* Evitar que las secciones desborden por animaciones laterales */
      section, .hero, .about-us, .services, .cases, .testimonials, .team, .sectors, .contact-form-section, .cta, footer, main {
        overflow-x: hidden !important;
      }

      /* Evitar que el nav vacio empuje al menu-toggle en el flex layout */
      .site-header nav {
        display: contents !important;
      }

      .menu-toggle {
        display: flex;
        margin-left: auto;
        margin-right: -8px !important; /* Compensa el padding invisible del boton y lo alinea visualmente a la extrema derecha */
      }

      /* Asegurar que las líneas del menú siempre sean blancas en móvil */
      .menu-toggle span {
        background: #ffffff !important;
      }

      /* Burger animado al abrirse */
      .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
      }
      .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
      }
      .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
      }

      .nav-links {
        position: fixed;
        top: var(--header-height);
        right: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        display: flex;
        z-index: 999;
      }

      .nav-links.active {
        transform: translateX(0);
      }

      .nav-links a {
        font-size: 1.2rem;
        color: #ffffff;
      }

      .contact-grid {
        grid-template-columns: 1fr;
      }

      .hero {
        padding-top: 100px;
        padding-bottom: 160px;
      }

      .hero h1 {
        font-size: 2.4rem;
      }

      .services-grid,
      .cases-grid,
      .testimonials-grid,
      .team-grid {
        grid-template-columns: 1fr;
      }

      /* Sectores: 2 columnas en móvil */
      .sectors-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
      }

      .sector-item {
        height: 160px;
        padding: 24px 12px;
      }

      .sector-item h4 {
        font-size: 0.9rem;
      }

      /* Sobre Nosotros: apilar en móvil */
      .about-us > .container > div {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
      }

      .about-us .scroll-animate-right {
        height: 300px !important;
        min-height: 250px;
      }

      /* Market options: text no overflow */
      .market-option {
        white-space: normal !important;
        padding: 18px 20px;
        font-size: 0.9rem;
      }

      .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
      }

      .newsletter-form {
        flex-direction: column;
      }

      .section-title {
        font-size: 1.8rem;
      }
    }

    /* Extra pequeño (360px y menos) */
    @media (max-width: 480px) {
      .sectors-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
      }

      .sector-item {
        height: 140px;
        padding: 20px 8px;
      }

      .sector-item svg {
        width: 36px;
        height: 36px;
        margin-bottom: 10px;
      }

      .sector-item h4 {
        font-size: 0.8rem;
        line-height: 1.3;
      }
    }

    /* Page Header */
    .page-header {
      padding: 160px 0 80px;
      background: linear-gradient(135deg, #fafbfc 0%, #f5f5f5 100%);
      text-align: center;
      color: #0A0A0A;
      position: relative;
    }

    .page-header h1 {
      font-size: 3rem;
      color: #0A0A0A;
      margin-bottom: 16px;
      font-family: 'Cormorant Garamond', serif;
    }

    .page-header p {
      font-size: 1.1rem;
      color: #666666;
      max-width: 600px;
      margin: 0 auto;
    }

    /* Scroll indicator - oculto por defecto en desktop */
    .scroll-indicator {
      display: none;
    }

    /* Animación de la flecha */
    @keyframes bounceArrow {
      0%, 100% {
        transform: translateY(0);
        opacity: 0.7;
      }
      50% {
        transform: translateY(10px);
        opacity: 1;
      }
    }

    @-webkit-keyframes bounceArrow {
      0%, 100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        opacity: 0.7;
      }
      50% {
        -webkit-transform: translateY(10px);
        transform: translateY(10px);
        opacity: 1;
      }
    }

    /* Mostrar scroll indicator solo en móvil */
    @media (max-width: 768px) {
      .scroll-indicator {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 32px;
        -webkit-animation: bounceArrow 1.5s ease-in-out infinite;
        animation: bounceArrow 1.5s ease-in-out infinite;
      }

      .scroll-indicator svg {
        width: 32px;
        height: 32px;
        color: #0A0A0A;
        opacity: 0.7;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
      }
    }

    /* Contact Section */
    .contact-section {
      padding: 100px 0;
      background: var(--bg-body);
    }

    .contact-grid {
      display: grid;
      grid-template-columns: 1fr 1.5fr;
      gap: 60px;
      align-items: start;
    }

    .contact-info h2 {
      font-size: 2rem;
      margin-bottom: 16px;
      color: var(--accent-black);
    }

    .contact-info p {
      color: var(--text-muted);
      margin-bottom: 40px;
      line-height: 1.7;
    }

    .contact-details {
      display: flex;
      flex-direction: column;
      gap: 24px;
    }

    .contact-item {
      display: flex;
      gap: 16px;
      align-items: flex-start;
    }

    .contact-item svg {
      width: 24px;
      height: 24px;
      color: var(--accent-black);
      flex-shrink: 0;
      margin-top: 4px;
    }

    .contact-item h3 {
      font-size: 1rem;
      margin-bottom: 4px;
      color: var(--accent-black);
    }

    .contact-item a {
      color: var(--text-muted);
      transition: color 0.3s;
    }

    .contact-item a:hover {
      color: var(--accent-black);
    }

    .contact-form {
      background: var(--bg-white);
      padding: 40px;
      border-radius: 12px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
      border: 1px solid #e5e5e5;
    }

    .form-group {
      margin-bottom: 24px;
    }

    .form-group label {
      display: block;
      margin-bottom: 8px;
      font-weight: 600;
      color: var(--accent-black);
      font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
      width: 100%;
      padding: 12px 16px;
      border: 2px solid #e5e5e5;
      border-radius: 8px;
      font-family: 'Inter', sans-serif;
      font-size: 1rem;
      transition: all 0.3s;
      background: var(--bg-white);
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
      outline: none;
      border-color: var(--accent-black);
    }

    .form-group textarea {
      resize: vertical;
      min-height: 120px;
    }

    /* Coming Soon */
    .coming-soon {
      padding: 100px 0;
      background: var(--bg-body);
    }

    .coming-soon-content {
      text-align: center;
      max-width: 640px;
      margin: 0 auto;
      padding: 80px 40px;
      background: var(--bg-white);
      border-radius: 16px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
      border: 1px solid #e5e5e5;
    }

    .coming-soon-content svg {
      width: 80px;
      height: 80px;
      color: var(--accent-black);
      margin: 0 auto 32px;
    }

    .coming-soon-content h2 {
      font-size: 2.5rem;
      margin-bottom: 16px;
      color: var(--accent-black);
      font-family: 'Cormorant Garamond', serif;
    }

    .coming-soon-content p {
      color: var(--text-muted);
      margin-bottom: 32px;
      line-height: 1.7;
      font-size: 1.05rem;
    }

    /* Footer Content */
    .footer-content {
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 60px;
      margin-bottom: 40px;
    }

    .footer-links {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 40px;
    }

    /* Tablet footer */
    @media (max-width: 900px) {
      .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
      }

      .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
      }
    }

    .footer-column h3 {
      color: #ffffff;
      font-size: 1rem;
      margin-top: 8px;
      margin-bottom: 24px;
      font-weight: 600;
    }

    .footer-column ul {
      list-style: none;
    }

    .footer-column ul li {
      margin-bottom: 14px;
      display: flex;
      align-items: center;
      color: rgba(255, 255, 255, 0.9);
      font-size: 0.9rem;
    }

    .footer-column ul li svg {
      flex-shrink: 0;
      margin-right: 8px;
      opacity: 0.7;
      vertical-align: middle;
    }

    .footer-column ul li span,
    .footer-column ul li a {
      white-space: nowrap;
    }

    .footer-column ul li a {
      color: rgba(255, 255, 255, 0.9);
      font-size: 0.9rem;
      transition: all 0.3s;
    }

    .footer-column ul li a:hover {
      color: #ffffff;
      transform: translateX(4px);
    }

    .footer-bottom {
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      padding-top: 24px;
      text-align: center;
    }

    .footer-bottom p {
      font-size: 0.85rem;
      color: rgba(255, 255, 255, 0.5);
    }

    /* Visually Hidden */
    .visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border-width: 0;
    }

    /* Responsive Updates */
    @media (max-width: 768px) {
      .page-header {
        padding: 120px 0 60px;
      }

      .page-header h1 {
        font-size: 2rem;
      }

      .contact-grid {
        grid-template-columns: 1fr;
      }

      .contact-form {
        padding: 32px 24px;
      }

      .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
      }

      .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
      }

      .coming-soon-content {
        padding: 60px 24px;
      }

      .coming-soon-content h2 {
        font-size: 2rem;
      }

      .market-content {
        grid-template-columns: 1fr;
      }

      .market-image {
        height: 300px;
      }

      /* Footer links en 1 columna en móvil muy pequeño */
      .footer-column ul li span,
      .footer-column ul li a {
        white-space: normal;
      }
    }

    @media (max-width: 480px) {
      .footer-links {
        grid-template-columns: 1fr;
        gap: 28px;
      }
    }

/* Contact Form Styles */
.contact-form-section input:focus,
.contact-form-section select:focus,
.contact-form-section textarea:focus {
  outline: none;
  border-color: #0A0A0A;
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.1);
}

.contact-form-section input:hover,
.contact-form-section select:hover,
.contact-form-section textarea:hover {
  border-color: #999;
}

/* Responsive Design for Contact Form */
@media (max-width: 768px) {
  .contact-form-section {
    scroll-margin-top: 80px !important;
  }

  .contact-form-section .contact-form > div:first-child {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  .contact-form-section > .container > div {
    padding: 40px 24px !important;
  }
}

@media (max-width: 480px) {
  .contact-form-section {
    padding: 60px 0 !important;
    scroll-margin-top: 80px !important;
  }
  
  .contact-form-section > .container > div {
    padding: 50px 20px 32px 20px !important;
  }
}
/* Elegant Contact Form Effects */
.contact-form-section {
  position: relative;
}

/* Card hover effect */
.contact-form-section .container > div:nth-child(2) {
  transition: background-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.contact-form-section .container > div:nth-child(2):hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

/* Input focus animations */
.contact-form-section input,
.contact-form-section select,
.contact-form-section textarea {
  position: relative;
  transition: background-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.contact-form-section input:focus,
.contact-form-section select:focus,
.contact-form-section textarea:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(10, 10, 10, 0.15) !important;
  border-color: #0A0A0A !important;
}

/* Label animation on focus */
.contact-form-section label {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.contact-form-section input:focus + label,
.contact-form-section select:focus + label,
.contact-form-section textarea:focus + label {
  color: #0A0A0A;
  transform: translateY(-2px);
}

/* Button elegant hover effect */
.contact-form-section .btn {
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.contact-form-section .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.contact-form-section .btn:hover::before {
  left: 100%;
}

.contact-form-section .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(10, 10, 10, 0.3);
}

/* Contact info icons - subtle animation */
.contact-form-section svg {
  transition: transform 0.2s ease;
}

.contact-form-section a:hover svg {
  transform: scale(1.05);
}

/* Subtle background animation */
.contact-form-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  z-index: 0;
}

.contact-form-section > * {
  position: relative;
  z-index: 1;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Form field group hover effect */
.contact-form-section form > div {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.contact-form-section form > div:hover {
  transform: translateX(5px);
}

/* Stagger animation for form fields */
.contact-form-section form > div:nth-child(1) { animation-delay: 0.1s; }
.contact-form-section form > div:nth-child(2) { animation-delay: 0.2s; }
.contact-form-section form > div:nth-child(3) { animation-delay: 0.3s; }
.contact-form-section form > div:nth-child(4) { animation-delay: 0.4s; }
.contact-form-section form > div:nth-child(5) { animation-delay: 0.5s; }
.contact-form-section form > div:nth-child(6) { animation-delay: 0.6s; }

/* Fade in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-form-section form > div {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

/* Contact info items - subtle animation */
.contact-form-section a {
  transition: color 0.2s ease;
  position: relative;
}

.contact-form-section a:hover {
  color: #0A0A0A !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-form-section .container > div:nth-child(2):hover {
    transform: translateY(-4px);
  }
  
  .contact-form-section form > div:hover {
    transform: translateX(2px);
  }
}
/* Floating Action Buttons - Bottom Fixed */
.floating-buttons {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  pointer-events: none;
}

.floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  pointer-events: auto;
  text-decoration: none;
  position: fixed;
  bottom: 20px;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.floating-btn svg {
  width: 22px;
  height: 22px;
  transition: transform 0.3s ease;
}

/* WhatsApp Button (Bottom Left) */
.whatsapp-btn {
  left: 20px;
  background: linear-gradient(135deg, #0A0A0A 0%, #2a2a2a 50%, #0A0A0A 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.whatsapp-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
  transform: rotate(45deg);
  transition: left 0.6s ease;
  opacity: 0;
}

.whatsapp-btn:hover::before {
  animation: shine 0.8s ease-in-out;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
    opacity: 0;
  }
}

.whatsapp-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 18px rgba(10, 10, 10, 0.4);
  background: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 50%, #1a1a1a 100%);
}

.whatsapp-btn:hover svg {
  transform: scale(1.05);
}

/* Contact Button (Bottom Right) */
.contact-btn {
  right: 20px;
  background: #333333;
  color: white;
}

.contact-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 18px rgba(51, 51, 51, 0.3);
}

.contact-btn:hover svg {
  transform: scale(1.05);
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .floating-btn {
    width: 44px;
    height: 44px;
    bottom: 16px;
  }
  
  .floating-btn svg {
    width: 20px;
    height: 20px;
  }
  
  .whatsapp-btn {
    left: 16px;
    bottom: 16px;
  }
  
  /* En móvil: contact btn queda a la derecha, sobre el scroll-top */
  /* En movil: contact btn alineado abajo con whatsapp */
  .contact-btn {
    right: 16px;
    bottom: 16px;
  }
}

/* Accessibility */
.floating-btn:focus {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.floating-btn:active {
  transform: scale(0.98);
}
/* Scroll to Top Button */
.scroll-top-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  position: fixed;
  right: 20px;
  bottom: 80px; /* Above the contact button */
  background: linear-gradient(135deg, #0A0A0A 0%, #2a2a2a 50%, #0A0A0A 100%);
  color: white;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  will-change: transform;
  backface-visibility: hidden;
  overflow: hidden;
  z-index: 9999; /* Ensure it's above everything */
  pointer-events: auto; /* Ensure it can be clicked */
}

.scroll-top-btn svg {
  width: 22px;
  height: 22px;
  transition: transform 0.3s ease;
}

/* Show button when scrolling */
.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Shine effect */
.scroll-top-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
  transform: rotate(45deg);
  transition: left 0.6s ease;
  opacity: 0;
}

.scroll-top-btn:hover::before {
  animation: shine 0.8s ease-in-out;
}

.scroll-top-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 18px rgba(10, 10, 10, 0.4);
  background: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 50%, #1a1a1a 100%);
}

.scroll-top-btn:hover svg {
  transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .scroll-top-btn {
    width: 44px;
    height: 44px;
    right: 16px;
    /* Por encima del botón de contacto que está en bottom: 16px + 44px + 12px gap = 72px */
    bottom: 72px;
  }
  
  .scroll-top-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* Accessibility */
.scroll-top-btn:focus {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.scroll-top-btn:active {
  transform: scale(0.98);
}
/* Services Cards - Elegant & Subtle Effects */
.service-card {
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

/* Subtle Hover Effects */
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12) !important;
  border-color: #ccc !important;
}

/* Icon Elegant Animation */
.service-icon {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

/* Subtle Shine Effect */
.service-card::before {
  content: '';
  position: absolute;
  top: 1px;
  left: -100%;
  right: 0;
  bottom: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

.service-card:hover::before {
  left: 100%;
}

/* Content Subtle Animation */
.service-card h3,
.service-card p {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  position: relative;
  z-index: 2;
}

.service-card:hover h3 {
  color: #F5F5F5 !important;
}

.service-card:hover p {
  color: #F5F5F5 !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  
  .service-card:hover {
    transform: translateY(-4px);
  }
}
/* Why Choose Us Grid - Responsive Design */
@media (max-width: 1024px) {
  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 32px !important;
  }
}

@media (max-width: 768px) {
  .why-choose-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}
/* New Contact Form Styles */
.contact-form-section input:focus,
.contact-form-section textarea:focus {
  outline: none;
  border-color: #0A0A0A !important;
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.08) !important;
}

.contact-form-section input:hover,
.contact-form-section textarea:hover {
  border-color: #999 !important;
}

.contact-form-section button:hover {
  background: #1a1a1a !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Responsive for new contact form */
@media (max-width: 768px) {
  .contact-form-section > .container > div {
    padding: 60px 24px 40px 24px !important;
  }
  
  .contact-form-section h2 {
    font-size: 1.8rem !important;
  }
  
  .contact-form-section p {
    font-size: 1rem !important;
  }
  
  /* Texto pequeño de política de privacidad */
  .contact-form-section p[style*="font-size: 11px"] {
    font-size: 11px !important;
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
  }
  
  .contact-form-section form > div:first-child {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
}
/* ===================================================
   RESPONSIVE ADICIONAL - CORRECCIONES GLOBALES MOVIL
   =================================================== */

/* Logo: adaptado al header de 70px en movil */
@media (max-width: 768px) {
  .logo-img {
    height: 70px !important;
  }

  .header-container {
    padding: 0 16px;
    height: var(--header-height);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
    justify-content: center;
  }

  /* Seccion Sobre Nosotros - apilar en movil */
  section.about-us .container > div > div:last-child {
    height: 280px !important;
    margin-top: 32px;
  }

  .team-grid {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
  }

  .team-avatar {
    width: 140px;
    height: 140px;
  }

  .cta h2 {
    font-size: 1.8rem !important;
  }
}

/* Tablet grande 769px-1024px */
@media (min-width: 769px) and (max-width: 1024px) {
  .logo-img {
    height: 80px;
  }

  .sectors-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* ===================================================
   ABOUT-GRID - SECCION SOBRE NOSOTROS RESPONSIVE
   =================================================== */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Imagen del about */
  .about-grid > div:last-child {
    height: 280px !important;
    min-height: 240px !important;
  }

  /* Seccion padding en movil */
  .about-us {
    padding: 60px 0 !important;
  }

  /* Team grid: usar 1 columna */
  .team .team-grid {
    grid-template-columns: 1fr !important;
    max-width: 480px !important;
    margin: 0 auto !important;
  }

  /* Sectores section padding reducido */
  .sectors {
    padding: 60px 0 !important;
  }

  /* Header padding reducido */
  .header-container {
    padding: 0 16px !important;
  }
}

/* Eliminar el micro-salto que provoca el bucle de hover en el borde inferior */
.service-card:hover,
.case-card:hover,
.team-member:hover,
.btn:hover,
.btn-primary:hover,
.btn-outline:hover,
.btn-dark:hover,
.market-option:hover {
  transform: none; /* antes: translateY(-2px) o translateY(-12px) scale(1.02), etc. */
}

/* Anular cualquier salto vertical restante en botones */
.btn:hover,
.btn-primary:hover,
.btn-outline:hover,
.btn-dark:hover {
  transform: none !important;
}

/* Eliminar el micro-salto y el repintado en la tarjeta de testimonios */
.testimonial-card:hover,
.client-review:hover,
.testimonial-box:hover {
  transform: none !important;
  will-change: auto !important;
  backface-visibility: hidden !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
  overflow: visible !important;
}

/* Corregir la barra superior que se sale del recuadro en la tarjeta de testimonios */
.testimonial-card::after,
.client-review::after,
.testimonial-box::after {
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 12px 12px 0 0; /* igual que el borde del recuadro */
  overflow: hidden;
  clip-path: inset(0 round 12px); /* fuerza el recorte dentro del borde */
}
.testimonial-card::after {
  content: none !important;
}

/* Evitar glitch en móvil: levantar el brillo del botón */
.btn::before,
.btn-primary::before,
.btn-outline::before,
.btn-dark::before {
  top: 1px !important;
  bottom: 1px !important;
}