/* static/css/style.css */

:root {
  --primary: #0891b2;
  /* Teal 600 */
  --primary-dark: #0e7490;
  /* Teal 700 */
  --secondary: #3b82f6;
  /* Blue 500 */
  --secondary-light: #60a5fa;
  /* Blue 400 */
  --accent: #f97316;
  /* Orange 500 */
  --text-dark: #1e293b;
  /* Slate 800 */
  --text-light: #64748b;
  /* Slate 500 */
  --bg-light: #f8fafc;
  /* Slate 50 */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  /* Para que los enlaces internos respeten el header fijo */
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: white;
  padding-top: 70px;
  font-size: 16px;
  overflow-x: hidden;
  margin: 0;
  width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

p {
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* Clase para ocultar elementos en escritorio pero mostrarlos en móvil */
.mobile-only {
  display: none !important;
  /* Ocultar por defecto en escritorio */
}

/* Navbar */
.navbar {
  background-color: white;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  height: 70px;
  display: flex;
  align-items: center;
  transition: var(--transition);
  overflow: visible;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: min(1600px, 95vw);  /* Alineado con hero-container */
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}

/* Navbar logo */
.navbar .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 1001;
}

.navbar .logo img {
  max-height: 48px;
  width: auto;
}

.navbar .logo:hover {
  opacity: 0.9;
}


/* Footer logo */
footer .logo img {
  width: 24px;
  height: 24px;
}

/* Menú de navegación */
.nav-links {
  display: flex;
  gap: 1.5rem;
  margin-left: 2rem; /* Añadir más espacio entre logo y menú */
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Botón menú para móvil */
.menu-button {
  cursor: pointer;
  z-index: 1001;
  display: none;
  padding: 8px 16px;
  background-color: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.menu-button:hover {
  background-color: #2563eb;
}

/* Sections */
.section {
  padding: 5rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section.alt {
  background-color: var(--bg-light);
}

/* ========== NUEVO HERO LIMPIO ========== */
.hero-section-clean {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
}

.hero-container {
  max-width: min(1600px, 95vw);  /* Responsive adaptado al viewport */
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.logo-section {
  margin-bottom: 40px;
}

.hero-logo {
  max-width: 400px;
  height: auto;
  margin: 0 auto;
}

.hero-message {
  margin-bottom: 60px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.text-highlight {
  color: #0891b2;
  position: relative;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #475569;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-offer {
  background: linear-gradient(135deg, #0891b2, #0e7490);
  color: white;
  padding: 24px 32px;
  border-radius: 16px;
  margin: 32px auto;
  max-width: 600px;
  box-shadow: 0 10px 25px rgba(8, 145, 178, 0.25);
}

.offer-text {
  font-size: 1.25rem;
  margin: 0;
}

.highlight-credits {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 8px;
  font-weight: 600;
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 200px;
  justify-content: center;
}

.btn-primary {
  background: #0891b2;
  color: white;
  box-shadow: 0 4px 15px rgba(8, 145, 178, 0.3);
}

.btn-primary:hover {
  background: #0e7490;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(8, 145, 178, 0.4);
}

.btn-secondary {
  background: white;
  color: #0891b2;
  border: 2px solid #0891b2;
}

.btn-secondary:hover {
  background: #0891b2;
  color: white;
  transform: translateY(-2px);
}

.btn-icon {
  width: 20px;
  height: 20px;
}

.hero-benefits {
  margin: 80px 0;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-4px);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #0891b2, #0e7490);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-icon .icon {
  width: 24px;
  height: 24px;
  color: white;
}

.benefit-text h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 4px 0;
}

.benefit-text p {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

.pricing-highlight {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  max-width: 400px;
  margin: 40px auto;
}

.pricing-text {
  font-size: 1.25rem;
  color: #475569;
  margin: 0;
}

.pricing-highlight .price {
  font-size: 2rem;
  font-weight: 700;
  color: #0891b2;
}

.hero-video {
  margin-top: 80px;
}

.video-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.demo-video {
  width: 100%;
  height: auto;
  display: block;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.video-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.play-button {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-button:hover {
  background: white;
  transform: scale(1.1);
}

.play-icon {
  width: 32px;
  height: 32px;
  color: #0891b2;
  margin-left: 4px;
}

/* Estilos para mejorar la prominencia del vídeo */
.video-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 0.5rem;
}

.video-description {
  font-size: 1rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Mejorar la visibilidad del vídeo en móviles */
@media (max-width: 768px) {
  .video-title {
    font-size: 1.25rem;
  }

  .video-description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
}

/* ========== RESPONSIVE PARA NUEVO HERO ========== */
/* Media query específica para tablet landscape y pantallas medianas */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-container {
    max-width: 95%;
    padding: 0 24px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.375rem;
  }

  .benefit-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .hero-logo {
    max-width: 350px;
  }
}

@media (max-width: 768px) {
  .hero-section-clean {
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .benefit-item {
    text-align: left;
  }

  .hero-logo {
    max-width: 300px;
  }

  .hero-offer {
    margin: 24px auto;
    padding: 20px 24px;
  }

  .offer-text {
    font-size: 1.125rem;
  }

  .hero-benefits {
    margin: 60px 0;
  }

  .hero-video {
    margin-top: 60px;
  }
}

@media (max-width: 480px) {
  .hero-container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .hero-logo {
    max-width: 250px;
  }

  .hero-offer {
    padding: 16px 20px;
    margin: 20px auto;
  }

  .offer-text {
    font-size: 1rem;
  }

  .benefit-item {
    padding: 20px;
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .benefit-text h3 {
    font-size: 1rem;
  }

  .benefit-text p {
    font-size: 0.8rem;
  }

  .pricing-highlight {
    padding: 20px;
    margin: 30px auto;
  }

  .pricing-text {
    font-size: 1.125rem;
  }

  .pricing-highlight .price {
    font-size: 1.75rem;
  }
}

/* Feature Section */
.feature {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 5rem;
  align-items: center;
}

.feature:last-child {
  margin-bottom: 0;
}

.feature:nth-child(even) {
  flex-direction: row-reverse;
}

.feature-image {
  flex: 1;
  max-width: 500px;
}

.feature-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.feature-image img:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-content {
  flex: 1;
}

.feature-content h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-content p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.feature-content ul {
  padding-left: 1.5rem;
}

.feature-content li {
  margin-bottom: 0.5rem;
  position: relative;
}

/* Cards */
.card {
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Pricing */
.pricing-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-lg);
  background-color: white;
  transition: var(--transition);
}

.pricing-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.pricing-card h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 1.5rem 0;
  color: var(--text-dark);
}

.price span {
  font-size: 1rem;
  color: var(--text-light);
}

/* Form */
.form-group {
  margin-bottom: 1.25rem;
}

.input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

/* Estilos de botón */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Botón primario */
.button.bg-white {
  background-color: white;
  color: var(--primary);
}

.button.bg-white:hover {
  background-color: #f9fafb;
  /* gray-50 */
}

/* Botón secundario */
.button.secondary {
  background-color: transparent;
  color: white;
  border: 1px solid white;
}

.button.secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Table */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.responsive-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.responsive-table th {
  background-color: var(--primary);
  color: white;
  font-weight: 500;
  padding: 1rem;
  text-align: left;
}

.responsive-table th:first-child {
  border-top-left-radius: var(--radius-sm);
}

.responsive-table th:last-child {
  border-top-right-radius: var(--radius-sm);
}

.responsive-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.responsive-table tbody tr:last-child td {
  border-bottom: none;
}

.responsive-table tbody tr:nth-child(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

.responsive-table .check {
  color: var(--primary);
  font-size: 1.25rem;
}

.responsive-table .cross {
  color: #ef4444;
  font-size: 1.25rem;
}

/* Sección de servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.service-card {
  background-color: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(8, 145, 178, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

/* Animaciones */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* Iconos */
[data-lucide] {
  flex-shrink: 0;
  stroke-width: 2px;
}

[data-lucide="check-circle"] {
  width: 20px;
  height: 20px;
}

.flex.items-center i,
.flex.items-start i {
  flex: none;
}

/* Estilos específicos para destacar el formulario de contacto */
#contacto .formulario-destacado {
  background-color: #e6f2ff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid #bfdeff;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#contacto .formulario-destacado:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

#contacto .formulario-destacado h3 {
  color: #0891b2;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

#contacto .formulario-destacado .button {
  background-color: #0891b2;
  color: white;
  transition: all 0.3s ease;
}

#contacto .formulario-destacado .button:hover {
  background-color: #0e7490;
  transform: translateY(-2px);
}

#contacto .formulario-destacado input,
#contacto .formulario-destacado textarea {
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
}

#contacto .formulario-destacado input:focus,
#contacto .formulario-destacado textarea:focus {
  border-color: #0891b2;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
  outline: none;
}

/* Media Queries */
@media (max-width: 1024px) {
  .feature {
    gap: 2rem;
  }
}

/* Media query específica para tablets y pantallas medianas - alineación navbar/hero */
@media (min-width: 769px) and (max-width: 1024px) {
  .navbar .container {
    max-width: 95%;
    padding: 0 24px;
  }
}

@media (max-width: 768px) {

  /* Mostrar elementos solo en móvil */
  .mobile-only {
    display: flex !important;
  }

  /* Ajustes del menú en móvil */
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 70px;
    right: 15px;
    left: auto;
    width: 250px;
    max-width: 80%;
    background-color: white;
    padding: 0.5rem 0;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    z-index: 1000;
    max-height: 80vh;
    overflow-y: auto;
    margin-left: 0; /* Resetear margin en móvil */
  }

  .nav-links.show {
    display: flex !important;
    animation: fadeInMenu 0.3s ease forwards;
  }

  @keyframes fadeInMenu {
    from {
      opacity: 0;
      transform: translateY(-10px) scale(0.95);
    }

    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .nav-links a {
    padding: 0.75rem 1.5rem;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
    font-weight: 500;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links a:hover {
    background-color: rgba(8, 145, 178, 0.05);
    color: var(--primary);
  }

  .menu-button {
    display: flex !important;
    position: relative !important;
    margin-left: auto;
    right: 0 !important;
    align-items: center;
    justify-content: center;
  }

  /* Ajustar features en móvil */
  .feature,
  .feature:nth-child(even) {
    flex-direction: column;
    gap: 1.5rem;
  }

  .feature-image {
    max-width: 100%;
  }

  body {
    padding-top: 60px;
    /* Coincide con la altura del navbar en móvil */
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .navbar .container {
    width: 100% !important;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    position: relative;
  }

  /* Ajuste del contenedor para evitar desbordamiento */
  main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }



  /* Ajustes para botones en móvil */
  .button {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .flex-col .button:last-child {
    margin-bottom: 0;
  }

  /* Tablas responsivas en móvil */
  .table-responsive {
    display: block;
  }

  .responsive-table thead {
    display: none;
  }

  .responsive-table tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
  }

  .responsive-table td {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    text-align: right;
  }

  .responsive-table td::before {
    content: attr(data-label);
    font-weight: 500;
    color: var(--text-dark);
    text-align: left;
  }

  /* Logos más pequeños en móvil */
  .navbar .logo img {
    width: 20px;
    height: 20px;
  }


}

/* Fix específico para iOS */
@supports (-webkit-touch-callout: none) {

  /* Safari en iOS */
  html,
  body {
    -webkit-overflow-scrolling: touch;
  }


  /* Desactivar scroll suave en iOS para mejor rendimiento */
  html {
    scroll-behavior: auto;
  }
}

/* Preferencias de rendimiento */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ================================
   ESTILOS BANNER DE COOKIES
   (Añadidos después de la funcionalidad existente)
   ================================ */

/* Banner principal de cookies */
#cookie-banner.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease;
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-banner-text {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 300px;
}

.cookie-icon {
  color: var(--primary);
  font-size: 2rem;
  flex-shrink: 0;
}

.cookie-message h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.cookie-message p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.4;
  margin-bottom: 0;
}

.cookie-banner-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.btn-cookie-settings,
.btn-cookie-accept {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.btn-cookie-settings {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid #d1d5db;
}

.btn-cookie-settings:hover {
  background: #f9fafb;
  border-color: var(--primary);
}

.btn-cookie-accept {
  background: var(--primary);
  color: white;
}

.btn-cookie-accept:hover {
  background: var(--primary-dark);
}

/* Modal de configuración de cookies */
#cookie-settings-modal.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cookie-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.cookie-modal-content {
  position: relative;
  background: white;
  max-width: 600px;
  margin: 2rem auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 4rem);
  display: flex;
  flex-direction: column;
}

.cookie-modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-modal-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.cookie-modal-close {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text-light);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.cookie-modal-close:hover {
  background: #f3f4f6;
  color: var(--text-dark);
}

.cookie-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.cookie-category {
  margin-bottom: 2rem;
}

.cookie-category:last-child {
  margin-bottom: 0;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cookie-category h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.cookie-category p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}

/* Toggle switch para cookies */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.cookie-toggle input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle label {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 24px;
  transition: 0.3s;
}

.cookie-toggle label:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

.cookie-toggle input:checked+label {
  background-color: var(--primary);
}

.cookie-toggle input:checked+label:before {
  transform: translateX(20px);
}

.cookie-toggle input:disabled+label {
  background-color: #e5e7eb;
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-modal-footer {
  padding: 1.5rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.btn-cookie-cancel,
.btn-cookie-save {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.btn-cookie-cancel {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid #d1d5db;
}

.btn-cookie-cancel:hover {
  background: #f9fafb;
}

.btn-cookie-save {
  background: var(--primary);
  color: white;
}

.btn-cookie-save:hover {
  background: var(--primary-dark);
}

/* Responsive para cookies */
@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .cookie-banner-text {
    flex-direction: column;
    text-align: center;
    min-width: auto;
  }

  .cookie-banner-actions {
    width: 100%;
    justify-content: center;
  }

  .btn-cookie-settings,
  .btn-cookie-accept {
    flex: 1;
    max-width: 150px;
  }

  .cookie-modal-content {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
  }

  .cookie-modal-footer {
    flex-direction: column;
  }

  .btn-cookie-cancel,
  .btn-cookie-save {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .cookie-banner-content {
    padding: 1rem;
  }

  .cookie-message h3 {
    font-size: 1rem;
  }

  .cookie-message p {
    font-size: 0.85rem;
  }

  .cookie-modal-header,
  .cookie-modal-body,
  .cookie-modal-footer {
    padding: 1rem;
  }
}
