/* 🌐 BASE */
html {
    scroll-behavior: smooth;
  }
  
  body {
    background: linear-gradient(135deg, #000000, #9fd4ff); /* Fondo */
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
    overflow-x: hidden;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.4); /* Mejora contraste */
  }
  
  /* 🌐 NAVBAR */
  .navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    transition: background 0.3s ease, box-shadow 0.3s ease;
  }
  .navbar a {
    color: #fff !important;
    font-weight: 500;
    transition: color 0.3s;
  }
  .navbar a:hover {
    color: #38bdf8 !important;
  }
  
  /* 🩺 HERO */
  .hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    padding: 50px;
  }
  
  .hero img {
    width: 320px;
    border-radius: 50%;
    border: 4px solid #0ea5e9;
    box-shadow: 0 0 30px #0ea5e9, 0 0 60px #75baf3;
    animation: float 4s ease-in-out infinite;
    transition: transform 0.4s;
    position: relative;
    z-index: 1;
  }
  .hero img:hover {
    transform: scale(1.05) rotate(2deg);
  }
  
  /* Efecto halo detrás de la imagen */
  .hero img::after {
    content: "";
    position: absolute;
    top: -15px;
    left: -15px;
    width: calc(100% + 30px);
    height: calc(100% + 30px);
    border-radius: 50%;
    background: radial-gradient(rgba(14, 165, 233, 0.3), transparent);
    z-index: -1;
  }
  
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
  }
  
  /* 🔘 BOTONES OPTIMIZADOS */
.btn-custom {
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: bold;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    will-change: transform; /* GPU para animaciones suaves */
}

.btn-info {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9));
    border: none;
    color: #fff;
}

.btn-info:hover {
    background: linear-gradient(90deg, #38bdf8, #0c96d6);
    box-shadow: 0 0 15px #75baf3;
    transform: scale(1.05); /* efecto suave al hover */
}
  
  /* 📊 STATS */
  .stats {
    margin-top: 60px;
  }
  .stat-box {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 20px #75baf3;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  .stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px #75baf3;
  }
  .stat-box h2 {
    color: #38bdf8;
    font-size: 2.5rem;
    font-weight: bold;
  }
  
  /* 🩹 SERVICIOS */
  #servicios .card {
    background: rgba(15, 23, 42, 0.9);
    border: none;
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
  }
  #servicios .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 25px #75baf3;
  }
  
  /* Línea animada superior en hover */
  #servicios .card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: #38bdf8;
    transition: width 0.4s ease;
  }
  #servicios .card:hover::before {
    width: 100%;
  }
  
  #servicios i {
    font-size: 2rem;
    color: #38bdf8;
  }
  
  /* ✉️ CONTACTO */
  #contacto form {
    background: rgba(15, 23, 42, 0.9);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.15);
    animation: fadeInUp 1s ease;
  }
  #contacto input,
  #contacto textarea {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid #38bdf8;
    transition: transform 0.2s ease;
  }
  #contacto input::placeholder,
  #contacto textarea::placeholder {
    color: #cbd5e1;
  }
  #contacto input:focus,
  #contacto textarea:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
    transform: scale(1.02);
  }
  
  /* 🦶 FOOTER */
  footer {
    background: rgba(15, 23, 42, 0.9);
    padding: 20px 0;
    text-align: center;
    border-top: 2px solid rgba(56, 189, 248, 0.3);
  }
  footer a {
    color: #38bdf8;
    margin: 0 10px;
    transition: color 0.3s;
    cursor: pointer;
  }
  footer a:hover {
    color: #0ea5e9;
  }
  
  /* 🪄 ACCESIBILIDAD */
  .btn-custom:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 3px;
  }
  
  /* ✨ ANIMACIONES */
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* Formulario */
#contacto form {
    background: rgba(15, 23, 42, 0.95);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.4);
    animation: fadeInUp 1s ease;
  }
  
  /* Inputs y textarea */
  #contacto input,
  #contacto textarea {
    background: rgba(255,255,255,0.07);
    color: #fff;
    border: 2px solid #38bdf8;
    border-radius: 15px;
    padding: 14px 18px;
    font-size: 15px;
    transition: all 0.3s ease;
  }
  
  #contacto input::placeholder,
  #contacto textarea::placeholder {
    color: #cbd5e1;
    opacity: 0.85;
  }
  
  #contacto input:focus,
  #contacto textarea:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.6);
    transform: scale(1.02);
  }
  
  /* Radios interactivos */
  .radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px 20px;
    border: 2px solid #38bdf8;
    border-radius: 15px;
    background: rgba(255,255,255,0.05);
    transition: all 0.3s ease;
  }
  
  .radio-option:hover {
    background: rgba(56, 189, 248, 0.25);
    border-color: #0ea5e9;
  }
  
  .radio-circle {
    width: 20px;
    height: 20px;
    border: 2px solid #38bdf8;
    border-radius: 50%;
    position: relative;
    background: #fff;
  }
  
  .radio-circle::after {
    content: "";
    width: 12px;
    height: 12px;
    background: #38bdf8;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s;
  }
  
  .radio-option.selected .radio-circle::after {
    opacity: 1;
  }
  
  /* Botón moderno */
  .btn-custom {
    border-radius: 30px;
    padding: 14px 32px;
    font-weight: bold;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  }
  
  .btn-info {
    background: linear-gradient(90deg, rgba(15,23,42,0.95), rgba(15,23,42,0.95));
    border: none;
    color: #fff;
  }
  
  .btn-info:hover {
    background: linear-gradient(90deg, #38bdf8, #0c96d6);
    box-shadow: 0 0 20px #75baf3;
    transform: scale(1.05);
  }
  