/* ================================
   VARIABLES DE COLOR (PALETA)

<label style="color:#9a9a84; font-size: 20px;">Mercedes  </label> Marrones
<label style="color:#6c6c5a; font-size: 20px;">Mercedes </label>
<label style="color:#3e3e33; font-size: 20px;">Mercedes </label>

<label style="color:#4a6267; font-size: 40px;">Mercedes  </label> Azules
<label style="color:#344548; font-size: 40px;">Mercedes </label>
<label style="color:#1e282a; font-size: 40px;">Mercedes </label>

================================ */

html {
  font-size: 100%; /* 16px por defecto del navegador */
}

:root {
  /* Fondos */
  --bg-main: #f5f6f2;
  --bg-card: #eceee8;

  /* Texto */
  --text-main: #2d2d2a; 
  --text-muted: #5c5c4d;

  /* Acentos */
  --accent: #618086;
  --accent-hover: #4a6267;

  /* Bordes */
  --border-light: #d7d9cf;
  --border-strong: #aeb2a4;

  --text-strong: #2f2f26;

  --action: #c16657; 
}

.cursor {
  margin-left: 0.125em;
  animation: blink 1s step-end infinite;
  color: var(--action); 
}

.logo2 {
  position: absolute;
  left: 0;
  font-family: 'Fira Code', monospace;
  font-size: 2rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
}

@keyframes blink {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

/* ================================
   RESET BÁSICO
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* ================================
   BASE
================================ */
body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

/* ================================
   LINKS
================================ */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

/* ================================
   CONTENEDOR
================================ */
.container {
  max-width: 60rem; /* 900px */
  margin: 0 auto;
  padding: 2rem 1.25rem;
}
/* ================================
   HEADER / NAV
================================ */
.header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}


/* Marca */
.brand {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 2.5rem;
}

/* Nombre */
.name {
  margin: 0 auto;      
  font-weight: 600;
  font-size: 3rem;
  color: var(--text-main);
  text-align: center;
}

/* Navegación */
.nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.nav a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav a:hover {
  color: var(--accent);
}


/* ================================
   HERO
================================ */
.hero h1 {
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--text-strong);
}

.hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0rem 1rem 3rem;
}

.hero > div {
  flex: 1;
}

.hero img {
  flex-shrink: 0;
  width: 58%;
}


.subtitle {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.actions {
  margin-top: 1.75rem;
}

.actions a {
  margin-right: 1.25rem;
  font-weight: 600;
  color: var(--action);
}

.about {
  margin-top:-2rem;
  padding-right: 2rem;
}

/* ================================
   SECCIONES
================================ */
.section {
  margin-top: 4rem;
}

.section h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-strong);
}

.section p {
  max-width: 65ch;
  color: var(--text-muted);
}

/* ================================
   EXPERIENCIA 
================================ */
.experience {
    width: 100%;  
}

.experience-item {
  padding: 1.75rem 0;
  margin: 0 auto;
  max-width: 100%;
  border-bottom: 1px solid var(--border-light);
}

.experience-item + .experience-item {
  margin-top: 2rem;
}

.experience-item:last-child {
  border-bottom: none;
}

.experience-item h3 {
  font-size: 1.1rem;
  color: var(--text-strong);
  margin-bottom: 0.25rem;
}

.experience-item span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.experience-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  width: 100%;  
}

.experience-item p {
  max-width: none;   /* 👈 elimina el límite */
  width: 100%;
}

/* ================================
   FORMACION
================================ */
.formacion {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 2rem; /* 👈 más aire horizontal y vertical */
}

/* Card */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 0.625rem;
  padding: 1.75rem;
  transition: border 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.card span {
  display: block;
  margin: 0.75rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Links proyecto */
.links a {
  margin-right: 1rem;
  font-size: 0.9rem;
}

/* ================================
   CONTACTO
================================ */
#contacto a {
  font-weight: 500;
}

#contacto p{
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ================================
   FOOTER
================================ */
.footer {
  margin-top: 4rem;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }

  .nav a {
    margin-left: 1rem;
    color: var(--text-strong);
  }
}
