/* Fotografías y relato de Castillejos: secciones en flujo, sin carruseles extra. */
.historia{position:relative;z-index:1;background:#000;color:var(--tinta);padding:clamp(80px,10vw,160px) max(6vw,24px);font-family:Arial,sans-serif;}
.historia__entrada,.historia__duo,.historia__pista,.historia__vida,.historia__cachorros,.historia__pie{max-width:1240px;margin-inline:auto;}
.historia__entrada{margin-bottom:clamp(36px,5vw,72px);}
.historia .cintillo{font-size:11px;letter-spacing:.2em;line-height:1.8;}
.historia h2,.historia h3,.historia__nombre{font-family:"Cormorant Concursos",Garamond,serif;font-weight:400;letter-spacing:-.035em;}
.historia h2{font-size:clamp(44px,6.5vw,96px);line-height:.96;margin-top:25px;}
.historia h2 em{font-weight:400;color:#b6a58c;}
.historia h3{font-size:clamp(40px,5vw,64px);line-height:1.1;margin:18px 0;}
.historia picture{display:block;overflow:hidden;}
.historia img{display:block;width:100%;height:100%;object-fit:cover;}
.historia__duo{display:grid;grid-template-columns:1.2fr 1fr;gap:clamp(35px,8vw,130px);align-items:center;}
.historia__duo picture{aspect-ratio:4/5;}
.historia__texto{max-width:370px;}
.historia__texto p:not(.cintillo):not(.historia__nombre){font-size:clamp(18px,1.5vw,22px);line-height:1.6;color:#d3c7b4;}
.historia__nombre{font-size:clamp(34px,4vw,52px);line-height:1.1;margin-bottom:26px;}
.historia__pista{display:grid;grid-template-columns:.75fr 1fr;gap:clamp(35px,8vw,130px);align-items:center;margin-top:clamp(80px,11vw,150px);padding-left:12%;}
.historia__pista picture{aspect-ratio:4/5;}
.historia__vida{display:grid;grid-template-columns:1.2fr 1fr;gap:24px;align-items:start;}
.historia__vida picture:first-child{aspect-ratio:4/3;}
.historia__vida picture:nth-child(2){aspect-ratio:1;margin-top:22%;}
.historia__cachorros{display:grid;grid-template-columns:1.4fr 1fr;gap:24px;align-items:end;}
.historia__cachorros picture:first-child{aspect-ratio:4/3;}
.historia__cachorros picture:last-child{aspect-ratio:1;}
.historia__pie{display:flex;justify-content:space-between;gap:35px;align-items:center;margin-top:35px;font-size:14px;line-height:1.8;}
.historia__pie p{max-width:490px;color:#c0b6a6;}
.historia__enlace{color:var(--tinta);text-decoration:none;border-bottom:1px solid var(--filete);padding:12px 0;white-space:nowrap;}
.historia__enlace:hover{color:#fff;}.historia__enlace:focus-visible{outline:2px solid var(--tinta);outline-offset:6px;}
@media(max-width:700px){.historia__duo,.historia__pista{grid-template-columns:1fr;gap:32px;}.historia__pista{padding-left:15%;}.historia__texto{max-width:none;}.historia__vida{grid-template-columns:1fr;gap:24px;}.historia__vida picture:nth-child(2){margin:0 0 0 18%;}.historia__cachorros{grid-template-columns:1fr;}.historia__cachorros picture:last-child{margin-left:28%;}.historia__pie{display:block;}.historia__enlace{display:inline-block;margin-top:18px;}.historia h2{font-size:clamp(40px,10.5vw,68px);}}
.hero__foto--presencia-editorial,.hero__foto--descanso-editorial,.hero__foto--ternura-editorial{--foco:50% 50%;}
.historia__vida picture:nth-child(2){aspect-ratio:16/9;}
.historia__cachorros picture:last-child{aspect-ratio:1;}

/* Victor: esquinas continuas en fotografías, con formatos originales. La máscara
   está embebida para que Firefox también la pinte al abrir el sitio con file://. */
:root{--foto-curva:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201000%201000%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20fill%3D%22white%22%20d%3D%22M1000.000%2C500.000%20L999.950%2C645.301%20L999.799%2C683.049%20L999.548%2C709.504%20L999.196%2C730.535%20L998.743%2C748.262%20L998.190%2C763.720%20L997.534%2C777.504%20L996.777%2C789.989%20L995.917%2C801.429%20L994.954%2C812.004%20L993.888%2C821.848%20L992.718%2C831.064%20L991.442%2C839.729%20L990.061%2C847.909%20L988.573%2C855.655%20L986.977%2C863.008%20L985.272%2C870.005%20L983.457%2C876.675%20L981.530%2C883.044%20L979.490%2C889.134%20L977.336%2C894.962%20L975.065%2C900.547%20L972.676%2C905.901%20L970.167%2C911.039%20L967.535%2C915.971%20L964.778%2C920.706%20L961.894%2C925.255%20L958.879%2C929.625%20L955.731%2C933.823%20L952.446%2C937.856%20L949.020%2C941.730%20L945.449%2C945.449%20L941.730%2C949.020%20L937.856%2C952.446%20L933.823%2C955.731%20L929.625%2C958.879%20L925.255%2C961.894%20L920.706%2C964.778%20L915.971%2C967.535%20L911.039%2C970.167%20L905.901%2C972.676%20L900.547%2C975.065%20L894.962%2C977.336%20L889.134%2C979.490%20L883.044%2C981.530%20L876.675%2C983.457%20L870.005%2C985.272%20L863.008%2C986.977%20L855.655%2C988.573%20L847.909%2C990.061%20L839.729%2C991.442%20L831.064%2C992.718%20L821.848%2C993.888%20L812.004%2C994.954%20L801.429%2C995.917%20L789.989%2C996.777%20L777.504%2C997.534%20L763.720%2C998.190%20L748.262%2C998.743%20L730.535%2C999.196%20L709.504%2C999.548%20L683.049%2C999.799%20L645.301%2C999.950%20L500.002%2C1000.000%20L354.699%2C999.950%20L316.951%2C999.799%20L290.496%2C999.548%20L269.465%2C999.196%20L251.738%2C998.743%20L236.280%2C998.190%20L222.496%2C997.534%20L210.011%2C996.777%20L198.571%2C995.917%20L187.996%2C994.954%20L178.152%2C993.888%20L168.936%2C992.718%20L160.271%2C991.442%20L152.091%2C990.061%20L144.345%2C988.573%20L136.992%2C986.977%20L129.995%2C985.272%20L123.325%2C983.457%20L116.956%2C981.530%20L110.866%2C979.490%20L105.038%2C977.336%20L99.453%2C975.065%20L94.099%2C972.676%20L88.961%2C970.167%20L84.029%2C967.535%20L79.294%2C964.778%20L74.745%2C961.894%20L70.375%2C958.879%20L66.177%2C955.731%20L62.144%2C952.446%20L58.270%2C949.020%20L54.551%2C945.449%20L50.980%2C941.730%20L47.554%2C937.856%20L44.269%2C933.823%20L41.121%2C929.625%20L38.106%2C925.255%20L35.222%2C920.706%20L32.465%2C915.971%20L29.833%2C911.039%20L27.324%2C905.901%20L24.935%2C900.547%20L22.664%2C894.962%20L20.510%2C889.134%20L18.470%2C883.044%20L16.543%2C876.675%20L14.728%2C870.005%20L13.023%2C863.008%20L11.427%2C855.655%20L9.939%2C847.909%20L8.558%2C839.729%20L7.282%2C831.064%20L6.112%2C821.848%20L5.046%2C812.004%20L4.083%2C801.429%20L3.223%2C789.989%20L2.466%2C777.504%20L1.810%2C763.720%20L1.257%2C748.262%20L0.804%2C730.535%20L0.452%2C709.504%20L0.201%2C683.049%20L0.050%2C645.301%20L0.000%2C500.002%20L0.050%2C354.699%20L0.201%2C316.951%20L0.452%2C290.496%20L0.804%2C269.465%20L1.257%2C251.738%20L1.810%2C236.280%20L2.466%2C222.496%20L3.223%2C210.011%20L4.083%2C198.571%20L5.046%2C187.996%20L6.112%2C178.152%20L7.282%2C168.936%20L8.558%2C160.271%20L9.939%2C152.091%20L11.427%2C144.345%20L13.023%2C136.992%20L14.728%2C129.995%20L16.543%2C123.325%20L18.470%2C116.956%20L20.510%2C110.866%20L22.664%2C105.038%20L24.935%2C99.453%20L27.324%2C94.099%20L29.833%2C88.961%20L32.465%2C84.029%20L35.222%2C79.294%20L38.106%2C74.745%20L41.121%2C70.375%20L44.269%2C66.177%20L47.554%2C62.144%20L50.980%2C58.270%20L54.551%2C54.551%20L58.270%2C50.980%20L62.144%2C47.554%20L66.177%2C44.269%20L70.375%2C41.121%20L74.745%2C38.106%20L79.294%2C35.222%20L84.029%2C32.465%20L88.961%2C29.833%20L94.099%2C27.324%20L99.453%2C24.935%20L105.038%2C22.664%20L110.866%2C20.510%20L116.956%2C18.470%20L123.325%2C16.543%20L129.995%2C14.728%20L136.992%2C13.023%20L144.345%2C11.427%20L152.091%2C9.939%20L160.271%2C8.558%20L168.936%2C7.282%20L178.152%2C6.112%20L187.996%2C5.046%20L198.571%2C4.083%20L210.011%2C3.223%20L222.496%2C2.466%20L236.280%2C1.810%20L251.738%2C1.257%20L269.465%2C0.804%20L290.496%2C0.452%20L316.951%2C0.201%20L354.699%2C0.050%20L499.997%2C0.000%20L645.301%2C0.050%20L683.049%2C0.201%20L709.504%2C0.452%20L730.535%2C0.804%20L748.262%2C1.257%20L763.720%2C1.810%20L777.504%2C2.466%20L789.989%2C3.223%20L801.429%2C4.083%20L812.004%2C5.046%20L821.848%2C6.112%20L831.064%2C7.282%20L839.729%2C8.558%20L847.909%2C9.939%20L855.655%2C11.427%20L863.008%2C13.023%20L870.005%2C14.728%20L876.675%2C16.543%20L883.044%2C18.470%20L889.134%2C20.510%20L894.962%2C22.664%20L900.547%2C24.935%20L905.901%2C27.324%20L911.039%2C29.833%20L915.971%2C32.465%20L920.706%2C35.222%20L925.255%2C38.106%20L929.625%2C41.121%20L933.823%2C44.269%20L937.856%2C47.554%20L941.730%2C50.980%20L945.449%2C54.551%20L949.020%2C58.270%20L952.446%2C62.144%20L955.731%2C66.177%20L958.879%2C70.375%20L961.894%2C74.745%20L964.778%2C79.294%20L967.535%2C84.029%20L970.167%2C88.961%20L972.676%2C94.099%20L975.065%2C99.453%20L977.336%2C105.038%20L979.490%2C110.866%20L981.530%2C116.956%20L983.457%2C123.325%20L985.272%2C129.995%20L986.977%2C136.992%20L988.573%2C144.345%20L990.061%2C152.091%20L991.442%2C160.271%20L992.718%2C168.936%20L993.888%2C178.152%20L994.954%2C187.996%20L995.917%2C198.571%20L996.777%2C210.011%20L997.534%2C222.496%20L998.190%2C236.280%20L998.743%2C251.738%20L999.196%2C269.465%20L999.548%2C290.496%20L999.799%2C316.951%20L999.950%2C354.699%20L1000.000%2C499.997%20Z%22%2F%3E%3C%2Fsvg%3E");}
.historia picture,.carrusel__tarjeta{
  border-radius:12%;
  -webkit-mask-image:var(--foto-curva);mask-image:var(--foto-curva);
  -webkit-mask-size:100% 100%;mask-size:100% 100%;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
}
.historia__duo{grid-template-columns:1.15fr 1fr;gap:clamp(32px,6vw,90px);}
.historia__duo>.historia__texto{max-width:none;}
.historia__duo .historia__ivan-merle{aspect-ratio:4/3;margin-top:42px;}
.historia__texto .historia__nota{font-family:"Cormorant Concursos",Garamond,serif;font-size:clamp(23px,2.4vw,32px)!important;line-height:1.25!important;color:var(--tinta)!important;}
.historia__pista{grid-template-columns:1.25fr .8fr;padding-left:0;gap:clamp(35px,7vw,100px);}
.historia__pista picture{aspect-ratio:4/5;}
.historia__pista img{transition:transform 9s cubic-bezier(.2,.6,.25,1);transform:scale(1);}
.historia__pista.es-visible img{transform:scale(1.025);}
.historia__pista h3{font-size:clamp(56px,7vw,100px);}
.historia__vida{grid-template-columns:repeat(12,1fr);gap:clamp(24px,4vw,56px);}
.historia__vida picture:first-child{grid-column:1/8;aspect-ratio:4/3;}
.historia__vida picture:nth-child(2){grid-column:8/13;aspect-ratio:16/9;margin-top:28%;}
.historia__vida .historia__descanso{grid-column:4/12;aspect-ratio:4/3;margin-top:0;}
@media(max-width:700px){
 .historia__duo,.historia__pista{grid-template-columns:1fr;}
 .historia__pista .historia__texto{padding-left:8%;}
 .historia__vida{grid-template-columns:1fr;}
 .historia__vida picture:first-child,.historia__vida picture:nth-child(2),.historia__vida .historia__descanso{grid-column:1;margin-top:0;}
 .historia__vida picture:nth-child(2){margin-left:16%;}
 .historia__vida .historia__descanso{margin-left:0;margin-right:12%;}
}
@media(prefers-reduced-motion:reduce){.historia__pista img,.historia__pista.es-visible img{transition:none;transform:none;}}
.hero__foto--castillejos-compuesto-editorial{--foco:50% 50%;}
/* El enlace queda solo: conserva una superficie táctil cómoda y admite traducción. */
.historia__enlace{min-height:44px;white-space:normal;}
@media(max-width:700px){.historia__enlace{margin-top:0;}}
@media(orientation:landscape) and (max-height:500px){
 .historia{padding-left:max(24px,env(safe-area-inset-left));padding-right:max(24px,env(safe-area-inset-right));}
}
/* Teléfonos tumbados: reservar el centro para los rostros, no para los rótulos. */
@media(orientation:landscape) and (max-height:500px){
 .hero{--portada-techo:8px;--portada-suelo:12px;--cuerpo-nombre:clamp(32px,5vw,44px);--cuerpo-marca:clamp(28px,4.6vw,38px);}
 .hero__logo{width:24px;margin-bottom:3px;}
 .hero__membrete{font-size:8px;margin-bottom:7px;}
 .hero__foto--castillejos-compuesto-editorial{--foco:50% 100%;}
 .hero__baja{display:none;}
}

/* Ejemplo de testimonio solicitado para la presentación. */
.familias{position:relative;z-index:1;background:var(--negro);display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);align-items:center;}
.familias .carrusel{min-width:0;}
.testimonio{padding:60px clamp(28px,5vw,90px) 60px 25px;}
.testimonio .cintillo{font-size:11px;letter-spacing:.15em;color:#b9ab97;}
.testimonio blockquote{margin:30px 0;font-family:Georgia,"Times New Roman",serif;font-weight:400;font-kerning:normal;letter-spacing:0;font-size:clamp(25px,2.5vw,38px);line-height:1.38;color:var(--tinta);}
.testimonio__firma{font-size:15px;color:var(--tinta);line-height:1.6;}
.testimonio__nota{font-size:14px;line-height:1.6;color:#b9ab97;margin-top:20px;max-width:330px;}
@media(max-width:850px){.familias{display:block;}.testimonio{padding:20px 8vw 70px;}.testimonio blockquote{font-size:28px;}}

.historia__duo .historia__ivan-arlequin{aspect-ratio:4/3;}
.historia__vida .historia__puerta{grid-column:1/-1;aspect-ratio:4/3;margin:clamp(24px,4vw,56px) 0 0;width:100%;}
@media(max-width:700px){.historia__vida .historia__puerta{margin-top:0;}}

/* CTA principal de Cachorros: legible, táctil y con icono vectorial. */
.historia__pie{justify-content:center;margin-top:clamp(32px,4vw,56px);}
.historia__enlace{display:inline-flex;align-items:center;justify-content:center;gap:22px;min-height:66px;padding:19px 30px;border:1px solid #e6ddc8;border-radius:999px;background:#e6ddc8;color:#191713;font-family:Arial,sans-serif;font-size:18px;line-height:1.3;font-weight:500;text-align:center;box-shadow:0 8px 30px #0003;transition:background .2s,transform .2s;}
.historia__enlace svg{flex:0 0 24px;}
.historia__enlace:hover{color:#191713;background:#f3ead8;transform:translateY(-2px);}
.historia__enlace:focus-visible{outline:2px solid #e6ddc8;outline-offset:5px;}
@media(max-width:700px){.historia__enlace{width:100%;font-size:17px;gap:15px;padding:18px 20px;min-height:62px;}}
@media(prefers-reduced-motion:reduce){.historia__enlace{transition:none;}.historia__enlace:hover{transform:none;}}

/* La fotografía se mueve bajo la tipografía. Se transforma el contenedor completo
   para conservar alineados el shader líquido y sus imágenes de respaldo. */
.hero--profundidad .hero__laminas,
.hero--profundidad .hero__recortes{
 transform:translate3d(0,var(--profundidad-y,0px),0) scale(var(--profundidad-escala,1));
 transform-origin:50% 58%;
}
.foto--entrada{transition:opacity .85s ease,translate .85s cubic-bezier(.2,.65,.25,1);}
.foto--pendiente{opacity:0;translate:0 22px;}
.foto--revelada{opacity:1;translate:0 0;}
/* Cierre de marca: halo estático y filete cálido, sin imágenes adicionales. */
.cierre{
 position:relative;
 padding:clamp(80px,10vw,150px) 24px max(65px,env(safe-area-inset-bottom));
 background:radial-gradient(ellipse at 50% 30%,#211d15 0%,#0c0b09 38%,#000 75%);
 border-top:1px solid #d5be8530;
}
.cierre__identidad{gap:18px;margin-bottom:48px;}
.cierre__identidad img{width:clamp(88px,9vw,125px);filter:drop-shadow(0 4px 20px #dbbd7630);}
.cierre__nombre{font-size:clamp(34px,6.5vw,78px);letter-spacing:.13em;line-height:1.15;}
.cierre__identidad .cintillo{font-size:12px;letter-spacing:.34em;}
.cierre__frase{margin:17px 0 0;font-family:Georgia,serif;font-size:clamp(20px,2.4vw,28px);font-weight:400;line-height:1.45;letter-spacing:0;color:#c6baa3;}
.cierre__puertas{max-width:660px;margin-inline:auto;padding-top:32px;border-top:1px solid #d5be8530;}
.cierre__puerta{min-height:64px;}
@media(max-width:700px){
 .foto--pendiente{translate:0 14px;}
 .cierre__identidad{gap:14px;margin-bottom:36px;}
 .cierre__nombre{font-size:clamp(29px,8.5vw,48px);letter-spacing:.1em;}
 .cierre__frase{font-size:20px;}
}
@media(prefers-reduced-motion:reduce){
 .hero--profundidad .hero__laminas,.hero--profundidad .hero__recortes{transform:none;}
 .foto--entrada,.foto--pendiente,.foto--revelada{opacity:1;translate:none;transition:none;}
}
