/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-color: #00d4ff;
    --dark-bg: #0b132b;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
    scroll-behavior: smooth;
    padding-top: 70px; /* Space for fixed header */
}

html {
    scroll-behavior: smooth;
}

.header {
    background: rgba(34, 34, 34, 0.95);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header.scrolled {
    background: rgba(11, 19, 43, 0.98);
    backdrop-filter: blur(20px);
}

#servicios {
  background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 50%, #f0f8ff 100%);
  position: relative;
  overflow: hidden;
}

#servicios::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
  pointer-events: none;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    height: 50px;
}

.nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #00c6ff;
}

.hero {
  background: linear-gradient(135deg, #0b132b 0%, #1e1e2e 25%, #000814 50%, #0b132b 75%, #1a1a2e 100%);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
  color: #fff;
  padding: 6rem 2rem 5rem;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  margin-top: -70px; /* Compensate for fixed header */
  padding-top: 140px; /* Add space back */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
#impacto {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

#impacto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

#impacto h2 {
    color: white;
    background: none;
    -webkit-text-fill-color: white;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    padding: 0 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.impact-item {
    text-align: center;
    position: relative;
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.4s ease;
}

.impact-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.impact-item h3 {
    font-size: 3rem;
    color: #00d4ff;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(0, 212, 255, 0.5); }
    to { text-shadow: 0 0 30px rgba(0, 212, 255, 0.8), 0 0 40px rgba(0, 212, 255, 0.3); }
}

.impact-item p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.5;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
  min-width: 300px;
  animation: fadeInLeft 1s ease forwards;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #00d4ff 50%, #667eea 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: textShimmer 3s ease-in-out infinite;
  line-height: 1.2;
}

@keyframes textShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-text p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  color: #e0e0e0;
  opacity: 0;
  animation: fadeInUp 1s ease 0.5s forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-hero {
  display: inline-block;
  background: linear-gradient(135deg, #00d4ff 0%, #667eea 100%);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.4s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
  font-size: 1.1rem;
}

.btn-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-hero:hover::before {
  left: 100%;
}

.btn-hero:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
}

.btn-hero:hover {
  background-color: #00bcd4;
  transform: scale(1.05);
}

.hero-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  animation: fadeInRight 1s ease forwards;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 0 50px rgba(0, 198, 255, 0.5));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

.floating-stars {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: radial-gradient(circle, #00c6ff 0%, transparent 70%);
  border-radius: 50%;
  animation: floatStar linear infinite;
  opacity: 0.8;
}

.star::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00c6ff, transparent);
  transform: translate(-50%, -50%);
}

.star::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 6px;
  background: linear-gradient(0deg, transparent, #00c6ff, transparent);
  transform: translate(-50%, -50%);
}

@keyframes floatStar {
  from {
    transform: translateY(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: scale(1);
  }
  90% {
    opacity: 1;
  }
  to {
    transform: translateY(-100vh) scale(0);
    opacity: 0;
  }
}
/* Animaciones */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .btn-hero {
    font-size: 1rem;
  }
}

.section {
    padding: 5rem 0;
    text-align: center;
    position: relative;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #333 0%, #667eea 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 0 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.service {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service:hover::before {
    opacity: 1;
}

.service:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    border-color: rgba(0, 212, 255, 0.3);
}

.service:nth-child(2):hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
}

.service:nth-child(3):hover {
    transform: translateY(-10px) rotateX(-5deg) rotateY(5deg);
}

.icon-service {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.6));
    transition: all 0.4s ease;
    display: block;
}

.service:hover .icon-service {
    transform: scale(1.1) rotateY(360deg);
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.8));
}

.service h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.service p {
    color: #666;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    font-size: 1rem;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.service img {
    margin-bottom: 1rem;
}

.service h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.service p {
  font-size: 0.95rem;
  color: #777;
  margin-top: 0.5rem;
}

.impact-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.impact-item {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    width: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.impact-item:hover {
    transform: scale(1.05);
}

.impact-item h3 {
    font-size: 2rem;
    color: #00c6ff;
}

.impact-item p {
    font-size: 1rem;
    margin-top: 0.5rem;
    color: #333;
}

#clientes {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.client-bubbles {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding: 0 2rem;
    animation: slideIn 1s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.client-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 1.5rem;
    border-radius: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.client-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(102, 126, 234, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.client-bubble:hover::before {
    opacity: 1;
}

.client-bubble:hover {
    transform: translateY(-15px) scale(1.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.client-bubble img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid transparent;
    background: linear-gradient(45deg, #00d4ff, #667eea) border-box;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    object-fit: cover;
}

.client-bubble:hover img {
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.client-bubble p {
    font-weight: 600;
    margin: 0;
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
}

.contacto-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
  background-size: 400% 400%;
  animation: gradientShift 10s ease infinite;
  color: white;
  position: relative;
  overflow: hidden;
  padding: 5rem 2rem;
}

.contacto-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.contacto-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.contacto-info {
    text-align: left;
}

.contacto-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
    background: none;
    -webkit-text-fill-color: white;
    line-height: 1.2;
}

.contacto-info p {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.contact-form {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    margin: 0.75rem 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.btn-contacto {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #00d4ff 0%, #667eea 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-contacto::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-contacto:hover::before {
    left: 100%;
}

.btn-contacto:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

@media (max-width: 768px) {
    .contacto-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .contacto-info {
        text-align: center;
    }
    
    .contacto-info h2 {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
}

.footer {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #222 0%, #000814 100%);
    color: #fff;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
}

.footer .container {
    flex-direction: column;
    gap: 1rem;
}

.footer p {
    margin: 0;
    opacity: 0.8;
}

.social-links a {
    color: #00d4ff;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.social-links a:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}
