@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* CSS Variables (Tailwind v4 compatible) */
:root {
  --font-size: 16px;
  --background: #ffffff;
  --foreground: oklch(0.145 0 0);
  --card: #ffffff;
  --card-foreground: oklch(0.145 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.145 0 0);
  --primary: #030213;
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.95 0.0058 264.53);
  --secondary-foreground: #030213;
  --muted: #ececf0;
  --muted-foreground: #717182;
  --accent: #e9ebef;
  --accent-foreground: #030213;
  --destructive: #d4183d;
  --destructive-foreground: #ffffff;
  --border: rgba(0, 0, 0, 0.1);
  --input: transparent;
  --input-background: #f3f3f5;
  --switch-background: #cbced4;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --ring: oklch(0.708 0 0);
  --radius: 0.625rem;

  /* Text sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
}

/* Dark mode variables */
.dark {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.145 0 0);
  --card-foreground: oklch(0.985 0 0);
  --popover: oklch(0.145 0 0);
  --popover-foreground: oklch(0.985 0 0);
  --primary: oklch(0.985 0 0);
  --primary-foreground: oklch(0.205 0 0);
  --secondary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.269 0 0);
  --accent-foreground: oklch(0.985 0 0);
  --destructive: oklch(0.396 0.141 25.723);
  --destructive-foreground: oklch(0.637 0.237 25.331);
  --border: oklch(0.269 0 0);
  --input: oklch(0.269 0 0);
  --ring: oklch(0.439 0 0);
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Remove default link underlines */
a {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
  color: #edabab;
}

html {
  font-size: var(--font-size);
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1 {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

h2 {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

h3 {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

h4 {
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

p {
  font-size: var(--text-base);
  font-weight: var(--font-weight-normal);
  line-height: 1.5;
}

label {
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

button {
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

input {
  font-size: var(--text-base);
  font-weight: var(--font-weight-normal);
  line-height: 1.5;
}

/* Utility classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

/* Layout utilities */
.min-h-screen { min-height: 100vh; }
.h-full { height: 100%; }
.w-full { width: 100%; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }

/* Flexbox utilities */
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.flex-col { flex-direction: column; }
.flex-none { flex: none; }
.flex-grow { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }

/* Grid utilities */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (min-width: 640px) {
  .sm\:w-1\/2 { width: 50%; }
  .sm\:w-36 { width: 9rem; }
  .sm\:h-36 { height: 9rem; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:block { display: block; }
  .md\:hidden { display: none; }
  .md\:h-\[500px\] { height: 500px; }
  .md\:text-4xl { font-size: var(--text-4xl); }
  .md\:text-6xl { font-size: var(--text-6xl); }
  .md\:text-2xl { font-size: var(--text-2xl); }
  .md\:flex-row { flex-direction: row; }
  .md\:mb-0 { margin-bottom: 0; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:w-1\/3 { width: 33.333333%; }
  .lg\:w-40 { width: 10rem; }
  .lg\:h-40 { height: 10rem; }
}

@media (min-width: 1280px) {
  .xl\:w-1\/4 { width: 25%; }
}

@media (min-width: 1536px) {
  .\32xl\:w-1\/5 { width: 20%; }
}

/* Spacing utilities */
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-2 { padding-top: 0.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pt-8 { padding-top: 2rem; }

.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }

/* Size utilities */
.w-2 { width: 0.5rem; }
.w-3 { width: 0.75rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-24 { width: 6rem; }
.w-32 { width: 8rem; }
.h-2 { height: 0.5rem; }
.h-3 { height: 0.75rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-32 { height: 8rem; }
.h-64 { height: 16rem; }
.h-80 { height: 20rem; }
.h-96 { height: 24rem; }

/* Colors */
.bg-background { background-color: var(--background); }
.bg-card { background-color: var(--card); }
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-gray-300 { background-color: #d1d5db; }
.bg-gray-600 { background-color: #4b5563; }
.bg-transparent { background-color: transparent; }
.bg-input-background { background-color: var(--input-background); }

/* Color variants */
.bg-primary\/5 { background-color: rgb(3 2 19 / 0.05); }
.bg-primary\/10 { background-color: rgb(3 2 19 / 0.1); }
.bg-primary\/90 { background-color: rgb(3 2 19 / 0.9); }
.bg-secondary\/5 { background-color: rgb(242 242 247 / 0.05); }
.bg-secondary\/10 { background-color: rgb(242 242 247 / 0.1); }
.bg-secondary\/20 { background-color: rgb(242 242 247 / 0.2); }
.bg-white\/10 { background-color: rgb(255 255 255 / 0.1); }
.bg-black\/50 { background-color: rgb(0 0 0 / 0.5); }
.bg-black\/30 { background-color: rgb(0 0 0 / 0.3); }
.bg-black\/70 { background-color: rgb(0 0 0 / 0.7); }

.text-foreground { color: var(--foreground); }
.text-card-foreground { color: #075d1d; }
.text-primary { color: var(--primary); }
.text-primary-foreground { color: var(--primary-foreground); }
.text-secondary-foreground { color: var(--secondary-foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-white { color: #ffffff; }
.text-gray-300 { color: #d1d5db; }
.text-red-500 { color: #ef4444; }

/* Text sizes */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }

/* Font weights */
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }

/* Line height */
.leading-relaxed { line-height: 1.625; }

/* Borders */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-4 { border-width: 4px; }
.border-t { border-top-width: 1px; }
.border-border { border-color: var(--border); }
.border-input { border-color: var(--border); }
.border-white { border-color: #ffffff; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-gray-600 { border-color: #4b5563; }
.border-primary\/20 { border-color: rgb(3 2 19 / 0.2); }
.border-secondary\/20 { border-color: rgb(242 242 247 / 0.2); }

/* Border radius */
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

/* Shadows */
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04); }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.top-1\/2 { top: 50%; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.left-0 { left: 0; }
.left-4 { left: 1rem; }
.right-0 { right: 0; }
.right-4 { right: 1rem; }
.bottom-4 { bottom: 1rem; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }

/* Transform */
.transform { transform: translateZ(0); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.-translate-x-4 { transform: translateX(-1rem); }
.translate-x-4 { transform: translateX(1rem); }
.scale-105 { transform: scale(1.05); }
.scale-110 { transform: scale(1.1); }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Object fit */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* Display utilities for responsive */
/* Mobile first - elementos ocultos por defecto en móvil */
.md\:hidden {
  display: block;
}

.md\:block {
  display: none;
}

/* En tablet y desktop */
@media (min-width: 768px) {
  .md\:hidden {
    display: none !important;
  }
  
  .md\:block {
    display: block !important;
  }
}

/* ===== HEADER RESPONSIVE MODERNO ===== */

/* Header principal - sticky con shadow */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: white;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

/* Container principal del header */
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navegación principal */
.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem; /* 64px */
}

/* Logo y marca */
.header-brand {
  flex-shrink: 0;
}

.brand-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 2.5rem; /* 40px */
  height: 2.5rem; /* 40px */
  object-fit: contain;
}

.brand-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

/* Navegación desktop - oculta en móvil */
.desktop-nav {
  display: none;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: block;
  }
}

.desktop-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-nav a {
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--primary);
}

/* Botón del menú móvil - visible solo en móvil */
.mobile-menu-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 0.375rem;
  padding: 0.5rem;
  transition: background-color 0.2s ease;
}

.mobile-menu-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
  .mobile-menu-button {
    display: none;
  }
}

.mobile-menu-button svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Menú móvil - oculto por defecto */
.mobile-nav {
  display: none;
}

.mobile-nav.active {
  display: block;
}

@media (min-width: 768px) {
  .mobile-nav {
    display: none !important;
  }
}

.mobile-nav-content {
  padding: 0.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.75rem;
  background: white;
  border-top: 1px solid var(--border);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem;
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ===== VARIABLES CSS PARA COMPATIBILIDAD ===== */
:root {
  --primary: #030213;
  --foreground: #030213;
  --muted-foreground: #717182;
  --border: rgba(0, 0, 0, 0.1);
  --secondary: oklch(0.95 0.0058 264.53);
  --secondary-foreground: #030213;
}

/* Espaciado del body para compensar header sticky */
body {
  padding-top: 0;
}

/* ===== CARRUSEL DE CONVENIOS ===== */

/* Container del carrusel */
#convenios-carousel-container {
  position: relative;
  margin: 0 auto;
  max-width: 100%;
}

/* Track del carrusel */
.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 300%; /* 3 slides */
}

/* Slides individuales */
.carousel-slide {
  width: 33.333%; /* 1/3 del ancho total */
  flex-shrink: 0;
  padding: 0 10px;
}

/* Cards de empresas */
.company-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.company-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Logos de empresas */
.company-logo {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.company-card:hover .company-logo {
  transform: scale(1.05);
}

/* Nombres de empresas */
.company-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.2;
  margin: 0;
}

/* Botones de navegación */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  color: var(--foreground);
}

.carousel-nav-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: -24px;
}

.carousel-next {
  right: -24px;
}



/* Responsive */
@media (max-width: 1024px) {
  .company-card {
    height: 160px;
    padding: 1rem;
  }
  
  .company-logo {
    width: 8%;
    height: 80px;
  }
  
  .company-name {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .carousel-prev {
    left: -16px;
  }
  
  .carousel-next {
    right: -16px;
  }
  
  .carousel-nav-btn {
    width: 40px;
    height: 40px;
  }
  
  .company-card {
    height: 140px;
    padding: 0.75rem;
  }
  
  .company-logo {
    width: 90px;
    height: 90px;
  }
  
  .company-name {
    font-size: 0.7rem;
  }
}

@media (max-width: 640px) {
  .carousel-slide {
    padding: 0 5px;
  }
  
  .company-card {
    height: 120px;
    padding: 0.5rem;
  }
  
  .company-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 8px;
  }
  
  .company-name {
    font-size: 0.65rem;
  }
}

/* Space utilities */
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Gap utilities */
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* Max width */
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }

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

/* Hover states */
.hover\:bg-primary\/90:hover { background-color: rgba(4, 91, 53, 0.9); }
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:bg-gray-400:hover { background-color: #9ca3af; }
.hover\:bg-white:hover { background-color: #ffffff; }
.hover\:bg-accent:hover { background-color: var(--accent); }
.hover\:text-primary:hover { color: var(--primary); }
.hover\:text-white:hover { color: #ffffff; }
.hover\:text-accent-foreground:hover { color: var(--accent-foreground); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:no-underline:hover { text-decoration: none; }

/* Group hover states */
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }

/* Opacity */
.opacity-0 { opacity: 0; }

/* Focus states */
.focus-visible\:outline-none:focus-visible { outline: 2px solid transparent; outline-offset: 2px; }
.focus-visible\:ring-2:focus-visible { box-shadow: 0 0 0 2px var(--ring); }
.focus-visible\:ring-ring:focus-visible { box-shadow: 0 0 0 2px var(--ring); }
.focus-visible\:ring-offset-2:focus-visible { box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring); }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--ring); }
.focus\:ring-ring:focus { box-shadow: 0 0 0 2px var(--ring); }
.focus\:ring-offset-2:focus { box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring); }

/* Disabled states */
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }
.disabled\:opacity-50:disabled { opacity: 0.5; }
.disabled\:pointer-events-none:disabled { pointer-events: none; }

/* Filter utilities */
.filter { filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); }
.brightness-0 { filter: brightness(0); }
.invert { filter: invert(1); }

/* Form styles */
input, textarea, select {
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  background-color: var(--input-background);
  color: var(--foreground);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 2px var(--ring);
}

/* Button styles */
button {
  border: none;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
}

/* Carousel styles */
.carousel-container {
  position: relative;
}

.carousel-item {
  flex: 0 0 auto;
}

/* Custom component styles */
.mobile-nav-link {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* FAQ styles */
.faq-trigger {
  background: none;
  border: none;
  padding: 1rem 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-content {
  transition: height 0.3s ease;
  overflow: hidden;
}

.faq-chevron {
  transition: transform 0.2s ease;
}

/* Custom utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Gradient utilities */
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.bg-gradient-to-t {
  background-image: linear-gradient(to top, var(--tw-gradient-stops));
}

.from-black\/50 {
  --tw-gradient-from: rgb(0 0 0 / 0.5);
  --tw-gradient-to: rgb(0 0 0 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-black\/30 {
  --tw-gradient-to: rgb(0 0 0 / 0.3);
}

.from-black\/70 {
  --tw-gradient-from: rgb(0 0 0 / 0.7);
  --tw-gradient-to: rgb(0 0 0 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-transparent {
  --tw-gradient-to: transparent;
}

/* Ring utilities */
.ring-offset-background {
  --tw-ring-offset-color: var(--background);
}

/* Whitespace */
.whitespace-nowrap {
  white-space: nowrap;
}

/* Shrink */
.shrink-0 {
  flex-shrink: 0;
}

/* Min height */
.min-h-\[80px\] {
  min-height: 80px;
}

/* File input */
.file\:border-0::file-selector-button {
  border: 0;
}

.file\:bg-transparent::file-selector-button {
  background-color: transparent;
}

.file\:text-sm::file-selector-button {
  font-size: var(--text-sm);
}

.file\:font-medium::file-selector-button {
  font-weight: var(--font-weight-medium);
}

/* Placeholder */
.placeholder\:text-muted-foreground::placeholder {
  color: var(--muted-foreground);
}

/* Justify content */
.justify-start {
  justify-content: flex-start;
}

/* Height utilities */
.h-9 {
  height: 2.25rem;
}

/* Spacing adjustment for fixed header */
body {
  padding-top: 60px;
}

@media (min-width: 768px) {
  body {
    padding-top: 30px;
  }
}

/* ===== RESPONSIVE FIXES PARA MENU ===== */

/* Por defecto en móvil: mostrar hamburger, ocultar menu desktop */
.mobile-menu-btn {
  display: flex !important;
}

.desktop-menu {
  display: none !important;
}

/* En desktop: ocultar hamburger, mostrar menu desktop */
@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none !important;
  }
  
  .desktop-menu {
    display: flex !important;
  }
  
  /* Forzar que el overlay esté oculto en desktop */
  .mobile-overlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
  
  .mobile-overlay.active {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
}

/* Width utilities */
.min-w-\[120px\] {
  min-width: 120px;
}

/* Responsive utilities adicionales */
@media (max-width: 639px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .text-2xl {
    font-size: 1.25rem !important;
  }
  
  .space-x-3 > * + * {
    margin-left: 0.5rem;
  }
}

/* Fixes para iOS Safari */
@supports (-webkit-touch-callout: none) {
  .sticky {
    position: -webkit-sticky;
    position: sticky;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .transition-all,
  .transition-colors,
  .transition-transform,
  .transition-opacity {
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible improvements */
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile menu overlay */
.mobile-menu.show::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.1);
  z-index: -1;
}

/* Better mobile menu positioning */
.mobile-menu {
  position: relative;
  z-index: 40;
}

/* Logo responsivo */
@media (max-width: 479px) {
  .logo-text {
    font-size: 1.125rem !important;
  }
  
  .w-10.h-10 {
    width: 2rem !important;
    height: 2rem !important;
  }
}