/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Variables CSS para personalización */
  :root {
    --primary-color: #00d1ff;       /* Neón azul */
    --secondary-color: #0a0a0a;       /* Fondo oscuro */
    --accent-color: #ff0066;          /* Neón rosa */
    --text-color: #e0e0e0;
    --bg-glass: rgba(255, 255, 255, 0.1);
    --border-glass: rgba(255, 255, 255, 0.2);
    --transition-speed: 0.3s;
    --color-boton:#1103EF;
  }
  
  /* Fuente global */
  body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--secondary-color);
  }
  
  /* Preloader estilo moderno */
  #preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .loader {
    border: 8px solid rgba(255, 255, 255, 0.1);
    border-top: 8px solid var(--primary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
  }
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  /* Animación Fade Down para secciones */
  .fade-down {
    opacity: 0;
    animation: fadeDown 1s forwards;
  }
  @keyframes fadeDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* Navbar */
  header {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
    position: fixed;
    width: 100%;
    z-index: 999;
  }
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
  }
  .navbar .logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    letter-spacing: 2px;
  }
  .nav-links {
    list-style: none;
    display: flex;
  }
  .nav-links li {
    margin-left: 2rem;
  }
  .nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color var(--transition-speed) ease;
  }
  .nav-links a:hover {
    color: var(--primary-color);
  }
  
  /* Hamburger para móviles */
  .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
  }
  .hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin-bottom: 4px;
    border-radius: 3px;
  }
  
  /* Sección Hero */
  .hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 110%;
    height: 110%;
    background-image: url('../assets/images/perfil_nano.jpg'); /* Imagen de fondo */
    background-size: cover;
    background-position: center;
    filter: brightness(0.5);
    animation: panBackground 30s linear infinite;
    z-index: 0;
  }
  @keyframes panBackground {
    0% { transform: scale(1) translateX(0); }
    50% { transform: scale(1.05) translateX(-10%); }
    100% { transform: scale(1) translateX(0); }
  }
  .hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 0 1rem;
  }
  .hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(0, 209, 255, 0.7);
  }
  .hero p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 5px rgba(255, 0, 102, 0.7);
  }
  .btn {
    background: var(--primary-color);
    color: #fff;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 30px;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    transition: background var(--transition-speed) ease, transform 0.3s ease;
    text-decoration: none;
  }
  .btn:hover {
    background: var(--accent-color);
    transform: scale(1.05);
  }
  
  /* Descripción de "Sobre Mí" con efecto typewriter */
  .parafo-descripcion {
    text-align: justify;
    font-size: 1.1rem;
    line-height: 1.8;
    min-height: 100px;
  }
  
  /* Secciones Generales */
  .section {
    padding: 4rem 2rem;
    background: rgba(10, 10, 10, 0.8);
    margin: 2rem auto;
    border-radius: 15px;
    max-width: 1200px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
  }

  .container {
    max-width: 1100px;
    margin: auto;
  }
  .section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
  }
  
  /******************** Proyectos*************************** */
    /* Tabs */
    .tabs-proyectos {
      display: flex;
      justify-content: center;
      gap: 1rem;
      margin: 2rem auto;
      flex-wrap: wrap;
    }
    .tab-button-proy {
      padding: 0.75rem 1.5rem;
      background: #f0f0f5;
      color: #333;
      border: none;
      border-radius: 0.5rem;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.3s ease, color 0.3s ease;
    }
    .tab-button-proy.active {
      background: #005fa3;
      color: #fff;
      box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }
  
    /* Grid container */
    .projects-container {
      display: none;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 2rem;
      padding: 2rem;
      background: #fff;
      border-radius: 1rem;
      box-shadow: 0 4px 20px rgba(0,0,0,0.05);
      margin-top: 1rem;
    }
    .projects-container.active {
      display: grid;
    }
  
    /* Card */
    .project-card {
      background: linear-gradient(135deg, #eaf2fb 0%, #ffffff 100%);
      border-radius: 1rem;
      overflow: hidden;
      box-shadow: 0 8px 25px rgba(0,0,0,0.05);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      display: flex;
      flex-direction: column;
    }
    .project-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 16px 40px rgba(0,0,0,0.1);
    }
    .project-card img {
      width: 100%;
      height: 160px;
      object-fit: cover;
    }
    .project-card-content {
      padding: 1.5rem;
      flex: 1;
      display: flex;
      flex-direction: column;
    }
    .project-card-content h3 {
      margin: 0 0 0.5rem;
      font-size: 1.4rem;
      color: #005fa3;
    }
    .project-card-content p {
      flex: 1;
      margin: 0 0 1rem;
      color: #555;
      font-size: 0.95rem;
      line-height: 1.5;
    }
    .project-card-content a {
      align-self: flex-start;
      background: #005fa3;
      color: #fff;
      padding: 0.6rem 1.2rem;
      border-radius: 0.5rem;
      text-decoration: none;
      font-weight: 600;
      transition: background 0.3s ease;
    }
    .project-card-content a:hover {
      background: #004480;
    }
  
    @media (max-width: 600px) {
      .projects-container { padding: 1rem; }
      .project-card-content h3 { font-size: 1.2rem; }
    }
  
  /* Tecnologías */
  .tech-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    list-style: none;
  }
  .tech-list li {
    background: var(--color-boton);
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    transition: transform 0.2s ease;
  }
  .tech-list li:hover {
    transform: scale(1.05);
  }
  
/* Estilos Modernos y Animados para el Formulario */

/* Contenedor del formulario */
.form-container {
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
  }
  
  /* Grupo de campos (Floating Labels) */
  .form-group {
    position: relative;
    margin-bottom: 2rem;
  }
  
  /* Estilos para inputs, textarea y select */
  .form-group input,
  .form-group textarea,
  .form-group select {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-bottom: 2px solid var(--border-glass);
    outline: none;
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }
  
  /* Efecto focus para inputs, textarea y select */
  .form-group input:focus,
  .form-group textarea:focus,
  .form-group select:focus {
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 209, 255, 0.3);
  }
  
  /* Floating Labels */
  .form-group label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    transition: all 0.3s ease;
  }
  
  /* Cuando el campo tiene foco o contenido */
  .form-group input:focus + label,
  .form-group input:not(:placeholder-shown) + label,
  .form-group textarea:focus + label,
  .form-group textarea:not(:placeholder-shown) + label,
  .form-group select:focus + label,
  .form-group select:not(:placeholder-shown) + label {
    top: 0;
    left: 0.8rem;
    font-size: 0.8rem;
    color: var(--primary-color);
    background: rgba(10, 10, 10, 0.8);
    padding: 0 0.3rem;
  }
  
  /* Ajuste para el select para mostrar la etiqueta flotante correctamente */
  .select-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D'10'%20height%3D'10'%20viewBox%3D'0%200%2010%2010'%20xmlns%3D'http://www.w3.org/2000/svg'%3E%3Cpath%20d%3D'M0,0l5,5l5-5H0z'%20fill%3D'%23fff'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 10px;
  }
  
  /* Fieldset para grupo de radio buttons */
  fieldset.form-group {
    border: none;
    margin-bottom: 2rem;
    padding: 0;
  }
  
  fieldset.form-group legend {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: bold;
  }
  
  /* Radio Group */
  .radio-group {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
  }
  
  .radio-group input[type="radio"] {
    margin-right: 0.5rem;
  }
  
  /* Botón de envío con animación (ya existente) */
  .submit-btn {
    align-self: center;
    padding: 0.8rem 2rem;
    background: var(--primary-color);
    border: none;
    border-radius: 30px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: background var(--transition-speed) ease, transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .submit-btn:hover {
    background: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .parrafo-contato{
    text-align: center;
  }
  
  
  
  /* Footer */
  footer {
    background: rgba(10, 10, 10, 0.9);
    color: #aaa;
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid var(--border-glass);
  }
  
  /* Botón de WhatsApp flotante con diseño mejorado */
  .whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
  }
  .whatsapp-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  }
  
  /* Modal de Chat Bot */
  .modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
  }
  .modal-content {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  }
  .modal-content h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
  }
  .modal-content p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
  }
  .modal-buttons {
    display: flex;
    justify-content: space-around;
  }
  .modal-buttons .btn {
    width: 45%;
  }
  
  /* Responsive para menú móvil */
  @media(max-width: 768px) {
    .nav-links {
      position: fixed;
      right: 0;
      height: 100vh;
      top: 0;
      background: rgba(10, 10, 10, 0.9);
      flex-direction: column;
      align-items: center;
      width: 250px;
      transform: translateX(100%);
      transition: transform var(--transition-speed) ease;
      padding-top: 4rem;
      box-shadow: -4px 0 15px rgba(0,0,0,0.3);
    }
    .nav-links li {
      margin: 1.5rem 0;
    }
    .nav-links.active {
      transform: translateX(0);
    }
    .hamburger {
      display: flex;
    }
  }
  
/*Seccion servicios*/

.tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem auto 1rem;
  flex-wrap: wrap;
}

.tab-button {
  padding: 0.75rem 1.5rem;
  border: none;
  background-color: #ddd;
  border-radius: 0.75rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.tab-button.active {
  background-color: #008cdd;
  color: #fff;
}

.servicios-container {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  padding: 2rem;
  background-color: #f5f7fa;
}

.servicios-container.active {
  display: grid;
}

.servicio-card {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.12);
}

.servicio-card h3 {
  font-size: 1.6rem;
  color: #1a1a1a;
  margin: 1.5rem 1.5rem 0.5rem;
}

.servicio-card .precio {
  font-size: 1.2rem;
  color: #008cdd;
  font-weight: 700;
  margin: 0 1.5rem 1rem;
}

.servicio-card ul {
  margin: 0 1.5rem 1rem;
  padding-left: 1.2rem;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.5;
}

.servicio-card ul li {
  margin-bottom: 0.4rem;
  list-style: disc;
}

.servicio-card a {
  margin: 0 1.5rem 1.5rem;
  background-color: #008cdd;
  color: #fff;
  padding: 0.8rem 1rem;
  text-align: center;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.servicio-card a:hover {
  background-color: #0071b3;
}

@media (max-width: 600px) {
  .servicios-container {
    padding: 2rem 1rem;
  }

  .servicio-card h3 {
    font-size: 1.3rem;
  }

  .servicio-card .precio {
    font-size: 1.1rem;
  }
}

  
