@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

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

:root {
  /* Base */
  --background: hsl(210, 20%, 96%);
  --foreground: hsl(210, 25%, 15%);

  /* Cards */
  --card: hsl(210, 20%, 99%);
  --card-foreground: hsl(210, 25%, 15%);

  /* Primary (azul más apagado) */
  --primary: hsl(210, 45%, 32%);
  --primary-foreground: hsl(210, 20%, 96%);

  /* Secondary (verde más grisáceo) */
  --secondary: hsl(160, 25%, 32%);
  --secondary-foreground: hsl(160, 20%, 96%);

  /* Muted */
  --muted: hsl(210, 15%, 92%);
  --muted-foreground: hsl(210, 10%, 45%);

  /* Accent (teal MUY controlado) */
  --accent: hsl(175, 30%, 38%);
  --accent-foreground: hsl(175, 20%, 96%);

  /* Bordes */
  --border: hsl(210, 15%, 86%);

  /* Gradientes más suaves */
  --gradient-primary: linear-gradient(
    135deg,
    hsl(210, 45%, 32%) 0%,
    hsl(175, 30%, 38%) 100%
  );

  --gradient-hero: linear-gradient(
    180deg,
    hsl(210, 20%, 96%) 0%,
    hsl(210, 18%, 93%) 100%
  );

  /* Sombras más tranquilas */
  --shadow-soft: 0 2px 12px -4px hsla(210, 20%, 20%, 0.08);
  --shadow-card: 0 6px 20px -8px hsla(210, 20%, 20%, 0.10);
  --shadow-elevated: 0 16px 40px -12px hsla(210, 20%, 20%, 0.12);

  --radius: 0.75rem;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: hsla(210, 30%, 98%, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

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

.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-btn svg {
  width: 24px;
  height: 24px;
  color: var(--foreground);
}

.mobile-nav {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.mobile-nav.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  padding-top: 64px;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 5rem 1rem;
}

.avatar {
  width: 128px;
  height: 128px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  background: var(--gradient-primary);
  padding: 4px;
  animation: fadeInUp 0.6s ease 0.1s forwards;
  opacity: 0;
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-text {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease 0.2s forwards;
  opacity: 0;
}

.hero-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease 0.3s forwards;
  opacity: 0;
}

.hero-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.hero-info-item svg {
  width: 20px;
  height: 20px;
}

.hero-info-item svg.green {
  color: var(--secondary);
}

.hero-info-item svg.teal {
  color: var(--accent);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 0.6s ease 0.4s forwards;
  opacity: 0;
}

.hero-description .highlight {
  color: var(--primary);
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  animation: fadeInUp 0.6s ease 0.5s forwards;
  opacity: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-card);
}

.btn-primary:hover {
  box-shadow: var(--shadow-elevated);
  transform: scale(1.02);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
  opacity: 0.9;
  box-shadow: var(--shadow-card);
}

/* Skills Section */
.skills {
  padding: 5rem 0;
  background: var(--background);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.skill-card {
  padding: 1.5rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: all 0.3s ease;
  opacity: 0;
  animation: scaleIn 0.5s ease forwards;
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.skill-card:hover .skill-icon {
  background: var(--gradient-primary);
}

.skill-card:hover .skill-icon svg {
  color: var(--primary-foreground);
}

.skill-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  border-radius: 0.5rem;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.skill-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  transition: color 0.3s ease;
}

.skill-name {
  font-size: 0.875rem;
  font-weight: 500;
}

/* Research Section */
.research {
  padding: 5rem 0;
  background: hsla(210, 20%, 94%, 0.3);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid hsla(210, 25%, 88%, 0.5);
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon.blue {
  background: hsla(210, 70%, 30%, 0.1);
}

.card-icon.green {
  background: hsla(160, 45%, 35%, 0.2);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card-icon.blue svg {
  color: var(--primary);
}

.card-icon.green svg {
  color: var(--secondary);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

.card-badge {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  background: var(--muted);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-top: 0.5rem;
}

.card-summary {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card .btn {
  width: 100%;
}

.section-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 2rem;
}

/* Manuals Section */
.manuals {
  padding: 5rem 0;
  background: var(--background);
}

.manuals .cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 900px;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background: hsla(210, 20%, 94%, 0.3);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item-icon.blue {
  background: hsla(210, 70%, 30%, 0.1);
}

.contact-item-icon.green {
  background: hsla(160, 45%, 35%, 0.2);
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
}

.contact-item-icon.blue svg {
  color: var(--primary);
}

.contact-item-icon.green svg {
  color: var(--secondary);
}

.contact-item-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.contact-item-value {
  font-weight: 500;
}

.contact-badge {
  padding: 1.5rem;
  background: var(--gradient-primary);
  border-radius: var(--radius);
  color: var(--primary-foreground);
}

.contact-badge h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-badge p {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--foreground);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(210, 70%, 30%, 0.1);
}

.form-group textarea {
  resize: none;
  min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted-foreground);
}

/* Footer */
.footer {
  padding: 2rem 0;
  background: var(--primary);
  color: var(--primary-foreground);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-info h4 {
  font-size: 1.125rem;
  font-weight: 600;
}

.footer-info p {
  font-size: 0.875rem;
  opacity: 0.8;
}

.footer-copy {
  font-size: 0.875rem;
  opacity: 0.7;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--card);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-elevated);
  border-left: 4px solid var(--secondary);
  transform: translateX(120%);
  transition: transform 0.3s ease;
  z-index: 1001;
}

.toast.show {
  transform: translateX(0);
}

.toast-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.toast-message {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .hero-info {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-info .separator {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}

.card-summary {
    color: #000;        /* negro */
    font-size: 18px;    /* ajusta el tamaño a tu gusto */
}












:root {
  /* Neutros Elegantes */
  --background: #f8f9fa; /* Gris seda muy claro */
  --foreground: #1a1c1e; /* Antracita profundo */
  
  /* Cards y Componentes */
  --card: #ffffff;
  --card-foreground: #1a1c1e;
  
  /* Acentos de Autoridad (Grises y Azules Acero) */
  --primary: #2d3436;    /* Gris Grafito */
  --primary-foreground: #ffffff;
  
  --secondary: #636e72;  /* Gris Medio */
  --secondary-foreground: #ffffff;

  --muted: #f1f3f5;
  --muted-foreground: #6c757d;

  --border: #e9ecef;

  /* Gradientes refinados (Casi imperceptibles) */
  --gradient-primary: linear-gradient(135deg, #2d3436 0%, #000000 100%);
  --gradient-hero: radial-gradient(circle at top, #ffffff 0%, #f1f3f5 100%);

  /* Sombras de alta gama (más suaves y extendidas) */
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.05);
  
  --radius: 0.5rem; /* Bordes menos redondeados para verse más serio */
}


.header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo {
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 1.1rem;
}



.card {
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover {
  transform: translateY(-8px);
  border-color: #ced4da;
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.card-icon.blue {
  background: #f1f3f5; /* Quitamos los colores brillantes */
  border: 1px solid #dee2e6;
}

.card-icon.blue svg {
  color: var(--primary);
}

/* Ajuste solicitado para el texto */
.card-summary {
  color: #4a4a4a;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.7;
}


.skill-card {
  background: transparent;
  border: 1px solid var(--border);
  box-shadow: none;
}

.skill-card:hover {
  background: var(--primary);
  color: white;
}

.skill-icon {
  background: #f8f9fa;
  border-radius: 50%; /* Iconos circulares para suavizar */
}

.skill-card:hover .skill-icon {
  background: rgba(255,255,255,0.1);
}



.btn-primary {
  background: var(--primary);
  border-radius: 4px; /* Menos redondeado = más profesional */
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  padding: 1rem 2.5rem;
}

.btn-outline {
  border-radius: 4px;
  border: 1px solid #ced4da;
  color: var(--primary);
}





/* El texto de resumen en gris oscuro/negro para máxima legibilidad */
.card-summary {
  color: #1a1c1e; /* Gris casi negro */
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  min-height: 80px; /* Alinea los botones al mismo nivel */
}

/* El badge de la fecha con estilo elegante */
.card-badge {
  background: #f1f3f5;
  color: #636e72;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Botón deshabilitado elegante */
.btn:disabled {
  background: #f8f9fa;
  border-color: #e9ecef;
  color: #adb5bd;
  cursor: not-allowed;
  box-shadow: none;
}

.footer {
  margin-top: auto;
}


.main-content {
  flex: 1;
}


html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}


