/* ========================================
   VARIABLES
======================================== */
:root {
  --primary-color: #1eb6e9;
  --secondary-color: #ffd44d;
  --dark-primary: #0e2327;
  --text-color: #0e2327;
  --white: #ffffff;
  --tiktok-color: #000000;
  --tiktok-accent: #EE1D52;
  --facebook-color: #1877F2;
}

/* ========================================
   RESET Y CONFIGURACIÓN GLOBAL
======================================== */
html {
  scroll-behavior: smooth;
}

body, html {
  overflow-x: hidden !important;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-color);
  background-color: var(--white);
}

/* ========================================
   HELPERS
======================================== */
.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

/* ========================================
   PRELOADER / WELCOME SCREEN
======================================== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #0e2327 0%, #0e2327 50%, #0e2327 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
  animation: fadeOut 1s ease-in-out 3.5s forwards;
}

.preloader::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 40%, rgba(30, 182, 233, 0.15) 0%, transparent 60%);
  animation: subtlePulse 4s ease-in-out infinite;
}

.preloader-content {
  position: relative;
  z-index: 10;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: contentFade 1.2s ease-out;
}

.preloader-logo {
  width: 200px;
  height: 200px;
  margin-bottom: 4rem;
  opacity: 0;
  animation: logoReveal 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  filter: drop-shadow(0 10px 40px rgba(30, 182, 233, 0.4));
}

.preloader-text {
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
  opacity: 0;
  letter-spacing: 4px;
  text-transform: uppercase;
  animation: textReveal 0.8s ease-out 0.6s forwards;
}

.preloader-brand {
  font-size: 4rem;
  font-weight: 600;
  margin-bottom: 3.5rem;
  opacity: 0;
  animation: brandReveal 1s ease-out 0.9s forwards;
  letter-spacing: 1px;
}

.preloader-brand .text-primary {
  display: inline-block;
  animation: letterFade 0.6s ease-out 1.2s forwards;
  opacity: 0;
}

.preloader-brand .text-secondary {
  display: inline-block;
  animation: letterFade 0.6s ease-out 1.4s forwards;
  opacity: 0;
  margin-left: 0.5rem;
}

.loading-bar {
  width: 400px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto;
  opacity: 0;
  animation: barReveal 0.6s ease-out 1.6s forwards;
}

.loading-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #1eb6e9 0%, #5ac8fa 50%, #ffd44d 100%);
  border-radius: 10px;
  animation: progressLoad 2.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
  box-shadow: 0 0 15px rgba(30, 182, 233, 0.5);
}

/* ========================================
   PRELOADER ANIMATIONS
======================================== */
@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes subtlePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes contentFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes logoReveal {
  0% {
    opacity: 0;
    transform: scale(0.7) translateY(20px);
  }
  60% {
    transform: scale(1.05) translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes textReveal {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brandReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes letterFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes barReveal {
  from {
    opacity: 0;
    transform: scaleX(0.8);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes progressLoad {
  from { width: 0%; }
  to { width: 100%; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========================================
   NAVEGACIÓN OSCURA CON LINKS AMARILLOS
======================================== */
.nav-dark {
  background: linear-gradient(135deg, #0e2327 0%, #1a3d45 100%) !important;
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(255, 212, 77, 0.2);
}

.nav-container {
  height: 60px;
  max-width: 100vw;
}

.nav-logo {
  height: 45px;
  width: 45px;
  object-contain: contain;
  min-width: 45px;
  min-height: 45px;
}

.nav-brand-text {
  font-size: 1.1rem;
  font-weight: 700;
}

.nav-link {
  position: relative;
  padding: 0.5rem 0;
  color: var(--secondary-color) !important;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--secondary-color);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover {
  color: var(--white) !important;
  transform: translateY(-2px);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  color: var(--secondary-color);
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  color: var(--white);
  transform: scale(1.1);
}

.mobile-menu-overlay {
  background: linear-gradient(135deg, #0e2327 0%, #1a3d45 100%);
  animation: fadeIn 0.3s ease;
}

.mobile-menu-link {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 1.2rem;
  padding: 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-link:hover {
  background: rgba(255, 212, 77, 0.1);
  color: var(--white);
  transform: scale(1.05);
}

/* ========================================
   SECCIONES Y ANIMACIONES
======================================== */
.section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-icon-box {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(30, 182, 233, 0.1), rgba(255, 212, 77, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(30, 182, 233, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(30, 182, 233, 0.2);
  }
  50% {
    box-shadow: 0 8px 32px rgba(255, 212, 77, 0.4);
  }
}

/* ========================================
   BOTONES GENERALES
======================================== */
.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 182, 233, 0.3);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  color: var(--dark-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(30, 182, 233, 0.4);
}

/* ========================================
   HERO SECTION RESPONSIVE
======================================== */
.hero-container {
  position: relative;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-container img {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  filter: brightness(0.4) contrast(1.15) saturate(1.1);
  transition: filter 0.4s;
}

.hero-overlay {
  content: "";
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, rgba(14, 35, 39, 0.85) 0%, rgba(30, 182, 233, 0.2) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: floatParticle 15s infinite;
}

.particle:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 60%;
  left: 80%;
  animation-delay: 3s;
}

.particle:nth-child(3) {
  width: 100px;
  height: 100px;
  top: 80%;
  left: 20%;
  animation-delay: 6s;
}

.particle:nth-child(4) {
  width: 40px;
  height: 40px;
  top: 40%;
  left: 70%;
  animation-delay: 9s;
}

.particle:nth-child(5) {
  width: 70px;
  height: 70px;
  top: 10%;
  left: 50%;
  animation-delay: 12s;
}

@keyframes floatParticle {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  50% {
    transform: translateY(-100px) rotate(180deg);
    opacity: 0.5;
  }
}

.hero-content {
  padding-top: 60px;
}

.hero-badge {
  background: linear-gradient(135deg, rgba(30, 182, 233, 0.9), rgba(255, 212, 77, 0.9));
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(30, 182, 233, 0.4);
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(1.8rem, 5vw, 4.5rem);
  font-weight: 800;
  color: white;
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-highlight {
  display: block;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 0.5rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.6rem);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(30, 182, 233, 0.3);
}

.stat-icon {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 0.3rem;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--dark-primary);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 10px 40px rgba(30, 182, 233, 0.4);
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(30, 182, 233, 0.6);
}

.hero-container .relative.z-10,
.hero-container > .z-10 {
  position: relative;
  z-index: 3;
}

section#inicio {
  padding-top: 0 !important;
  margin-top: 0 !important;
  height: 100vh;
  min-height: 100vh;
}

/* ========================================
   ABOUT SECTION - GLASSMORPHISM
======================================== */
.glassmorphism {
  background: rgba(255, 255, 255, 0.35) !important;
  border-radius: 2rem !important;
  box-shadow: 0 8px 32px rgba(30, 182, 233, 0.15), 0 2px 12px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

#nosotros .glassmorphism {
  max-width: 900px !important;
  padding: 2.5rem 2rem !important;
  margin: 0 auto !important;
}

.values-grid {
  max-width: 600px;
  margin: 0 auto;
  background: linear-gradient(135deg, #f7fafc, #edf2f7);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.value-item:hover {
  transform: scale(1.05);
}

.value-item:hover i {
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ========================================
   SERVICES SECTION
======================================== */
.service-card {
  transition: all 0.4s ease;
  background: linear-gradient(145deg, #ffffff 0%, #f8fcfd 100%);
  border: 2px solid transparent;
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 50px rgba(30, 182, 233, 0.25);
  border-color: var(--primary-color);
}

.service-icon-wrapper {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(30, 182, 233, 0.1), rgba(255, 212, 77, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon-wrapper {
  transform: scale(1.1) rotate(10deg);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.service-card:hover .service-icon-wrapper i {
  color: white !important;
}

/* ========================================
   PROJECTS SECTION
======================================== */
.projects-carousel-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 2rem 0;
}

.projects-carousel {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.project-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 3px solid #1eb6e9;
}

.project-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(30, 182, 233, 0.25);
}

.project-image-container {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-image {
  transform: scale(1.15);
}

.project-content {
  padding: 1.8rem 1.5rem;
  background: white;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.project-description {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* Animación de borde para la card de video */
.project-card.video-card {
  animation: borderPulse 2.5s infinite;
}

@keyframes borderPulse {
  0%   { border-color: #1eb6e9; box-shadow: 0 0 0 0 #1eb6e9; }
  50%  { border-color: #ffd44d; box-shadow: 0 0 24px 0 #ffd44d; }
  100% { border-color: #1eb6e9; box-shadow: 0 0 0 0 #1eb6e9; }
}

/* Botón reproducir */
.play-btn {
  position: absolute;
  top: 50%; 
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, #1eb6e9 60%, #ffd44d 100%);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 64px; 
  height: 64px;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(30,182,233,0.3);
  cursor: pointer;
  z-index: 3;
  transition: all 0.2s;
  opacity: 0.92;
}

.play-btn:hover {
  background: #0e2327;
  transform: translate(-50%, -50%) scale(1.08);
  opacity: 1;
}

/* Vista previa del video */
.project-video {
  background: #111 !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Botón Ver */
.view-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: linear-gradient(135deg, #1eb6e9 0%, #1599c9 100%);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(30,182,233,0.25);
  cursor: pointer;
  z-index: 3;
  transition: all 0.3s;
}

.view-btn:hover {
  background: linear-gradient(135deg, #0e2327 0%, #1a3a3f 100%);
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 6px 18px rgba(30,182,233,0.35);
}

/* ========================================
   BOTONES SOCIALES
======================================== */
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.tiktok-btn-main {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  color: #fff;
  border: 3px solid #EE1D52;
  animation: tiktokPulse 2s ease-in-out infinite;
}

.tiktok-btn-main:hover {
  background: linear-gradient(135deg, #EE1D52 0%, #ff2d67 100%);
  border-color: #ff2d67;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 32px rgba(238, 29, 82, 0.6);
}

@keyframes tiktokPulse {
  0%, 100% {
    box-shadow: 0 6px 24px rgba(238, 29, 82, 0.4);
  }
  50% {
    box-shadow: 0 8px 32px rgba(238, 29, 82, 0.7);
  }
}

.facebook-btn-main {
  background: linear-gradient(135deg, #1877f2 0%, #0c5bc9 100%);
  color: #fff;
  border: 3px solid #1877f2;
  animation: facebookPulse 2.5s ease-in-out infinite;
}

.facebook-btn-main:hover {
  background: linear-gradient(135deg, #0c5bc9 0%, #083d8a 100%);
  border-color: #0c5bc9;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 32px rgba(24, 119, 242, 0.6);
}

@keyframes facebookPulse {
  0%, 100% {
    box-shadow: 0 6px 24px rgba(24, 119, 242, 0.4);
  }
  50% {
    box-shadow: 0 8px 32px rgba(24, 119, 242, 0.7);
  }
}

/* ========================================
   ANIMACIÓN HERRAMIENTAS FLOTANTES
======================================== */
.floating-tools-contact {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
}

.tool-float {
  position: absolute;
  font-size: 2.5rem;
  opacity: 0;
  color: var(--primary-color);
  filter: drop-shadow(0 2px 12px rgba(30, 182, 233, 0.3));
}

.tool-tl {
  top: -60px;
  left: -60px;
  animation: floatInTL 3s ease-out infinite;
}

.tool-tr {
  top: -60px;
  right: -60px;
  animation: floatInTR 3.5s ease-out infinite;
}

.tool-bl {
  bottom: -60px;
  left: -60px;
  animation: floatInBL 4s ease-out infinite;
}

.tool-br {
  bottom: -60px;
  right: -60px;
  animation: floatInBR 3.8s ease-out infinite;
}

@keyframes floatInTL {
  0% {
    transform: translate(-100%, -100%) rotate(0deg);
    opacity: 0;
  }
  15% {
    transform: translate(80px, 80px) rotate(45deg);
    opacity: 0.4;
  }
  30% {
    transform: translate(120px, 120px) rotate(90deg);
    opacity: 0.2;
  }
  50% {
    opacity: 0;
  }
  100% {
    transform: translate(200px, 200px) rotate(180deg);
    opacity: 0;
  }
}

@keyframes floatInTR {
  0% {
    transform: translate(100%, -100%) rotate(0deg);
    opacity: 0;
  }
  15% {
    transform: translate(-80px, 80px) rotate(-45deg);
    opacity: 0.4;
  }
  30% {
    transform: translate(-120px, 120px) rotate(-90deg);
    opacity: 0.2;
  }
  50% {
    opacity: 0;
  }
  100% {
    transform: translate(-200px, 200px) rotate(-180deg);
    opacity: 0;
  }
}

@keyframes floatInBL {
  0% {
    transform: translate(-100%, 100%) rotate(0deg);
    opacity: 0;
  }
  15% {
    transform: translate(80px, -80px) rotate(45deg);
    opacity: 0.4;
  }
  30% {
    transform: translate(120px, -120px) rotate(90deg);
    opacity: 0.2;
  }
  50% {
    opacity: 0;
  }
  100% {
    transform: translate(200px, -200px) rotate(180deg);
    opacity: 0;
  }
}

@keyframes floatInBR {
  0% {
    transform: translate(100%, 100%) rotate(0deg);
    opacity: 0;
  }
  15% {
    transform: translate(-80px, -80px) rotate(-45deg);
    opacity: 0.4;
  }
  30% {
    transform: translate(-120px, -120px) rotate(-90deg);
    opacity: 0.2;
  }
  50% {
    opacity: 0;
  }
  100% {
    transform: translate(-200px, -200px) rotate(-180deg);
    opacity: 0;
  }
}

/* ========================================
   FOOTER
======================================== */
.footer-gradient {
  background: linear-gradient(135deg, #0e2327 0%, #1a3a3f 100%);
}

.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
}

.footer-social-icon:hover {
  background: var(--secondary-color);
  color: var(--dark-primary);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 20px rgba(255, 212, 77, 0.4);
}

/* ========================================
   MODAL
======================================== */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; 
  top: 0;
  width: 100vw; 
  height: 100vh;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s;
}

.image-modal img,
.image-modal video {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 1.2rem;
  box-shadow: 0 8px 32px rgba(30,182,233,0.3);
  display: block;
  margin: auto;
}

.close-modal {
  position: absolute;
  top: 32px;
  right: 48px;
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  transition: color 0.2s;
}

.close-modal:hover {
  color: #1eb6e9;
}

/* ========================================
   FORMULARIO DE CONTACTO - SOLO WHATSAPP
======================================== */
.contact-form-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(30, 182, 233, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(30, 182, 233, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--dark-primary);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: all 0.3s;
  background: white;
  color: var(--text-color);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 182, 233, 0.1);
}

.form-input::placeholder {
  color: #a0aec0;
}

select.form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231eb6e9'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
  font-family: 'Montserrat', sans-serif;
}

.btn-whatsapp-full {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border: none;
  border-radius: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
  margin-top: 2rem;
  opacity: 0.5;
  transform: scale(0.98);
}

.btn-whatsapp-full.active {
  opacity: 1;
  transform: scale(1);
  animation: buttonReady 0.6s ease;
}

.btn-whatsapp-full.active:hover {
  background: linear-gradient(135deg, #1fb855 0%, #0f7a6d 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp-full:disabled {
  cursor: not-allowed;
}

@keyframes buttonReady {
  0% {
    transform: scale(0.95);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.btn-title {
  font-size: 1.1rem;
  line-height: 1.2;
}

.btn-subtitle {
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.9;
}

.form-note {
  text-align: center;
  color: #718096;
  font-size: 0.875rem;
  margin-top: 1rem;
  font-style: italic;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 767px) {
  .nav-container {
    height: 55px;
  }

  .nav-logo {
    height: 40px;
    width: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .nav-brand-text {
    font-size: 0.95rem;
  }

  .hero-container,
  .hero-container img,
  section#inicio {
    height: 100vh !important;
    min-height: 100vh !important;
    width: 100vw !important;
  }

  .hero-content {
    padding-top: 55px;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 0.5rem 1.2rem;
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-width: 200px;
    margin-bottom: 1.5rem;
  }

  .stat-item {
    padding: 0.75rem;
  }

  .stat-icon {
    font-size: 1.2rem;
  }

  .stat-number {
    font-size: 1.4rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .hero-cta {
    padding: 0.85rem 2rem;
    font-size: 0.9rem;
  }
  
  .glassmorphism {
    padding: 1.5rem !important;
    border-radius: 1.5rem !important;
  }

  .values-grid {
    padding: 1.5rem;
  }
  
  .projects-carousel {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }
  
  .project-card {
    max-width: 95vw;
    width: 100%;
  }
  
  .project-image-container {
    height: 220px;
  }
  
  .project-content {
    padding: 1.5rem 1.2rem;
  }
  
  .project-title {
    font-size: 1.2rem;
  }
  
  .project-description {
    font-size: 0.95rem;
  }
  
  .preloader-logo {
    width: 160px;
    height: 160px;
    margin-bottom: 3.5rem;
  }
  
  .preloader-text {
    font-size: 0.95rem;
    letter-spacing: 3px;
  }
  
  .preloader-brand {
    font-size: 2.8rem;
    margin-bottom: 3rem;
  }
  
  .loading-bar {
    width: 320px;
  }

  .tool-float {
    font-size: 1.8rem;
  }

  .social-btn {
    padding: 0.85rem 1.8rem;
    font-size: 1rem;
  }

  .social-btn i {
    font-size: 1.8rem;
  }

  .contact-form-card {
    padding: 1.5rem;
  }

  .btn-whatsapp-full {
    padding: 1.2rem 1.5rem;
  }

  .btn-title {
    font-size: 1rem;
  }

  .btn-subtitle {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.4rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .project-card {
    max-width: 100%;
  }
  
  .project-image-container {
    height: 200px;
  }
  
  .project-title {
    font-size: 1.1rem;
  }
  
  .project-description {
    font-size: 0.9rem;
  }

  .play-btn {
    width: 56px;
    height: 56px;
    font-size: 1.6rem;
  }

  .social-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  .social-btn i {
    font-size: 1.5rem;
  }

  .view-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}