/* Complementos del sitio independiente (reemplazan jQuery, fancybox, easytabs, Flash y plugins de WordPress) */

/* Pestañas */
.js .tab-container .panel { display: none; }
.tab a { cursor: pointer; }

/* Fotos de "Trabajaron con..." en blanco y negro, a color al pasar el mouse */
.bwWrapper img { filter: grayscale(1); -webkit-filter: grayscale(1); transition: filter .25s; }
.bwWrapper:hover img { filter: none; -webkit-filter: none; }
.bwWrapper span { position: absolute; left: 0; top: 0; width: 100px; height: 100px; display: block; }
.widget ul li a.bwWrapper { width: 100px; height: 100px; }

/* Compartir */
.redes { margin: 14px 0; }
.redes a.compartir { display: inline-block; margin-right: 8px; padding: 3px 9px; font-size: 11px; color: #fff; background: #195b91; border-radius: 4px; }
.redes a.compartir:hover { background: #bf303d; }

/* 404 */
.nf { font-size: 16px; color: #4a7394; padding: 20px 0; }
.nf a { color: #bf303d; text-decoration: underline; }

/* Formulario de contacto (página dentro de la ventana modal) */
body.solo-form { background: #F5F5E0; }
body.solo-form .formulario { margin: 0 auto; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#contacto input::placeholder, #contacto textarea::placeholder { color: #8aa5ba; }

/* Ventana modal (formulario de contacto) y visor de imágenes */
#cv-overlay { position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,.72); display: flex; align-items: center; justify-content: center; }
#cv-overlay .cv-box { position: relative; max-width: 96vw; max-height: 94vh; background: #fff; padding: 10px; box-shadow: 0 0 22px #000; }
#cv-overlay img.cv-img { display: block; max-width: calc(96vw - 20px); max-height: calc(94vh - 20px); }
#cv-overlay iframe { display: block; width: 540px; max-width: 90vw; height: 440px; max-height: 88vh; border: 0; background: #F5F5E0; }
#cv-overlay .cv-close { position: absolute; top: -14px; right: -14px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #bf303d; color: #fff; font-size: 18px; line-height: 30px; cursor: pointer; }

/* Introducción (reemplaza la animación Flash) */
#intro { display: none; position: fixed; inset: 0; z-index: 8000; background: #0d3556; overflow: hidden; }
#intro.visible { display: block; }
#intro .mosaico { position: absolute; inset: -20px; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 4px; opacity: .55; }
#intro .mosaico img { width: 100px; height: 100px; opacity: 0; animation: cvIn .9s ease forwards; }
#intro .tarjeta { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 520px; max-width: 92vw; padding: 34px 30px 30px; text-align: center; background: rgba(255,255,255,.94); border: 6px solid #fff; box-shadow: 0 6px 30px rgba(0,0,0,.55); }
#intro .tarjeta img { max-width: 100%; height: auto; }
#intro .tarjeta h2 { margin: 22px 0 24px; font-family: 'LeagueGothicRegular', Arial, sans-serif; font-weight: normal; font-size: 34px; line-height: 38px; color: #4a7394; }
#intro button { cursor: pointer; border: 0; padding: 9px 34px; font-family: 'LeagueGothicRegular', Arial, sans-serif; font-size: 26px; letter-spacing: 1px; color: #fff; background: #ef3c4d; border-radius: 4px; }
#intro button:hover { background: #bf303d; }
@keyframes cvIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { #intro .mosaico img { animation: none; opacity: 1; } }
