/* === HERO === */
.hero {
  background: linear-gradient(to bottom, #fdfdfd, #eaeaea);
  padding: 6rem 1rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: #111;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  color: #444;
  margin-bottom: 2rem;
}

.hero .cta-btn {
  padding: 1rem 2rem;
  font-size: 1rem;
  background-color: #005b94;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.hero .cta-btn:hover {
  background-color: #004c7c;
}

/* === CARRUSEL DE PROYECTOS === */
.carousel {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  margin-top: 2rem;
}

.carousel-container {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 1rem;
  text-align: center;
}

.carousel-slide img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #005b94;
  z-index: 1;
}

.carousel-arrow.left {
  left: 0.5rem;
}

.carousel-arrow.right {
  right: 0.5rem;
}

.carousel-buttons {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.carousel-buttons .carousel-button {
  width: 12px;
  height: 12px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-button.active,
.carousel-button:hover {
  background-color: #005b94;
}

/* === CTA: ¿Listo para tener una web profesional? === */
.cta-profesional {
  background-color: #005b94;
  color: #fff;
  padding: 5rem 1rem;
  text-align: center;
}

.cta-profesional h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-profesional p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-profesional a {
  background: #e8aa00;
  color: #000;
  padding: 1rem 2rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.cta-profesional a:hover {
  background: #d19b00;
}

/* === RESPONSIVE AJUSTES === */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .cta-profesional h2 {
    font-size: 1.75rem;
  }

  .carousel-arrow {
    font-size: 1.5rem;
  }
}

/* WhatsApp flotante */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 50px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  text-decoration: none;
  font-size: 1rem;
  z-index: 1000;
  transition: background 0.3s;
}

.floating-whatsapp-btn:hover {
  background: #1ebc5c;
}

.promo-section {
  background: linear-gradient(to right, #f7f7f7, #ffffff);
  padding: 3rem 1rem;
  text-align: center;
}

.promo-container {
  max-width: 700px;
  margin: 0 auto;
}

.promo-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #222;
}

.promo-list {
  list-style: none;
  padding: 0;
  font-size: 1.2rem;
  line-height: 2;
  color: #333;
}


/* === POPUP DESKTOP === */
.popup.desktop-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 1000px;
  height: 600px;
  transform: translate(-50%, -50%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
}

.popup-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.popup-content {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  max-width: 500px;
  width: 90%;
}

.popup h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.popup-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-popup {
  background-color: #d32f2f;
  color: white;
  padding: 0.75rem;
  border-radius: 10px;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.1rem;
  transition: background-color 0.2s;
}

.btn-popup:hover {
  background-color: #b71c1c;
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: 50%;
  transition: background 0.3s;
}

.popup-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

.hidden {
  display: none !important;
}

.mobile-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background-color: #d32f2f;
  color: white;
  font-size: 1.5rem;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  cursor: pointer;
  text-decoration: none;
  display: none;
}

.mobile-offer {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 260px;
  background-color: white;
  border: 2px solid #d32f2f;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  padding: 1rem;
  animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.mobile-offer-content {
  text-align: center;
  position: relative;
}

.mobile-offer h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #222;
}

.mobile-close {
  position: absolute;
  top: 5px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: #555;
  cursor: pointer;
}

.popup-buttons .btn-popup {
  background-color: #d32f2f;
  color: white;
  padding: 0.5rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 0.95rem;
  display: block;
  margin: 0.5rem 0;
  transition: background-color 0.2s;
}

.popup-buttons .btn-popup:hover {
  background-color: #b71c1c;
}

@media screen and (max-width: 768px) {
  .popup.desktop-popup {
    display: none !important;
  }
  .mobile-popup {
    display: block !important;
  }
}

.form-group select {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  color: #000;
  appearance: none;
  background-image: url('../anuncio-popup.png');
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  transition: border 0.3s ease;
}

.form-group select:focus {
  border-color: #157245;
  outline: none;
}

.form-group input[type="tel"] {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  color: #000;
  transition: border 0.3s ease;
}

.form-group input[type="tel"]:focus {
  border-color: #157245;
  outline: none;
}

form fieldset {
  border: 2px solid #eee;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

form legend {
  font-size: 1.3rem;
  font-weight: bold;
  color: #004080;
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  .form-group select {
    font-size: 1rem;
  }
}

/* === HERO PRINCIPAL === */
.hero {
  background: linear-gradient(to bottom, #fdfdfd, #eaeaea);
  text-align: center;
  padding: 5rem 1rem 3rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #111;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* HERO PROMOCIONAL */
/* === HERO PROMOCIONAL === */
.hero-promocional {
  background: repeating-linear-gradient(
    to right,
    #b12120 0%,     /* rojo */
    #b12120 20%,
    #005b94 20%,    /* azul */
    #005b94 40%,
    #8e24aa 40%,    /* violeta */
    #8e24aa 60%,
    #157245 60%,    /* verde */
    #157245 80%,
    #e8aa00 80%,    /* amarillo */
    #e8aa00 100%
  );
  text-align: center;
  padding: 3.75rem 1rem 2.25rem; /* Reducción del 25% */
  color: white;
}

/* Contenedor del texto */
.hero-promocional .hero-text {
  margin-bottom: 2rem;
}

/* Título promocional */
.hero-promocional h2.tictac {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
  font-weight: bold;
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.3s;
}

/* Subtítulo */
.hero-promocional p.tictac {
  font-size: clamp(1.2rem, 3.5vw, 2rem);
  margin: 0.5rem 0;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.5s;
}

/* Reloj */
.reloj {
  display: inline-block;
  background: linear-gradient(145deg, #2b2b2b, #1a1a1a);
  border: 4px solid #5c4033;
  border-radius: 12px;
  padding: 0.5rem 1rem;
  color: #fff;
  font-family: 'Courier New', monospace;
  font-size: 2rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
  margin-top: 1rem;
}

/* Botones */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.hero-buttons a {
  padding: 1rem 2rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  color: white;
  transition: background-color 0.3s ease;
  display: inline-block;
}

/* Botón 1: eliminado */

/* Botón 2: Amarillo */
.secondary-btn:nth-of-type(1) {
  background-color: #e8aa00;
  color: #000;
}
.secondary-btn:nth-of-type(1):hover {
  background-color: #d19b00;
}

/* Botón 3: Verde */
.secondary-btn:nth-of-type(2) {
  background-color: #157245;
}
.secondary-btn:nth-of-type(2):hover {
  background-color: #125a38;
}

/* Botón 4: Rojo */
.secondary-btn:nth-of-type(3) {
  background-color: #d32f2f;
}
.secondary-btn:nth-of-type(3):hover {
  background-color: #b71c1c;
}

/* Botón 5: Azul (reemplaza violeta) */
.violet-btn {
  background-color: #005b94;
}
.violet-btn:hover {
  background-color: #004476;
}


/* Animación entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-promocional h2.tictac {
    font-size: 2.2rem;
  }

  .hero-buttons a {
    width: 100%;
    text-align: center;
  }
}

