/* ===== VARIABLES Y RESET ===== */
:root {
  --rosa: #ff80a6;
  --violeta: #824972;
  --azul: #494f82;
  --gris-claro: #e0e0e0;
  --gris-medio: #b0b0b0;
  --gris-texto: #f5f5f5;
  --gris-oscuro: #2a2a2a;
  --degradado-hero: linear-gradient(135deg,
      #494f82 0%,
      #824972 50%,
      #ff80a6 100%);
  --degradado-services: linear-gradient(135deg, #824972 0%, #494f82 100%);
  --degradado-portfolio: linear-gradient(135deg, #ff80a6 0%, #824972 100%);
  --degradado-process: linear-gradient(135deg, #494f82 0%, #824972 100%);
  --degradado-contact: linear-gradient(135deg, #824972 0%, #ff80a6 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html,
body {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  background: #1a1a1a;
  color: var(--gris-texto);
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== EFECTO MATRIX SOBRE FONDOS DE COLOR ===== */
#matrixRain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.08;
}

/* Asegurar que el contenido esté por encima del efecto Matrix */
.hero-content,
.services .container,
.portfolio .container,
.process .container,
.contact .container,
.footer .container {
  position: relative;
  z-index: 2;
}

/* ===== NAVBAR SIEMPRE TRANSPARENTE ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(26, 26, 26, 0.1) !important;
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

/* Eliminar el efecto scrolled */
.navbar.scrolled {
  background: rgba(26, 26, 26, 0.1) !important;
  padding: 1.5rem 2rem;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  z-index: 1100;
}

.nav-logo img {
  height: 40px;
  width: auto;
  transition: transform 0.3s ease;
}

.nav-logo:hover img {
  transform: scale(1.1);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  color: var(--gris-texto);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-menu a:hover {
  color: var(--rosa);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rosa);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-logo {
  display: flex !important;
  align-items: center;
  z-index: 1100;
  margin-right: auto;
}

.nav-logo img {
  height: 70px;
  width: auto;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.nav-logo:hover img {
  transform: scale(1.05);
}

.nav-cta {
  background: var(--degradado-hero);
  padding: 0.75rem 1.5rem !important;
  border-radius: 8px;
  color: white !important;
  transition: all 0.3s ease !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 128, 166, 0.3);
}

.nav-cta::after {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--gris-texto);
  transition: 0.3s;
}

/* ===== LOGO DEBAJO DEL NAVBAR ===== */
.header-logo {
  text-align: center;
  padding: 1rem 0 1rem 0;
  background: transparent;
  margin-top: 80px;
  position: relative;
  z-index: 3;
}

.main-logo {
  height: 350px;
  width: auto;
  max-width: 450px;
  transition: all 0.3s ease;
  background: transparent !important;
}

.main-logo:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--degradado-hero);
  overflow: hidden;
}

.hero-content {
  text-align: center;
  z-index: 2;
  max-width: 800px;
  padding: 0 2rem;
  margin: -50px auto 0;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--gris-texto);
}

.highlight {
  background: linear-gradient(45deg, var(--rosa), var(--violeta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--gris-claro);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: inline-block;
}

.btn-primary {
  background: var(--rosa);
  color: white;
}

.btn-primary:hover {
  background: var(--violeta);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 128, 166, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--gris-texto);
  border: 2px solid var(--gris-texto);
}

.btn-secondary:hover {
  background: var(--gris-texto);
  color: var(--azul);
  transform: translateY(-3px);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border-right: 2px solid var(--gris-texto);
  border-bottom: 2px solid var(--gris-texto);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: rotate(45deg) translate(0, 0);
  }

  50% {
    transform: rotate(45deg) translate(-10px, -10px);
  }
}

/* ===== SECCIONES GENERALES ===== */
section {
  padding: 6rem 0;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--gris-texto);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--rosa);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--gris-medio);
  font-size: 1.2rem;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ===== SERVICIOS CORPORATIVOS ===== */
.services {
  background: var(--gris-oscuro);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  position: relative;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.service-icon video {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Changed to contain for clarity */
  background: #000;
  object-position: center;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon img,
.service-card:hover .service-icon video {
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--gris-texto);
}

.service-card p {
  color: var(--gris-medio);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  text-align: left;
}

.service-features li {
  padding: 0.5rem 0;
  color: var(--gris-claro);
  position: relative;
  padding-left: 1.5rem;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--rosa);
  font-weight: bold;
}

.service-features strong {
  color: var(--rosa);
}

/* ===== ENFOQUE PERSONALIZADO ===== */
.personalized {
  background: var(--degradado-process);
  position: relative;
  padding: 6rem 0;
}

.personalized-showcase {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-bottom: 4rem;
}

.project-showcase {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.project-showcase:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
}

.project-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.project-content.reverse {
  direction: rtl;
}

.project-content.reverse>* {
  direction: ltr;
}

.project-info h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--gris-texto);
}

.project-subtitle {
  color: var(--rosa);
  font-weight: 600;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.tech-commercial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.tech-side,
.commercial-side {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.tech-side:hover,
.commercial-side:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(5px);
}

.tech-side h4,
.commercial-side h4 {
  color: var(--gris-texto);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.tech-side ul,
.commercial-side ul {
  list-style: none;
  color: var(--gris-medio);
}

.tech-side li,
.commercial-side li {
  padding: 0.3rem 0;
  position: relative;
  padding-left: 1rem;
}

.tech-side li::before {
  content: "⚙️";
  position: absolute;
  left: -1rem;
}

.commercial-side li::before {
  content: "📈";
  position: absolute;
  left: -1rem;
}

.commercial-side strong {
  color: var(--rosa);
}

.project-visual {
  display: flex;
  justify-content: center;
}

.visual-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  max-width: 400px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.visual-card:hover {
  transform: translateY(-10px);
}

.visual-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: top center;
}

.visual-overlay {
  padding: 1.5rem;
  background: rgba(26, 26, 26, 0.9);
  text-align: center;
}

.visual-overlay span {
  color: var(--gris-texto);
  font-weight: 600;
}

.personalized-cta {
  text-align: center;
  background: var(--degradado-hero);
  padding: 3rem;
  border-radius: 20px;
  margin-top: 2rem;
}

.personalized-cta h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--gris-texto);
}

.personalized-cta p {
  color: var(--gris-claro);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* ===== PORTFOLIO ===== */
.portfolio {
  background: var(--degradado-portfolio);
  position: relative;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.portfolio-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.portfolio-image {
  height: 220px;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-content {
  padding: 2rem;
}

.portfolio-content h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--gris-texto);
}

.portfolio-content p {
  color: var(--gris-claro);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.portfolio-tech {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.portfolio-tech span {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--gris-claro);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== PROCESO CORPORATIVO ===== */
.process {
  background: var(--gris-oscuro);
  position: relative;
  padding: 4rem 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.process-step {
  text-align: center;
  padding: 1.5rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 280px;
}

.process-step:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.process-step img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 3px solid var(--rosa);
  padding: 2px;
  background: white;
  transition: all 0.3s ease;
}

.process-step:hover img {
  transform: scale(1.1);
  border-color: var(--violeta);
}

.step-number {
  width: 35px;
  height: 35px;
  background: var(--degradado-hero);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: bold;
  margin: 0 auto 0.8rem;
  color: white;
  position: relative;
  z-index: 2;
}

.process-step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--gris-texto);
  font-weight: 600;
}

.process-step p {
  color: var(--gris-medio);
  line-height: 1.4;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ===== CONTACTO CORPORATIVO ===== */
.contact {
  background: var(--degradado-contact);
  position: relative;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--gris-texto);
}

.contact-info p {
  color: var(--gris-claro);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--gris-claro);
}

.contact-form {
  background: rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: var(--gris-texto);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gris-medio);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--rosa);
  background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== FOOTER CORPORATIVO ===== */
.footer {
  background: var(--gris-oscuro);
  padding: 3rem 0 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 10;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 11;
}

.footer-logo {
  text-align: left;
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: 150px;
  width: auto;
  max-width: 150px;
  opacity: 0.9;
  transition: all 0.3s ease;
  background: transparent !important;
}

.footer-logo-img:hover {
  opacity: 1;
  transform: scale(1.05);
}

.footer-info p {
  color: var(--gris-medio);
  line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--gris-texto);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--gris-medio);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--rosa);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--gris-medio);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gris-medio);
  font-size: 0.9rem;
  position: relative;
  z-index: 11;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .process-step {
    min-height: 260px;
  }

  .process-step img {
    width: 130px;
    height: 130px;
  }

  .project-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .tech-commercial-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {

  /* Navbar y menú móvil */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: #0a0a0a !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 1002;
    padding: 2rem;
    border-left: 2px solid var(--rosa);
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex !important;
  }

  .hamburger {
    display: flex !important;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1003;
    position: relative;
  }

  .nav-menu.active {
    right: 0;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .nav-menu a {
    font-size: 1.2rem;
    padding: 0.8rem 1.5rem;
    color: var(--gris-texto);
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    border-radius: 8px;
  }

  .nav-menu a:hover {
    color: var(--rosa);
    background: rgba(255, 255, 255, 0.1);
  }

  .nav-cta {
    margin-top: 1rem;
    padding: 1rem 2rem !important;
    background: var(--degradado-hero);
    border-radius: 8px;
    color: white !important;
    transition: all 0.3s ease !important;
    width: 100%;
    text-align: center;
  }

  .nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 128, 166, 0.3);
  }

  .navbar {
    z-index: 1001;
  }

  /* Logo header */
  .header-logo {
    padding: 0.8rem 0 0.8rem 0;
    margin-top: 70px;
  }

  .main-logo {
    height: 200px;
    max-width: 380px;
  }

  /* Hero Section */
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  /* Proceso */
  .process-steps {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .process-step {
    padding: 1.5rem 1rem;
    min-height: 200px;
  }

  .process-step img {
    width: 120px;
    height: 120px;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-logo {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .footer-logo-img {
    height: 250px;
    max-width: 250px;
  }

  /* Enfoque Personalizado */
  .personalized {
    padding: 4rem 0;
  }

  .project-showcase {
    padding: 2rem;
  }

  .project-content.reverse {
    direction: ltr;
  }

  .visual-card {
    max-width: 100%;
  }

  .personalized-cta {
    padding: 2rem;
  }

  .personalized-cta h3 {
    font-size: 1.5rem;
  }

  /* Contacto */
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .header-logo {
    margin-top: 60px;
  }

  .main-logo {
    height: 200px;
    max-width: 320px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .service-icon {
    height: 160px;
  }

  .process-step img {
    width: 110px;
    height: 110px;
  }

  .footer-logo-img {
    height: 250px;
    max-width: 250px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .project-showcase {
    padding: 1.5rem;
  }

  .tech-side,
  .commercial-side {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .nav-menu {
    width: 100% !important;
    right: -100%;
  }

  .nav-menu.active {
    right: 0 !important;
  }

  .hero-title {
    font-size: 2rem !important;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 1rem !important;
  }

  .main-logo {
    height: auto !important;
    max-width: 250px !important;
    width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    padding: 0 1rem;
  }

  .btn {
    width: 100%;
  }

  .services-grid,
  .portfolio-grid,
  .process-steps,
  .contact-content,
  .footer-content {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  .process-step img {
    width: 100px;
    height: 100px;
  }

  .footer-logo-img {
    height: 120px;
    max-width: 150px;
  }
}

@media (max-width: 360px) {
  .hero-title {
    font-size: 1.6rem !important;
  }
}

/* Global mobile fixes */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .container {
    padding: 0 1rem;
    width: 100%;
  }

  h1,
  h2,
  h3,
  p,
  span,
  a {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 110px; /* Spacing for potential back-to-top arrow */
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  background-color: #128c7e;
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
}

/* Service Card Enhancements for Projects */
.service-card h3 {
  color: var(--rosa);
  margin-top: 1rem;
}

.service-card .service-features li {
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 8px 0;
}

.service-card .service-features li:last-child {
  border-bottom: none;
}

.service-card .service-icon {
  background: #000;
  border-bottom: 2px solid var(--rosa);
}


/* Standardized Mini-Cards (Handles 5+ projects with exact same size) */
.services-grid.four-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.service-card.mini-card {
  width: 330px; /* Fixed width */
  height: 520px; /* Locked fixed height for perfect alignment */
  display: flex;
  flex-direction: column;
  padding: 1.8rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-align: left;
  box-sizing: border-box; /* Crucial for height calculation */
}

.service-card.mini-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--rosa);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

/* Ensure nothing inside can push the height */
.service-card.mini-card h3 {
  font-size: 1.4rem;
  margin: 0.8rem 0 0.4rem;
  color: var(--rosa);
  height: 3.5rem; /* Fixed height for title area */
  display: flex;
  align-items: center;
  overflow: hidden;
}

.card-tech {
  font-size: 0.75rem;
  color: var(--gris-medio);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  height: 2.5rem; /* Fixed height for tech area */
  overflow: hidden;
}

.card-function {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--gris-texto);
  flex-grow: 1; /* Fills remaining space */
  overflow: hidden; /* Prevents text from pushing the footer */
}

.service-card.mini-card .service-icon {
  height: 200px; /* Slightly taller for better visibility */
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.2rem;
}

.showroom-footer-note {
  text-align: center;
  margin-top: 4rem;
  padding: 2.5rem;
  background: rgba(130, 73, 114, 0.08);
  border-radius: 15px;
  border: 1px dashed var(--rosa);
  animation: fadeIn 1s ease;
}

.showroom-footer-note h3 {
  color: var(--rosa);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.showroom-footer-note p {
  color: var(--gris-texto);
  font-size: 1.1rem;
  max-width: 850px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  /* Auto-fit handles this naturally, but we can tune if needed */
}

@media (max-width: 600px) {
  .services-grid.four-columns {
    grid-template-columns: 1fr;
  }
}

/* Video Modal Styles */
.video-modal {
  display: none;
  position: fixed;
  z-index: 20000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1000px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.close-modal {
  position: absolute;
  top: -50px;
  right: 0;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal:hover {
  color: var(--rosa);
}

.modal-video-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.modal-video-container video {
  max-width: 100%;
  max-height: 80vh; /* Limit height for portrait videos */
  width: auto;
  border-radius: 8px;
  box-shadow: 0 0 50px rgba(130, 73, 114, 0.3);
  display: block;
}

#modalTitle {
  color: #fff;
  text-align: center;
  margin-top: 20px;
  font-size: 1.5rem;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.service-card:hover .video-overlay {
  opacity: 1;
}

.video-overlay i {
  color: #fff;
  font-size: 2rem;
  background: var(--rosa);
  padding: 15px;
  border-radius: 50%;
  box-shadow: 0 0 20px var(--rosa);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 480px) {
  .whatsapp-float {
    width: 55px;
    height: 55px;
    bottom: 90px; /* Stacked above scroll-to-top */
    right: 20px;
  }
  
  .whatsapp-float img {
    width: 30px;
    height: 30px;
  }
}