/* ==========================================================================
   Variables y Configuración del Sistema de Diseño (Colores e Identidad)
   ========================================================================== */
:root {
  /* Paleta de Colores Solicitada */
  --primary-color: #01294a;       /* Fondo de Header/Footer, texto destacado */
  --primary-rgb: 1, 41, 74;
  
  --bg-color: #a7d5e4;            /* Fondo de página principal */
  --bg-rgb: 167, 213, 228;
  
  --accent-color: #013a63;         /* Acentos, botones, hovers, detalles técnicos */
  --accent-rgb: 1, 58, 99;
  
  /* Colores de Apoyo */
  --white: #ffffff;
  --white-trans: rgba(255, 255, 255, 0.6);
  --error-color: #dc2626;
  --success-color: #10b981;
  --border-light: rgba(1, 58, 99, 0.15);
  
  /* Tipografía (Poppins) */
  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Espaciados y Transiciones */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.2s ease;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  
  /* Máximo ancho de contenedor */
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Compensa la altura del header fijo */
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--primary-color);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  
  /* Fondo estilo plano de diseño/blueprint de arquitectura (sutil red de puntos) */
  background-image: radial-gradient(rgba(1, 41, 74, 0.08) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
}

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

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

ul {
  list-style: none;
}

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

/* ==========================================================================
   Componentes Reutilizables (Botones, Títulos, Tarjetas Glassmorphism)
   ========================================================================== */

/* Contenedor principal */
.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 2rem;
}

/* Títulos de Sección */
.section-header {
  margin-bottom: 4rem;
  text-align: left;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 30px;
}

.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 2px;
  background-color: var(--accent-color);
  transform: translateY(-50%);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--primary-color);
}

.section-line {
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  margin-top: 1.5rem;
}

/* Tarjetas Glassmorphism (Tecnología y Ciencia Limpia) */
.glass-panel {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 40px 0 rgba(1, 41, 74, 0.06);
  border-radius: var(--border-radius-md);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 15px 45px 0 rgba(1, 41, 74, 0.1);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(1, 41, 74, 0.25);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.6);
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(1, 41, 74, 0.15);
}

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background-color: rgba(1, 58, 99, 0.1);
  color: var(--accent-color);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  border-radius: 50px;
  border: 1px solid rgba(1, 58, 99, 0.15);
  text-transform: uppercase;
}

/* ==========================================================================
   Header (Navegación)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--primary-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: var(--transition-smooth);
  padding: 1.2rem 0;
}

/* Clase dinámica agregada por JS en scroll */
.site-header.scrolled {
  padding: 0.8rem 0;
  background-color: rgba(1, 41, 74, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition-fast);
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-link:hover .logo-wrapper {
  transform: rotate(5deg) scale(1.05);
  border-color: var(--bg-color);
}

.header-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--bg-color); /* Contraste claro en fondo oscuro */
  transition: var(--transition-fast);
}

.logo-link:hover .logo-text {
  color: var(--white);
}

.nav-list {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--bg-color);
  opacity: 0.85;
  letter-spacing: 0.5px;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  opacity: 1;
}

/* Efecto de línea inferior para navegación activa */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--bg-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Botón Hamburguesa Móvil */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 5px;
  z-index: 1001;
}

.hamburger-bar {
  width: 25px;
  height: 2px;
  background-color: var(--bg-color);
  transition: var(--transition-smooth);
}

/* ==========================================================================
   Home (Hero Section)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px; /* Espacio para el header */
  overflow: hidden;
}

/* Efecto degradado técnico de fondo */
.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(167, 213, 228, 0.9) 0%, rgba(255, 255, 255, 0.2) 100%);
  z-index: 1;
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--primary-color);
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.highlight-text {
  font-weight: 600;
  color: var(--accent-color);
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 300;
  color: rgba(1, 41, 74, 0.8);
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* Visual Técnico en Hero (Arquitectónico y Científico) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-card {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(1, 41, 74, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: var(--transition-smooth);
}

.hero-image-card:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
  box-shadow: 0 30px 70px rgba(1, 41, 74, 0.2);
}

.hero-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  filter: saturate(0.9);
}

/* Indicadores de tecnología interactivos (Foco científico) */
.tech-indicator {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(1, 41, 74, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  animation: pulse-indicator 3s infinite ease-in-out;
}

.tech-indicator.position-1 {
  top: 25%;
  left: -10%;
  animation-delay: 0s;
}

.tech-indicator.position-2 {
  bottom: 20%;
  right: -5%;
  animation-delay: 1.5s;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--bg-color);
  position: relative;
}

.indicator-dot::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--bg-color);
  animation: ripple-dot 2s infinite ease-out;
}

@keyframes pulse-indicator {
  0%, 100% { transform: translateY(0) perspective(1000px) rotateY(-5deg) rotateX(5deg); }
  50% { transform: translateY(-8px) perspective(1000px) rotateY(-5deg) rotateX(5deg); }
}

@keyframes ripple-dot {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ==========================================================================
   Sobre Nosotros (About Section)
   ========================================================================== */
.about-section {
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
}

.about-lead {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--accent-color);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.about-body {
  font-size: 1rem;
  color: rgba(1, 41, 74, 0.8);
  margin-bottom: 3rem;
}

/* Pilares de Especialización (Fuerzas Clave para Farmacia) */
.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pillar-card {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 1.8rem;
  border-radius: var(--border-radius-md);
  transition: var(--transition-smooth);
}

.pillar-card:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: translateY(-5px);
  border-color: rgba(1, 58, 99, 0.25);
  box-shadow: 0 12px 30px rgba(1, 41, 74, 0.08);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-color);
  color: var(--bg-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  transition: var(--transition-fast);
}

.pillar-card:hover .pillar-icon {
  background-color: var(--accent-color);
  color: var(--white);
}

.pillar-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--primary-color);
}

.pillar-card p {
  font-size: 0.85rem;
  color: rgba(1, 41, 74, 0.85);
  line-height: 1.4;
}

/* Sección de Foto de la Arquitecta */
.architect-photo-card {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(1, 41, 74, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.about-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
  transition: var(--transition-smooth);
}

.architect-photo-card:hover .about-img {
  filter: grayscale(0%) contrast(1);
}

.floating-stat {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  padding: 1.2rem 1.8rem;
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
  transition: var(--transition-smooth);
}

.architect-photo-card:hover .floating-stat {
  transform: translateY(-5px);
  background: var(--white);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-color);
}

/* ==========================================================================
   Proyectos (Portfolio Section)
   ========================================================================== */
.projects-section {
  position: relative;
}

/* Filtros */
.projects-filter {
  display: flex;
  justify-content: flex-start;
  gap: 0.8rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--border-light);
  color: var(--primary-color);
  padding: 0.6rem 1.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--accent-color);
}

.filter-btn.active {
  background-color: var(--accent-color);
  color: var(--white);
  border-color: var(--accent-color);
  box-shadow: 0 4px 15px rgba(1, 58, 99, 0.2);
}

/* Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  transition: var(--transition-smooth);
}

.project-card {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(1, 41, 74, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background-color: var(--white-trans);
  transition: var(--transition-smooth);
}

/* Ocultación y transición de filtrado controlada por JS */
.project-card.hide {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: none;
}

.project-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 280px;
  background-color: var(--primary-color);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(1, 41, 74, 0.95) 15%, rgba(1, 41, 74, 0.4) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 2rem;
  opacity: 0;
  transition: var(--transition-smooth);
}

/* Hovers en Tarjetas */
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(1, 41, 74, 0.12);
  border-color: rgba(1, 58, 99, 0.2);
}

.project-card:hover .project-img {
  transform: scale(1.08);
}

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

.project-category-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--bg-color);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.project-card-title {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

.btn-view-more {
  font-size: 0.85rem;
  color: var(--white);
  opacity: 0.8;
  font-weight: 500;
  transition: var(--transition-fast);
}

.btn-view-more:hover {
  opacity: 1;
  padding-left: 5px;
}

/* ==========================================================================
   Contacto (Formulario y Detalles)
   ========================================================================== */
.contact-section {
  position: relative;
}

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

.contact-subtitle {
  font-size: 1.6rem;
  font-weight: 300;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.contact-intro {
  font-size: 0.95rem;
  color: rgba(1, 41, 74, 0.8);
  margin-bottom: 3rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.method-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.method-icon {
  width: 44px;
  height: 44px;
  background-color: rgba(1, 58, 99, 0.1);
  color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.method-item:hover .method-icon {
  background-color: var(--accent-color);
  color: var(--white);
  transform: scale(1.05);
}

.method-text {
  display: flex;
  flex-direction: column;
}

.method-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(1, 41, 74, 0.6);
  margin-bottom: 0.2rem;
}

.method-link {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--primary-color);
}

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

.method-value {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--primary-color);
}

/* Contenedor del Formulario */
.contact-form-container {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 15px 45px rgba(1, 41, 74, 0.08);
  position: relative;
  overflow: hidden;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  transition: var(--transition-smooth);
}

/* Animación de cambio entre form y mensaje de éxito */
.contact-form.slide-out {
  transform: translateY(-50px);
  opacity: 0;
  pointer-events: none;
}

.form-row {
  display: flex;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  position: relative;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(1, 58, 99, 0.2);
  color: var(--primary-color);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent-color);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(1, 58, 99, 0.1);
}

/* Error de Validación Estilo Científico/Limpio */
.form-group.has-error input,
.form-group.has-error select {
  border-color: var(--error-color);
  background-color: rgba(220, 38, 38, 0.02);
}

.error-msg {
  font-size: 0.78rem;
  color: var(--error-color);
  font-weight: 500;
  min-height: 18px;
  display: block;
}

/* Selector de Horarios (Botones de Radio estilizados) */
.schedule-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  width: 100%;
}

.schedule-option {
  cursor: pointer;
  width: 100%;
}

.schedule-option input {
  display: none; /* Oculta el radio nativo */
}

.schedule-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(1, 58, 99, 0.15);
  text-align: center;
  transition: var(--transition-fast);
}

.schedule-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
}

.schedule-desc {
  font-size: 0.72rem;
  color: rgba(1, 41, 74, 0.6);
  margin-top: 0.1rem;
}

/* Estilo checked del selector de horario */
.schedule-option input:checked + .schedule-box {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 4px 15px rgba(1, 58, 99, 0.15);
}

.schedule-option input:checked + .schedule-box .schedule-title {
  color: var(--white);
}

.schedule-option input:checked + .schedule-box .schedule-desc {
  color: var(--bg-color);
}

.schedule-box:hover {
  background-color: rgba(255, 255, 255, 0.95);
  border-color: rgba(1, 58, 99, 0.35);
}

.schedule-option input:checked + .schedule-box:hover {
  background-color: var(--accent-color);
}

/* Botón de Envío */
.btn-submit {
  width: 100%;
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 600;
  padding: 1.1rem;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  position: relative;
}

.btn-submit:hover {
  background-color: var(--accent-color);
}

.btn-submit[disabled] {
  opacity: 0.8;
  cursor: not-allowed;
}

/* Spinner de Carga */
.loading-spinner {
  display: none;
  width: 20px;
  height: 20px;
  animation: rotate 2s linear infinite;
}

.loading-spinner .path {
  stroke: var(--white);
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}
@keyframes dash {
  0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
  100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

.btn-submit.loading span {
  visibility: hidden;
}
.btn-submit.loading .loading-spinner {
  display: block;
  position: absolute;
}

/* Mensaje de Éxito de Formulario */
.form-success-message {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 3rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  z-index: 5;
}

.form-success-message.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.success-icon {
  width: 72px;
  height: 72px;
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

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

.form-success-message p {
  font-size: 0.95rem;
  color: rgba(1, 41, 74, 0.7);
  max-width: 320px;
  margin-bottom: 2rem;
}

/* ==========================================================================
   Modal de Detalles del Proyecto
   ========================================================================== */
.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.project-modal.open {
  opacity: 1;
  pointer-events: all;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(1, 25, 74, 0.85); /* Tono primary con alta densidad */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-content-wrapper {
  background: var(--white);
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  border-radius: var(--border-radius-lg);
  overflow-y: auto;
  position: relative;
  z-index: 10;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: scale(0.9);
  transition: var(--transition-smooth);
}

.project-modal.open .modal-content-wrapper {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2.2rem;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: var(--transition-fast);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modal-close-btn:hover {
  background-color: var(--accent-color);
  transform: scale(1.05) rotate(90deg);
}

/* Contenido del modal */
.modal-body {
  padding: 3rem;
}

.modal-project-header {
  margin-bottom: 2rem;
}

.modal-project-title {
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.modal-project-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  margin-bottom: 2.5rem;
}

.modal-project-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
}

.modal-project-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
  padding-left: 15px;
}

.modal-project-info h4::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-color);
  transform: translateY(-50%);
}

.modal-project-info p {
  color: rgba(1, 41, 74, 0.8);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.modal-project-sidebar {
  background-color: var(--bg-color);
  padding: 2rem;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.5);
  align-self: start;
}

.modal-project-sidebar h4 {
  font-size: 1rem;
  margin-bottom: 1.2rem;
  color: var(--primary-color);
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
}

.modal-tech-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.modal-tech-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--accent-color);
  font-weight: 500;
}

.modal-tech-item svg {
  color: var(--primary-color);
  flex-shrink: 0;
}

/* ==========================================================================
   Footer (Pie de página)
   ========================================================================== */
.site-footer {
  background-color: var(--primary-color);
  color: var(--bg-color);
  padding: 5rem 0 0 0;
  font-size: 0.9rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 0.9fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: #000;
}

.footer-brand-name {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--white);
}

.footer-brand-desc {
  color: rgba(167, 213, 228, 0.7);
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 280px;
}

.footer-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.8rem;
  position: relative;
  letter-spacing: 0.5px;
}

.footer-section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--bg-color);
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links-list a {
  color: rgba(167, 213, 228, 0.75);
}

.footer-links-list a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: rgba(167, 213, 228, 0.75);
}

.footer-contact-list a {
  color: inherit;
}

.footer-contact-list a:hover {
  color: var(--white);
}

.footer-contact-list svg {
  color: var(--bg-color);
  flex-shrink: 0;
}

/* Redes Sociales en Footer */
.footer-social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-fast);
}

.social-icon-link:hover {
  background-color: var(--bg-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-color: var(--bg-color);
}

/* Fondo de Copyright */
.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
}

.footer-bottom-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: rgba(167, 213, 228, 0.5);
}

/* ==========================================================================
   Media Queries (Diseño Responsivo)
   ========================================================================== */

/* Pantallas grandes y tablets horizontales (Desktop / Laptop) */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-img {
    height: 400px;
  }
  
  .about-grid,
  .contact-grid {
    gap: 3rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* Tablets Verticales (Mobile / Portrait Tablet) */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .section-container {
    padding: 4rem 1.5rem;
  }
  
  /* Menú Móvil Hamburguesa */
  .mobile-nav-toggle {
    display: flex;
  }
  
  .navigation-menu {
    position: fixed;
    top: 80px; /* Debajo de header */
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--primary-color);
    padding: 3rem 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 999;
    box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  
  .navigation-menu.open {
    transform: translateX(0);
  }
  
  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }
  
  .nav-link {
    font-size: 1.2rem;
  }
  
  /* Hero apilado */
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
    padding-top: 2rem;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-image-card {
    transform: none !important;
  }
  
  .tech-indicator.position-1 {
    left: 5%;
  }
  .tech-indicator.position-2 {
    right: 5%;
  }
  
  /* Sobre Nosotros apilado */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-pillars {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .about-img {
    height: 380px;
  }
  
  /* Proyectos grid */
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  /* Contacto apilado */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-form-container {
    padding: 2rem;
  }
  
  /* Modal responsive */
  .modal-project-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .modal-body {
    padding: 2rem;
  }
  
  .modal-project-img {
    height: 280px;
  }
}

/* Teléfonos Pequeños */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
  
  .schedule-selector {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 0 1.5rem;
  }
  
  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
    padding: 0 1.5rem;
  }
}
