:root {
  --blue: #0066ff;
  --white: #ffffff;
  --black: #1111 /* HERO */ .hero {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0px 60px 40px 60px;
    margin-top: -120px;
    background: linear-gradient(170deg, rgb(0, 89, 255) 50%, white 50%);
    color: white;
    min-height: 80vh;
    position: relative;
    overflow: hidden;
    gap: 40px;
  }
  y: #777;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* Container para centrar contenido */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Mejoras de accesibilidad */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus visible para mejor accesibilidad */
*:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Estilos para enlaces */
a {
  color: var(--blue);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

/* Enlaces externos con indicador */
a[target="_blank"]::after {
  content: "\f35d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: 4px;
  font-size: 0.8em;
  opacity: 0.7;
}

a[target="_blank"]:hover::after {
  opacity: 1;
}

/* Enlaces en texto con subrayado animado */
p a,
.footer a {
  display: inline-block;
  position: relative;
  font-weight: 500;
}

p a::before,
.footer a::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), #0052cc);
  transition: width 0.3s ease;
}

p a:hover::before,
.footer a:hover::before {
  width: 100%;
}

p a:hover,
.footer a:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

/* Animación de flotación para la imagen */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px) scale(2.2);
  }
  50% {
    transform: translateY(-20px) scale(2.2);
  }
}

body {
  color: var(--black);
  background-color: var(--white);
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: var(--blue);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo img {
  width: 120px;
}
.logo {
  font-size: 1.5em;
  font-weight: 700;
}
.logo span {
  font-weight: 400;
}
nav a {
  color: white;
  margin-left: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}
nav a:hover {
  opacity: 0.8;
}

/* HERO */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px 60px 60px 60px;
  background: linear-gradient(170deg, var(--blue) 50%, white 50%);
  color: white;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-text {
  flex: 1.2;
  z-index: 2;
  margin-top: -300px;
  text-align: left;
  padding-right: 40px;
}

.hero-img {
  flex: 0.8;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 3;
  position: relative;
  margin-top: -300px;
}

.hero-img img {
  width: 750px;
  height: auto;
  animation: float 4s ease-in-out infinite;
  transform-origin: center;
}
.hero-text h1 {
  font-size: 3em;
  margin-bottom: 20px;
  line-height: 1.1;
  font-weight: 600;
}
.hero-text .bold {
  font-weight: 800;
}
.hero-text p {
  margin-bottom: 30px;
  font-size: 1.2em;
  opacity: 0.95;
  line-height: 1.4;
}
.store-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.store-btn {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px 20px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 140px;
  text-align: center;
  backdrop-filter: blur(10px);
}
.store-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.hero-img img {
  width: 260px;
}

/* SECCIONES */
section {
  padding: 60px 20px;
  text-align: center;
}
section h2 {
  font-size: 2.2em;
  margin-bottom: 30px;
  color: var(--black);
}
.services {
  background: white;
  padding-top: 80px;
}
.services-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  flex-wrap: wrap;
}
.services-phone {
  flex-shrink: 0;
}
.services-content img {
  width: 500px;
  transition: all 0.5s ease;
  opacity: 1;
}
.services-content img.slide-out {
  transform: translateX(100px);
  opacity: 0;
}
.services-content img.slide-in {
  transform: translateX(-100px);
  opacity: 0;
}
.services-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  text-align: left;
}
.service-item {
  background: white;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.service-item:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.1);
}
.service-item.active {
  border-color: var(--blue);
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f3ff 100%);
}
.service-title {
  display: block;
  font-weight: 600;
  font-size: 1.1em;
  color: var(--black);
  margin-bottom: 8px;
}

.service-title i {
  color: var(--blue);
  margin-right: 10px;
  font-size: 1.1em;
}
.service-desc {
  display: block;
  color: var(--gray);
  font-size: 0.9em;
  line-height: 1.4;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}
.service-item.active .service-desc {
  opacity: 1;
  max-height: 100px;
}

/* PLANES */
.plans {
  background: #f9f9f9;
}
.plan-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.plan {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  width: 300px;
}
.plan.pro {
  background: white;
  color: var(--black);
  border: 3px solid var(--blue);
  position: relative;
}
.plan.pro::before {
  content: "Más Popular";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: white;
  padding: 5px 20px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 600;
}
.plan h3 {
  font-size: 1.5em;
  color: var(--blue);
  margin-bottom: 20px;
}
.plan ul {
  text-align: left;
  list-style: none;
  line-height: 1.8em;
}
.plan ul li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}
.plan ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4caf50;
  font-weight: bold;
}
.plan ul li.disabled::before {
  content: "✗";
  color: #f44336;
}
.plan.pro ul li::before {
  color: var(--blue);
}
.plan.pro ul li.disabled::before {
  color: #ccc;
}
.plan .disabled {
  opacity: 0.5;
}
.plan .price {
  font-size: 2em;
  margin: 20px 0;
}
.plan .price small {
  font-size: 0.4em;
  color: #666;
  font-weight: normal;
}
.plan button {
  background: #555;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  width: 100%;
}
.plan button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  background: #444;
}
.pro {
  background: white;
  color: var(--black);
  border: 3px solid var(--blue);
}
.pro button {
  background: var(--blue);
  color: white;
  font-weight: 600;
}
.pro button:hover {
  background: #0052cc;
}

/* DEV */
.devs {
  background: var(--blue);
  color: white;
  padding: 80px 60px;
  position: relative;
}

.devs-content {
  position: relative;
  z-index: 2;
}

.devs h2 {
  color: white;
  margin-bottom: 20px;
  text-align: left;
  font-size: 2.5em;
  position: relative;
}

.devs h2::before {
  content: "\f121";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 15px;
  color: #ffdd00;
  font-size: 0.8em;
}

.devs p {
  color: white;
  margin-bottom: 30px;
  text-align: left;
  font-size: 1.2em;
  opacity: 0.95;
  line-height: 1.6;
}

.devs .timing {
  color: white;
  margin-bottom: 40px;
}

.devs small {
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
  display: block;
  text-align: left;
  margin-top: 20px;
}

.devs-content {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-top: 40px;
}

.devs-text {
  flex: 1;
}

.devs-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.devs-visual img {
  width: 100%;
  max-width: 450px;
  border-radius: 15px;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.devs-visual img:hover {
  transform: scale(1.05);
}

.timing {
  list-style: none;
  text-align: left;
  max-width: 100%;
}

.timing li {
  padding: 12px 0 12px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.1em;
  position: relative;
  transition: all 0.3s ease;
  animation: fade-slide 0.8s ease-out calc(var(--delay, 0) * 0.1s) both;
}

.timing li:nth-child(1) {
  --delay: 2;
}
.timing li:nth-child(2) {
  --delay: 3;
}
.timing li:nth-child(3) {
  --delay: 4;
}
.timing li:nth-child(4) {
  --delay: 5;
}
.timing li:nth-child(5) {
  --delay: 6;
}

.timing li::before {
  content: "\f017";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: #ffdd00;
  font-size: 1em;
  animation: clock-tick 2s ease-in-out infinite;
}

@keyframes clock-tick {
  0%,
  50%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(15deg);
  }
  75% {
    transform: rotate(-15deg);
  }
}

.timing li:hover {
  padding-left: 35px;
  color: #ffdd00;
  background: rgba(255, 221, 0, 0.1);
  border-radius: 8px;
  transform: translateX(10px);
}

.timing li:last-child {
  border-bottom: none;
}

/* CONTACTO */
.contact {
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f1ff 100%);
  padding: 80px 20px;
}

.contact h2 {
  color: var(--blue);
  margin-bottom: 10px;
  font-size: 2.5em;
}

.contact p {
  color: var(--gray);
  margin-bottom: 40px;
  font-size: 1.1em;
}

.contact form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 90%;
  max-width: 500px;
  margin: 0 auto;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 15px 20px;
  border-radius: 12px;
  border: 2px solid #e0e6ff;
  background: white;
  font-size: 1em;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.1);
  transform: translateY(-2px);
}

.contact textarea {
  min-height: 120px;
  resize: vertical;
}

.contact button {
  background: linear-gradient(135deg, var(--blue) 0%, #0052cc 100%);
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 1.1em;
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.contact button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
  background: linear-gradient(135deg, #0052cc 0%, var(--blue) 100%);
}
.footer {
  margin-top: 30px;
  color: var(--gray);
  font-size: 0.85em;
}

.footer-nav {
  margin-top: 15px;
}

.footer-nav a {
  color: var(--blue);
  text-decoration: none;
  font-size: 0.9em;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #004499;
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 15px 20px;
  }
  nav {
    margin-top: 10px;
  }
  nav a {
    margin-left: 15px;
    font-size: 0.9em;
  }
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 0px 20px 20px 20px;
    margin-top: -40px;
    background: var(--blue);
    min-height: auto;
    align-items: center;
    gap: 15px;
  }
  .hero-text {
    max-width: 100%;
    margin-bottom: 10px;
    margin-top: 60px;
    text-align: center;
    padding-right: 0px;
    flex: 1;
  }
  .hero-text h1 {
    font-size: 2.2em;
  }
  .hero-img {
    justify-content: center;
    margin-top: 0;
  }
  .hero-img img {
    display: none;
  }
  .services-content {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }
  #service-image {
    width: 300px;
  }
  .services-list {
    max-width: 100%;
  }
  .plan-container {
    gap: 20px;
  }
  .plan {
    width: 100%;
    max-width: 350px;
  }
  .devs {
    background: var(--blue);
    padding: 60px 20px;
  }
  .devs-content {
    flex-direction: column;
    gap: 30px;
  }
  .devs h2 {
    text-align: center;
  }
  .devs p {
    text-align: center;
  }
  .devs-visual img {
    max-width: 300px;
  }
  .timing {
    max-width: 100%;
  }
  .store-buttons {
    justify-content: center;
  }
}
