/* Reset y Variables - Colores basados en el logo rojo */
:root {
  --primary-color: #e63946;
  --secondary-color: #d62828;
  --accent-color: #f77f7f;
  --dark-color: #1e293b;
  --light-color: #f8fafc;
  --text-color: #334155;
  --text-light: #64748b;
  --border-color: #e2e8f0;
  --success-color: #10b981;
  --danger-color: #d62828;
  --warning-color: #f59e0b;
  --shadow: 0 4px 6px -1px rgba(230, 57, 70, 0.15);
  --shadow-lg: 0 10px 15px -3px rgba(230, 57, 70, 0.25);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #ffffff;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 1000;
}

.navbar {
  padding: 1rem 0;
}

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

.nav-brand a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--primary-color);
}

.brand-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.brand-icon {
  font-size: 2rem;
  color: var(--primary-color);
}

.brand-container span {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--primary-color);
  white-space: nowrap;
}

/* Ajuste para brand en modo móvil */
@media (max-width: 768px) {
  .brand-icon {
    font-size: 1.5rem;
  }

  .brand-container span {
    font-size: 1rem;
  }

  .brand-container {
    gap: 0.15rem;
  }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-color);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  padding-top: 80px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
}

.hero-shapes {
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 20% 50%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}

.hero-logo {
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease;
}

.hero-logo-img {
  max-width: 250px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}

.hero-logo-img:hover {
  transform: scale(1.05);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  animation: fadeInUp 1s ease;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  animation: fadeInUp 1.2s ease;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

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

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

/* Sections con animaciones */
.section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(230, 57, 70, 0.03) 0%,
    transparent 70%
  );
  animation: sectionGlow 10s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sectionGlow {
  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }
  50% {
    transform: translateX(20px) rotate(5deg);
  }
}

.section-title {
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--dark-color);
}

/* Servicios */
.servicios {
  background: var(--light-color);
}

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

.servicio-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease backwards;
}

.servicio-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(230, 57, 70, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.servicio-card:hover::before {
  left: 100%;
}

.servicio-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(230, 57, 70, 0.3);
  border: 2px solid var(--primary-color);
}

.servicio-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.servicio-card:hover .servicio-icon {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 10px 30px rgba(230, 57, 70, 0.4);
}

.servicio-card h3 {
  margin-bottom: 1rem;
  color: var(--dark-color);
}

/* Servicio Unificado */
.servicio-unificado {
  background: white;
  padding: 3rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  max-width: 800px;
  margin: 0 auto;
}

.servicio-unificado:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.servicio-unificado-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
}

.servicio-unificado h3 {
  margin-bottom: 2rem;
  color: var(--dark-color);
  font-size: 2rem;
}

.servicio-unificado-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.servicio-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--light-color);
  border-radius: 0.75rem;
  transition: var(--transition);
}

.servicio-item:hover {
  background: #f1f5f9;
  transform: translateX(5px);
}

.servicio-item-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.servicio-item h4 {
  margin-bottom: 0.5rem;
  color: var(--dark-color);
  font-size: 1.25rem;
}

.servicio-item p {
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
}

/* Proyectos */
.proyectos-category {
  margin-bottom: 4rem;
}

.category-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--dark-color);
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.proyecto-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  animation: fadeInUp 0.6s ease backwards;
}

.proyecto-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(230, 57, 70, 0) 0%,
    rgba(230, 57, 70, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.proyecto-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(230, 57, 70, 0.3);
}

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

.proyecto-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: var(--light-color);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.proyecto-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
}

.desarrollo-card .proyecto-image {
  height: 280px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 1rem;
}

.desarrollo-card .proyecto-image img {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.desarrollo-card:hover .proyecto-image img {
  transform: scale(1.05);
}

.proyecto-content {
  padding: 1.5rem;
}

.proyecto-content h4 {
  margin-bottom: 1rem;
  color: var(--dark-color);
}

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

.store-icon {
  height: 40px;
  width: auto;
}

/* Productos */
.productos {
  background: var(--light-color);
}

/* Producto Unificado */
.producto-unificado {
  background: white;
  padding: 3rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.producto-unificado:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.producto-unificado-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
}

.producto-unificado h3 {
  margin-bottom: 1rem;
  color: var(--dark-color);
  font-size: 2rem;
}

.producto-unificado p {
  color: var(--text-light);
  font-size: 1.1rem;
  margin: 0;
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.producto-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  animation: fadeInUp 0.6s ease backwards;
}

.producto-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(230, 57, 70, 0.1) 0%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: 0;
}

.producto-card:hover::before {
  width: 300px;
  height: 300px;
}

.producto-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(230, 57, 70, 0.3);
  border: 2px solid var(--primary-color);
}

.producto-content {
  position: relative;
  z-index: 1;
}

.producto-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: var(--light-color);
}

.producto-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.producto-content {
  padding: 1.5rem;
}

.producto-categoria {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--primary-color);
  background: rgba(37, 99, 235, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  margin-bottom: 0.5rem;
}

.producto-content h4 {
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.producto-footer {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.producto-precio {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

/* Página de Productos */
.productos-page {
  min-height: calc(100vh - 200px);
}

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

.filtro-btn {
  padding: 0.75rem 1.5rem;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 2rem;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.filtro-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

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

.filtro-btn i {
  font-size: 0.875rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

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

.modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 2rem;
  font-weight: bold;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

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

.modal-content h2 {
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

.modal-content .form-group {
  margin-bottom: 1.5rem;
}

.modal-content .form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: var(--transition);
}

.modal-content .form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Contacto */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}

.contacto-info h3 {
  margin-bottom: 2rem;
  color: var(--dark-color);
}

.contacto-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contacto-item i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.contacto-form {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Ubicación */
.ubicacion-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}

.ubicacion-info h3 {
  margin-bottom: 2rem;
  color: var(--dark-color);
}

.ubicacion-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ubicacion-item i {
  color: var(--primary-color);
  font-size: 1.5rem;
  min-width: 24px;
  margin-top: 0.25rem;
}

.ubicacion-item h4 {
  margin: 0 0 0.25rem 0;
  color: var(--dark-color);
  font-size: 1.25rem;
}

.ubicacion-item p {
  margin: 0;
  color: var(--text-light);
}

.ubicacion-mapa {
  background: white;
  padding: 0;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.mapa-container {
  width: 100%;
  min-height: 450px;
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
}

.mapa-container iframe {
  width: 100%;
  height: 450px;
  border: none;
  display: block;
}

.mapa-overlay {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 10;
}

.mapa-link-btn {
  background: white;
  color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
}

.mapa-link-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.3);
}

/* Footer Mejorado */
.footer {
  position: relative;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  padding: 4rem 0 0;
  overflow: hidden;
}

.footer-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(230, 57, 70, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(230, 57, 70, 0.1) 0%,
      transparent 50%
    );
  opacity: 0.5;
  animation: footerGlow 8s ease-in-out infinite;
}

@keyframes footerGlow {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.footer-section {
  animation: fadeInUp 0.6s ease backwards;
}

.footer-section:nth-child(1) {
  animation-delay: 0.1s;
}
.footer-section:nth-child(2) {
  animation-delay: 0.2s;
}
.footer-section:nth-child(3) {
  animation-delay: 0.3s;
}
.footer-section:nth-child(4) {
  animation-delay: 0.4s;
}

.footer-about {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-logo-img {
  width: 50px;
  height: auto;
  filter: brightness(0) invert(1);
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.footer-logo h4 {
  margin: 0;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-section h4 {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-color);
}

.footer-section h4 i {
  font-size: 1rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.footer-badges {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(230, 57, 70, 0.2);
  border: 1px solid rgba(230, 57, 70, 0.3);
  border-radius: 2rem;
  font-size: 0.875rem;
  color: var(--accent-color);
  width: fit-content;
  transition: var(--transition);
}

.badge:hover {
  background: rgba(230, 57, 70, 0.3);
  transform: translateX(5px);
}

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

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-section ul li a i {
  font-size: 0.75rem;
  opacity: 0.6;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--accent-color);
  transform: translateX(5px);
}

.footer-section ul li a:hover i {
  opacity: 1;
  color: var(--primary-color);
}

.footer-contact p {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
}

.footer-contact i {
  color: var(--primary-color);
  width: 20px;
}

.footer-map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: white;
  border-radius: 2rem;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.footer-map-link:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
}

.social-links {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white !important;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
  flex-shrink: 0;
}

.social-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.social-link:hover::before {
  width: 100%;
  height: 100%;
}

.social-link:hover {
  transform: translateY(-3px) scale(1.1);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-link.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.social-link.instagram:hover {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  border-color: #e4405f;
  box-shadow: 0 5px 15px rgba(228, 64, 95, 0.4);
}

.social-link.linkedin:hover {
  background: #0077b5;
  border-color: #0077b5;
  box-shadow: 0 5px 15px rgba(0, 119, 181, 0.4);
}

.social-link i {
  font-size: 1.5rem !important;
  position: relative;
  z-index: 2;
  color: white !important;
  display: inline-block;
  line-height: 1;
}

.social-link span {
  display: none !important;
  visibility: hidden;
}

.footer-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: #25d366;
  color: white;
  border-radius: 2rem;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
  width: 100%;
  justify-content: center;
}

.footer-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.footer-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  margin: 2rem 0;
  position: relative;
  z-index: 1;
}

.footer-bottom {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.footer-bottom strong {
  color: var(--accent-color);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-color);
}

/* Estilos unificados para social-links - ya definidos arriba */

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: white;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 500px;
  position: relative;
  animation: slideDown 0.3s ease;
}

.modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-light);
}

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

/* Animaciones Mejoradas */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

/* Animaciones para elementos al hacer scroll */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Efectos de hover mejorados */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn span {
  position: relative;
  z-index: 1;
}

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

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-logo-img {
    max-width: 180px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .contacto-grid,
  .ubicacion-grid {
    grid-template-columns: 1fr;
  }

  .ubicacion-mapa {
    order: -1;
  }

  .mapa-container {
    min-height: 300px;
  }

  .mapa-placeholder {
    min-height: 300px;
    padding: 1.5rem;
  }

  .mapa-placeholder i {
    font-size: 3rem;
  }

  .mapa-placeholder p {
    font-size: 1.1rem;
  }

  .ubicacion-mapa {
    order: -1;
  }

  .proyectos-grid,
  .productos-grid,
  .servicios-grid {
    grid-template-columns: 1fr;
  }

  .productos-filtros {
    justify-content: flex-start;
    gap: 0.75rem;
  }

  .filtro-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .modal-content {
    margin: 20% auto;
    padding: 1.5rem;
  }

  .servicio-unificado {
    padding: 2rem 1.5rem;
  }

  .servicio-unificado-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }

  .servicio-unificado h3 {
    font-size: 1.5rem;
  }

  .servicio-item {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .servicio-item-icon {
    margin: 0 auto;
  }

  .producto-unificado {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }

  .producto-unificado-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }

  .producto-unificado h3 {
    font-size: 1.5rem;
  }

  .producto-unificado p {
    font-size: 1rem;
  }

  /* Footer Responsive */
  .footer {
    padding: 3rem 0 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-about {
    max-width: 100%;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .social-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .social-link {
    width: 45px;
    height: 45px;
  }

  .social-link i {
    font-size: 1.25rem;
  }

  .footer-whatsapp {
    width: 100%;
  }
}

.text-center {
  text-align: center;
}

/* Botón Flotante WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  background: #20ba5a;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
  color: white;
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8);
  }
  100% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 55px;
    height: 55px;
    bottom: 20px;
    right: 20px;
    font-size: 28px;
  }
}
