/* ===== FUENTE Y ESTILO BASE ===== */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(to top, #0d0d0d, #1a1a2e);
  color: white;
}

h1, h2, h3, .logo-arriba, .logo-abajo {
  font-family: 'Oswald', sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* ===== HEADER ===== */
header {
  text-align: center;
  padding: 100px 20px 60px;
  background: url('background.jpg') repeat;
  background-size: cover;
  animation: estrellas 60s linear infinite;
  position: relative;
}

@keyframes estrellas {
  0% { background-position: 0 0; }
  100% { background-position: 1000px 0; }
}

.logo-arriba {
  font-size: 48px;
  font-weight: bold;
  color: #00bfff;
}

.logo-abajo {
  font-size: 80px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 2px 2px 10px #00bfff;
}

.cta {
  display: inline-block;
  margin-top: 20px;
  background-color: #00bfff;
  padding: 12px 20px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.cta:hover {
  background-color: #007acc;
}

/* ===== NAVBAR ===== */
nav {
  background-color: #111;
  text-align: center;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav a {
  margin: 0 15px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #00bfff;
}

/* ===== SECCIONES ===== */
section {
  padding: 50px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

h2 {
  font-size: 32px;
  color: #00bfff;
  margin-bottom: 30px;
  text-align: center;
}

/* ===== BLOQUES ===== */
.bloque {
  background-color: #1f1f1f;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 0 10px rgba(0,191,255,0.2);
  transition: transform 0.3s, opacity 0.3s;
}

.bloque:hover {
  transform: scale(1.02);
  opacity: 0.98;
}

.bloque h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.bloque p {
  font-size: 15px;
  line-height: 1.5;
}

/* ===== TEXTO Y LISTAS ===== */
ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

ul li {
  margin: 8px 0;
  padding-left: 25px;
  position: relative;
}

ul li::before {
  content: '✔️';
  position: absolute;
  left: 0;
}


.rebaja:hover {
  transform: scale(1.05);
}





/* ===== ANIMACIONES EN SCROLL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}



/* ANIMACIÓN DE ENTRADA */
#intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, #0d0d0d 0%, #000000 100%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeOut 1s ease 2.8s forwards;
}

.intro-text h1 {
  font-size: 80px;
  text-align: center;
  animation: zoomOut 2.5s ease forwards;
  font-family: 'Oswald', sans-serif;
  text-shadow: 0 0 20px #67ffcc;
}

.intro-text p {
  font-size: 20px;
  margin-top: 10px;
  color: #67ffcc;
  font-family: 'Inter', sans-serif;
  opacity: 0;
  animation: fadeInText 1s ease 1.2s forwards;
}

/* Animaciones */
@keyframes zoomOut {
  0% {
    transform: scale(2);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes fadeInText {
  to {
    opacity: 1;
  }
}


.servicio button {
  background-color: #67ffcc;
  color: #000;
  padding: 15px;
  width: 100%;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  text-align: left;
  transition: background 0.3s ease;
}

.servicio button:hover {
  background-color: #55e6b8;
}
.subtitulo-animado {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 1.5s ease-out 1 forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonios {
  padding: 80px 20px;
  background: linear-gradient(to bottom, #0d0d0d, #1a1a1a);
  color: white;
  text-align: center;
}

.testimonios .seccion-titulo {
  font-family: 'Oswald', sans-serif;
  font-size: 36px;
  color: #67ffcc;
  margin-bottom: 40px;
}

.slider {
  position: relative;
  max-width: 700px;
  margin: 0 auto 50px;
  overflow: hidden;
  min-height: 250px; /* para evitar salto cuando se ocultan */
}


.slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s;
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}


.tarjeta3d:hover {
  transform: perspective(600px) rotateY(3deg) scale(1.02);
}

.avatar {
  width: 60px;
  height: 60px;
  background: #67ffcc;
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 24px;
  margin: 0 auto 10px;
}

blockquote {
  font-style: italic;
  margin: 20px auto;
  max-width: 600px;
  line-height: 1.6;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 32px;
  color: #67ffcc;
  cursor: pointer;
  transition: color 0.3s ease;
}

.prev:hover, .next:hover {
  color: #00ffff;
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

.valoracion-form {
  max-width: 600px;
  margin: 0 auto;
}

.valoracion-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.valoracion-form input,
.valoracion-form textarea {
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  background: #111;
  color: white;
}

.valoracion-form button {
  background: #67ffcc;
  color: #000;
  font-weight: bold;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.valoracion-form button:hover {
  background: #4de5b2;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  color: #67ffcc;
  cursor: pointer;
  padding: 8px;
  font-weight: bold;
  text-decoration: none;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #1a1a1a;
  border: 1px solid #333;
  min-width: 180px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  z-index: 1000;
}

.dropdown-content a {
  color: #fff;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  transition: background 0.3s;
}

.dropdown-content a:hover {
  background-color: #333;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* NAVBAR */
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  background: #0d0d0d;
  padding: 15px;
  position: relative;
  z-index: 1001;
}

.main-nav a {
  color: #67ffcc;
  text-decoration: none;
  font-weight: 600;
}

.servicio {
  margin-bottom: 30px;
}

.servicio button {
  background-color: #1a1a1a;
  color: #67ffcc;
  padding: 12px 20px;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background 0.3s ease, transform 0.3s ease;
  width: 100%;
  text-align: left;
  font-weight: 600;
}

.servicio button:hover {
  background-color: #222;
  transform: scale(1.02);
}

.contenido-servicio {
  display: none;
  padding: 15px 20px;
  background: #0f0f0f;
  border-left: 4px solid #67ffcc;
  border-radius: 8px;
  margin-bottom: 20px;
  color: white;
  animation: fadeIn 0.3s ease-in-out;
}

.precio-anterior {
  color: #888;
  text-decoration: line-through;
  font-weight: 500;
}

.precio-actual {
  color: #00ffc8;
  font-weight: bold;
  font-size: 20px;
}

.rebaja {
  color: #d12f2f;
  font-weight: bold;
}



.formulario-section {
  background-color: #0e0e0e;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-card {
  background-color: #101010;
  padding: 50px;
  border-radius: 18px;
  max-width: 800px;
  width: 100%;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  color: white;
  animation: fadeIn 0.6s ease-in-out;
}

.form-title {
  text-align: center;
  font-size: 2.2rem;
  color: #00cfff;
  margin-bottom: 10px;
}

.form-subtext {
  text-align: center;
  color: #aaa;
  margin-bottom: 35px;
  font-size: 0.95rem;
  font-style: italic;
}

.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 25px;
}

.input-group label {
  margin-bottom: 6px;
  color: #ccc;
  font-weight: 500;
}

.input-group input,
.input-group textarea,
.input-group select {
  background-color: #161829;
  color: white;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 14px;
  font-size: 15px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: #777;
  font-style: italic;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
  border-color: #00cfff;
  outline: none;
  box-shadow: 0 0 12px rgba(0, 207, 255, 0.3);
}

.form-submit {
  text-align: center;
  margin-top: 20px;
}

.btn-enviar {
  padding: 14px 36px;
  background-color: #00cfff;
  color: #000;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-enviar:hover {
  background-color: #00b6e2;
  transform: scale(1.04);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* Ocultar en móvil */
@media (max-width: 768px) {
  .bloque-logo-animado {
    display: none;
  }
}
/* CONTENEDOR DEL TEXTO TYPING */
.typing-container {
  text-align: center;
  margin-top: 20px;
  font-family: 'Segoe UI', sans-serif;
  color: #67ffcc;
  font-size: 18px;
  font-weight: 600;
  height: 30px;
  overflow: hidden;
  text-shadow: 0 0 8px #00cfff, 0 0 12px rgba(103, 255, 204, 0.6);
}

/* TEXTO QUE SE ESCRIBE */
.typing-text {
  display: inline-block;
  white-space: nowrap;
  border-right: 2px solid #67ffcc;
  animation: blink-caret 0.75s step-end infinite;
}

/* ANIMACIÓN DE CURSOR PARPADEANTE */
@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: #67ffcc; }
}

/* RESPONSIVE PARA MÓVILES */
@media (max-width: 768px) {
  .typing-container {
    font-size: 20px;
  }
}

.servicio {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-in-out;
}

.servicio.visible {
  opacity: 1;
  transform: translateY(0);
}

/* OCULTAR MENÚ HAMBURGUESA EN PC */
@media screen and (min-width: 769px) {
  .menu-movil,
  .menu-icon,
  .menu-desplegable {
    display: none !important;
  }
}


/* SOLO AFECTA A MÓVIL */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  /* Animación de entrada DESACTIVADA en móvil */
  #intro-animation {
    display: none !important;
  }

  /* Header con partículas, estrellas y logo */
  header {
    background: #000;
    position: relative;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #00bfff;
    font-size: 1.8em;
    font-weight: bold;
    text-shadow: 0 0 10px #00bfff;
  }

  /* Partículas flotantes (puedes personalizar más esto con JavaScript o canvas si usas librerías) */
  .particles-js-canvas-el {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
  }

  /* Menú hamburguesa arriba a la izquierda */
  .mobile-menu-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 999;
    cursor: pointer;
  }

  .mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 75%;
    height: 100%;
    background: #111;
    color: white;
    padding: 40px 20px;
    transition: 0.3s ease;
    z-index: 9999;
  }

  .mobile-menu.open {
    left: 0;
  }

  .mobile-menu a {
    display: block;
    color: white;
    margin: 20px 0;
    text-decoration: none;
    font-size: 1.2em;
  }

  /* Redes sociales */
  .social-links {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 0.8em;
    text-align: right;
    z-index: 999;
  }

  .social-links img {
    height: 20px;
    margin-right: 5px;
    vertical-align: middle;
  }

  /* Secciones compactas */
  #nosotros, #servicios, #contacto, #testimonios {
    padding: 30px 15px;
    font-size: 0.95em;
    line-height: 1.4em;
  }

  /* Tarjetas de servicio como en PC */
  .servicio-box {
    background: #111;
    padding: 15px;
    margin: 15px 0;
    border-radius: 10px;
    box-shadow: 0 0 10px #00bfff55;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .servicio-box:hover {
    transform: scale(1.02);
    background-color: #191919;
  }

  .servicio-box p {
    display: none;
  }

  .servicio-box.active p {
    display: block;
    margin-top: 10px;
  }

  /* Scroll suave */
  html {
    scroll-behavior: smooth;
  }

  /* Footer atractivo */
  footer {
    background: #080808;
    color: white;
    text-align: center;
    padding: 30px 10px;
    font-size: 0.9em;
    border-top: 1px solid #222;
  }

  footer a {
    color: #00bfff;
    text-decoration: none;
  }
}


/* Añadido: animación mínima y ordenada para .servicio */
.servicio {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.servicio.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animación en hover para destacar sutilmente */
.servicio:hover {
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.2);
  transform: scale(1.02);
}

/* ===== RESPONSIVE UNIFICADO ===== */
@media screen and (max-width: 768px) {
  /* TITULOS */
  h1 {
    font-size: 28px;
  }
  h2 {
    font-size: 22px;
    line-height: 1.2;
    word-break: break-word;
    text-align: center;
  }
  h3 {
    font-size: 18px;
  }
  .form-title, .seccion-titulo {
    font-size: 24px;
    line-height: 1.2;
    word-break: break-word;
  }

  /* LOGOS */
  .logo-arriba {
    font-size: 36px;
  }
  .logo-abajo {
    font-size: 60px;
  }

  /* NAVBAR */
  nav a {
    display: block;
    margin: 10px 0;
  }

  /* SECCIONES Y BLOQUES */
  section {
    padding: 40px 10px;
  }
  .bloque {
    padding: 16px;
  }
  .contenido-servicio {
    font-size: 14px;
  }
  .servicio button {
    font-size: 15px;
    padding: 10px;
  }
  section#nosotros div {
    flex-direction: column !important;
    text-align: center;
  }
  section#nosotros img {
    margin: 0 auto;
    max-width: 70%;
  }

  /* OCULTAR ELEMENTOS EN MÓVIL */
  .ocultar-en-movil,
  .bloque-logo-animado,
  .main-nav,
  .hero,
  .pc-only {
    display: none !important;
  }

  /* MENÚ MÓVIL */
  .mobile-menu-icon {
    display: flex !important;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 9999;
    flex-direction: column;
    gap: 4px;
    background-color: #111;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 0 8px cyan;
  }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: -100%;
    width: 70%;
    height: 100%;
    background-color: #000e1f;
    transition: left 0.3s ease;
    z-index: 999;
    padding: 70px 20px;
    gap: 20px;
  }

  .mobile-menu a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    border-bottom: 1px solid #ffffff22;
    padding-bottom: 8px;
  }

  .mobile-menu.show {
    left: 0;
  }

  .mobile-header {
    position: relative;
    width: 100%;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }

  #particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
  }

  .mobile-logo {
    position: relative;
    z-index: 1;
    width: 140px;
    height: auto;
  }

  .mobile-section {
    padding: 20px;
    color: white;
  }

  .mobile-section h2 {
    font-size: 22px;
    color: #00e6ff;
    margin-bottom: 10px;
    text-align: center;
  }

  .mobile-section p {
    font-size: 16px;
    line-height: 1.5;
    text-align: justify;
    max-width: 95%;
    margin: 0 auto;
  }

  .servicios-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 10px;
  }

  .servicio {
    background: #111;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px #00ffff55;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-in-out;
  }

  .servicio.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .servicio h3 {
    color: cyan;
    margin-bottom: 8px;
    font-size: 18px;
  }

  .servicio p {
    color: white;
    font-size: 15px;
  }

  .solo-movil {
    display: block;
  }

  .typing-container {
    font-size: 20px;
  }

  body {
    overflow-x: hidden;
  }
}

/* ===== RESPONSIVE ESCRITORIO ===== */
@media screen and (min-width: 769px) {
  .mobile-menu,
  .mobile-menu-icon,
  .mobile-header,
  .solo-movil,
  .menu-movil,
  .menu-icon,
  .menu-desplegable,
  .mobile-menu a[href="#quienes-somos"] {
    display: none !important;
  }
}

@media screen and (max-width: 768px) {
  header:not(.mobile-header),
  nav:not(.mobile-menu),
  .main-nav,
  .menu-principal,
  .menu-escritorio {
    display: none !important;
  }
}
