/* ==========================================================================
   ESTILOS GLOBALES Y VARIABLES
   ========================================================================== */
:root {
  /* Paleta de Colores Curada */
  --bg-primary: #FAF9F6;       /* Blanco roto cálido */
  --bg-secondary: #FFFFFF;     /* Blanco puro */
  --text-primary: #1F2937;     /* Slate 800 */
  --text-secondary: #4B5563;   /* Slate 600 */
  --text-muted: #9CA3AF;       /* Gris claro */
  
  /* Colores de Acento (Lila, Teal, Rosa Suave) */
  --accent-purple: #7C5CFC;    /* Lila vibrante moderno */
  --accent-purple-light: #F3E8FF;
  --accent-purple-glow: rgba(124, 92, 252, 0.15);
  
  --accent-teal: #0D9488;      /* Verde azulado profesional */
  --accent-teal-light: #CCFBF1;
  --accent-teal-glow: rgba(13, 148, 136, 0.12);
  
  --accent-pink: #F472B6;      /* Rosa suave femenino */
  --accent-pink-light: #FCE7F3;
  --accent-pink-glow: rgba(244, 114, 182, 0.12);

  --border-color: #E5E7EB;     /* Gris de borde sutil */
  --border-light: rgba(229, 231, 235, 0.5);
  
  /* Fuentes */
  --font-title: 'Playfair Display', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Sombras y Efectos */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 20px 25px -5px rgba(124, 92, 252, 0.06), 0 10px 10px -5px rgba(124, 92, 252, 0.03);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.04);
  
  /* Transiciones y Bordes */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* ==========================================================================
   ELEMENTOS DE DECORACIÓN DE FONDO (GLOW BG)
   ========================================================================== */
.glow-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
}

.glow-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.35;
  mix-blend-mode: multiply;
  animation: float-slow 20s infinite alternate;
}

.glow-circle.lila {
  width: 45vw;
  height: 45vw;
  background-color: var(--accent-purple-glow);
  top: -10vw;
  right: -5vw;
}

.glow-circle.rosa {
  width: 40vw;
  height: 40vw;
  background-color: var(--accent-pink-glow);
  top: 25vw;
  left: -10vw;
  animation-delay: 2s;
}

.glow-circle.teal {
  width: 35vw;
  height: 35vw;
  background-color: var(--accent-teal-glow);
  top: 60vw;
  right: 15vw;
  animation-delay: 4s;
}

@keyframes float-slow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(2vw, 3vw) scale(1.05); }
  100% { transform: translate(-1vw, -2vw) scale(0.95); }
}

/* ==========================================================================
   COMPONENTES COMUNES (BOTONES, TARJETAS, TITULOS)
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  gap: 8px;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent-purple);
  color: var(--bg-secondary);
  box-shadow: 0 4px 14px rgba(124, 92, 252, 0.3);
}

.btn-primary:hover {
  background-color: #6944e3;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 92, 252, 0.4);
}

.btn-secondary {
  background-color: var(--accent-teal);
  color: var(--bg-secondary);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.2);
}

.btn-secondary:hover {
  background-color: #0b7a70;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.3);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.btn-outline:hover {
  background-color: var(--text-primary);
  color: var(--bg-secondary);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 6px;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-icon svg {
  transition: transform var(--transition-fast);
}

.btn-icon:hover svg {
  transform: translate(2px, -2px);
}

/* Títulos de Sección */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-purple);
  background-color: var(--accent-purple-light);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Efecto de revelación al hacer scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   HEADER / NAVEGACIÓN
   ========================================================================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 100;
  transition: all var(--transition-fast);
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  height: 70px;
  background-color: rgba(250, 249, 246, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 700;
}

.logo-serif {
  font-family: var(--font-title);
  font-weight: 800;
}

.logo-accent {
  font-family: var(--font-body);
  color: var(--accent-purple);
  margin-left: 2px;
  font-weight: 400;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--accent-purple);
}

.nav-cta {
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 6px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

/* ==========================================================================
   HERO PRINCIPAL
   ========================================================================== */
.hero-section {
  padding: 160px 0 100px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-teal);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* Tarjeta Perfil Hero (Estilo Premium Glassmorphism) */
.hero-visual {
  display: flex;
  justify-content: center;
}

.profile-card {
  width: 100%;
  max-width: 360px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.avatar-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 24px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--bg-secondary);
}

.badge-online {
  position: absolute;
  bottom: 0;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-secondary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.profile-name {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.profile-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.profile-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 20px 0;
}

.profile-stats {
  display: flex;
  justify-content: space-between;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-purple);
}

.stat-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   SECCIÓN SERVICIOS
   ========================================================================== */
.services-section {
  padding: 100px 0;
  background-color: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}

.service-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 36px;
  transition: all var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-8px);
  background-color: var(--bg-secondary);
  border-color: rgba(124, 92, 252, 0.3);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-icon.lila {
  background-color: var(--accent-purple-light);
  color: var(--accent-purple);
}

.service-icon.teal {
  background-color: var(--accent-teal-light);
  color: var(--accent-teal);
}

.service-icon.rosa {
  background-color: var(--accent-pink-light);
  color: var(--accent-pink);
}

.service-card-title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.service-card-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.services-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
}

.features-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.feature-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.feature-badge svg {
  color: var(--accent-teal);
  background-color: var(--accent-teal-light);
  padding: 4px;
  border-radius: 50%;
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   SECCIÓN PROYECTO DESTACADO (CANDIQUE)
   ========================================================================== */
.featured-project-section {
  padding: 100px 0;
}

.featured-project-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 56px;
  box-shadow: var(--shadow-md);
  align-items: center;
}

.project-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-pink);
  margin-bottom: 12px;
  display: block;
}

.project-title {
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.project-subtitle-lead {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-purple);
  margin-bottom: 24px;
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.project-bullets {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.bullet-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-purple);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

/* Dashboard Highlight Box */
.dashboard-highlight-box {
  background-color: var(--bg-primary);
  border-left: 4px solid var(--accent-purple);
  padding: 24px;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  margin-bottom: 36px;
}

.highlight-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.highlight-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 12px;
}

.highlight-promo {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-teal);
  margin-bottom: 0;
}

.project-actions {
  display: flex;
}

/* Lado Derecho de Candique (Imagen y Dashboard mockup) */
.featured-project-image {
  position: relative;
  width: 100%;
}

.image-frame {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: visible;
}

.showcase-img {
  width: 100%;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: transform var(--transition-smooth);
}

.featured-project-container:hover .showcase-img {
  transform: scale(1.02);
}

/* Tarjeta Flotante Dashboard */
.glass-overlay-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  max-width: 280px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--border-radius-sm);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 12px;
  align-items: center;
}

.overlay-icon {
  background-color: var(--accent-purple-light);
  color: var(--accent-purple);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.overlay-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.overlay-card-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* ==========================================================================
   PORTFOLIO (OTRAS TARJETAS)
   ========================================================================== */
.portfolio-section {
  padding: 100px 0;
  background-color: var(--bg-secondary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.portfolio-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(124, 92, 252, 0.2);
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: #e5e7eb;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

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

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(31, 41, 55, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.portfolio-card:hover .card-overlay {
  opacity: 1;
}

.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-badge {
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   SOBRE MÍ / CURRÍCULUM
   ========================================================================== */
.about-section {
  padding: 100px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.about-lead {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-teal);
  margin-bottom: 24px;
}

.about-bio p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.about-bio strong {
  color: var(--text-primary);
}

.cv-features {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cv-feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.cv-icon {
  background-color: var(--accent-teal-light);
  color: var(--accent-teal);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Bloque Habilidades Derecho */
.skills-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.skills-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.skills-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.skills-category {
  margin-bottom: 24px;
}

.skills-category:last-child {
  margin-bottom: 0;
}

.skills-cat-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  font-size: 0.85rem;
  font-weight: 600;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.skill-tag:hover {
  background-color: var(--accent-purple-light);
  color: var(--accent-purple);
  border-color: var(--accent-purple);
  transform: translateY(-1px);
}

/* ==========================================================================
   POR QUÉ TRABAJAR CONMIGO (VENTAJAS)
   ========================================================================== */
.why-me-section {
  padding: 100px 0;
  background-color: var(--bg-secondary);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.why-card {
  padding: 36px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  transition: all var(--transition-smooth);
}

.why-card:hover {
  background-color: var(--bg-secondary);
  border-color: var(--accent-teal);
  box-shadow: var(--shadow-md);
}

.why-number {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-teal);
  opacity: 0.35;
  margin-bottom: 12px;
}

.why-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.why-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   SECCIÓN CONTACTO
   ========================================================================== */
.contact-section {
  padding: 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.contact-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 40px;
}

.contact-detail-item {
  display: flex;
  gap: 16px;
  align-items: center;
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--accent-purple-light);
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.detail-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.text-hover-underline:hover {
  text-decoration: underline;
  color: var(--accent-purple);
}

/* Bloque Redes Sociales */
.social-links-box {
  background: var(--bg-secondary);
  padding: 24px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  position: relative;
}

.social-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.social-buttons {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background-color: var(--accent-purple);
  color: var(--bg-secondary);
  border-color: var(--accent-purple);
  transform: translateY(-2px);
}

.share-toast {
  position: absolute;
  bottom: -40px;
  left: 24px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #10B981;
  opacity: 0;
  transform: translateY(-5px);
  transition: all var(--transition-fast);
  pointer-events: none;
}

.share-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Formulario */
.contact-form-wrapper {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
}

.form-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  background-color: var(--bg-secondary);
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 4px var(--accent-purple-glow);
}

.form-textarea {
  height: 140px;
  resize: vertical;
}

/* Spinner para estado de carga */
.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

.hidden {
  display: none !important;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Mensajes de respuesta de formulario */
.form-response {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.form-response.success {
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.form-response.error {
  background-color: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

/* ==========================================================================
   FOOTER (PIE DE PÁGINA)
   ========================================================================== */
footer {
  background-color: #111827; /* Gris muy oscuro para contraste formal */
  color: #F9FAFB;
  padding: 64px 0 24px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand {
  max-width: 400px;
}

.footer-brand .logo {
  color: #FFFFFF;
  margin-bottom: 16px;
}

.footer-brand .logo-accent {
  color: #A78BFA;
}

.footer-tagline {
  font-size: 0.95rem;
  color: #9CA3AF;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.9rem;
  color: #D1D5DB;
  font-weight: 500;
}

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

.footer-bottom {
  border-top: 1px solid #1F2937;
  padding-top: 24px;
  font-size: 0.85rem;
  color: #9CA3AF;
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.2rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .featured-project-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px;
  }
  
  .featured-project-image {
    order: -1;
  }
  
  .glass-overlay-card {
    bottom: -10px;
    left: 10px;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  /* Navegación Móvil */
  .mobile-menu-toggle {
    display: block;
    z-index: 101;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-primary);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    flex-direction: column;
    padding: 100px 24px;
    gap: 24px;
    transition: right var(--transition-smooth);
    z-index: 100;
  }
  
  .nav-menu.open {
    right: 0;
  }
  
  .nav-cta {
    width: 100%;
    text-align: center;
  }
  
  /* Hero */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.6rem;
  }
  
  .hero-description {
    margin: 0 auto 32px;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  /* Grids a 1 columna */
  .services-grid,
  .portfolio-grid,
  .why-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .contact-form-wrapper {
    padding: 32px 24px;
  }
  
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }
  
  .footer-links {
    justify-content: center;
  }
  
  .footer-bottom-flex {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
  
  .profile-card {
    padding: 24px 16px;
  }
}
