:root {
    --color-bg: #181818;
    --color-bg-alt: #222;
    --color-text: #fff;
    --color-accent: #fff;
    --color-grey: #bbb;
    --color-cliente-bg: #f6f6f6;
    --color-cliente-text: #222;
}
.encabezamiento-content {
    max-width: 90vw;           
    padding: 32px 24px 32px 24px; 
    box-sizing: border-box;
    word-break: break-word;    
    white-space: normal;       
    display: block
text-align: left;          
    align-items: flex-start; 
    justify-content: flex-end;
}
.encabezamiento-content h1,
.encabezamiento-content p {
    text-align: left;          /* Asegura que los textos hijos también estén a la izquierda */
}
.encabezamiento-content h1 {
    font-size: 2.2em;       
    margin: 0 0 0.5em 0;
}
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
}

/* HERO */
.hero {
    position: relative;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 580px;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    color: #fff;
    margin-bottom: 0;
    display: flex;
    align-items: flex-end;
    padding: 0;
}
.overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(24,24,24,0.78);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 50px 30px 30px 30px;
    margin-left: 30px;
}
.logo {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 14px;
}
.hero h1 {
    font-size: 2.1em;
    line-height: 1.1;
    font-weight: bold;
    margin: 0 0 12px 0;
    letter-spacing: -1.5px;
}
.slogan {
    color: var(--color-grey);
    font-size: 1.1em;
    margin: 0;
}

/* PERFIL */
.perfil {
    background: var(--color-bg-alt);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 40px 0 40px 0;
    gap: 40px;
    justify-content: center;
}
.perfil-img img {
    width: 230px;
    border-radius: 12px;
    display: block;
}
.perfil-info {
    max-width: 430px;
}
.perfil-info h2 {
    margin-top: 0;
}

/* HABILIDADES */
.habilidades {
    background: var(--color-bg);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 40px 0 40px 0;
    gap: 50px;
    justify-content: center;
}
.habilidades-info {
    max-width: 270px;
    text-align: left;
}
.habilidades-info img {
    width: 100%;
    border-radius: 10px;
    margin-top: 18px;
}
.habilidades-lista {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 350px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1.1em;
}
.habilidades-lista li {
    background: #232323;
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-weight: 500;
}

/* CLIENTES */
.clientes {
    background: #fff;
    color: #181818;
    padding: 50px 0 40px 0;
    text-align: left;
}
.clientes h2 {
    margin: 0 0 10px 0;
}
.clientes-lista {
    display: flex;
    gap: 20px;
    flex-wrap: center;
    margin-top: 22px;
}
.cliente-card {
    background: var(--color-cliente-bg);
    color: var(--color-cliente-text);
    border-radius: 12px;
    padding: 12px 10px;
    width: 185px;
    text-align: center;
    box-shadow: 0 2px 10px #0002;
}
.cliente-card img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    height: 100px;
}
.cliente-card span {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    font-size: 1.07em;
}

/* EXPERIENCIA */
.experiencia {
    background: var(--color-bg);
    padding: 60px 0 40px 0;
    text-align: center;
}
.experiencia blockquote {
    font-size: 1.2em;
    font-weight: bold;
    max-width: 680px;
    margin: 0 auto 22px auto;
    color: #fff;
    line-height: 1.4;
}
.carrusel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}
.carrusel-btn {
    background: #232323;
    color: #fff;
    border: none;
    font-size: 2em;
    padding: 10px 16px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}
.carrusel-btn:hover {
    background: #444;
}
.carrusel-imagenes {
    width: 280px;
    height: 160px;
    display: flex;
    position: relative;
    overflow: hidden;
}
.carrusel-imagenes img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s;
    border-radius: 12px;
}
.carrusel-imagenes img.activo {
    opacity: 1;
    position: relative;
    z-index: 2;
}

/* CONTACTO */
.contacto {
    background: #191919;
    padding: 44px 0 0 0;
}
.contacto-content {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 40px;
}
.contacto-content img {
    width: 210px;
    border-radius: 11px;
    object-fit: cover;
}
.contacto-content h2 {
    margin-top: 0;
}
.contacto-content ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}
.contacto-content li {
    margin-bottom: 16px;
    font-size: 1.06em;
    color: #fff;
}
.contacto-content a {
    color: #fff;
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .perfil, .habilidades, .contacto-content, .clientes-lista, .carrusel-resultados, .carrusel {
        flex-direction: column;
        align-items: stretch;
    }
    .perfil-img img, .habilidades-info img, .contacto-content img {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
    }
    .cliente-card {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    .habilidades-lista, .habilidades-info {
        max-width: 100%;
    }
    .carrusel-imagenes, .carrusel-imagenes img {
        width: 90vw;
        max-width: 350px;
        height: auto;
    }
/* --- ESTILOS GENERALES --- */
body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  background: #181818;
  color: #fff;
}

header.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
}

header .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 32px 24px;
  box-sizing: border-box;
}

.encabezamiento-content {
  text-align: left;
  max-width: 90vw;
  padding: 32px 24px 32px 24px;
  box-sizing: border-box;
  word-break: break-word;
}

.encabezamiento-content h1 {
  font-size: 2.2em;
  margin: 0 0 0.5em 0;
  color: #fff;
  text-shadow: 2px 2px 8px #0008;
}

.slogan {
  margin: 0;
  font-size: 1.15em;
  color: #ffd700;
  text-shadow: 1px 1px 10px #000;
}

/* --- PERFIL --- */
.perfil {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 32px 24px;
  max-width: 900px;
  margin: 0 auto;
}

.perfil-img img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid #ffd700;
  box-shadow: 0 2px 12px #0006;
}

.perfil-info h2 {
  margin-top: 0;
  color: #ffd700;
}

/* --- HABILIDADES --- */
.habilidades {
  padding: 32px 24px;
  max-width: 900px;
  margin: 0 auto;
}

.habilidades-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.habilidades-info h2 {
  color: #ffd700;
}

.habilidades-info img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
}

.habilidades-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 16px 0 0 0;
  list-style: none;
}

.habilidades-lista li {
  background: #282828;
  border-radius: 8px;
  padding: 8px 16px;
  color: #ffd700;
  font-weight: 500;
}

/* --- CLIENTES --- */
.clientes {
  padding: 32px 24px;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.clientes h2 {
  color: #ffd700;
}

.clientes-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}

.cliente-card {
  background: #282828;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  min-width: 120px;
  flex: 1 1 120px;
  max-width: 180px;
}

.cliente-card img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}

.cliente-card span {
  color: #ffd700;
  font-weight: 600;
}

/* --- EXPERIENCIA Y CARRUSEL --- */
.experiencia {
  padding: 32px 24px;
  max-width: 900px;
  margin: 0 auto;
}

.experiencia blockquote {
  font-style: italic;
  background: #282828;
  border-left: 4px solid #ffd700;
  margin: 0 0 24px 0;
  padding: 16px 24px;
  border-radius: 8px;
}

.carrusel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.carrusel-btn {
  background: #ffd700;
  color: #181818;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.5em;
  cursor: pointer;
}

.carrusel-imagenes {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 210px;
  height: 130px;
  position: relative;
  overflow: hidden;
}

.carrusel-imagenes img {
  display: none;
  width: 210px;
  height: 130px;
  object-fit: cover;
  border-radius: 12px;
  position: absolute;
  left: 0; top: 0;
  transition: opacity 0.3s;
}

.carrusel-imagenes img.activo {
  display: block;
  position: relative;
  opacity: 1;
  z-index: 2;
}

/* --- CONTACTO --- */
footer.contacto {
  background: #222;
  padding: 40px 24px;
  margin-top: 32px;
  color: #fff;
}

.contacto-content {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.contacto-content img {
  max-width: 140px;
  min-width: 80px;
  border-radius: 12px;
  margin-right: 16px;
  object-fit: cover;
  box-shadow: 0 2px 12px #0007;
}

.contacto-content > div {
  flex: 1;
}

.contacto-content h2 {
  margin-top: 0;
  color: #ffd700;
}

.contacto-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contacto-content li {
  margin-bottom: 10px;
  font-size: 1em;
  color: #fff;
}

.contacto-content a {
  color: #ffd700;
  text-decoration: none;
  word-break: break-all;
  transition: color 0.2s;
}

.contacto-content a:hover {
  text-decoration: underline;
  color: #ffea00;
}

/* --- RESPONSIVE: MÓVIL --- */
@media (max-width: 900px) {
  .perfil, .habilidades, .clientes, .experiencia, .contacto-content {
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
    text-align: center !important;
  }
  .perfil-img img, .contacto-content img {
    margin: 0 auto 16px auto;
    display: block;
  }
  .contacto-content > div, .perfil-info, .habilidades-lista {
    text-align: center;
  }
  .clientes-lista {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .hero-content, .encabezamiento-content, .perfil, .habilidades, .clientes, .experiencia, .contacto-content {
    padding: 18px 6vw !important;
  }
  .encabezamiento-content h1 {
    font-size: 1.3em;
  }
  .perfil-img img {
    width: 90px;
    height: 90px;
  }
  .contacto-content img {
    max-width: 80vw;
    min-width: 0;
  }
}
