/* Variables y estilos generales */
:root {
  --primary: #0046FF;
  --secondary: #73C8D2;
  --light: #F5F1DC;
  --dark: #000000;
  --white: #ffffff;
  --cursor-color: #4A90E2;
  --container-max-width: 1400px;
  --section-padding: clamp(2rem, 5vw, 4rem);
  --font-size-base: clamp(0.875rem, 2vw, 1rem);
  --font-size-lg: clamp(1.125rem, 3vw, 1.5rem);
  --font-size-xl: clamp(1.5rem, 4vw, 2.5rem);
  --font-size-xxl: clamp(2rem, 6vw, 3.5rem);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none !important;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--white);
  color: var(--dark);
  overflow-x: hidden;
  position: relative;
  font-size: var(--font-size-base);
  line-height: 1.6;
  transition: filter 0.5s ease-in-out;
}

/* Clase para aplicar el desenfoque gaussiano */
body.blurred {
  filter: blur(8px);
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

/* Modal container */
.legal-modal {
  background: var(--white);
  border-radius: 20px;
  width: min(90%, 800px);
  max-height: 85vh;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  transform: scale(0.8) translateY(50px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-overlay.active .legal-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Modal header */
.modal-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: clamp(1.5rem, 3vw, 2rem);
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin: 0;
}

.modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none !important;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Modal content */
.modal-content {
  padding: clamp(1.5rem, 3vw, 2rem);
  overflow-y: auto;
  max-height: 60vh;
  line-height: 1.7;
}

.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

.modal-content h3 {
  color: var(--primary);
  margin: 1.5rem 0 1rem 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.modal-content h4 {
  color: var(--dark);
  margin: 1rem 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 500;
}

.modal-content p {
  margin-bottom: 1rem;
  color: #555;
}

.modal-content ul, .modal-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.modal-content li {
  margin-bottom: 0.5rem;
  color: #555;
}

.legal-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.legal-section:last-child {
  border-bottom: none;
}

.warning-box {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  color: #856404;
}

.important-note {
  background: #d1ecf1;
  border: 1px solid #bee5eb;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  color: #0c5460;
}

/* Fondo con patrón de cuadrícula mejorado */
.grid-wrapper {
  min-height: 100%;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -2;
  background-color: #f8fafc;
  transition: filter 0.5s ease-in-out;
}

.grid-background {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  background-image: 
    linear-gradient(to right, rgba(115, 200, 210, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(115, 200, 210, 0.1) 1px, transparent 1px);
  background-size: clamp(20px, 4vw, 40px) clamp(20px, 4vw, 40px);
  -webkit-mask-image: radial-gradient(
    ellipse 70% 60% at 50% 0%,
    #000 60%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 70% 60% at 50% 0%,
    #000 60%,
    transparent 100%
  );
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: clamp(20px, 4vw, 40px) clamp(20px, 4vw, 40px);
  }
}

/* Punto brillante que sigue al cursor */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: clamp(8px, 1.5vw, 12px);
  height: clamp(8px, 1.5vw, 12px);
  background-color: var(--cursor-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.9;
  filter: blur(0.5px) drop-shadow(0 0 8px var(--cursor-color));
  transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease;
  mix-blend-mode: difference;
}

.cursor-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(20px, 4vw, 30px);
  height: clamp(20px, 4vw, 30px);
  border-radius: 50%;
  background: radial-gradient(circle, var(--cursor-color) 0%, transparent 70%);
  opacity: 0.4;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.2;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.4;
  }
}

/* Pantalla de carga */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader-container {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  height: clamp(60px, 12vw, 96px);
  width: clamp(60px, 12vw, 96px);
  animation: rotate_3922 1.2s linear infinite;
  background-color: var(--primary);
  background-image: linear-gradient(var(--primary), var(--secondary), #5ad1cd);
}

.loader-container span {
  position: absolute;
  border-radius: 50%;
  height: 100%;
  width: 100%;
  background-color: var(--primary);
  background-image: linear-gradient(var(--primary), var(--secondary), #5ad1cd);
}

.loader-container span:nth-of-type(1) {
  filter: blur(5px);
}

.loader-container span:nth-of-type(2) {
  filter: blur(10px);
}

.loader-container span:nth-of-type(3) {
  filter: blur(25px);
}

.loader-container span:nth-of-type(4) {
  filter: blur(50px);
}

.loader-container::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background-color: var(--white);
  border: solid 5px var(--white);
  border-radius: 50%;
}

@keyframes rotate_3922 {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* 🔹 Navbar Mejorado - Totalmente Responsive */
.navbar {
  position: fixed;
  top: clamp(10px, 2vw, 20px);
  left: 50%;
  transform: translateX(-50%);
  width: min(95%, 1200px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: clamp(12px, 2vw, 16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 1000;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.navbar:hover {
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.navbar-left, .navbar-right {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  flex: 1;
}

.navbar-right {
  justify-content: flex-end;
}

.navbar-center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.navbar-logo {
  height: clamp(30px, 6vw, 50px);
  transition: transform 0.3s ease;
}

.navbar-logo:hover {
  transform: scale(1.05);
}

.navbar a {
  color: #333;
  text-decoration: none;
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  font-weight: 500;
  transition: all 0.3s ease;
  padding: clamp(0.5rem, 1vw, 0.75rem) clamp(0.75rem, 1.5vw, 1.25rem);
  border-radius: clamp(8px, 1.5vw, 12px);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.navbar a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(74, 60, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.navbar a:hover::before {
  left: 100%;
}

.navbar a:hover {
  color: var(--primary);
  background: rgba(74, 60, 255, 0.08);
  transform: translateY(-1px);
}

.navbar a:active {
  transform: translateY(0);
}

/* Indicador activo - Estilo Apple */
.navbar a.active {
  color: var(--primary);
  background: rgba(74, 60, 255, 0.12);
  font-weight: 600;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 60, 255, 0.15);
}

.navbar a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

  /* Container principal - Mejorado para todas las resoluciones */
.container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: min(85vh, 800px);
  gap: clamp(0.5rem, 2vw, 1rem);
  padding: 0 clamp(0.5rem, 2vw, 1rem);
  margin-top: clamp(80px, 15vh, 120px);
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
}

.box {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: none !important;
  transition: transform 0.4s ease-in-out;
  border-radius: clamp(8px, 1.5vw, 12px);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
  min-height: 300px;
}

.box:nth-child(1) {
  animation-delay: 0.2s;
}

.box:nth-child(2) {
  animation-delay: 0.4s;
}

.box:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
  transition: filter 0.3s, transform 0.5s ease;
}

.box:hover img {
  filter: brightness(0.9);
  transform: scale(1.05);
}

.box h2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(1.25rem, 4vw, 2.5rem);
  text-align: center;
  letter-spacing: clamp(1px, 0.5vw, 2px);
  background-color: rgba(0, 0, 0, 0);
  padding: clamp(0.75rem, 2vw, 1.5rem) clamp(1rem, 3vw, 2rem);
  border-radius: clamp(8px, 1.5vw, 12px);
  transition: background-color 0.3s, transform 0.3s;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  width: 100%;
  word-wrap: break-word;
}

.box:hover h2 {
  background-color: rgba(0, 0, 0, 0);
  transform: translate(-50%, -50%) scale(1.05);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Marquee - Totalmente Responsive con Efecto de Desvanecimiento */
.marquee-container {
  width: 100%;
  overflow: hidden;
  padding: clamp(1rem, 3vw, 2rem) 0;
  margin: clamp(1rem, 3vw, 2rem) 0;
  background: rgba(255, 255, 255, 0);
  position: relative;
}

/* Efecto de desvanecimiento gaussiano en los bordes */
.marquee-container::before,
.marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.marquee-track {
  display: flex;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
}

.marquee-text {
  font-size: clamp(1rem, 3vw, 2rem);
  font-weight: bold;
  color: var(--dark);
  padding: 0 clamp(0.5rem, 2vw, 1.5rem);
  transition: all 0.3s ease;
  position: relative;
}

.marquee-text:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.separator {
  font-size: clamp(1rem, 3vw, 2rem);
  color: var(--primary);
  opacity: 0.7;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* About Section - Mejorada para Responsive */
.about {
  padding: var(--section-padding);
  max-width: min(1200px, 95%);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-size: var(--font-size-xl);
  text-align: left;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
  color: var(--primary);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  transform: none;
  width: min(200px, 50%);
  height: 3px;
  background: var(--primary);
}

.about-content {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.about-text {
  font-size: var(--font-size-base);
  color: var(--dark);
  line-height: 1.6;
  text-align: left;
}

.about-text p {
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

/* Sección del Tren de Imágenes */
.image-train-section {
  padding: var(--section-padding);
  max-width: min(1400px, 95%);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-train-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.train-title {
  font-size: var(--font-size-xl);
  text-align: center;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
  color: var(--primary);
  position: relative;
}

.train-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--primary);
}

.image-train-container {
  position: relative;
  width: 100%;
  height: min(70vh, 600px);
  overflow: hidden;
  border-radius: clamp(12px, 2vw, 20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.image-train {
  display: flex;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.train-slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.train-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
  transition: filter 0.5s ease;
}

.train-slide.active img {
  filter: brightness(1);
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s ease;
}

.train-slide.active .slide-content {
  transform: translateY(0);
  opacity: 1;
}

.slide-title {
  font-size: var(--font-size-lg);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.slide-description {
  font-size: var(--font-size-base);
  opacity: 0.9;
}

.train-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 clamp(1rem, 3vw, 2rem);
  z-index: 10;
}

.train-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: clamp(50px, 8vw, 70px);
  height: clamp(50px, 8vw, 70px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none !important;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.train-btn:hover {
  background: var(--white);
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.train-btn i {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--primary);
}

.train-dots {
  position: absolute;
  bottom: clamp(1rem, 3vw, 2rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 10;
}

.train-dot {
  width: clamp(10px, 2vw, 12px);
  height: clamp(10px, 2vw, 12px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: none !important;
  transition: all 0.3s ease;
}

.train-dot.active {
  background: var(--white);
  transform: scale(1.2);
}

/* Sección Integrada - Sin Caja, Parte de la Página */
.integrated-section {
  padding: var(--section-padding);
  max-width: min(1200px, 95%);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: transparent;
}

.integrated-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.integrated-title {
  font-size: var(--font-size-xl);
  text-align: center;
  margin-bottom: clamp(0.75rem, 2vw, 1.5rem);
  color: var(--dark);
  font-weight: 700;
  position: relative;
}

.integrated-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.integrated-subtitle {
  font-size: var(--font-size-base);
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  color: #666;
  line-height: 1.5;
}

.integrated-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

/* Columna izquierda - Newsletter y Contacto */
.left-column {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3rem);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: clamp(12px, 2vw, 20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.newsletter-title {
  font-size: var(--font-size-lg);
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
  color: var(--primary);
  font-weight: 600;
  line-height: 1.4;
}

.newsletter-input {
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 2.5vw, 1.5rem);
  border-radius: clamp(8px, 1.5vw, 12px);
  border: 1px solid #ddd;
  font-size: var(--font-size-base);
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 70, 255, 0.2);
}

.newsletter-button {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: var(--white);
  border: none;
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem);
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: clamp(8px, 1.5vw, 12px);
  cursor: none !important;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
  letter-spacing: 0.5px;
}

.newsletter-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(30, 60, 114, 0.4);
  background: linear-gradient(90deg, var(--secondary), var(--primary));
}

.newsletter-disclaimer {
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  color: #666;
  margin-top: clamp(0.5rem, 1.5vw, 1rem);
  line-height: 1.5;
}

.newsletter-disclaimer a {
  color: var(--primary);
  text-decoration: underline;
}

.contact-section {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.contact-title {
  font-size: var(--font-size-lg);
  margin-bottom: clamp(0.5rem, 1.5vw, 1rem);
  color: var(--primary);
  font-weight: 600;
}

.social-links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

.social-card {
  flex: 1;
  background: var(--white);
  border-radius: clamp(12px, 2vw, 16px);
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: none !important;
  border: 1px solid #eaeaea;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
  min-width: 120px;
}

.social-card:nth-child(1) {
  animation-delay: 0.2s;
}

.social-card:nth-child(2) {
  animation-delay: 0.4s;
}

.social-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-header {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  padding: clamp(0.75rem, 2vw, 1rem);
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-header i {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--white);
}

.card-body {
  padding: clamp(0.75rem, 2vw, 1rem);
  text-align: center;
}

.card-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25rem;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}

.card-handle {
  color: var(--secondary);
  margin-bottom: clamp(0.5rem, 1.5vw, 0.75rem);
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
}

.card-button {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: var(--white);
  border: none;
  padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(1rem, 2vw, 1.25rem);
  border-radius: 20px;
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  cursor: none !important;
  transition: all 0.3s ease;
}

.card-button:hover {
  background: linear-gradient(45deg, #0033cc, #5ab8c2);
  transform: scale(1.05);
}

.copy-message {
  background-color: #f8f9fa;
  border-radius: 50px;
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 2.5vw, 1.5rem);
  cursor: none !important;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 1rem);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
  color: #333;
  width: 100%;
  justify-content: center;
  font-size: clamp(0.8rem, 1.5vw, 1rem);
}

.copy-message:hover {
  background-color: #e9ecef;
  transform: scale(1.03);
}

.copy-message i {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--primary);
}

.contact-btn {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: var(--white);
  border: none;
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2.5rem);
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: 50px;
  cursor: none !important;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
  letter-spacing: 0.5px;
  margin-top: clamp(0.5rem, 1.5vw, 1rem);
}

.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(30, 60, 114, 0.4);
  background: linear-gradient(90deg, var(--secondary), var(--primary));
}

.contact-btn:active {
  transform: translateY(1px);
}

/* Columna derecha - Información Legal */
.right-column {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2rem);
}

.legal-title {
  font-size: var(--font-size-lg);
  margin-bottom: clamp(0.5rem, 1.5vw, 1rem);
  color: var(--primary);
  font-weight: 600;
}

.legal-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1rem);
}

.liquid-btn {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #333;
  padding: clamp(0.75rem, 1.5vw, 1rem) clamp(0.75rem, 1.5vw, 1rem);
  border-radius: clamp(8px, 1.5vw, 12px);
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  font-weight: 500;
  cursor: none !important;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  word-wrap: break-word;
}

.liquid-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.liquid-btn:hover::before {
  left: 100%;
}

.liquid-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.legal-info {
  background: rgba(255, 255, 255, 0.5);
  border-radius: clamp(8px, 1.5vw, 12px);
  padding: clamp(1rem, 2.5vw, 1.5rem);
  margin-top: clamp(1rem, 2.5vw, 1.5rem);
}

.legal-info p {
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  color: #666;
  line-height: 1.5;
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
}

/* Footer */
.footer {
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 3vw, 2rem);
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  color: #666;
  background: rgba(255, 255, 255, 0.9);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
  text-align: left;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.footer-section p, .footer-section a {
  margin-bottom: 0.5rem;
  display: block;
  color: #666;
  text-decoration: none;
}

.footer-section a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 1.5rem;
}

/* Notification */
.notification {
  position: fixed;
  top: clamp(1rem, 3vw, 1.5rem);
  right: clamp(1rem, 3vw, 1.5rem);
  background-color: var(--primary);
  color: var(--white);
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 2.5vw, 1.5rem);
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  z-index: 1000;
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  max-width: min(400px, 90vw);
}

.notification.show {
  opacity: 1;
  transform: translateY(0);
}

/* Cookie Alert */
.cookie-alert {
  position: fixed;
  bottom: clamp(1rem, 3vw, 1.5rem);
  left: clamp(1rem, 3vw, 1.5rem);
  right: clamp(1rem, 3vw, 1.5rem);
  max-width: min(500px, calc(100vw - 2rem));
  background: white;
  border-radius: clamp(8px, 1.5vw, 12px);
  padding: clamp(1rem, 2.5vw, 1.5rem);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transform: translateY(150%);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-left: 4px solid var(--primary);
}

.cookie-alert.show {
  transform: translateY(0);
}

.cookie-alert p {
  margin-bottom: 1rem;
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  color: #666;
  line-height: 1.5;
}

.cookie-buttons {
  display: flex;
  gap: clamp(0.5rem, 1.5vw, 1rem);
  flex-wrap: wrap;
}

.btn-cookie {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(1rem, 2vw, 1.5rem);
  border-radius: 6px;
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  cursor: none !important;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 120px;
}

.btn-cookie:hover {
  background-color: #0033cc;
}

.btn-cookie.secondary {
  background-color: transparent;
  color: #666;
  border: 1px solid #ddd;
}

.btn-cookie.secondary:hover {
  background-color: #f5f5f5;
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.whatsapp-float a {
  background: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
}

.whatsapp-float a:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

/* ========== MEDIA QUERIES ESPECÍFICAS ========== */

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
  .container {
    height: auto;
    min-height: min(60vh, 500px);
  }
  
  .integrated-content {
    gap: clamp(1.5rem, 4vw, 3rem);
  }
  
  .legal-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .image-train-container {
    height: min(60vh, 500px);
  }
}

/* Tablets pequeñas y móviles grandes */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    height: auto;
    gap: clamp(0.75rem, 2vw, 1rem);
    margin-top: clamp(100px, 20vh, 140px);
    min-height: auto;
  }

  .box {
    height: min(40vh, 300px);
    min-height: 250px;
  }
  
  .navbar {
    flex-direction: column;
    gap: clamp(0.75rem, 2vw, 1rem);
    padding: clamp(1rem, 2.5vw, 1.5rem);
    width: 90%;
  }
  
  .navbar-left, .navbar-right {
    gap: clamp(0.75rem, 2vw, 1rem);
    justify-content: center;
  }
  
  .navbar-center {
    order: -1;
    margin-bottom: clamp(0.5rem, 1.5vw, 1rem);
  }
  
  .integrated-content {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 3rem);
  }
  
  .social-links {
    flex-direction: column;
  }
  
  .social-card {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .marquee-text {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
  }
  
  .separator {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
  }
  
  .image-train-container {
    height: min(50vh, 400px);
  }
  
  .train-btn {
    width: clamp(40px, 6vw, 50px);
    height: clamp(40px, 6vw, 50px);
  }

  .legal-modal {
    width: 95%;
    max-height: 90vh;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Móviles */
@media (max-width: 480px) {
  .container {
    margin-top: clamp(120px, 25vh, 160px);
  }

  .box h2 {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
    padding: clamp(0.5rem, 2vw, 1rem) clamp(0.75rem, 2.5vw, 1.25rem);
  }
  
  .marquee-text {
    font-size: clamp(0.9rem, 3vw, 1.25rem);
    padding: 0 clamp(0.25rem, 1.5vw, 0.75rem);
  }
  
  .legal-buttons {
    grid-template-columns: 1fr;
  }
  
  .navbar a {
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    padding: clamp(0.4rem, 1vw, 0.6rem) clamp(0.6rem, 1.2vw, 0.8rem);
  }
  
  .cookie-alert {
    left: clamp(0.5rem, 2vw, 1rem);
    right: clamp(0.5rem, 2vw, 1rem);
    max-width: none;
  }
  
  .image-train-container {
    height: min(40vh, 350px);
  }
  
  .slide-content {
    padding: clamp(1rem, 3vw, 2rem);
  }

  .modal-header {
    padding: 1rem;
  }

  .modal-title {
    font-size: 1.1rem;
  }

  .modal-close {
    width: 35px;
    height: 35px;
  }

  .whatsapp-float a {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

/* Pantallas muy pequeñas */
@media (max-width: 320px) {
  .navbar {
    width: 95%;
    padding: 0.75rem;
  }
  
  .navbar-left, .navbar-right {
    gap: 0.5rem;
  }
  
  .box h2 {
    font-size: 1.1rem;
  }
  
  .integrated-section {
    padding: 1.5rem 1rem;
  }
  
  .image-train-section {
    padding: 1.5rem 1rem;
  }

  .legal-modal {
    width: 98%;
    border-radius: 15px;
  }
}

/* Pantallas grandes (4K y superiores) */
@media (min-width: 2000px) {
  :root {
    --container-max-width: 1800px;
    --section-padding: 5rem;
  }
  
  .container {
    height: min(80vh, 1000px);
  }
  
  .box h2 {
    font-size: 3rem;
  }
  
  .image-train-container {
    height: min(80vh, 800px);
  }

  .legal-modal {
    width: min(70%, 1000px);
  }
}
/* Estilos adicionales para Speeld Studio - Versión Minimalista */

/* Hero Section para páginas específicas */
.hero-section {
  padding: clamp(6rem, 15vw, 12rem) 0 clamp(4rem, 10vw, 8rem);
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 70, 255, 0.1) 0%, rgba(115, 200, 210, 0.1) 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: min(1200px, 95%);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: var(--font-size-xxl);
  font-weight: 700;
  margin-bottom: clamp(1rem, 3vw, 2rem);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: #666;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btn {
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem);
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: var(--font-size-base);
  cursor: none !important;
  border: 2px solid transparent;
}

.hero-btn.primary {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: var(--white);
  box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

.hero-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(30, 60, 114, 0.4);
}

.hero-btn.secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.hero-btn.secondary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

/* Servicios Section */
.services-section {
  padding: var(--section-padding);
  max-width: min(1200px, 95%);
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
}

.service-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: clamp(12px, 2vw, 20px);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
}

.service-title {
  font-size: var(--font-size-lg);
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 600;
}

.service-description {
  color: #666;
  line-height: 1.6;
}

/* Portafolio Minimalista */
.portfolio-section, .photography-section {
  padding: var(--section-padding);
  max-width: min(1400px, 95%);
  margin: 0 auto;
}

.section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  font-size: var(--font-size-base);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Grid de Portafolio Minimalista */
.minimal-portfolio-grid, .minimal-photography-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.portfolio-item, .photography-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s ease;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.portfolio-item:hover, .photography-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.portfolio-image, .photography-image {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.portfolio-image img, .photography-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img, 
.photography-item:hover .photography-image img {
  transform: scale(1.05);
}

.portfolio-info, .photography-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--white);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-info, 
.photography-item:hover .photography-info {
  transform: translateY(0);
}

.portfolio-title, .photography-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.portfolio-description, .photography-description {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.4;
}

/* Tamaños diferentes para crear diseño orgánico */
.portfolio-item.large, .photography-item.large {
  grid-column: span 8;
  grid-row: span 2;
}

.portfolio-item.medium, .photography-item.medium {
  grid-column: span 6;
  grid-row: span 2;
}

.portfolio-item.small, .photography-item.small {
  grid-column: span 4;
  grid-row: span 1;
}

.portfolio-item.tall, .photography-item.tall {
  grid-column: span 4;
  grid-row: span 3;
}

.portfolio-item.wide, .photography-item.wide {
  grid-column: span 8;
  grid-row: span 1;
}

.portfolio-item.square, .photography-item.square {
  grid-column: span 4;
  grid-row: span 2;
}

/* Process Section */
.process-section {
  padding: var(--section-padding);
  max-width: min(1200px, 95%);
  margin: 0 auto;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
}

.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 2;
}

.step-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary);
}

.step-description {
  color: #666;
  line-height: 1.6;
}

/* Availability Indicator */
.availability-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 10px;
  margin: 1.5rem 0;
  transition: all 0.3s ease;
}

.availability-indicator.available {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.availability-indicator.unavailable {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.availability-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.availability-text {
  font-weight: 600;
  transition: all 0.3s ease;
}

.availability-indicator.available .availability-text {
  color: #2E7D32;
}

.availability-indicator.unavailable .availability-text {
  color: #C62828;
}

.availability-indicator.blinking {
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0.7;
  }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .minimal-portfolio-grid, .minimal-photography-grid {
    grid-template-columns: repeat(8, 1fr);
  }
  
  .portfolio-item.large, .photography-item.large {
    grid-column: span 6;
  }
  
  .portfolio-item.medium, .photography-item.medium {
    grid-column: span 4;
  }
  
  .portfolio-item.wide, .photography-item.wide {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
  
  .minimal-portfolio-grid, .minimal-photography-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .portfolio-item, .photography-item {
    grid-column: span 6 !important;
    grid-row: span 1 !important;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .minimal-portfolio-grid, .minimal-photography-grid {
    grid-template-columns: 1fr;
  }
  
  .portfolio-item, .photography-item {
    grid-column: 1 !important;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
  }
}
/* Efectos de aparición al scroll - Minimalistas */

/* Efectos de aparición al scroll - RÁPIDOS y COMPACTOS */

/* Estados iniciales para elementos animados - TRANSICIONES MÁS RÁPIDAS */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease; /* Reducido de 0.6s a 0.4s */
}

.fade-in {
  opacity: 0;
  transform: scale(0.98);
  transition: all 0.5s ease; /* Reducido de 0.8s a 0.5s */
}

.section-title, .integrated-title {
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.5s ease; /* Reducido de 0.8s a 0.5s */
}

.section-subtitle, .integrated-subtitle {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease 0.1s; /* Reducido delays */
}

/* Estados finales cuando son visibles */
.fade-up-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-visible {
  opacity: 1;
  transform: scale(1);
}

.section-title.visible,
.integrated-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-subtitle.visible,
.integrated-subtitle.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Grid Compacto - Sin espacios en blanco */
.compact-portfolio-grid, .compact-photography-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 8px; /* Reducido significativamente */
  margin: 0 auto;
}

.portfolio-item, .photography-item {
  position: relative;
  border-radius: 4px; /* Más sutil */
  overflow: hidden;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.portfolio-item:hover, .photography-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.portfolio-image, .photography-image {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.portfolio-image img, .photography-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease; /* Más rápido */
}

.portfolio-item:hover .portfolio-image img, 
.photography-item:hover .photography-image img {
  transform: scale(1.03); /* Más sutil */
}

.portfolio-info, .photography-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--white);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-info, 
.photography-item:hover .photography-info {
  transform: translateY(0);
}

.portfolio-title, .photography-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.2;
}

.portfolio-description, .photography-description {
  font-size: 0.8rem;
  opacity: 0.9;
  line-height: 1.3;
}

/* Tamaños optimizados para grid compacto */
.portfolio-item.wide, .photography-item.wide {
  grid-column: span 8;
  grid-row: span 2;
}

.portfolio-item.tall, .photography-item.tall {
  grid-column: span 4;
  grid-row: span 3;
}

.portfolio-item.square, .photography-item.square {
  grid-column: span 4;
  grid-row: span 2;
}

/* Eliminamos los tamaños medium, small, large para simplificar */

/* Retrasos escalonados MÁS CORTOS */
.compact-portfolio-grid .portfolio-item:nth-child(1),
.compact-photography-grid .photography-item:nth-child(1) {
  transition-delay: 0.05s;
}

.compact-portfolio-grid .portfolio-item:nth-child(2),
.compact-photography-grid .photography-item:nth-child(2) {
  transition-delay: 0.1s;
}

.compact-portfolio-grid .portfolio-item:nth-child(3),
.compact-photography-grid .photography-item:nth-child(3) {
  transition-delay: 0.15s;
}

.compact-portfolio-grid .portfolio-item:nth-child(4),
.compact-photography-grid .photography-item:nth-child(4) {
  transition-delay: 0.2s;
}

.compact-portfolio-grid .portfolio-item:nth-child(5),
.compact-photography-grid .photography-item:nth-child(5) {
  transition-delay: 0.25s;
}

.compact-portfolio-grid .portfolio-item:nth-child(6),
.compact-photography-grid .photography-item:nth-child(6) {
  transition-delay: 0.3s;
}

.services-grid .service-card:nth-child(1) {
  transition-delay: 0.05s;
}

.services-grid .service-card:nth-child(2) {
  transition-delay: 0.1s;
}

.services-grid .service-card:nth-child(3) {
  transition-delay: 0.15s;
}

.services-grid .service-card:nth-child(4) {
  transition-delay: 0.2s;
}

.services-grid .service-card:nth-child(5) {
  transition-delay: 0.25s;
}

.services-grid .service-card:nth-child(6) {
  transition-delay: 0.3s;
}

.process-steps .process-step:nth-child(1) {
  transition-delay: 0.05s;
}

.process-steps .process-step:nth-child(2) {
  transition-delay: 0.1s;
}

.process-steps .process-step:nth-child(3) {
  transition-delay: 0.15s;
}

.process-steps .process-step:nth-child(4) {
  transition-delay: 0.2s;
}

/* Efectos más rápidos para imágenes */
.portfolio-item.fade-in .portfolio-image img,
.photography-item.fade-in .photography-image img {
  transition: all 0.5s ease 0.1s;
}

.portfolio-item.fade-in-visible .portfolio-image img,
.photography-item.fade-in-visible .photography-image img {
  transform: scale(1);
}

/* Responsive adjustments para grid compacto */
@media (max-width: 1024px) {
  .compact-portfolio-grid, .compact-photography-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
  }
  
  .portfolio-item.wide, .photography-item.wide {
    grid-column: span 6;
  }
  
  .portfolio-item.tall, .photography-item.tall {
    grid-column: span 4;
  }
  
  .portfolio-item.square, .photography-item.square {
    grid-column: span 4;
  }
}

@media (max-width: 768px) {
  .compact-portfolio-grid, .compact-photography-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
  }
  
  .portfolio-item, .photography-item {
    grid-column: span 6 !important;
    grid-row: span 2 !important;
  }
  
  .portfolio-info, .photography-info {
    padding: 10px 12px;
  }
  
  .portfolio-title, .photography-title {
    font-size: 0.9rem;
  }
  
  .portfolio-description, .photography-description {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .compact-portfolio-grid, .compact-photography-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .portfolio-item, .photography-item {
    grid-column: 1 !important;
    grid-row: span 2 !important;
  }
  
  /* Eliminar todos los delays en móvil para máxima velocidad */
  .compact-portfolio-grid .portfolio-item,
  .compact-photography-grid .photography-item,
  .services-grid .service-card,
  .process-steps .process-step {
    transition-delay: 0s !important;
  }
}

/* Prevenir animaciones para usuarios que prefieren reducir movimiento */
@media (prefers-reduced-motion: reduce) {
  .fade-up,
  .fade-in,
  .section-title,
  .integrated-title,
  .section-subtitle,
  .integrated-subtitle,
  .portfolio-image img,
  .photography-image img {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================
   ESTILOS PARA EL PANEL DE CONTROL
   ============================================ */

/* Login Page Styles */
.login-container {
  max-width: 400px;
  margin: 100px auto;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: bold;
}

.login-input {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
}

.login-button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 70, 255, 0.3);
}

/* Panel de Control Styles */
.admin-panel {
  min-height: 100vh;
  background: #f5f5f5;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 250px;
  background: white;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.main-content {
  margin-left: 250px;
  padding: 2rem;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.data-table th {
  background: #f8f9fa;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.data-table td {
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

.btn-edit, .btn-delete {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-right: 0.5rem;
}

.btn-edit {
  background: #4CAF50;
  color: white;
}

.btn-delete {
  background: #f44336;
  color: white;
}

@media (max-width: 768px) {
  .sidebar {
    width: 70px;
  }
  
  .main-content {
    margin-left: 70px;
  }
  
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   CORRECCIÓN DE CURSOR EN PANEL DE CONTROL
   ============================================ */

/* Ocultar cursor personalizado en páginas de panel */
body.panel-page .cursor-dot,
body.admin-page .cursor-dot,
body[class*="panel"] .cursor-dot,
body[class*="admin"] .cursor-dot {
  display: none !important;
}

/* Restaurar cursor normal en panel */
body.panel-page,
body.admin-page,
body[class*="panel"],
body[class*="admin"] {
  cursor: auto !important;
}

/* Asegurar que el cursor aparece en elementos interactivos del panel */
body.panel-page a,
body.panel-page button,
body.panel-page input,
body.panel-page select,
body.panel-page textarea {
  cursor: pointer !important;
}
/* Sección de Herramientas */
.tools-section {
  padding: 80px 5%;
  background: var(--bg-color);
  position: relative;
  overflow: hidden;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 50px auto 0;
}

.tool-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8a2be2, #00bfff);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.tool-card:hover {
  transform: translateY(-10px);
  border-color: rgba(138, 43, 226, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.tool-card:hover::before {
  transform: scaleX(1);
}

.tool-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.tool-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  padding: 15px;
  transition: all 0.3s ease;
}

.tool-card:hover .tool-logo {
  background: rgba(138, 43, 226, 0.2);
  transform: scale(1.1);
}

.tool-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1) brightness(1.5);
  transition: filter 0.3s ease;
}

.tool-card:hover .tool-logo img {
  filter: grayscale(0) brightness(1);
}

.tool-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.tool-card:hover .tool-title {
  color: #8a2be2;
}

.tool-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  opacity: 0.8;
}

/* Responsive para herramientas */
@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .tool-card {
    padding: 20px 15px;
  }
  
  .tool-logo {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
}
/* Estilos para el header de la sección */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

/* Asegúrate de que todas las secciones tengan el mismo padding */
.tools-section {
  padding: 80px 5%;
  background: var(--bg-color);
  position: relative;
  overflow: hidden;
}

/* Estilos generales para títulos y subtítulos (si no los tienes ya) */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 20px;
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #8a2be2, #00bfff);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 20px auto 0;
  line-height: 1.6;
  opacity: 0.9;
}

/* Grid de herramientas (actualizado) */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Responsive para títulos */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  
  .section-subtitle {
    font-size: 1rem;
    padding: 0 15px;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .tools-section {
    padding: 60px 20px;
  }
  
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
  }
}
/* Asegura que todas las secciones principales tengan el mismo estilo */
.about, .services-section, .portfolio-section, .photography-section, .tools-section {
  padding: 80px 5%;
  position: relative;
}

/* Asegura que todos los títulos de sección se comporten igual */
.section-title {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
}

.section-subtitle {
  display: block;
  width: 100%;
  text-align: center;
}