/* =======================
   Variables y base
   ======================= */
:root {
  --color-bg: #0f172a;        /* fondo general oscuro suave */
  --color-surface: #111827;   /* tarjetas/bloques */
  --color-primary: #38bdf8;   /* azul tipo cian */
  --color-primary-soft: #0ea5e9;
  --color-text: #e5e7eb;
  --color-muted: #9ca3af;
  --header-height: 72px;
  --radius-lg: 18px;
  --transition-fast: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  background: radial-gradient(circle at top, #1f2937 0, #020617 55%);
  color: var(--color-text);
}

/* =======================
   Header / Navbar
   ======================= */
.header {
  /* min-height: var(--header-height); */
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.75);
}

.header .navbar-brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--color-primary);
}

.header .navbar-brand:hover {
  color: var(--color-primary-soft);
}

.navbar-nav .nav-link {
  color: var(--color-muted);
  font-size: 0.95rem;
  padding-left: 1rem;
  padding-right: 1rem;
  transition: color var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--color-primary);
}

/* Ajustes extra para el header */
.header .navbar {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Nav-links un poco más "portfolio" */
.header .navbar-nav .nav-link {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

/* Botón hamburguesa más limpio en móvil */
.header .navbar-toggler {
  border: none;
}

/* =======================
   Secciones genéricas
   ======================= */
.section {
  padding: 100px 0;
}

.section.bg-light {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), #020617);
}

/* Títulos de sección */
.section h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section .section-subtitle {
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* =======================
   Hero
   ======================= */
.hero {
  min-height: 100vh !important;
  width: 100%;
  padding-top: var(--header-height);
  display: flex !important;
  align-items: center;
  visibility: visible !important;

  background: #020617 url('../img/gato.webp') center/cover no-repeat !important;
  background-position: 20% 10%;
  background-size: cover;
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--color-muted);
  max-width: 560px;
  margin: 0 auto 1.5rem auto;
}

.hero-btn {
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
}

/* Hero en móvil y pantallas pequeñas */
@media (max-width: 768px) {
  .hero {
    min-height: 100vh; 
    padding-top: calc(var(--header-height) + 1.5rem);
    background-position: 25% 10%; 
    background-size: cover;          
  }
}

.hero-typed {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--color-muted);
}

.hero-typed .typed {
  color: var(--color-primary);
  font-weight: 500;
}

.typed-cursor {
  display: inline-block;
  font-weight: 400;
  font-size: 1rem;
  opacity: 1;
  animation: typed-blink 0.7s infinite;
}

@keyframes typed-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}
/* =======================
   Footer
   ======================= */
.footer {
  padding: 24px 0 32px;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* =======================
   Especializaciones (Servicios)
   ======================= */
.custom-card {
  border: 1px solid rgba(148, 163, 184, 0.15); /* Borde sutil */
  border-radius: var(--radius-lg);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.custom-card:hover {
  transform: translateY(-5px); /* Se levanta un poco al pasar el ratón */
  border-color: rgba(14, 165, 233, 0.4); /* El borde se ilumina con tu color primario */
  box-shadow: 0 10px 20px rgba(14, 165, 233, 0.05); /* Sombra azulada muy suave */
}

/* Evitar que el color primario de Bootstrap sobrescriba tu variable */
.text-primary {
  color: var(--color-primary) !important;
}

/* Justificar el texto de los párrafos en la sección Sobre mí */
#about p {
    text-align: justify;
    hyphens: auto; /* Opcional: ayuda a que las palabras se corten mejor para evitar huecos grandes */
}

/* =======================
   Contacto
   ======================= */
.contact-info-box, .contact-form-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: var(--radius-lg);
}

.icon-circle {
  width: 50px;
  height: 50px;
  background: rgba(56, 189, 248, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.custom-input {
  background-color: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--color-text);
  padding: 0.75rem 1rem;
}

.custom-input:focus {
  background-color: rgba(15, 23, 42, 0.8);
  border-color: var(--color-primary);
  color: white;
  box-shadow: none;
}

.custom-input::placeholder {
  color: var(--color-muted);
  opacity: 0.7;
}
