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

body {
  font-family: 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  background-color: #ffffff;
  color: #111;
  padding: 20px;
}

/* Encabezado */
header {
  background-color: #f5f5f5;
  height: 70px;
  border-bottom: 2px solid #ddd;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  margin: 0;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

.header-name {
  font-size: 1.5em;
  font-weight: 300;
  line-height: 1;
  margin: 0;
  text-align: left;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

/* Navegación header */
.header-nav {
  display: flex;
  gap: 30px;
}

.header-nav a {
  text-decoration: none;
  color: #000;
  font-weight: 300;
  font-family: 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 5px;
}

.header-nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: #000;
  transition: width 0.3s ease;
}

.header-nav a:hover::after {
  width: 100%;
  background: #5b5b5b;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
}

/* Todos los títulos de sección igual tamaño que Experience y Education */
h2 {
  font-size: 1.5rem; /* CAMBIO: antes 1.8rem, ahora igual que Experience/Education */
  margin-bottom: 15px;
  color: #333;
  text-transform: uppercase;
  text-align: left;
}

/* Texto normal */
p, a, span, li, div, section, nav {
  font-weight: 300;
}

.about-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 20px;
  gap: 1.5rem;
}

.about-text {
  min-width: auto;
  text-align: center;
}

.about-img {
  width: 300px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.about-img:hover {
  transform: scale(1.05);
}

.about-text {
  flex: 1;
  min-width: 250px;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  margin-top: 60px;
  border-top: 1px solid #ddd;
  font-size: 0.9em;
  color: #777;
}

/* INDEX estilos */
.areas {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 20px;
}

.areas h2 {
  font-size: 2.2em;
  margin-bottom: 2rem;
  color: #111;
  text-align: left;
  font-weight: 300;
  text-transform: uppercase;
}

.areas ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.areas li a {
  display: flex;
  align-items: baseline;
  font-size: 1.5em;
  color: #000;
  text-decoration: none;
  font-weight: 300;
  width: 100%;
  position: relative;
  transition: transform 0.3s ease;
}

.areas li a .num {
  flex: 0 0 50px;
}

.areas li a .line {
  flex: 1;
  border-bottom: 1px solid #000;
  margin: 0 10px;
  transform: translateY(0.3em);
  position: relative;
  overflow: hidden;
}

.areas li a .line::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 1px;
  width: 100%;
  background-color: #000;
  transform: translateX(0);
  transition: transform 0.4s ease;
}

.areas li a:hover .line::after {
  transform: translateX(-100%);
  animation: drawLine 0.4s forwards 0.4s;
}

@keyframes drawLine {
  0% { transform: translateX(100%); }
  100% { transform: translateX(0); }
}

.areas li a .title {
  white-space: nowrap;
}

.areas li a:hover {
  transform: scale(1.05);
  color: #676767;
}

/* Portfolio Grid */
.portfolio-grid {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.portfolio-item {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #222;
  text-decoration: none;
  background: white;
  position: relative;
}

.portfolio-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.portfolio-item:last-child {
  grid-column: 2;
}

.portfolio-item h3 {
  margin: 0;
  padding: 10px 0;
  background: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.portfolio-item:hover img {
  transform: scale(1.08);
  filter: brightness(0.9) contrast(1.1);
}

@media (max-width: 480px) {
  .portfolio-item img { height: 140px; }
}

.editorial-images img,
.typography-images img,
.animation-images img,
.threed-images img,
.uxui-images img,
.photography-images img,
.branding-images img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 30px;
  opacity: 1;
  transition: transform 0.3s ease;
}

.editorial-images img:hover,
.typography-images img:hover,
.animation-images img:hover,
.threed-images img:hover,
.uxui-images img:hover,
.photography-images img:hover,
.branding-images img:hover {
  transform: scale(1.05);
}

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

@media (max-width: 600px) {
  .header-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    padding: 5px 10px;
  }

  .header-nav a {
    font-size: 0.9em;
    padding: 6px 10px;
  }
}

/* ======== ESTILOS EXCLUSIVOS DE ABOUT ME ======== */
.aboutme-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 20px;
}

.aboutme-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}

.aboutme-left {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  width: 100%;
}

.aboutme-img,
.skills,
.tools {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.aboutme-img {
  display: block;
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  object-fit: cover;
}

.skills,
.tools {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.skills h2,
.tools h2,
.aboutme-right h2,
.aboutme-text h2 { 
  font-size: 1.5rem; /* igual que Experience/Education */
  text-transform: uppercase;
  margin-bottom: 15px;
}

.skills ul,
.tools ul {
  list-style: none; /* quitar puntos */
  padding: 0;
  margin: 0;
}

.aboutme-right {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.aboutme-right p, 
.aboutme-right ul {
  line-height: 1.6;
}

.aboutme-text {
  flex: 1;
  text-align: left;
}

/* ====== LANGUAGES ====== */
.languages {
  width: 100%; /* ocupa todo el ancho de la columna derecha */
  margin-top: 0;
}

.language-item {
  margin-bottom: 15px;
}

.language-bar {
  width: 100%;
  height: 10px;
  background-color: #ddd; /* gris clarito */
  border-radius: 5px;
  overflow: hidden;
  margin-top: 5px;
}

.language-level {
  height: 100%;
  background-color: #555; /* gris oscuro */
  border-radius: 5px;
  width: 0;
  animation: fillBar 1.5s forwards;
  animation-timing-function: ease;
}

@keyframes fillBar {
  from { width: 0; }
  to { width: var(--level-width); }
}

@media (max-width: 768px) {
  .aboutme-container {
    grid-template-columns: 1fr;
  }
}

/* ===== CONTACT ===== */
.contact-section {
  max-width: 1200px; /* igual que About Me */
  margin: 40px auto; /* mantiene algo de espacio arriba y abajo */
  padding: 0 20px;   /* márgenes laterales más pequeños */
}

.contact-section h2 {
  font-size: 1.5rem; /* mismo tamaño que otros títulos */
  margin-bottom: 20px;
  text-transform: uppercase;
}

.contact-section p {
  margin-bottom: 25px;
  line-height: 1.6;
}

/* Formulario */
.contact-section form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-section form input,
.contact-section form textarea {
  width: 100%; /* ahora ocupa todo el ancho del contenedor */
  padding: 12px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.contact-section form button {
  padding: 12px;
  font-size: 1em;
  background-color: #5b5b5b;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-section form button:hover {
  background-color: #444;
}

/* Contact Info Bloques */
.contact-info {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 1.1em;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.contact-info p strong {
  width: 90px; /* espacio fijo para alinear */
  flex-shrink: 0;
}

.contact-info a {
  text-decoration: none;
  color: #5b5b5b;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #007acc;
}

/* Responsivo */
@media (max-width: 768px) {
  .contact-section {
    padding: 0 20px;
  }

  .contact-info p {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .contact-info p strong {
    width: auto;
  }
}