* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

}

html {
  scroll-behavior: smooth;
}

/* Animaciones globales */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

.slide-in-right {
  animation: slideInRight 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/Tecnico1.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 70vh;
  position: relative;
}

.overlay {
  background-color: rgba(0, 0, 0, 0.5);
  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;
  backdrop-filter: blur(0.5px);
}

.overlay h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.8s ease-out;
  letter-spacing: -1px;
}

.overlay p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.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);
}

.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;
}

.nav-menu {
  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: all 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;
  }

  .nav-menu {
    gap: 1.5rem;
  }

  .main-nav li a {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .main-nav {
    padding: 10px;
  }

  .nav-menu {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .main-nav li a {
    font-size: 0.85rem;
  }
}

.contenedorPC {
  padding-top: 60px;
}

.pc-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 50px;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
  background-color: #ffffff
}

.pc-text {
  max-width: 500px;
  flex: 1;
}

.pc-text h1 {
  font-size: 28px;
  margin-bottom: 25px;
  font-weight: bold;
}

.pc-text h4 {
  margin-top: 20px;
  margin-bottom: 5px;
}

.pc-text p {
  color: #000000;
  margin-bottom: 10px;
}

.pc-buttons {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.btn2 {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.btn2::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn2:hover::before {
  left: 100%;
}

.btn2:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.btn2:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pc-image img {
  max-width: 100%;
  width: 500px;
  height: auto;
  flex: 1;
  min-width: 300px;
}

.div2pc {
  grid-area: 1 / 2 / 2 / 3;

}

.div2pc img {

  max-height: 550px;
}

.encabezado {
  text-align: center;
  margin-bottom: 40px;
  font-size: 36px;
  color: #000000;
  border-bottom: 3px solid #e9b20e;
  display: inline-block;
  width: 100%;
  padding-bottom: 15px;
}
.servicios {

  padding: 40px 20px;
  font-family: Arial, sans-serif;
}

.services {
  padding: 80px 10%;
  background: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px;
}

.service-card {
  text-align: center;
  color: #555;
  padding: 30px 20px;
  border-radius: 10px;
  background: #ffffff;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(233, 178, 14, 0.2);
  border-color: #e9b20e;
  background: #fafafa;
}

.service-card img {
  width: 48px;
  margin-bottom: 15px;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.service-card:hover img {
  transform: scale(1.1) rotateY(5deg);
}

.service-card h3 {
  font-size: 20px;
  color: #000000;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: #e9b20e;
}

.service-card p {
  font-size: 15px;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.services-btn {
  margin-top: 50px;
  text-align: center;
}

.btn1 {
  padding: 12px 30px;
  background: linear-gradient(135deg, #e9b20e 0%, #d4a000 100%);
  border-radius: 6px;
  color: #000000;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(233, 178, 14, 0.3);
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn1::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn1:hover::after {
  width: 300px;
  height: 300px;
}

.btn1:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(233, 178, 14, 0.4);
  background: linear-gradient(135deg, #d4a000 0%, #c69400 100%);
}
.beneficios {
  padding: 60px 10%;
  background: #fff;
}

.beneficios-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
}

.beneficio-card {
  text-align: center;
  color: #333;
}

.beneficio-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 18px;
}

.beneficio-card h3 {
  font-size: 20px;
  margin-bottom: 6px;
  color: #0a0a0a;
}

.beneficio-card p {
  color: #7a7a7a;
  font-size: 15px;
}
.tecnicos {
  position: relative;
  min-height: 260px;
  background-image: url("../imagenes/aprende-a-crear-un-sistema-de-trabajo-noticias-infocif.webp"); 
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.tecnicos-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); 
  z-index: 1;
}

.tecnicos-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 60px 10%;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(320px, 520px);
  align-items: flex-start;
  gap: 40px;
  color: #fff;
}

.tecnicos-left h2,
.tecnicos-left h1 {
  font-size: 42px;
  font-weight: 300;
  margin-bottom: 10px;
}

.tecnicos-left strong {
  font-weight: 700;
}

.tecnicos-left span {
  font-size: 30px;
  opacity: 0.9;
}

.tecnicos-right {
  max-width: 520px;
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.90;
}

.tecnicos-right p {
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .tecnicos-content {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .tecnicos-right {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .pc-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .pc-text {
    max-width: 100%;
  }

  .pc-buttons {
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .beneficios-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.testimonios {
  position: relative;
  background-image: url("../imagenes/3148ffa6f449d411c8cfd363332cf6dd-2.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #ffffff;
  padding: 80px 0;
}

.testimonios-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 12, 25, 0.65);
  z-index: 1;
}

.testimonios-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.testimonios-title {
  font-size: 42px;
  margin-bottom: 30px;
  text-decoration: underline;
  text-underline-offset: 8px;
  color: #fff;
  animation: fadeInUp 0.6s ease-out;
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
}

.testimonio-card {
  padding: 30px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out backwards;
}

.testimonio-card:nth-child(1) { animation-delay: 0.1s; }
.testimonio-card:nth-child(2) { animation-delay: 0.2s; }
.testimonio-card:nth-child(3) { animation-delay: 0.3s; }

.testimonio-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(233, 178, 14, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(233, 178, 14, 0.2);
}

.testimonio-card .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e9b20e 0%, #d4a000 100%);
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(233, 178, 14, 0.3);
  transition: transform 0.3s ease;
}

.testimonio-card:hover .avatar {
  transform: scale(1.1);
}

.avatarimg {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.testimonio-card blockquote {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 18px;
  font-style: italic;
}

.testimonio-nombre {
  font-weight: 700;
  margin-bottom: 6px;
  color: #e9b20e;
}

.testimonio-rol {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 900px) {
  .testimonios-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .testimonios {
    padding: 60px 0;
  }
}

/* WhatsApp flotante */

@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;
  }
}

/* Slider Antes y Después */
.before-after-wrapper {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
  text-align: center;
}

.slider-title {
  font-size: 42px;
  margin-bottom: 40px;
  color: #000000;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.before-after-container {
  max-width: 900px;
  margin: 0 auto;
}

.before-after-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  cursor: col-resize;
  user-select: none;
  background: #f5f5f5;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.before-after-slider img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  object-fit: cover;
}

.img-after {
  width: 100%;
  height: auto;
  display: block;
}

.img-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.img-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

iframe {
  aspect-ratio: 16/9;
}

.video-container {
  margin: 2rem;
  max-height: 300px;
}

img {
  display: block;
  max-width: 100%;
}

main {
  display: grid;
  place-items: center;
  min-height: 100vh;
}

.container {
  display: grid;
  place-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  --position: 50%;
  margin: 80px auto;
  max-width: 900px;
}

.container h2 {
  font-size: 42px;
  margin-bottom: 40px;
  color: #000000;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-align: center;
  grid-column: 1 / -1;
  width: 100%;
}

.image-container {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  position: relative;
  margin: 0 auto;
}


.container-all{
    width: 100%;
    background: #ffffff;
    padding: 80px 20px;
}

.content{
    width: 100%;
    max-width: 1000px;
    background: #ffffff;
    margin: 0 auto;
    position: relative;
}

.container-all h1{
    font-family: 'Bangers', cursive;
    letter-spacing: 2px;
    font-size: 60px;
    text-align: center;
    position: relative;
    top: 50px;
    font-weight: 100;
}

.container-all h1 b{
    color: #0683de;
}

.container-all h2 {
  font-size: 42px;
  margin-bottom: 40px;
  color: #000000;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-align: center;
  margin-top: 80px;
}

.content {
  max-width: 800px;
  margin: 0 auto;
}

.twentytwenty-container {
  max-width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.twentytwenty-container img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .container-all h2 {
    font-size: 32px;
    margin-bottom: 30px;
  }
}

/* Ajustes para móviles y iPhone XR */
@media (max-width: 430px) {
  .hero {
    background-attachment: scroll !important;
    background-position: top center !important;
    background-size: 205% 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.7rem;
  }

  .main-nav li a {
    font-size: 0.84rem;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 50vh;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
}