/* Variables de color */
:root {
  --primary: #1e3a8a; /* Azul institucional */
  --secondary: #3b82f6; /* Azul brillante */
  --accent: #f59e0b; /* Ambar para destacar */
  --text: #1f2937;
  --bg-light: #f8fafc;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  line-height: 1.7;
  background-color: var(--white);
}

h1, h2, h3, .logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navegación */
nav {
  background: var(--white);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #e2e8f0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  color: var(--primary);
}

.logo span {
  color: var(--accent);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--secondary);
}

.btn-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 5px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  padding: 5rem 0;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero-image img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 5px solid var(--white);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  object-fit: cover;
}

.hero-text h1 {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.tagline {
  font-style: italic;
  font-size: 1.1rem;
  color: #64748b;
}

.social-links {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.social-links a {
  font-size: 1.8rem;
  color: var(--primary);
  transition: transform 0.3s, color 0.3s;
}

.social-links a:hover {
  transform: translateY(-3px);
  color: var(--secondary);
}

/* Secciones */
.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
  position: relative;
}

.section-title::after {
  content: '';
  width: 50px;
  height: 4px;
  background: var(--accent);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.bg-light {
  background-color: var(--bg-light);
}

.grid-three {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card-mini {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.card-mini i {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

/* Proyectos */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.project-info {
  padding: 2rem;
}

.tags {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
}

.tags span {
  background: #f1f5f9;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  color: var(--primary);
  font-weight: 600;
}

footer {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 3rem 0;
}

/* Responsivo */
@media (max-width: 768px) {
  .hero-text h1 { font-size: 2rem; }
  nav ul { display: none; } /* Podrías añadir un menú hamburguesa luego */
}
