/* Reset y configuración base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #000;
  color: #fff;
  font-family: Inter, "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== TOPBAR / NAVBAR ===== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(0,0,0,0.8), rgba(0,0,0,0.4));
  backdrop-filter: blur(12px);
  padding: 16px 0;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(-20px);
  animation: navReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.1s;
}

@keyframes navReveal {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.topbar.scrolled {
  background: rgba(0,0,0,0.95);
  box-shadow: 0 4px 20px rgba(0,188,212,0.1);
}

.topbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateX(-20px);
  animation: logoReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.3s;
}

@keyframes logoReveal {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #00bcd4 0%, #e91e63 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.logo-img {
  height: 40px;
  width: auto;
}

/* Navegación */
.nav-list {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-btn {
  display: inline-block;
  text-decoration: none;
  color: #d1d5db;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 10px 16px;
  border-radius: 8px;
  transition: all 0.25s ease;
  font-size: 0.95rem;
  position: relative;
  opacity: 0;
  transform: translateY(-10px);
  animation: navItemReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.nav-btn:nth-child(1) { animation-delay: 0.5s; }
.nav-btn:nth-child(2) { animation-delay: 0.6s; }
.nav-btn:nth-child(3) { animation-delay: 0.7s; }
.nav-btn:nth-child(4) { animation-delay: 0.8s; }

@keyframes navItemReveal {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-btn::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: linear-gradient(90deg, #00bcd4, #e91e63);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-btn:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.nav-btn:hover::after {
  transform: scaleX(1);
}

/* Menú móvil */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
}

.hero-title {
  color: #ffffff;
  font-weight: 900;
  line-height: 0.9;
  font-size: clamp(60px, 18vw, 220px);
  letter-spacing: -3px;
  text-transform: none;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  user-select: none;
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
  opacity: 0;
  transform: scale(0.8) translateY(30px);
  animation: titleReveal 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.2s;
  filter: blur(10px);
}

@keyframes titleReveal {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(30px);
    filter: blur(10px);
  }
  60% {
    opacity: 1;
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0px);
  }
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: #9ca3af;
  max-width: 600px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 2;
  font-weight: 400;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(20px);
  animation: subtitleReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.8s;
}

@keyframes subtitleReveal {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(20px);
  }
}

.cta-button {
  display: inline-block;
  padding: 16px 40px;
  background: linear-gradient(135deg, #00bcd4 0%, #e91e63 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(0,188,212,0.3);
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  animation: ctaReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 1.4s;
}

@keyframes ctaReveal {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,188,212,0.5);
  background: linear-gradient(135deg, #e91e63 0%, #e91e63 100%);
}

/* ===== SECCIONES GENERALES ===== */
.section {
  padding: 100px 20px;
  position: relative;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #9ca3af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1.5px;
}

.section-subtitle {
  text-align: center;
  color: #9ca3af;
  font-size: 1.15rem;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== SERVICES SECTION ===== */
.services-section {
  background: linear-gradient(180deg, #000 0%, #0a0a0a 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.service-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 40px 32px;
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,188,212,0.1) 0%, rgba(233,30,99,0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0,188,212,0.5);
  box-shadow: 0 16px 48px rgba(0,188,212,0.15);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.service-card p {
  color: #9ca3af;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  background: #000;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 60px;
  padding: 0 20px;
}

.about-text {
  padding-right: 0;
  padding-left: 0;
}

.about-description {
  color: #d1d5db;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.stat-item {
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #00bcd4 0%, #e91e63 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-label {
  color: #9ca3af;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.about-image {
  height: auto;
  padding-right: 0;
}

/* Grid de equipo - Responsive */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  justify-items: center;
  max-width: 100%;
  margin: 0 auto;
}

.team-card {
  width: 100%;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-card-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.team-card-inner:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0,188,212,0.2);
  border-color: rgba(0,188,212,0.3);
}

.team-card-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.team-card-inner:hover img {
  transform: scale(1.05);
}

/* Mini biografía deslizante */
.bio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.85) 100%);
  color: #fff;
  padding: 16px 12px;
  box-sizing: border-box;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  text-align: center;
}

.team-card-inner:hover .bio-overlay {
  transform: translateY(0);
}

.bio-overlay p {
  margin: 4px 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #d1d5db;
}

/* Nombre debajo de la tarjeta */
.card-name {
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: #d1d5db;
  line-height: 1.3;
  padding: 0 8px;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-section {
  background: linear-gradient(180deg, #0a0a0a 0%, #000 100%);
}

.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin-top: 60px;
}

.portfolio-item {
  position: relative;
  width: 300px;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.4s ease;
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0,188,212,0.2);
  border-color: rgba(0,188,212,0.3);
}

.portfolio-img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.1);
}

.portfolio-bio {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 20px;
  box-sizing: border-box;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-bio {
  transform: translateY(0);
}

.portfolio-bio h3 {
  margin: 0 0 8px 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.portfolio-bio p {
  margin: 4px 0;
  font-size: 0.95rem;
  color: #d1d5db;
  line-height: 1.5;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
  background: #000;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.testimonial-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 36px;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,188,212,0.3);
  box-shadow: 0 12px 32px rgba(0,188,212,0.1);
}

.testimonial-stars {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.testimonial-text {
  color: #d1d5db;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial-author strong {
  color: #fff;
  font-size: 1.05rem;
}

.testimonial-author span {
  color: #9ca3af;
  font-size: 0.9rem;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background: linear-gradient(180deg, #0a0a0a 0%, #000 100%);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  margin-top: 60px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 2rem;
  min-width: 50px;
}

.contact-item h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  font-weight: 700;
}

.contact-item p {
  color: #9ca3af;
  font-size: 1rem;
}

.social-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.social-link {
  padding: 12px 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #d1d5db;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.social-link:hover {
  background: rgba(0,188,212,0.1);
  border-color: rgba(0,188,212,0.5);
  color: #00bcd4;
  transform: translateY(-2px);
}

.contact-form-container {
  width: 100%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-input {
  padding: 16px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: rgba(0,188,212,0.5);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(0,188,212,0.1);
}

.form-input::placeholder {
  color: #6b7280;
}

textarea.form-input {
  resize: vertical;
  min-height: 150px;
}

.submit-button {
  padding: 16px 32px;
  background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0,188,212,0.3);
  letter-spacing: 0.5px;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,188,212,0.5);
  background: linear-gradient(135deg, #e91e63 0%, #e91e63 100%);
}

/* ===== FOOTER ===== */
.footer {
  background: #000;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 60px 20px 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-logo p {
  color: #9ca3af;
  margin-top: 12px;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links h4 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #00bcd4;
}

.footer-legal p {
  color: #6b7280;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.legal-links {
  display: flex;
  gap: 20px;
}

.legal-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.legal-links a:hover {
  color: #00bcd4;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 20px;
  }
  
  .about-text {
    padding-right: 0;
    padding-left: 0;
  }
  
  .about-image {
    padding-right: 0;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  /* Team grid en tablet */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .team-card {
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  .nav-list {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.98);
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  
  .nav-list.active {
    transform: translateX(0);
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
  
  .section {
    padding: 60px 20px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  /* Team grid responsive en móvil */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .team-card {
    max-width: 170px;
  }
  
  .card-name {
    font-size: 0.85rem;
  }
  
  .bio-overlay p {
    font-size: 0.75rem;
  }
}

@media (max-width: 520px) {
  .hero-title {
    font-size: clamp(48px, 15vw, 120px);
    letter-spacing: -2px;
  }
  
  .section-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  .cta-button {
    padding: 14px 32px;
    font-size: 1rem;
  }
  
  .portfolio-grid {
    gap: 24px;
  }
  
  .portfolio-item {
    width: 100%;
    max-width: 320px;
  }
  
  /* Team grid mobile */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .team-card {
    max-width: 160px;
  }
  
  .card-name {
    font-size: 0.8rem;
  }
  
  .bio-overlay {
    padding: 12px 8px;
  }
  
  .bio-overlay p {
    font-size: 0.7rem;
    margin: 2px 0;
  }
}