@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Inter:wght@400;500&display=swap');

:root {
  --primary-dark: #0f172a;
  --secondary-dark: #1e293b;
  --primary-blue: #0ea5e9;
  --accent-gold: #fbbf24;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--primary-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
}

/* Navbar Glassmorphism */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 5%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.3s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo img {
  height: 45px;
  border-radius: 8px;
}

.logo span {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-blue);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-blue);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.btn-contact {
  background: linear-gradient(135deg, var(--primary-blue), #2563eb);
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 5% 2rem;
  position: relative;
  background: radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(251, 191, 36, 0.1) 0%, transparent 40%);
}

.hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 2;
}

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.btn-outline:hover {
  background: var(--glass-bg);
  border-color: var(--primary-blue);
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  z-index: 2;
}

.portrait-container {
  position: relative;
  width: 450px;
  height: 550px;
  border-radius: 30px;
  padding: 15px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.5s ease;
}

.portrait-container:hover {
  transform: perspective(1000px) rotateY(0deg) translateY(-10px);
}

.portrait-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.floating-card {
  position: absolute;
  bottom: -20px;
  left: -40px;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: float 6s ease-in-out infinite;
}

.floating-card.top-right {
  top: 40px;
  bottom: auto;
  left: auto;
  right: -30px;
  animation-delay: 3s;
}

.icon-box {
  width: 45px;
  height: 45px;
  background: rgba(14, 165, 233, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  font-size: 1.5rem;
}

.card-text h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.card-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Responsive */
@media (max-width: 968px) {
  .navbar {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    justify-content: center;
  }

  .logo {
    justify-content: center;
    text-align: center;
  }

  .nav-btn {
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
    text-align: center;
    width: 100%;
    max-width: 350px;
    white-space: normal;
  }

  .hero {
    flex-direction: column;
    padding-top: 11rem;
    text-align: center;
  }

  .hero-content {
    margin-bottom: 4rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .nav-links {
    display: none;
    /* Mobile menu needed */
  }

  .portrait-container {
    width: 100%;
    max-width: 400px;
    height: 450px;
  }

  .floating-card {
    display: none;
    /* Hide on small screens for cleaner look */
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Nuevas Secciones (Perfil y Servicios) --- */

.section-padding {
  padding: 6rem 5%;
  position: relative;
}

.bg-alt {
  background-color: var(--secondary-dark);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-5 {
  margin-top: 3rem;
}

.d-inline-block {
  display: inline-block;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
}

/* Perfil Profesional */
.bio-text {
  margin: 1.5rem 0 2rem;
}

.bio-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.bio-text strong {
  color: var(--text-main);
  font-weight: 600;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-blue);
}

.stat-card h3 {
  color: var(--accent-gold);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.stat-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.section-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.gradient-sphere {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.3) 0%, rgba(30, 41, 59, 0) 70%);
  border-radius: 50%;
  z-index: 1;
  animation: pulse 4s infinite alternate;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.glass-panel {
  position: relative;
  z-index: 2;
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 2rem;
  border-radius: 24px;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}

.quote-icon {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.quote-text {
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.quote-author {
  font-weight: 600;
  color: var(--primary-blue);
}

/* Servicios / Áreas de Enfoque */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--primary-dark);
  border: 1px solid var(--glass-border);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(14, 165, 233, 0.3);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(14, 165, 233, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--primary-blue);
  color: #fff;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cta-banner {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(251, 191, 36, 0.05));
  border: 1px solid var(--glass-border);
  padding: 3rem 2rem;
  border-radius: 24px;
}