/* ==========================================================================
   LA FÁBRICA MAKERSPACE - ESTILOS PRINCIPALES
   Diseño moderno, accesible y optimizado para alto impacto visual
   ========================================================================== */

:root {
  /* Paleta cromática corporativa */
  --color-primary: #1e73be;
  --color-primary-dark: #155894;
  --color-primary-light: #466fea;
  --color-primary-rgb: 30, 115, 190;
  
  --color-accent: #00d084;
  --color-accent-dark: #059669;
  --color-accent-rgb: 0, 208, 132;
  
  --color-dark: #0f172a;
  --color-dark-surface: #1e293b;
  --color-dark-rgb: 15, 23, 42;
  
  --color-light: #ffffff;
  --color-bg: #f8fafc;
  --color-bg-alt: #f1f5f9;
  --color-muted: #64748b;
  --color-border: #e2e8f0;
  --color-border-hover: #cbd5e1;

  /* Tipografías */
  --font-brand: 'Michroma', sans-serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Sombras y elevaciones */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(30, 115, 190, 0.35);

  /* Transiciones */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Bordes */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* Reset y base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

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

button, input, textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   BARRA DE NAVEGACIÓN
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-normal);
  padding: 1rem 0;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 0.75rem 0;
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.brand-link:hover .brand-logo {
  transform: rotate(-6deg) scale(1.05);
}

.brand-name {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-light);
  transition: color var(--transition-fast);
}

.site-header.scrolled .brand-name {
  color: var(--color-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.75rem;
}

.nav-item a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 0.25rem;
  position: relative;
  transition: color var(--transition-fast);
}

.site-header.scrolled .nav-item a {
  color: var(--color-dark);
}

.nav-item a:hover {
  color: var(--color-primary-light);
}

.site-header.scrolled .nav-item a:hover {
  color: var(--color-primary);
}

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

.nav-item a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.site-header.scrolled .social-pill {
  background: var(--color-bg-alt);
  color: var(--color-dark);
}

.social-pill:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
}

.site-header.scrolled .menu-toggle {
  color: var(--color-dark);
}

/* ==========================================================================
   HERO / BANNER PRINCIPAL
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0b1329;
  background-image: url('../assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  padding: 8rem 0 5rem;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.88) 0%,
    rgba(30, 115, 190, 0.65) 50%,
    rgba(11, 19, 41, 0.85) 100%
  );
  backdrop-filter: blur(2px);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  color: #fff;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #e0f2fe;
  margin-bottom: 1.5rem;
  animation: pulseBadge 3s infinite alternate;
}

.hero-badge i {
  color: var(--color-accent);
}

@keyframes pulseBadge {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 208, 132, 0.4); }
  100% { transform: scale(1.02); box-shadow: 0 0 16px 2px rgba(0, 208, 132, 0.25); }
}

.hero-title {
  font-family: var(--font-brand);
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-title span {
  background: linear-gradient(120deg, #93c5fd, #ffffff 60%, #6ee7b7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: #e2e8f0;
  font-weight: 400;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.85rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(30, 115, 190, 0.4);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 115, 190, 0.6);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: #fff;
  color: var(--color-dark);
  border-color: #fff;
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

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

.stat-num {
  font-family: var(--font-brand);
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   SECCIÓN DE CARACTERÍSTICAS / 4 PILARES
   ========================================================================== */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.section-tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: rgba(30, 115, 190, 0.1);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-brand);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.1rem;
  color: var(--color-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--color-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(30, 115, 190, 0.2);
}

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

.feature-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(30, 115, 190, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.08);
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.85rem;
}

.feature-text {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.65;
  flex-grow: 1;
}

.feature-badge {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(30, 115, 190, 0.08);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  align-self: flex-start;
}

/* ==========================================================================
   SECCIÓN PROCESO Y ESPACIO MAKER (STORYTELLING)
   ========================================================================== */
.story-section {
  background-color: var(--color-bg-alt);
  position: relative;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.story-content h3 {
  font-family: var(--font-brand);
  font-size: 2rem;
  margin-bottom: 1.25rem;
  color: var(--color-dark);
}

.story-content p {
  color: var(--color-muted);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.step-info h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.2rem;
}

.step-info p {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 0;
}

.story-media {
  position: relative;
}

.media-card-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid #fff;
}

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

.media-card-main:hover img {
  transform: scale(1.03);
}

.media-card-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.media-card-badge h6 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.media-card-badge span {
  font-size: 0.8rem;
  color: #94a3b8;
}

.media-card-floating {
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  width: 150px;
  height: 150px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: var(--shadow-lg);
}

.media-card-floating img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   BARRA DE CLIENTES Y REDES SOCIALES
   ========================================================================== */
.social-bar-section {
  background: #fff;
  padding: 2.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.social-bar-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.social-bar-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.social-bar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.social-link-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-dark);
  transition: all var(--transition-fast);
}

.social-link-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.social-link-item:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   FEED DE INSTAGRAM EN VIVO (@lafabricacoop)
   ========================================================================== */
.feed-section {
  background: var(--color-bg);
  padding: 6rem 0;
}

.feed-header-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 1.25rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.feed-profile-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feed-profile-avatar {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-primary);
  padding: 2px;
  object-fit: cover;
}

.feed-profile-meta h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-dark);
}

.feed-profile-meta span {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.feed-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #e2e8f0;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
}

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

.feed-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.feed-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feed-item:hover img {
  transform: scale(1.08);
}

.feed-item:hover .feed-overlay {
  opacity: 1;
}

.feed-caption {
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.feed-link-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
}

.feed-pagination {
  text-align: center;
  margin-top: 3rem;
}

/* ==========================================================================
   SECCIÓN DE CONTACTO & UBICACIÓN
   ========================================================================== */
.contact-section {
  position: relative;
  background-color: #0f172a;
  background-image: url('../assets/images/blue-caps-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 6rem 0;
  color: #fff;
}

.contact-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.94) 0%,
    rgba(15, 23, 42, 0.88) 100%
  );
  backdrop-filter: blur(4px);
}

.contact-grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.contact-info-col h2 {
  font-family: var(--font-brand);
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
  color: #fff;
}

.contact-info-col p {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(30, 115, 190, 0.2);
  border: 1px solid rgba(30, 115, 190, 0.4);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-text h6 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 0.2rem;
}

.contact-text a, .contact-text span {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.contact-text a:hover {
  color: var(--color-accent);
}

.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-lg);
  height: 220px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-form-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  color: var(--color-dark);
}

.contact-form-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-dark);
}

.contact-form-card p {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: #f8fafc;
  font-size: 0.95rem;
  color: var(--color-dark);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.15);
}

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

.form-submit-btn {
  width: 100%;
  padding: 0.95rem 1.5rem;
  font-size: 1.05rem;
}

.form-alert {
  display: none;
  margin-top: 1.25rem;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
}

.form-alert.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-alert.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ==========================================================================
   PIE DE PÁGINA / FOOTER
   ========================================================================== */
.site-footer {
  background: #090e17;
  color: #94a3b8;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .brand-link {
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 380px;
  color: #64748b;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-links h5 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav a {
  color: #94a3b8;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.back-to-top {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.back-to-top:hover {
  background: var(--color-primary);
  transform: translateY(-3px);
}

/* ==========================================================================
   MODAL / LIGHTBOX PARA INSTAGRAM
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 800px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
  max-height: 90vh;
}

.modal-backdrop.active .modal-card {
  transform: scale(1);
}

.modal-image-side {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image-side img {
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: cover;
}

.modal-info-side {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.modal-header-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.modal-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-user-info img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-muted);
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--color-dark);
}

.modal-caption-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #334155;
  white-space: pre-line;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.modal-footer-btn {
  width: 100%;
}

/* ==========================================================================
   RESPONSIVIDAD Y ADAPTACIÓN MÓVIL
   ========================================================================== */
@media (max-width: 992px) {
  .feed-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .story-grid,
  .contact-grid,
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .modal-card {
    grid-template-columns: 1fr;
  }

  .modal-image-side img {
    max-height: 300px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transition: right var(--transition-normal);
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-item a {
    color: var(--color-dark) !important;
    font-size: 1.1rem;
    display: block;
    padding: 0.75rem 0;
  }

  .menu-toggle {
    display: block;
  }

  .feed-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .social-bar-wrapper {
    flex-direction: column;
    gap: 1.25rem;
  }

  .contact-form-card {
    padding: 1.75rem;
  }
}

@media (max-width: 480px) {
  .feed-grid {
    grid-template-columns: 1fr;
  }
}
