/* ============================
   HERO - ESPECÍFICO DE LA PÁGINA DE INICIO
=============================== */
.hero-principal {
  background-size: cover;
  /* --- CAMBIO CLAVE AQUÍ: background-position --- */
  background-position: center top; /* La imagen se alinea al centro horizontal, arriba vertical */
  padding: 0;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.titulo-hero {
  font-family: 'Playfair Display', serif;
  font-size: 6vw;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-align: center;
}

/* Ocultar elementos específicos de Divi que ya no son necesarios */
.boton-hero .et_pb_module_header,
.boton-hero .et_pb_cta_content {
  display: none;
}

.boton-hero .et_pb_button {
  border: 2px solid white;
  background-color: transparent;
  color: white;
  padding: 0.6em 1.4em;
  font-size: 1rem;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-decoration: none;
}

.boton-hero .et_pb_button:hover {
  background-color: white;
  color: black;
}

/* ===============================
   SOBRE MÍ - ESPECÍFICO DE LA PÁGINA DE INICIO
=============================== */

#sobre-mi {
  padding: 6em 4em;
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sobre-mi-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2em;
    align-items: center;
}

.sobre-mi-columna {
    flex: 1 1 48%;
    min-width: 300px;
}

.sobre-mi-imagen img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.sobre-mi-texto {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #333;
  padding-left: 2em;
}

.titulo-sobre-mi {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #111;
  margin-bottom: 1rem;
  text-align: left;
}

.descripcion-sobre-mi {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #444;
  margin-top: 0;
  margin-bottom: 0;
  /* IMPORTANTE: Si el campo ACF es WYSIWYG, los <p> tendrán margen.
     Asegúrate de que este selector no anule los márgenes de los <p>
     generados por el editor si no es lo que deseas.
     Para controlar los márgenes de los párrafos dentro de .descripcion-sobre-mi:
     .descripcion-sobre-mi p { margin-bottom: 1em; }
     .descripcion-sobre-mi p:last-child { margin-bottom: 0; }
  */
}


/* ==========================
   RESPONSIVE ESPECÍFICO DE LA PÁGINA DE INICIO
============================= */
@media (max-width: 980px) {
  .titulo-hero {
    font-size: 9vw;
  }

  .boton-hero .et_pb_button {
    font-size: 0.9rem;
    padding: 0.5em 1.2em;
  }

  #sobre-mi {
    padding: 4em 2em;
  }

  .sobre-mi-texto {
    padding-left: 0;
    padding-top: 2em;
  }

  .titulo-sobre-mi {
    text-align: center;
    font-size: 2rem;
  }

  .descripcion-sobre-mi {
    text-align: center;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .titulo-hero {
    font-size: 10vw;
  }

  .boton-hero .et_pb_button {
    font-size: 0.8rem;
    padding: 0.4em 1em;
  }

  .sobre-mi-texto {
    font-size: 1rem;
    text-align: center;
  }

  .titulo-sobre-mi {
    font-size: 1.7rem;
  }

  .descripcion-sobre-mi {
    font-size: 0.95rem;
  }
  
  .sobre-mi-columna {
    flex: 1 1 100%;
  }
}