/* CONTENEDOR PRINCIPAL */

.sobre-mi-hero {
    min-height: calc(100vh - 80px); /* ajusta según tu header */
    
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 20px 0 20px;
    box-sizing: border-box;
}


/* TEXTO SUPERIOR */

.hero-content {
    text-align: center;
    margin-top: 30px; 
    margin-bottom: 360px;
}

.hero-content h2 {
    color: #ffffff;
    font-size: 4rem;       /* Título más grande */
    font-weight: 700;
}

.hero-content h1 {
    color: #ffffff;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-subtitle {
    color: #e6e9ff;
    font-size: 18px;
    line-height: 1.5;
}


/* TARJETA */

.sobre-mi-card {
    background-color: #05003a;
    color: #ffffff;
    border-radius: 22px;
    padding: 50px;

    width: 60%;
    margin-left: 40px;   /* 2–3 dedos desde el borde izquierdo */
    margin-right: auto;

    box-sizing: border-box;
}


/* ETIQUETA */

.card-tag {
    font-size: 14px;
    color: #c6ccff;
    display: block;
    margin-bottom: 10px;
}


/* TÍTULO TARJETA */

.sobre-mi-card h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 16px;
}


/* TEXTO TARJETA */

.card-text {
    font-size: 20px;
    line-height: 1.6;
    color: #e6e9ff;
    margin-bottom: 22px;
}


/* =========================================================
   NUEVO: TEXTO EXTRA DESPLEGABLE (Leer más)
========================================================= */

.card-extra {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.55s ease, opacity 0.35s ease;
}

.card-extra.open {
    max-height: 880px; /* ponlo alto para que quepa el texto sin cortar */
    opacity: 1;
}


/* ENLACE */

.leer-mas {
    font-size: 16px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s ease;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;

}

.leer-mas:hover {
    opacity: 0.75;
}

/* =========================================================
   BLOQUE SUPERPUESTO (HISTORIA + FILOSOFÍA)
========================================================= */

.sobre-mi-overlap {
    position: relative;
    width: 100%;
    max-width: 820px;
    margin-top: 45px;
    padding-bottom: 140px;
    box-sizing: border-box;
}

/* Base común de ambas tarjetas */
.info-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 22px;
    padding: 22px 26px;
    box-sizing: border-box;
    box-shadow: 0px 14px 40px rgba(0, 0, 0, 0.18);
}

/* Texto oscuro dentro de tarjetas claras */
.card-tag-dark {
    font-size: 14px;
    color: #1b2a67;
    display: block;
    margin-bottom: 8px;
}

.info-card h3 {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #0a1d55;
}

/* Líneas pequeñas tipo lista */
.mini-line {
    font-size: 20px;
    color: #233a7a;
    margin: 8px 0 4px 0;
}

/* Enlaces tipo "Leer más" en oscuro */
.leer-mas-dark {
    font-size: 16px;
    color: #0a1d55;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    margin-bottom: 6px;
    transition: opacity 0.2s ease;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.leer-mas-dark:hover {
    opacity: 0.75;
}


/* ====== Posiciones para crear el efecto SUPERPUESTO ====== */

.historia-card {
    width: 140%;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    text-align: left;
}


.filosofia-card {
    position: relative;

    /* Mantén tu colocación lateral (NO TOCAR) */
    left: 40%;
    transform: translateX(calc(10% - 45px));

    width: 760px;
    max-width: 60vw;

    background: rgba(255, 255, 255, 0.98);

    /* Solape VERTICAL sin tocar transform */
    margin-top: -50px;

    z-index: 2;

    background: rgb(255, 255, 255);
}

/* Cuando se abre algo en la tarjeta de historia, quitamos el solape
   para que Filosofía baje y no tape el contenido desplegado */
/* Cuando se abre algo en Historia, Filosofía baja (sin moverse de lado) */
.sobre-mi-overlap.expanded .filosofia-card {
    margin-top: 10px; /* ajusta: 0, 20, 40… según te guste */
}



/* Estilo de la cita */
.quote {
    font-size: 20px;
    line-height: 1.6;
    color: #233a7a;
    margin: 6px 0 14px 0;
}

.quote-list {
  list-style: none;          /* quitamos bullets por defecto */
  margin: 20px 0 28px 0;
  padding-left: 0;
}

.quote-list li {
  position: relative;
  padding-left: 22px;        /* espacio para el punto */
  margin-bottom: 12px;

  font-size: 20px;
  line-height: 1.6;
  color: #233a7a;            /* mismo tono que tus textos */
}

/* Punto elegante */
.quote-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.1em;
  font-size: 22px;
  color: #0a1d55;            /* azul más profundo */
}

/* Negrita suave, no agresiva */
.quote-list strong {
  font-weight: 600;
  color: #0a1d55;
}

/* =========================================================
   TARJETA: HISTORIA DETRÁS
========================================================= */

.historia-detras-card {
    background-color: #05003a;
    color: #ffffff;
    border-radius: 22px;

    width: 60%;                /* MENOS ancha que la de pilares */
    margin: 1px auto 0 auto;  /* centrada y separada de arriba */

    padding: 28px 32px;
    box-sizing: border-box;
}

/* Texto interno */
.historia-detras-card h2 {
    font-size: 30px;
    font-weight: 700;
    margin: 10px 0 14px 0;
}

.mini-resumen {
    font-size: 20px;
    line-height: 1.6;
    color: #e6e9ff;
    margin-bottom: 6px;
}

/* =========================================================
   FRASE TRANSMITIR (SIN TARJETA)
========================================================= */

.frase-transmitir {
    margin: 80px auto 0 auto;
    max-width: 1220px;
    text-align: center;
    padding: 0 20px;
}

.frase-transmitir h2 {
    color: #ffffff;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 14px;
}

.frase-transmitir p {
    color: #e6e9ff;
    font-size: 25px;
    font-style: italic;
    line-height: 1.5;
}

/* =========================================================
   TARJETA: ACTUALIDAD
========================================================= */

.actualidad-card {
    background-color: #080150;
    color: #ffffff;
    border-radius: 22px;

    width: 75%;
    margin-left: auto;   /* mismo “2-3 dedos” que tu primera tarjeta */
    margin-right: auto;

    padding: 30px 34px;
    box-sizing: border-box;
    font-family: inherit;
    margin-top: 70px;
}

.actualidad-card h2 {
    font-size: 30px;
    font-weight: 700;
    margin: 10px 0 14px 0;
    color: #ffffff;
}

.actualidad-text {
    font-size: 20px;
    line-height: 1.6;
    color: #e6e9ff;
    margin: 0;
}

/* =========================================================
   BLOQUE FINAL BLANCO (CIERRE)
========================================================= */

.cierre-contacto {
    background-color: #ffffff;
    width: 120%;
    margin-top: 90px;
    margin-bottom: 50px; /* 1-2 dedos */
}

.cierre-content {
    max-width: 980px;
    margin: 0 auto;
    padding: 60px 40px;
    box-sizing: border-box;
}

.cierre-content h2 {
    font-size: 30px;
    font-weight: 700;
    color: #0a1d55;
    margin-bottom: 18px;
}

.cierre-content p {
    font-size: 20px;
    line-height: 1.6;
    color: #1b2a67;
    max-width: 820px;
}

/* =========================
   REVEAL ON SCROLL
========================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respeta accesibilidad: si alguien tiene reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Responsive: que no se pisen raro en móvil */
@media (max-width: 820px) {
    .filosofia-card {
        position: relative;
        right: auto;
        top: auto;
        margin-top: 18px;
        max-width: 760px;
    }

    .sobre-mi-overlap {
        padding-bottom: 0;
    }
}

/* Evita que se salga demasiado por la derecha */
@media (min-width: 1000px) {
    .filosofia-card {
        right: auto;
    }
}
html, body {
  overflow-x: hidden;
  width: 100%;
}
