/* =========================
   proyectos.css - Versión final con mejoras móviles
   ========================= */

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

/* Variables idénticas a services.css */
:root {
  --primary: #434c88;
  --primary-light: rgba(67, 76, 136, 0.1);
  --primary-dark: #363d6c;
  --primary-lighter: #6c8cff;
  --primary-lightest: rgba(67, 76, 136, 0.05);
  --text: #333333;
  --text-light: #666666;
  --text-lighter: #888888;
  --bg-light: #ffffff;
  --bg-gray: #f8f9fa;
  --bg-dark: #1a1a1a;
  --border: #eaeaea;
  --transition: 0.3s ease;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --shadow-primary: 0 5px 15px rgba(67, 76, 136, 0.2);
}

/* =========================
   RESET Y ESTILOS GENERALES
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-gray);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* =========================
   HEADER/MENÚ - IDÉNTICO AL DE SERVICES
   ========================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: 1000;
  transition: all var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  height: 70px;
}

.site-logo img {
  height: 50px;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 4px 12px rgba(67, 76, 136, 0.15));
}

.site-logo img:hover {
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 8px 25px rgba(67, 76, 136, 0.3));
}

/* NAVEGACIÓN PRINCIPAL */
.nav-main {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  position: relative;
  padding: 0.5rem 0;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: all var(--transition);
  font-family: 'Poppins', sans-serif;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-lighter));
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 2px;
  transform: translateX(-50%);
}

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

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

/* BOTÓN DE LLAMADA/CTA */
.cta-button {
  background: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  border: 2px solid var(--primary);
  font-family: 'Poppins', sans-serif;
}

.cta-button:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

/* BOTÓN MENÚ MÓVIL */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--primary);
  transition: all var(--transition);
  border-radius: 3px;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* =========================
   HERO SECTION (MEJORADO)
   ========================= */
.proyectos-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  background: 
    linear-gradient(135deg, rgba(67, 76, 136, 0.95) 0%, rgba(54, 61, 108, 0.98) 100%),
    url('../imagenes 2.0/PALACION DE BELLAS ARTES/Foto Modificada.jpg') center/cover no-repeat;
  padding: 8rem 2rem 6rem;
  margin-top: 70px;
  overflow: hidden;
}

.proyectos-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 70% 30%, rgba(108, 140, 255, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(67, 76, 136, 0.3) 0%, transparent 50%);
  z-index: 0;
}

.proyectos-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  justify-items: center;
  position: relative;
  z-index: 2;
}

.proyectos-hero-content {
  max-width: 700px;
  color: white;
}

.proyectos-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: 'Poppins', sans-serif;
}

.proyectos-hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  font-family: 'Poppins', sans-serif;
}

.proyectos-hero-title strong {
  color: #e0e7ff;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
}

.proyectos-hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 600px;
  font-weight: 300;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  font-family: 'Poppins', sans-serif;
}

.proyectos-hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.proyectos-btn-primary {
  background: white;
  color: var(--primary-dark);
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition);
  border: none;
  font-size: 1.1rem;
  box-shadow: var(--shadow-primary);
  font-family: 'Poppins', sans-serif;
}

.proyectos-btn-primary:hover {
  background: var(--primary-lighter);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(67, 76, 136, 0.3);
}

.proyectos-btn-secondary {
  background: transparent;
  color: white;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition);
  border: 2px solid rgba(255, 255, 255, 0.4);
  font-size: 1.1rem;
  backdrop-filter: blur(10px);
  font-family: 'Poppins', sans-serif;
}

.proyectos-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-3px);
}

.proyectos-hero-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 500px;
  width: 600px;
}

.proyectos-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.hero-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(67, 76, 136, 0.3) 100%);
  z-index: 1;
}

/* Estadísticas en el hero */
.hero-stats-grid {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-stat-item {
  text-align: center;
  min-width: 100px;
}

.hero-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #e0e7ff;
  line-height: 1;
  display: block;
  font-family: 'Poppins', sans-serif;
}

.hero-stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.5rem;
  display: block;
  font-family: 'Poppins', sans-serif;
}

/* Flecha indicadora */
.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  animation: bounce 2s infinite;
  z-index: 2;
}

.hero-scroll-indicator a {
  color: inherit;
  text-decoration: none;
}

.hero-scroll-indicator i {
  font-size: 1.5rem;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

/* =========================
   SECCIÓN DE PROYECTOS
   ========================= */
.section {
  padding: 6rem 2rem;
}

.proyectos-section {
  background: white;
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
  color: var(--text);
  font-family: 'Poppins', sans-serif;
}

.section-title strong {
  font-weight: 700;
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
  font-family: 'Poppins', sans-serif;
}

/* Grid de proyectos */
.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 3rem auto 0;
}

.proyecto-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
}

.proyecto-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.proyecto-image-container {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.proyecto-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.proyecto-card:hover .proyecto-image {
  transform: scale(1.1);
}

.proyecto-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(67, 76, 136, 0.9), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

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

.proyecto-overlay-content {
  color: white;
  transform: translateY(20px);
  transition: transform var(--transition);
}

.proyecto-card:hover .proyecto-overlay-content {
  transform: translateY(0);
}

.proyecto-year {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
  font-family: 'Poppins', sans-serif;
}

.proyecto-overlay-title {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}

.proyecto-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: white;
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: var(--shadow-light);
  font-family: 'Poppins', sans-serif;
}

.proyecto-content {
  padding: 1.5rem;
}

.proyecto-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  font-family: 'Poppins', sans-serif;
}

.proyecto-description {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
}

.proyecto-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-lighter);
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
}

.proyecto-location i {
  color: var(--primary);
}

/* =========================
   CTA SECTION
   ========================= */
.proyectos-cta {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

.proyectos-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(108, 140, 255, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(67, 76, 136, 0.3) 0%, transparent 50%);
  z-index: 0;
}

.proyectos-cta .section-header {
  position: relative;
  z-index: 1;
}

.proyectos-cta .section-title {
  color: white;
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
}

.proyectos-cta .section-title strong {
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}

.proyectos-cta .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
  line-height: 1.6;
  font-family: 'Poppins', sans-serif;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  margin-bottom: 3rem;
}

.proyectos-cta-primary {
  background: white;
  color: var(--primary-dark);
  padding: 1rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition);
  border: none;
  font-size: 1.1rem;
  box-shadow: var(--shadow-primary);
  font-family: 'Poppins', sans-serif;
}

.proyectos-cta-primary:hover {
  background: var(--primary-lighter);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(67, 76, 136, 0.3);
}

.proyectos-cta-secondary {
  background: transparent;
  color: white;
  padding: 1rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition);
  border: 2px solid rgba(255, 255, 255, 0.4);
  font-size: 1.1rem;
  backdrop-filter: blur(10px);
  font-family: 'Poppins', sans-serif;
}

.proyectos-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-3px);
}

.cta-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto 0;
  position: relative;
  z-index: 1;
}

.cta-info-item {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition);
}

.cta-info-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.cta-info-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-info-icon i {
  font-size: 1.5rem;
  color: white;
}

.cta-info-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.75rem;
  font-family: 'Poppins', sans-serif;
}

.cta-info-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
  font-family: 'Poppins', sans-serif;
}

/* =========================
   MODAL (con mejoras responsive)
   ========================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
}

.modal-overlay.hidden {
  display: none;
}

.modal-content {
  background: white;
  border-radius: 20px;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow);
  z-index: 10;
}

.modal-close:hover {
  background: var(--primary);
  color: white;
  transform: rotate(90deg) scale(1.1);
}

.modal-body {
  padding: 2rem;
}

.modal-carousel {
  position: relative;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-gray);
}

.carousel-track {
  overflow: hidden;
  border-radius: 12px;
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 750px;
  object-fit: cover;
  border-radius: 12px;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 5;
}

.carousel-btn {
  width: 50px;
  height: 50px;
  background: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-lg);
  color: var(--primary);
}

.carousel-btn:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.carousel-indicator.active {
  background: var(--primary);
  transform: scale(1.3);
}

.carousel-counter {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.modal-info {
  padding: 0 1rem;
}

.modal-title {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}

.modal-description {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  font-family: 'Poppins', sans-serif;
}

.modal-features {
  margin-bottom: 2rem;
}

.features-title {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Poppins', sans-serif;
}

.features-title i {
  color: var(--primary);
}

.features-list {
  list-style: none;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--primary-light);
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.features-list li i {
  color: var(--primary);
  margin-right: 1rem;
  margin-top: 0.25rem;
}

.modal-tags {
  margin-bottom: 2rem;
}

.tags-title {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Poppins', sans-serif;
}

.tags-title i {
  color: var(--primary);
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tags-container span {
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
}

/* =========================
   FOOTER - IDÉNTICO AL DE SERVICES
   ========================= */
.proyectos-footer {
  background: #1a1a1a;
  color: white;
  padding: 2rem 2rem 2rem;
  margin-top: 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.footer-card:hover {
  background: #f8f9fa;
  border-color: #bdbdbd;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.footer-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #eee;
  font-family: 'Poppins', sans-serif;
}

.footer-card-title i {
  color: var(--primary);
}

/* Card para redes sociales */
.social-card .social-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-links .social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #ddd;
}

.social-links .social-icon:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(67, 76, 136, 0.4);
}

/* Card para enlaces */
.links-card ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.links-card a {
  color: #555;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  font-family: 'Poppins', sans-serif;
}

.links-card a:hover {
  color: var(--primary);
  padding-left: 0.5rem;
}

.links-card a i {
  color: var(--primary);
  font-size: 0.8rem;
}

/* Card para contacto */
.contact-card .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-card .contact-item i {
  color: var(--primary);
  margin-top: 0.25rem;
  font-size: 1rem;
}

.contact-card .contact-info h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #333;
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
}

.contact-card .contact-info p {
  color: #666;
  font-size: 0.85rem;
  line-height: 1.5;
  font-family: 'Poppins', sans-serif;
}

/* Card para descripción */
.about-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
}

.about-card .footer-logo {
  margin-bottom: 1rem;
}

.about-card .footer-logo img {
  height: 45px;
  width: auto;
  margin-bottom: 0.8rem;
  filter: none;
}

/* Footer bottom */
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin-bottom: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Poppins', sans-serif;
}

.footer-brand {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.footer-brand:hover {
  color: var(--primary-lighter);
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.footer-legal a:hover {
  color: white;
}

/* =========================
   RESPONSIVE MEJORADO - INCLUYE OPTIMIZACIONES MÓVILES
   ========================= */

@media (max-width: 1200px) {
  .proyectos-hero-container {
    gap: 3rem;
  }
  
  .footer-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .proyectos-hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .proyectos-hero-content {
    max-width: 100%;
    text-align: center;
  }
  
  .proyectos-hero-buttons {
    justify-content: center;
  }
  
  .hero-stats-grid {
    justify-content: center;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 1rem;
  }
  
  .nav-main {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 999;
  }
  
  .nav-main.active {
    display: flex;
  }
  
  .nav-main a {
    padding: 1rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--border);
    font-family: 'Poppins', sans-serif;
  }
  
  .nav-main a:last-child {
    border-bottom: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .proyectos-hero {
    padding: 6rem 1rem 4rem;
    min-height: 60vh;
    margin-top: 60px;
  }
  
  .proyectos-hero-title {
    font-size: 2.5rem;
    padding: 0 0.5rem;
  }
  
  .proyectos-hero-subtitle {
    font-size: 1.125rem;
    max-width: 100%;
    padding: 0 0.5rem;
  }
  
  .proyectos-hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .proyectos-btn-primary,
  .proyectos-btn-secondary {
    width: 100%;
    max-width: none;
    justify-content: center;
  }
  
  .proyectos-hero-image {
    height: 300px;
    order: -1;
    max-width: 100%;
    width: 100%;
  }

  .proyectos-hero-image img {
    aspect-ratio: 16/9;
    object-fit: cover;
  }
  
  .section {
    padding: 4rem 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .proyectos-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .proyectos-cta-primary,
  .proyectos-cta-secondary {
    width: 100%;
    max-width: none;
    justify-content: center;
  }
  
  .footer-cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 0.25rem;
  }
  
  .footer-card {
    padding: 1.5rem;
  }
  
  .modal-content {
    max-height: 95vh;
  }
  
  .carousel-slide img {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .proyectos-hero-title {
    font-size: 2rem;
    padding: 0 0.5rem;
  }
  
  .proyectos-hero-badge {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  
  .hero-stat-number {
    font-size: 2rem;
  }
  
  .hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 1.5rem;
    width: 100%;
  }
  
  .hero-stat-item {
    min-width: auto;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .proyecto-title {
    font-size: 1.1rem;
  }
  
  .cta-info-grid {
    grid-template-columns: 1fr;
  }
  
  .proyectos-footer {
    padding: 1.5rem 1rem 1rem;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .contact-card .contact-item {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .contact-card .contact-item i {
    margin: 0 auto;
  }
  
  .footer-bottom p {
    font-size: 0.85rem;
    padding: 0 1rem;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  .modal-title {
    font-size: 1.5rem;
  }
  
  .modal-description {
    font-size: 1rem;
  }
  
  .features-title,
  .tags-title {
    font-size: 1.25rem;
  }
}

/* NUEVO: Breakpoint para pantallas muy pequeñas (≤ 400px) */
@media (max-width: 400px) {
  .proyectos-hero {
    padding: 5rem 0.75rem 3rem;
    min-height: auto;
  }

  .proyectos-hero-title {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .proyectos-hero-subtitle {
    font-size: 1rem;
  }

  .proyectos-hero-badge {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .proyectos-hero-image {
    height: 200px;
    margin-top: 1rem;
  }

  .hero-stats-grid {
    gap: 0.25rem;
  }

  .hero-stat-number {
    font-size: 1.5rem;
  }

  .hero-stat-label {
    font-size: 0.7rem;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .site-logo img {
    height: 40px;
  }

  .proyecto-image-container {
    height: 200px;
  }

  .carousel-slide img {
    height: 250px;
  }

  .modal-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
}