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

  html {
    overflow-x: hidden;
    width: 100%;
  }
  
  /* BASE */
  body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    color: #1f2937;
    background: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }
  
  /* CONTAINER */
  .container {
    width: 100%;
    max-width: 1000px;
    margin: auto;
    padding: 0 20px;
  }

  img:not(.project-card img),
  svg,
  video {
    max-width: 100%;
    height: auto;
  }
  
  /* SECTIONS */
  .section {
    padding: 80px 0;
  }
  
  .section-alt {
    background: #f3f4f6;
  }
  .section h2 {
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
  }
  
  .section h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 3px;
    background: #2563eb;
    transition: width 0.3s ease;
  }
  
  .section h2:hover {
    color: #2563eb;
  }
  
  .section h2:hover::after {
    width: 100%;
  }

  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
  }
  
  
  
  /* TITLES */
  .hero h1 {
    font-size: 44px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
  }
  
  .hero p {
    max-width: 650px;
  }
  
  
  .hero h2 {
    color: #e0e7ff;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  }
  
  
  /* HERO */
  .hero {
    background:
      linear-gradient(
        rgba(30, 58, 138, 0.85),
        rgba(37, 99, 235, 0.85)
      ),
      url("assets/hero-bg.jpg");
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
  }
  @media (max-width: 600px) {
    .hero h1 { font-size: 32px; }
    .hero h2 { font-size: 20px; }
    .hero p { max-width: 100%; }
  }
  
  
  
  
  
  /* BUTTON */
  .btn {
    display: inline-block;
    margin-top: 30px;
    padding: 14px 34px;
    background: white;
    color: #1e3a8a;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
  }
  
  /* CARDS — misma anchura por fila (evita 2 tarjetas gigantes en la última fila) */
  .cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    align-items: stretch;
  }

  @media (max-width: 900px) {
    .cards {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (max-width: 560px) {
    .cards {
      grid-template-columns: 1fr;
    }
  }
  
  .card {
    background: white;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  }
  
  
  /* TECH */
  .tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .tech-list span,
  .link-pill {
    background: #e5e7eb;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    color: #1f2937;
  }
  .tech-list span,
.link-pill {
  background: #e5e7eb;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  color: #1f2937;
  transition: 
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

/* HOVER */
.tech-list span:hover,
.link-pill:hover {
  background-color: #2563eb;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  cursor: default;
}

  
  /* FOOTER */
  footer {
    text-align: center;
    padding: 30px;
    background: #111827;
    color: #9ca3af;
  }
  footer {
    text-align: center;
    padding: 30px 20px;
    background: #111827;
    color: #9ca3af;
    font-size: 14px;
  }
  
  footer p {
    margin: 6px 0;
  }
  
  .footer-sub {
    font-size: 13px;
    opacity: 0.85;
  }
  
  /* CORAZÓN */
  .heart {
    color: #ef4444;
    margin: 0 4px;
  }
  
  
  /* ANIMATIONS — solo eje Y para no provocar scroll horizontal */
  .section,
  .card,
  .hero {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    transition: opacity 0.8s ease, transform 0.8s ease;
    max-width: 100%;
  }
  
  .visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  
  /* WHATSAPP */
  .whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    z-index: 1000;
  }
  footer {
    text-align: center;
    padding: 30px 20px;
    background: #111827;
    color: #9ca3af;
    font-size: 14px;
  }
  
  footer p {
    margin: 6px 0;
  }
  
  .footer-sub {
    font-size: 13px;
    opacity: 0.85;
  }
  
  /* CORAZÓN ANIMADO */
  .heart {
    color: #ef4444;
    display: inline-block;
    margin: 0 4px;
    animation: heartbeat 1.5s infinite;
  }
  
  @keyframes heartbeat {
    0%   { transform: scale(1); }
    20%  { transform: scale(1.2); }
    40%  { transform: scale(1); }
    60%  { transform: scale(1.15); }
    100% { transform: scale(1); }
  }
  
  /* LINK FOOTER */
  .footer-link {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: bold;
  }
  
  .footer-link:hover {
    color: #60a5fa;
    text-decoration: underline;
  }
  /* WHATSAPP – AJUSTES SOLO PARA MÓVIL */
@media (max-width: 768px) {
  .whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    z-index: 1000;
  }
  /* TECNOLOGÍAS CON ICONOS */
.tech-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #e5e7eb;
  padding: 10px 18px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.tech-item img {
  width: 26px;
  height: 26px;
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

/* HOVER GENERAL */
.tech-item:hover img {
  filter: grayscale(0%);
  transform: scale(1.15);
}

.tech-item:hover {
  background: #e0e7ff;
}


/* COLORES OFICIALES */
.tech-item.js:hover img { filter: none; }
.tech-item.react:hover img { filter: none; }
.tech-item.html:hover img { filter: none; }
.tech-item.css:hover img { filter: none; }
.tech-item.php:hover img { filter: none; }
.tech-item.mysql:hover img { filter: none; }
.tech-item.ts:hover img { filter: none; }
.tech-item.tools:hover img { filter: none; }
.tech-item.network:hover img { filter: none; }

}
/* TECNOLOGÍAS – AJUSTE PROFESIONAL */
.tech-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

#technologies .container,
#profile .container {
  text-align: center;
}

#technologies h2,
#profile h2 {
  margin-left: auto;
  margin-right: auto;
}

#contact .container {
  text-align: center;
}

#contact a {
  word-break: break-word;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  background: #f3f4f6;
  border-radius: 18px;
  width: 110px;
  transition: all 0.3s ease;
}

.tech-item img {
  width: 40px;
  height: 40px;
  opacity: 0.55;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.tech-item span {
  font-size: 13px;
  color: #374151;
}

/* HOVER */
.tech-item:hover {
  background: #e0e7ff;
  transform: translateY(-4px);
}

.tech-item:hover img {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}
.flip-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}
/* PROJECT CARDS — mismo marco para todas (ancho de columna × ratio fijo) */
.project-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  height: auto;
  aspect-ratio: 16 / 10;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-tag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.35);
}

.project-overlay h3 {
  color: white;
  font-size: 20px;
  margin-bottom: 8px;
}

.project-overlay p {
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.4;
}




.project-overlay h3 {
  color: white;
  font-size: 20px;
  margin: 0;
}

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

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

.project-card.login:hover img,
.project-card.project-card--contain:hover img {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .project-card {
    aspect-ratio: 4 / 3;
  }

  .project-overlay {
    opacity: 1;
    background: linear-gradient(
      rgba(0,0,0,0.15),
      rgba(0,0,0,0.8)
    );
  }
}



.project-overlay h3 {
  color: white;
  font-size: 20px;
  margin-bottom: 8px;
}

.project-overlay p {
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.4;
}

/* Capturas móvil / UI: sin recorte agresivo */
.project-card.login img,
.project-card.project-card--contain img {
  object-fit: contain;
  object-position: top center;
  background: #eceff3;
}

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 24px;
}

@media (max-width: 768px) {
  #technologies .tech-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
  }

  #technologies .tech-item {
    width: 100%;
    max-width: 100%;
  }

  #profile .tech-list {
    width: 100%;
    justify-content: center;
    gap: 12px;
  }

  #profile .link-pill {
    flex: 0 1 auto;
    max-width: 100%;
  }

  .section,
  .cards,
  .tech-list,
  .services-grid {
    max-width: 100%;
  }
}

.service-card {
  position: relative;
  height: 260px;
  border-radius: 18px;
  padding: 24px;
  color: white;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  transition: 
    transform 0.55s ease,
    box-shadow 0.55s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  transition: background 0.5s ease;
}
.service-card > * {
  position: relative;
  z-index: 1;
}


.service-icon {
  font-size: 36px;
  margin-bottom: 10px;
  transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}


.service-card h3,
.service-card p {
  transition: transform 0.4s ease;
}

.service-card:hover h3 {
  transform: translateY(-2px);
}


.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

.service-card:hover::before {
  background: rgba(0, 0, 0, 0.72);
}
/* IMÁGENES POR SERVICIO */

.service-card.soporte {
  background-image: url("assets/services/soporte.jpg");
}

.service-card.redes {
  background-image: url("assets/services/redes.jpg");
}

.service-card.satelital {
  background-image: url("assets/services/satelital.jpg");
}

.service-card.seguridad {
  background-image: url("assets/services/seguridad.jpg");
}

.service-card.sistemas {
  background-image: url("assets/services/sistemas.jpg");
}



/* MOBILE */
@media (max-width: 768px) {
  .service-card {
    height: 220px;
  }
}






  
  