/* Maqueta Home: formulario de asesor y sección de experiencias. */
.pen-advisor { width: min(calc(100% - 40px), 1170px); margin: 0 auto; }
.pen-advisor__form { display:grid; grid-template-columns:2fr 1fr; margin:0; }
.pen-advisor__fields { position:relative; isolation:isolate; display:flex; align-items:center; gap:14px; background:#000; padding:26px 36px; }
.pen-advisor__field { position:relative; display:block; flex:1; min-width:0; }
.pen-advisor__field input { box-sizing:border-box; display:block; width:100%; height:44px; border:0; border-radius:100px; background:#d9d9d9; color:#5c5c5c; padding:0 18px 0 46px; font:400 16px/1.2 var(--font-ui); transition:background-color .2s ease,color .2s ease,padding .2s ease; }
.pen-advisor__field input::placeholder { color:#5c5c5c; opacity:1; }
.pen-advisor__field > svg { position:absolute; left:20px; top:50%; transform:translateY(-50%); width:20px; height:20px; fill:none; stroke:#5c5c5c; stroke-width:1.7; pointer-events:none; transition:opacity .2s ease; }
.pen-advisor__field input:not(:placeholder-shown) { background:#a5712b; color:#fff; padding-left:22px; }
.pen-advisor__field input:not(:placeholder-shown) + svg { opacity:0; }
.pen-advisor__field input:focus-visible { outline:2px solid #fff; outline-offset:3px; }
.pen-advisor__action { display:flex; align-items:center; padding:20px 0 20px 34px; background:#fff; }
.pen-experiences-cta { display:inline-flex; justify-content:center; align-items:center; gap:10px; min-height:40px; border:0; border-radius:0; padding:10px 20px; background:#22b340; color:#fff; font:500 16px/1.25 var(--font-ui); cursor:pointer; text-align:center; text-decoration:none; }
.pen-advisor__action .pen-experiences-cta { width:100%; }
.pen-experiences-cta > svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.7; }
.pen-experiences-cta:hover { background:#1c9836; }
.pen-experiences-cta:focus-visible { outline:2px solid #011e41; outline-offset:4px; }
.pen-advisor__sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.pen-experiences { background:#fff; }
.pen-experiences__header { width:min(calc(100% - 40px),1170px); margin:auto; padding:56px 0 36px; text-align:center; }
.pen-experiences__header h2 { margin:0; font-family:var(--font-display); font-weight:500; line-height:.98; letter-spacing:-.025em; }
.pen-experiences__header h2 span { display:block; }
.pen-experiences__header h2 span:first-child { font-size:clamp(36px,5.2vw,64px); }
.pen-experiences__header h2 span:last-child { font-size:clamp(40px,6.4vw,80px); background:linear-gradient(#000 45%,#011e41); background-clip:text; -webkit-background-clip:text; color:transparent; }
.pen-experiences__scene { position:relative; isolation:isolate; display:flex; align-items:flex-end; justify-content:center; min-height:clamp(420px,35vw,660px); overflow:hidden; }
.pen-experiences__slides, .pen-experiences__slide, .pen-experiences__overlay { position:absolute; inset:0; }
.pen-experiences__slides { z-index:-2; background:#777d80; }
.pen-experiences__slide { visibility:hidden; transform:translateX(100%); background:linear-gradient(125deg,#7c858a,#b9b6ac); }
.pen-experiences__slide:nth-child(even) { background:linear-gradient(125deg,#a5aaa8,#6c7881); }
.pen-experiences__slide.is-active { visibility:visible; transform:translateX(0); transition:transform 1.2s ease; }
.pen-experiences__slide.is-leaving { visibility:visible; transform:translateX(-100%); transition:transform 1.2s ease; }
.pen-experiences__slide img { display:block; width:100%; height:100%; object-fit:cover; }
.pen-experiences__overlay { z-index:-1; background:rgba(0,0,0,.5); pointer-events:none; }
.pen-experiences__cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; width:min(calc(100% - 40px), 560px); }
.pen-experiences__card { position:relative; border-radius:16px 16px 0 0; background:#011e41; color:#fff; padding:34px 20px 26px; }
.pen-experiences__icon { position:absolute; top:10px; left:10px; display:grid; place-items:center; width:38px; height:38px; border-radius:50%; background:#d9d9d9; }
.pen-experiences__icon svg, .pen-experiences__icon img { width:23px; height:23px; fill:none; stroke:#444; stroke-width:1.8; stroke-linejoin:round; }
.pen-experiences__card h3 { margin:4px 0 16px; padding-left:30px; font:500 32px/1 var(--font-display); text-align:center; }
.pen-experiences__card h3 span { display:block; font-size:22px; line-height:1.2; }
.pen-experiences__card p { margin:0; font:400 14px/1.3 var(--font-ui); }
.pen-experiences__footer { padding:32px 20px 70px; text-align:center; }
.pen-experiences__footer .pen-experiences-cta { border-radius:4px; }
@media (max-width:900px) {
 .pen-advisor__form { grid-template-columns:1fr; }
 .pen-advisor__fields { padding:24px; }
 .pen-advisor__action { padding:18px 24px; justify-content:center; }
 .pen-advisor__action .pen-experiences-cta { width:auto; min-width:220px; }
}
@media (max-width:600px) {
 .pen-advisor { width:calc(100% - 32px); }
 .pen-advisor__fields { flex-direction:column; gap:12px; }
 .pen-advisor__field { width:100%; }
 .pen-advisor__field input { height:48px; }
 .pen-experiences__header { padding:36px 0 28px; }
 .pen-experiences__header h2 span:last-child { font-size:clamp(30px,9vw,54px); }
 .pen-experiences__scene { min-height:540px; padding-top:130px; box-sizing:border-box; }
 .pen-experiences__cards { grid-template-columns:1fr; max-width:340px; gap:12px; }
 .pen-experiences__card { border-radius:16px; padding:22px 22px 24px; }
 .pen-experiences__card:last-child { border-radius:16px 16px 0 0; }
 .pen-experiences__card h3 { font-size:30px; }
 .pen-experiences__footer { padding-bottom:44px; }
}
@media (prefers-reduced-motion:reduce) {
 .pen-advisor__field input,.pen-advisor__field > svg,.pen-experiences__slide { transition:none; }
}

/* Extender únicamente el fondo: los campos conservan su geometría. */
.pen-advisor__fields::before {
    content:""; position:absolute; inset:0; z-index:-1;
    background:#000; box-shadow:0 0 0 100vmax #000;
    clip-path:inset(0 0 0 -100vmax); pointer-events:none;
}
@media (max-width:900px) {
    .pen-advisor__fields::before { clip-path:inset(0 -100vmax); }
    .pen-experiences__cards {
        display:flex; max-width:none; overflow-x:auto;
        scroll-snap-type:x mandatory; overscroll-behavior-x:contain;
        -webkit-overflow-scrolling:touch; scrollbar-width:none;
    }
    .pen-experiences__cards::-webkit-scrollbar { display:none; }
    .pen-experiences__card {
        flex:0 0 min(340px, 88%); min-width:0; box-sizing:border-box;
        scroll-snap-align:start;
    }
}
@media (prefers-reduced-motion:reduce) {
    .pen-experiences__slide.is-active,
    .pen-experiences__slide.is-leaving { transition:none; }
}

.pen-experiences__card:hover { background: #A36E29; }

/* Cards de Experiencias: proporciones y alineación homogéneas. */
.pen-experiences__cards { width:min(calc(100% - 40px), 840px); gap:20px; align-items:stretch; }
.pen-experiences__card {
    box-sizing:border-box; min-height:236px; padding:54px 24px 36px;
    display:grid; grid-template-rows:80px 1fr; gap:12px;
}
.pen-experiences__card h3 { margin:0; padding:0; font-size:34px; line-height:1; text-align:center; }
.pen-experiences__card h3 span { font-size:24px; line-height:1.2; }
.pen-experiences__card p { margin:0; font-family:Arial, Helvetica, sans-serif; font-size:16px; line-height:1.3; text-align:center; }
.pen-experiences__icon { width:56px; height:56px; top:12px; left:12px; }
.pen-experiences__icon svg, .pen-experiences__icon img { width:30px; height:30px; }
@media (max-width:900px) {
    .pen-experiences__cards { gap:12px; }
    .pen-experiences__card { padding:52px 20px 28px; grid-template-rows:64px 1fr; }
    .pen-experiences__card h3 { font-size:28px; }
    .pen-experiences__card h3 span { font-size:20px; }
    .pen-experiences__card p { font-size:14px; }
    .pen-experiences__icon { width:44px; height:44px; top:10px; left:10px; }
    .pen-experiences__icon svg, .pen-experiences__icon img { width:26px; height:26px; }
}

/* En móvil cada fotografía y su contenido forman un único slide. */
.pen-experiences__photo { display:none; }
.pen-experiences__body { display:contents; }
@media (max-width:900px) {
    .pen-experiences__scene { min-height:0; padding:0; display:block; }
    .pen-experiences__slides { display:none; }
    .pen-experiences__cards { width:100%; gap:0; }
    .pen-experiences__card,
    .pen-experiences__card:last-child {
        flex:0 0 100%; min-height:0; padding:0; border-radius:0;
        display:flex; flex-direction:column; gap:0; scroll-snap-stop:always;
    }
    .pen-experiences__photo {
        display:block; width:100%; aspect-ratio:16 / 9; object-fit:cover;
        flex:none;
    }
    .pen-experiences__body {
        position:relative; display:grid; flex:1; box-sizing:border-box;
        grid-template-columns:minmax(0,1fr);
        grid-template-rows:auto 1fr; gap:10px 12px;
        min-height:130px; padding:18px calc(28px + clamp(36px,7.4vw,50px)) 22px;
    }
    .pen-experiences__body .pen-experiences__icon {
        position:absolute; top:18px; left:16px;
        width:clamp(36px,7.4vw,50px); height:clamp(36px,7.4vw,50px);
    }
    .pen-experiences__card h3 {
        grid-column:1; align-self:center; font-size:clamp(22px,4.8vw,32px);
        line-height:1.15;
    }
    .pen-experiences__card h3 span { display:inline; font-size:inherit; line-height:inherit; }
    .pen-experiences__card h3 span::before { content:" "; }
    .pen-experiences__card p { grid-column:1; font-size:clamp(14px,2.8vw,18px); line-height:1.35; }
}

/* Estados del formulario: conservar el espacio de los campos y del botón. */
.pen-advisor__button-default { display:inline-flex; align-items:center; justify-content:center; gap:10px; }
.pen-advisor__button-default svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.7; }
.pen-advisor__form [hidden] { display:none !important; }
.pen-advisor__action .pen-experiences-cta { min-height:44px; }
.pen-advisor__action .pen-experiences-cta:disabled { cursor:default; opacity:1; background:#22b340; }
.pen-advisor__loader { box-sizing:border-box; width:24px; height:24px; border:3px solid rgba(255,255,255,.35); border-top-color:#fff; border-radius:50%; animation:pen-advisor-spin .8s linear infinite; }
.pen-advisor__action .pen-advisor__check { width:24px; height:24px; stroke-width:2.5; }
.pen-advisor__success { position:absolute; inset:0; display:flex; justify-content:center; align-items:center; box-sizing:border-box; margin:0; padding:20px 28px; color:#fff; font:400 16px/1.5 var(--font-ui); text-align:center; pointer-events:none; }
.pen-advisor__success:empty { display:none; }
.pen-advisor__form[data-state="success"] .pen-advisor__field { visibility:hidden; }
.pen-advisor__error { grid-column:1 / -1; margin:12px 0; color:#a12020; font:400 15px/1.4 var(--font-ui); }
.pen-advisor__error:empty { display:none; }
.pen-advisor__trap { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
@keyframes pen-advisor-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { .pen-advisor__loader { animation:none; } }
