/* ==========================================================================
   LEANDRO SESTO | AUTOMATIZACIONES - CORPORATE LIGHT STYLE SYSTEM
   ========================================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Color System & Tokens */
:root {
  /* Color Palette */
  --bg-main: #ffffff;         /* Pure white background */
  --bg-card: #f8fafc;         /* Slate-50: Clean light gray for cards */
  --bg-card-hover: #ffffff;   /* Pure white for active card state */
  --border-color: #e2e8f0;    /* Slate-200: Soft gray borders */
  --border-hover: #3b82f6;    /* Blue-500: Accent border color */
  
  /* Accents */
  --primary: #4f46e5;         /* Indigo-600 */
  --primary-glow: rgba(79, 70, 229, 0.06);
  --secondary: #0d9488;       /* Teal-600 */
  --secondary-glow: rgba(13, 148, 136, 0.06);
  --error: #dc2626;           /* Coral red for pain points */
  --error-glow: rgba(220, 38, 38, 0.04);
  
  /* Text Colors */
  --text-primary: #0f172a;    /* Slate-900: Deep gray, high contrast */
  --text-secondary: #475569;  /* Slate-600: Muted body text */
  --text-muted: #64748b;      /* Slate-500: Secondary text */
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
  --gradient-dark: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --gradient-text: linear-gradient(135deg, #0f172a 30%, #334155 100%);
  --gradient-text-accent: linear-gradient(135deg, #4f46e5 0%, #0d9488 100%);
  
  /* Typography */
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Borders & Shadows */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
  --shadow-glow-blue: 0 4px 20px rgba(79, 70, 229, 0.08);
  --shadow-glow-teal: 0 4px 20px rgba(13, 148, 136, 0.08);
  
  /* Layout */
  --max-width: 1200px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background: var(--gradient-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
}

p {
  color: var(--text-secondary);
}

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

ul {
  list-style: none;
}

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

/* Scrollbar Style */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ==========================================================================
   LAYOUT CONTAINERS & UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-subtitle {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.text-gradient {
  background: var(--gradient-text-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Reveal on Scroll class */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================================================
   NAVBAR COMPONENT
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
  height: 70px;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 8px;
  height: 8px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: inline-block;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

/* Background Glowing Blobs */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.05;
  z-index: 1;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -100px;
  right: -50px;
  animation: float 10s ease-in-out infinite;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: var(--secondary);
  bottom: 10%;
  left: -100px;
  animation: float 12s ease-in-out infinite alternate;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 680px;
}

.badge-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.tech-badge {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 100px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tech-badge i {
  color: var(--primary);
}

.tech-badge.cyan i {
  color: var(--secondary);
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--text-primary);
  letter-spacing: -1.5px;
}

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

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
  background: #4338ca;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

/* Clean Code Window Component */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.code-window {
  width: 100%;
  max-width: 400px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  transform: perspective(1000px) rotateY(-8deg) rotateX(6deg);
  transition: var(--transition);
}

.code-window:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow-blue);
}

.code-header {
  height: 40px;
  background: #f1f5f9;
  border-bottom: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.code-title {
  margin-left: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: monospace;
}

.code-content {
  padding: 20px;
  font-family: 'Source Code Pro', monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #334155;
}

.code-line {
  display: block;
}

.keyword { color: #d97706; font-weight: 600; }
.func { color: #2563eb; }
.string { color: #16a34a; }
.comment { color: #64748b; font-style: italic; }
.number { color: #b45309; }

/* ==========================================================================
   PROBLEMS (PAIN POINTS) SECTION
   ========================================================================== */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #fca5a5;
  opacity: 0;
  transition: var(--transition);
}

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

.problem-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: #fca5a5;
  box-shadow: var(--shadow-md);
}

.problem-icon {
  width: 52px;
  height: 52px;
  background: #fee2e2;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--error);
  margin-bottom: 24px;
  font-size: 1.4rem;
}

.problem-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.problem-text {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   PORTFOLIO (SUCCESS CASES) SECTION
   ========================================================================== */
.portfolio-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.portfolio-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.portfolio-item:nth-child(even) {
  grid-template-columns: 1fr 1fr;
}

.portfolio-item:nth-child(even) .portfolio-info {
  order: 2;
}

.portfolio-item:nth-child(even) .portfolio-visual {
  order: 1;
}

.portfolio-info {
  max-width: 560px;
}

.portfolio-tag {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: inline-block;
}

.portfolio-name {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.portfolio-description {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.benefit-box {
  background: rgba(13, 148, 136, 0.02);
  border: 1px solid rgba(13, 148, 136, 0.12);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.benefit-icon {
  color: var(--secondary);
  font-size: 1.3rem;
  flex-shrink: 0;
  display: flex;
  margin-top: 2px;
}

.benefit-text h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.benefit-text p {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.5;
}

/* Portfolio Visual Container */
.portfolio-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.portfolio-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-visual:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-lg);
}

.portfolio-visual:hover .portfolio-img {
  transform: scale(1.02);
}

/* ==========================================================================
   ABOUT ME SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}

.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  padding: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 320px;
}

.about-avatar {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 8px);
  object-fit: cover;
}

.about-info h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

/* Skills display */
.skills-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 700;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 18px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.skill-tag i {
  color: var(--primary);
  font-size: 0.95rem;
}

.skill-tag:hover {
  border-color: #cbd5e1;
  color: var(--text-primary);
  background: #e2e8f0;
  transform: translateY(-1px);
}

/* ==========================================================================
   CONTACT / CTA SECTION
   ========================================================================== */
.contact-card {
  background: radial-gradient(100% 100% at 0% 0%, rgba(79, 70, 229, 0.02) 0%, rgba(13, 148, 136, 0.02) 100%), #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
}

.contact-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.contact-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.email-copy-wrapper {
  position: relative;
  display: inline-block;
}

.email-btn-group {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 2px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.email-btn-group:hover {
  border-color: #94a3b8;
}

.email-link {
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-copy {
  background: #e2e8f0;
  border: none;
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: calc(var(--radius-md) - 2px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-copy:hover {
  background: var(--primary);
  color: #ffffff;
}

/* Tooltip style */
.tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #0f172a;
  color: #ffffff;
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  pointer-events: none;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #0f172a transparent transparent transparent;
}

.tooltip.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  background: #f8fafc;
}

/* Forzado de centrado absoluto para el contenedor principal en escritorio */
.footer .container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  width: 100%;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes float {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-15px) scale(1.03);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   BG LIGHT ALTERNATE SECTION
   ========================================================================== */
.bg-light-alt {
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* ==========================================================================
   HERO TRUST INDICATORS
   ========================================================================== */
.hero-trust-indicator {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
}

.hero-trust-indicator span {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.hero-trust-indicator i {
  color: var(--secondary);
  font-size: 0.9rem;
}


/* ==========================================================================
   PORTFOLIO METRICS
   ========================================================================== */
.portfolio-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.portfolio-metric-badge {
  background: var(--primary-glow);
  border: 1px solid rgba(79, 70, 229, 0.15);
  color: var(--primary);
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.portfolio-item:nth-child(even) .portfolio-metric-badge {
  background: var(--secondary-glow);
  border-color: rgba(13, 148, 136, 0.15);
  color: var(--secondary);
}

/* ==========================================================================
   FAQS ACCORDION SECTION
   ========================================================================== */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 24px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.faq-question i {
  color: var(--text-muted);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
}

.faq-question[aria-expanded="true"] i {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
  padding: 0 24px 24px 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   B2B CONTACT GRID & FORM
   ========================================================================== */
.contact-grid-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  text-align: left;
  align-items: start;
}

.contact-info {
  padding-top: 10px;
}

.contact-info .contact-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.contact-info .contact-description {
  margin: 0 0 40px 0;
  font-size: 1.1rem;
}

.contact-actions-vertical {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 380px;
}

.w-full {
  width: 100%;
}

.contact-form-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  position: relative;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
}

.form-input::placeholder {
  color: #94a3b8;
}

.form-input:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-glow-blue);
}

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

.form-success-message {
  text-align: center;
  padding: 40px 10px;
  animation: fadeIn 0.4s ease;
}

.success-icon {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 16px;
}

.form-success-message h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.form-success-message p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.75rem;
  }
  
  .portfolio-item {
    gap: 40px;
  }
  
  .portfolio-img {
    height: 300px;
  }
  
  .about-grid {
    gap: 40px;
  }
  
  .contact-grid-layout {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }
  
  .section-title {
    font-size: 1.85rem;
  }
  
  /* Navigation */
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: #ffffff;
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    transition: var(--transition);
    align-items: flex-start;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  }
  
  .nav-menu.open {
    left: 0;
  }
  
  .nav-toggle {
    display: block;
  }
  
  /* Hero */
  .hero {
    padding-top: 120px;
    min-height: auto;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .badge-wrapper, .cta-group {
    justify-content: center;
  }
  
  .code-window {
    margin: 0 auto;
    transform: none;
  }
  
  .code-window:hover {
    transform: none;
  }
  
  /* Problems */
  .problems-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Portfolio */
  .portfolio-list {
    gap: 50px;
  }
  
  .portfolio-item, .portfolio-item:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .portfolio-item:nth-child(even) .portfolio-info {
    order: 1;
  }
  
  .portfolio-item:nth-child(even) .portfolio-visual {
    order: 2;
  }
  
  .portfolio-img {
    height: 240px;
  }
  
  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .about-visual {
    order: 2;
  }
  
  .about-info {
    order: 1;
  }
  
  .skills-list {
    justify-content: center;
  }
  
  /* Contact */
  .contact-card {
    padding: 40px 20px;
  }
  
  .contact-title {
    font-size: 1.75rem;
  }
  
  .email-btn-group {
    width: 100%;
    flex-direction: column;
    gap: 8px;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  
  .email-link {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    justify-content: center;
    background: #f8fafc;
  }
  
  .btn-copy {
    width: 100%;
    height: 48px;
  }
  
  /* Footer Mobile - Forzado de centrado absoluto */
  .footer .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  /* Contact Responsive */
  .contact-grid-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-info {
    text-align: center;
    padding-top: 0;
  }
  
  .contact-actions-vertical {
    max-width: 100%;
    margin: 0 auto;
  }
  
  .hero-trust-indicator {
    justify-content: center;
  }
}
