
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

}

/* Copiado: animación mínima usada en index (fade-in-up) */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #cfc9c9;
  color: #000000;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}

header {
  background-color: #000000;
}

.hero {
  background-image: url("../imagenes/Reparaciones-De-Computadoras.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 70vh;
  position: relative;
}

.overlay {
  background-color: rgba(0, 0, 0, 0.6);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}
.parent {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 0.25fr;
  grid-column-gap: 0px;
  grid-row-gap: 0px;

}

.div1 {
  grid-area: 1 / 1 / 2 / 2;

}


.div3 {
  grid-area: 1 / 3 / 2 / 4;
  background-color: rgb(0, 0, 0);
  display: flex;
  justify-content: right;
  align-items: center;
}

.LogoPrincipal {
  grid-area: 1 / 2 / 2 / 3;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 140px;
}

.LogoPrincipal img {
  max-height: 140px;
}


.main-nav {
  background-color: #e9b20e;
  position: sticky;
  top: 0;
  z-index: 900;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;

}

.main-nav ul {
  display: flex;
  justify-content: center;
  gap: 3rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 5px;
  flex-wrap: wrap;
}

.main-nav li a {
  text-decoration: none;
  color: black;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 3px;
}

.main-nav li a:hover {
  color: #ffffff;
}

.main-nav li a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #000;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    width: 0;
    left: 0;
  }
  to {
    width: 100%;
    left: 0;
  }
}

@media (max-width: 768px) {
  .main-nav {
    padding: 15px;
  }

  .main-nav ul {
    gap: 1.5rem;
  }

  .main-nav li a {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .main-nav {
    padding: 10px;
  }

  .main-nav ul {
    gap: 0.8rem;
  }

  .main-nav li a {
    font-size: 0.85rem;
  }
}
.btn-contacto {
  margin-top: 20px;
  padding: 14px 32px;
  border: 2px solid white;
  background-color: transparent;
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn-contacto::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: white;
  transition: left 0.5s ease;
  z-index: -1;
}

.btn-contacto:hover::before {
  left: 0;
}

.btn-contacto:hover {
  color: black;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.3);
}

.about-section {
  background-color: #ffffff;
  padding: 60px 20px;
}


@media (max-width: 768px) {
  .about-container {
    gap: 30px;
  }

  .about-icon {
    text-align: center;
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 8px 26px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 8px 26px rgba(37, 211, 102, 0.2);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #25d364 0%, #1db954 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.4);
  z-index: 1100;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  padding: 12px;
  animation: pulse 2s ease-in-out infinite;
}

.whatsapp-float .whatsapp-icon {
  width: 72px;
  height: 72px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.6);
  animation: bounce 0.6s ease-in-out infinite;
}

@media (max-width: 480px) {
  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    width: 72px;
    height: 72px;
    padding: 10px;
  }
  .whatsapp-float .whatsapp-icon {
    width: 64px;
    height: 64px;
  }
}

/* Contact Section Styles */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
  background-color: #ffffff;
  margin-top: 30px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.map-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  height: 350px;
}

.map-container iframe {
  border-radius: 8px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-item {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}

.info-item strong {
  color: #000000;
  font-weight: 600;
}

.info-item a {
  color: #000000;
  text-decoration: none;
  font-weight: 600;
}

.info-item a:hover {
  text-decoration: underline;
}

.contact-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.form-group label {
  font-weight: 600;
  color: #000000;
  font-size: 14px;
  transition: color 0.2s ease;
}

.form-group input,
.form-group textarea {
  padding: 12px 14px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #333;
  background-color: #fafafa;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #e9b20e;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(233, 178, 14, 0.15);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #ff4757;
  background-color: #fff5f5;
}

.btn-enviar {
  padding: 14px 30px;
  border: 2px solid #000000;
  background-color: transparent;
  color: #000000;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
}

.btn-enviar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: #000000;
  transition: left 0.5s ease;
  z-index: -1;
}

.btn-enviar:hover::before {
  left: 0;
}

.btn-enviar:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.btn-enviar:active {
  transform: translateY(0px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-enviar:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.Destacados h1 {
  margin-top: 40px;
  border-bottom: 5px solid #000000;
  display: inline-block;
  padding-bottom: 10px;
}

.Destacados h2 {
  margin-top: 40px;
  border-bottom: 5px solid #000000;
  display: inline-block;
  padding-bottom: 10px;
}

@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 20px;
  }

  .map-container {
    height: 300px;
  }

  .contact-form {
    gap: 15px;
  }
}

/* Ajustes para móviles y iPhone XR */
@media (max-width: 430px) {
  .hero {
    background-attachment: scroll !important;
    background-position: top center !important;
    background-size: 115% auto !important;
    min-height: 52vh;
    background-repeat: no-repeat;
  }

  .overlay {
    padding: 1.2rem 1rem;
  }

  .overlay h1 {
    font-size: 1.6rem;
    max-width: 90%;
    margin: 0 auto;
    line-height: 1.2;
  }

  .overlay p {
    font-size: 0.95rem;
    max-width: 90%;
    margin: 0.35rem auto 0.8rem;
  }

  .btn-contacto {
    font-size: 0.9rem;
    padding: 8px 15px;
    width: auto;
  }

  .main-nav {
    padding: 10px;
  }

  .main-nav ul,
  .nav-menu {
    gap: 0.8rem;
  }

  .main-nav li a {
    font-size: 0.85rem;
  }
  }

  @media (max-width: 430px) {
  .hero {
    background-attachment: scroll !important;
    background-position: top center !important;
    background-size: 350% auto !important;
    background-repeat: no-repeat;
  }

  .overlay {
    padding: 1.2rem 1rem;
  }

  .overlay h1 {
    font-size: 1.6rem;
    max-width: 90%;
    margin: 0 auto;
    line-height: 1.2;
  }

  .overlay p {
    font-size: 0.95rem;
    max-width: 90%;
    margin: 0.35rem auto 0.8rem;
  }

  .btn-contacto {
    font-size: 0.9rem;
    padding: 8px 15px;
    width: auto;
  }

  .main-nav {
    padding: 10px;
  }

  .nav-menu,
  .main-nav ul {
    gap: 0.8rem;
  }

  .main-nav li a {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 50vh;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
}