/* --- BASE --- */
body {
  margin: 0;
  padding: 40px 0;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(to bottom right, #93a5cf 0%, #e4efe9 100%);
  background-attachment: fixed;
  background-size: cover;
  min-height: 100vh;
  overflow-x: hidden; 
}
h1, h2, h3, p { margin: 0; }

/* --- FOLIO --- */
.hoja-folio {
  background: white;
  width: 90%;
  max-width: 21cm;
  min-height: 29.7cm;
  margin: 0 auto;
  padding: 50px;
  box-shadow: -30px 30px 60px rgba(0,0,0,0.4);
  position: relative;
  box-sizing: border-box;
}

/* --- ENCABEZADO --- */
.encabezado {
  display: flex;
  justify-content: space-between;
  align-items: center; 
  margin-bottom: 25px;
}

.nombre {
  font-size: 34px; 
  text-transform: uppercase;
  color: #222;
  letter-spacing: 1px;
  line-height: 1.1;
}

.subtitulo {
  font-size: 16px;
  color: #666;
  margin-top: 8px;
  letter-spacing: 1px;
  font-weight: 500;
}

.foto {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f0f0f0; 
  margin-left: 20px;
  flex-shrink: 0; 
}

.separador {
  border-bottom: 2px solid #eee;
  margin-bottom: 40px;
}

/* --- ESTRUCTURA --- */
.grid-cv {
  display: grid;
  grid-template-columns: 32% 1fr; 
  gap: 40px;
}

.col-izq { 
  border-right: 1px solid #eee; 
  padding-right: 20px; 
}

.col-der { 
  padding-left: 10px; 
}

/* --- ESTILOS DE TEXTO --- */

h3 { 
  font-size: 14px;
  text-transform: uppercase; 
  color: #222;
  border-bottom: 1px solid #333; 
  padding-bottom: 8px;
  margin-bottom: 15px;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.bloque { 
    margin-bottom: 35px; 
}

.item { 
    margin-bottom: 20px; 
}

.negrita {
  font-weight: 700;
  font-size: 15px;
  color: #222;
  margin-bottom: 4px;
}

.gris {
  color: #555;
  font-size: 14px;
  margin-bottom: 4px;
  font-weight: 500;
}

.gris-claro {
  color: #888;
  font-size: 13px;
  font-style: italic;
  margin-top: 2px;
}

.texto {
  color: #555;
  font-size: 14px;
  line-height: 1.6; 
  text-align: justify;
  margin-top: 5px;
}

/* --- LISTAS Y CONTACTO --- */

.lista {
  padding-left: 18px;
  margin-top: 8px;
  color: #666;
  font-size: 13px;
  line-height: 1.5;
}

.lista li {
  margin-bottom: 4px;
}

.contacto-fila {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
  color: #555;
  font-weight: 500;
}

.contacto-fila img {
  width: 18px; 
  margin-right: 12px;
  opacity: 0.8;
}

/* --- DECORACIÓN Y BOTONES --- */
.boli {
  position: absolute;
  width: 450px;
  bottom: -100px;
  right: -150px;
  transform: rotate(-10deg);
  filter: drop-shadow(15px 15px 10px rgba(0,0,0,0.4));
  z-index: 20;
}

.botones {
  position: absolute;
  bottom: 20px;
  right: -70px; 
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 100; 
}

.btn-circular {
  width: 50px;
  height: 50px;
  background: white; 
  border-radius: 50%;
  border: 1px solid #ddd; 
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.2); 
  transition: transform 0.2s ease;
  text-decoration: none;
}

.btn-circular:hover { 
  transform: scale(1.1); 
  background: #f9f9f9; 
}

.btn-circular img { 
  width: 28px; 
  object-fit: contain;
}

/* --- MOVIL --- */
@media only screen and (max-width: 768px) {
  body { 
    padding: 0; 
    background-attachment: scroll; 
}

  .hoja-folio { 
    width: 100%; 
    padding: 25px; 
    margin: 0; 
    box-shadow: none; 
}

  .encabezado { 
    flex-direction: column-reverse; 
    text-align: center; 
}
  .foto { 
    margin: 0 0 20px 0; 
}
  .grid-cv { 
    grid-template-columns: 1fr; 
    gap: 0; 
}

  .col-izq { 
    border-right: none; 
    border-bottom: 2px solid #eee; 
    margin-bottom: 30px; 
    padding: 0; 
    padding-bottom: 30px;
}
  .boli, .botones { 
    display: none; 
}
}

/* --- IMPRIMIR --- */
@media print {
  @page {
    size: A4;
    margin: 0; 
  }
  
  body { 
    background: none; 
    padding: 0; 
    -webkit-print-color-adjust: exact; 
    print-color-adjust: exact;
  }

  .hoja-folio { 
    box-shadow: none; 
    width: 100%; 
    max-width: 210mm; 
    height: 297mm;    
    margin: 0; 
    padding: 1.5cm;   
    display: block; 
  }
  .grid-cv {
    display: grid;
    grid-template-columns: 32% 1fr;
    gap: 40px;
  }

  .boli, .botones { 
    display: none !important; 
}
}