:root {
  --blue: #005B96;   
  --teal: #00A6A6;
  --deep-blue: #003B5C;
  --light-gray: #F4F6F8;
  --white: #FFFFFF;
  --text-main: #1F2933;
  --text-muted: #6B7280;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Inter", "Roboto", sans-serif;
  background: var(--white);
  color: var(--text-main);
  line-height: 1.6;
}


.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  #background: var(--deep-blue);
  background: linear-gradient(
    to right,
    rgba(7, 21, 36, 0.97),
    rgba(15, 47, 79, 0.97)
  );
  border-bottom: none;
  backdrop-filter: none;
  position: sticky;
  top: 0;
  z-index: 10;
}


.identity-block {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.identity-text .name {
  font-weight: 700;
  color: var(--white);
}

.identity-text .title {
  font-size: 0.9rem;
  #color: var(--text-muted);
  color: rgba(255,255,255,0.75);
}

.identity-text .subtitle {
  font-size: 0.85rem;
  color: var(--teal);
}

.main-nav a {
  margin: 0 0.75rem;
  text-decoration: none;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--teal);
}

.main-nav a.active {
  color: var(--teal);
  font-weight: 700;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 2px;
}

.lang-switch button {
  border: 1px solid #d1d5db;
  background: white;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  font-size: 0.8rem;
  border-radius: 4px;
}


.lang-switch .active {
  border-color: var(--teal);
  color: var(--teal);
}

/* HOME */
.page-home {
  background:
    radial-gradient(circle at 18% 22%, rgba(0,91,150,0.12), transparent 60%),
    radial-gradient(circle at 82% 78%, rgba(0,166,166,0.12), transparent 60%),
    linear-gradient(135deg, rgba(0,91,150,0.08), rgba(0,166,166,0.08));
}

/* INTERNAS */
.page-internal {
  background:
    linear-gradient(135deg, rgba(0,91,150,0.10) 0%, transparent 45%),
    linear-gradient(225deg, rgba(0,166,166,0.10) 0%, transparent 45%),
    var(--white);
}

/* CONTENIDO */
.content {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

.section h1,
.section h2 {
  color: var(--deep-blue);
  margin-bottom: 1rem;
  font-weight: 700;
}

.section p {
  margin-bottom: 1rem;
  color: var(--text-main);
}

.bulleted {
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
}

.bulleted li {
  margin-bottom: 0.4rem;
}

/* TARJETAS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card h2 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--deep-blue);
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* FORMULARIO */
.contact-form {
  max-width: 520px;
  margin-top: 1.5rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-row label {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: var(--deep-blue);
}

.form-row input,
.form-row textarea {
  border-radius: 6px;
  border: 1px solid #d1d5db;
  padding: 0.5rem 0.6rem;
  font-size: 0.95rem;
  font-family: inherit;
}

.btn-primary {
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: white;
  font-size: 0.95rem;
  cursor: pointer;
}

/* FOOTER */



.site-footer {
  background-color: var(--deep-blue);
  color: white;
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.95;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .content {
    padding: 2rem 1rem 2.5rem;
  }
}

/* --- FIX: Mejor distribución en Profile --- */

/* Aumenta el ancho útil y centra el contenido */
.content {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

/* Tarjetas más separadas y con mejor respiración */
.section-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 2rem 2.2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Mejor legibilidad del texto */
.section-card p,
.section-card li {
  line-height: 1.55;
  font-size: 1.05rem;
}

/* Lista de experiencia más limpia */
.experience-list {
  list-style-type: disc;
  padding-left: 1.6rem;
  margin-top: 1rem;
}

.experience-list li {
  margin-bottom: 0.6rem;
}

/* Timeline más elegante y con mejor alineación */
.timeline {
  border-left: 3px solid var(--teal);
  padding-left: 1.6rem;
  margin-top: 1.5rem;
}

.timeline-item {
  margin-bottom: 1.6rem;
  position: relative;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  background: var(--teal);
  border-radius: 50%;
  position: absolute;
  left: -1.05rem; /* antes estaba demasiado lejos */
  top: 0.35rem;
}


/* --- Ajustes de espaciado --- */
.section-card {
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.6rem;
}

/* --- Estilo de títulos y tesis --- */
.degree-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--deep-blue);
  margin-bottom: 0.1rem;
}

.degree-thesis {
  font-size: 0.5rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.45;
}
