/* ==================== RÖNTGEN SPA - ESTILOS ==================== */
/* Versión: 2.1 */

/* ==================== VARIABLES ==================== */
:root {
  --primary: #d32f2f;
  --primary-dark: #b71c1c;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

:root.dark {
  --bg: #0f172a;
  --bg-alt: #1e293b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
}

/* ==================== RESET ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ==================== UTILITIES ==================== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--alt { background: var(--bg-alt); }
.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, var(--primary), #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3 { font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { color: var(--text-muted); margin-bottom: 1rem; }

/* ==================== HEADER ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}
:root.dark .header { background: rgba(15,23,42,0.9); }

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LOGO MÁS GRANDE */
.logo { height: 70px; }

.nav { display: flex; gap: 2rem; align-items: center; }
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav a:hover { color: var(--primary); }

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}
.btn--primary {
  background: var(--primary);
  color: white !important;
}
.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn--outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
}
.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ==================== THEME TOGGLE ==================== */
.theme-toggle {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--text);
}
.theme-toggle svg { width: 18px; height: 18px; }
.icon-sun { display: none; }
:root.dark .icon-sun { display: block; }
:root.dark .icon-moon { display: none; }

/* ==================== MOBILE NAV ==================== */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 2rem;
    flex-direction: column;
    border-bottom: 1px solid var(--border);
    transform: translateY(-150%);
    transition: transform 0.3s;
  }
  .nav.show { transform: translateY(0); }
}

/* ==================== HERO ==================== */
.hero {
  padding: 8rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(211,47,47,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(211,47,47,0.1);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero__badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero p { font-size: 1.15rem; max-width: 600px; margin: 0 auto 2rem; }

.hero__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  max-width: 500px;
  margin: 0 auto;
}
.stat { text-align: center; }
.stat__number { font-size: 1.75rem; font-weight: 700; color: var(--text); }
.stat__label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ==================== TYPEWRITER EFFECT ==================== */
.typewriter-container {
  display: inline-block;
  min-width: 280px;
}

.typewriter-text {
  display: inline;
  background: linear-gradient(135deg, var(--primary), #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--primary);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ==================== TECH STACK ==================== */
.tech-stack {
  padding: 1.5rem 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* Efecto blur/fade en los bordes */
.tech-stack::before,
.tech-stack::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.tech-stack::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-alt) 0%, transparent 100%);
}

.tech-stack::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-alt) 0%, transparent 100%);
}

.tech-stack__wrapper {
  padding: 0 3rem;
  overflow: hidden;
}

.tech-stack__inner {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: scroll 35s linear infinite;
}

.tech-stack:hover .tech-stack__inner {
  animation-play-state: paused;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s, transform 0.2s;
}

.tech-item:hover {
  color: var(--text);
  transform: scale(1.05);
}

.tech-item i {
  font-size: 1.4rem;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==================== SERVICES ==================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.service-card__icon {
  width: 50px;
  height: 50px;
  background: rgba(211,47,47,0.1);
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-card ul {
  list-style: none;
  margin-top: 1rem;
}
.service-card li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.service-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.service-card--featured {
  position: relative;
  border-color: rgba(211,47,47,0.3);
}
.service-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 20px;
  text-transform: uppercase;
}

/* ==================== PORTFOLIO ==================== */
.portfolio-intro {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.portfolio-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
  position: relative;
}
.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.portfolio-card__image {
  height: 180px;
  background: var(--bg-alt);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(211,47,47,0.9), rgba(183,28,28,0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 10;
}

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

.portfolio-card__overlay-text {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.portfolio-card__content {
  padding: 1.5rem;
}

.portfolio-card__tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(211,47,47,0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.portfolio-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.portfolio-card__feature {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: var(--bg-alt);
  border-radius: 4px;
  color: var(--text-muted);
}

/* ==================== VISUAL PLACEHOLDERS ==================== */

/* IoT Visualization */
.visual-iot {
  width: 70px;
  height: 70px;
  background: var(--primary);
  border-radius: 50%;
  position: relative;
  animation: pulse-glow 2s infinite;
}
.visual-iot::before,
.visual-iot::after {
  content: '';
  position: absolute;
  border: 2px solid var(--primary);
  border-radius: 50%;
}
.visual-iot::before {
  inset: -12px;
  animation: ripple 2s infinite;
}
.visual-iot::after {
  inset: -24px;
  animation: ripple 2s infinite 0.5s;
  opacity: 0.5;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(211,47,47,0.5); }
  50% { box-shadow: 0 0 40px rgba(211,47,47,0.8); }
}
@keyframes ripple {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* SaaS Visualization */
.visual-saas {
  width: 85%;
  height: 120px;
  background: var(--bg);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  overflow: hidden;
}
.visual-saas__sidebar {
  width: 45px;
  background: var(--primary);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 8px;
}
.visual-saas__nav-item {
  height: 8px;
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
}
.visual-saas__nav-item:first-child {
  background: rgba(255,255,255,0.9);
}
.visual-saas__content {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.visual-saas__bar {
  height: 10px;
  background: var(--border);
  border-radius: 4px;
}
.visual-saas__bar:first-child { width: 50%; background: rgba(211,47,47,0.2); }
.visual-saas__bar:nth-child(2) { width: 80%; }
.visual-saas__bar:nth-child(3) { width: 65%; }
.visual-saas__chart {
  flex: 1;
  background: linear-gradient(to top, rgba(211,47,47,0.1), transparent);
  border-radius: 4px;
  margin-top: 5px;
}

/* Web Visualization */
.visual-web {
  width: 85%;
  height: 120px;
  background: var(--bg);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.visual-web__header {
  height: 24px;
  background: var(--border);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 5px;
}
.visual-web__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.visual-web__dot:nth-child(1) { background: #ff5f56; }
.visual-web__dot:nth-child(2) { background: #ffbd2e; }
.visual-web__dot:nth-child(3) { background: #27c93f; }
.visual-web__body {
  padding: 10px;
}
.visual-web__line {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: 6px;
}
.visual-web__line:first-child { width: 35%; background: var(--primary); }
.visual-web__line:nth-child(2) { width: 75%; }
.visual-web__line:nth-child(3) { width: 55%; }
.visual-web__boxes {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.visual-web__box {
  flex: 1;
  height: 30px;
  background: var(--bg-alt);
  border-radius: 4px;
}

/* RPA Visualization */
.visual-rpa {
  display: flex;
  align-items: center;
  gap: 15px;
}
.visual-rpa__node {
  width: 50px;
  height: 50px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}
.visual-rpa__node:nth-child(2) {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.visual-rpa__arrow {
  width: 20px;
  height: 2px;
  background: var(--primary);
  position: relative;
}
.visual-rpa__arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -4px;
  border: 5px solid transparent;
  border-left-color: var(--primary);
}

/* M365 Visualization */
.visual-m365 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: 100px;
}
.visual-m365__tile {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: white;
}
.visual-m365__tile:nth-child(1) { background: #0078d4; }
.visual-m365__tile:nth-child(2) { background: #7b83eb; }
.visual-m365__tile:nth-child(3) { background: #00a4ef; }
.visual-m365__tile:nth-child(4) { background: #d83b01; }

/* Database Visualization - Cilindros apilados */
.visual-db {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 130px;
  height: 110px;
  margin: 0 auto;
}
.visual-db__stack {
  position: relative;
  width: 90px;
  height: 110px;
}
.visual-db__disk {
  position: absolute;
  width: 90px;
  left: 0;
}
.visual-db__disk-top {
  height: 20px;
  background: linear-gradient(135deg, #4a90d9 0%, #2563eb 100%);
  border-radius: 50%;
  z-index: 3;
}
.visual-db__disk-body {
  height: 30px;
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  border-radius: 0 0 45px 45px / 0 0 15px 15px;
  margin-top: -5px;
  border-top: 2px solid rgba(255,255,255,0.2);
}
.visual-db__disk:nth-child(1) { top: 0; z-index: 3; }
.visual-db__disk:nth-child(2) { top: 25px; z-index: 2; }
.visual-db__disk:nth-child(2) .visual-db__disk-top { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.visual-db__disk:nth-child(2) .visual-db__disk-body { background: linear-gradient(180deg, #d97706 0%, #b45309 100%); }
.visual-db__disk:nth-child(3) { top: 50px; z-index: 1; }
.visual-db__disk:nth-child(3) .visual-db__disk-top { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.visual-db__disk:nth-child(3) .visual-db__disk-body { background: linear-gradient(180deg, #059669 0%, #047857 100%); }

.visual-db__connector {
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1;
}
.visual-db__line {
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  animation: db-pulse 1.5s ease-in-out infinite;
}
.visual-db__line:nth-child(2) { animation-delay: 0.3s; width: 15px; }
.visual-db__line:nth-child(3) { animation-delay: 0.6s; width: 18px; }
@keyframes db-pulse {
  0%, 100% { opacity: 0.4; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(3px); }
}

/* ==================== CTA SECTION ==================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 3rem 1.5rem;
  text-align: center;
  color: white;
}

.cta-section h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.cta-section p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
}

.cta-section .btn {
  background: white;
  color: var(--primary) !important;
}

.cta-section .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ==================== FAQ ==================== */
.faq-section {
  background: var(--bg);
}

.faq-container {
  max-width: 800px;
  margin: 3rem auto 0;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s;
}

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

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: all 0.3s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary);
  transition: transform 0.3s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item[open] summary {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.faq-content {
  padding: 1.5rem;
  animation: fadeIn 0.3s ease-in;
}

.faq-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.faq-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.faq-content li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-content strong {
  color: var(--text);
  font-weight: 600;
}

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

/* ==================== CONTACT ==================== */
.contact {
  background: var(--bg-alt);
}

.contact__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  margin-top: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .contact__grid {
    gap: 2rem;
  }
}

.contact__info {
  width: 100%;
  max-width: 700px;
}

.contact__info h3 {
  margin-bottom: 1.5rem;
  text-align: center;
  display: none;
}

.contact__items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  width: 100%;
}

.contact__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}
.contact__item:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.contact__item-icon {
  width: 56px;
  height: 56px;
  background: rgba(211,47,47,0.1);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary);
  transition: all 0.3s;
}
.contact__item:hover .contact__item-icon {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}
.contact__item-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.contact__item-value {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

/* ==================== CONTACT FORM ==================== */
.contact__form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 700px;
  box-shadow: var(--shadow);
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.form-header h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

.form-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(211,47,47,0.1);
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.contact__form .btn {
  font-size: 1rem;
  padding: 1rem 2rem;
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

.contact__form .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(211,47,47,0.3);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .contact__form {
    padding: 2rem 1.5rem;
  }

  .form-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }

  .contact__items-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact__form {
    padding: 1.5rem;
  }
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer__brand img { width: 36px; }
.footer__brand strong { color: var(--text); }
.footer__brand small { color: var(--text-muted); font-size: 0.8rem; }

.footer__links {
  display: flex;
  gap: 1.5rem;
}
.footer__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--primary); }

.footer__copy {
  width: 100%;
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==================== SNACKBAR ==================== */
.snackbar {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 1000;
}
.snackbar.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}
.snackbar svg { color: #22c55e; }

/* ==================== ANIMATIONS ==================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger para cards */
.services-grid .fade-in:nth-child(1) { transition-delay: 0s; }
.services-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.services-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.services-grid .fade-in:nth-child(4) { transition-delay: 0.3s; }

.portfolio-grid .fade-in:nth-child(1) { transition-delay: 0s; }
.portfolio-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.portfolio-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.portfolio-grid .fade-in:nth-child(4) { transition-delay: 0.3s; }
.portfolio-grid .fade-in:nth-child(5) { transition-delay: 0.4s; }
.portfolio-grid .fade-in:nth-child(6) { transition-delay: 0.5s; }
