/* CSS propio de index.html (antes estaba dentro del HTML) */

/* slider (antes inyectado por JS) */
.jost-font{ font-family: 'jost' !important; }

/* slider (antes inyectado por JS) */
#rev_slider_4_1_wrapper .uranus .tp-bullet{
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255,255,255,0);
  -webkit-transition: box-shadow 0.3s ease;
  transition: box-shadow 0.3s ease;
  background:transparent;
  width:15px;
  height:15px;
}
#rev_slider_4_1_wrapper .uranus .tp-bullet.selected,
#rev_slider_4_1_wrapper .uranus .tp-bullet:hover {
  box-shadow: 0 0 0 2px rgba(255,255,255,1);
  border:none;
  border-radius: 50%;
  background:transparent;
}

#rev_slider_4_1_wrapper .uranus .tp-bullet-inner {
  -webkit-transition: background-color 0.3s ease, -webkit-transform 0.3s ease;
  transition: background-color 0.3s ease, transform 0.3s ease;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  outline: none;
  border-radius: 50%;
  background-color: rgba(255,255,255,0);
  background-color: rgba(255,255,255,0.3);
  text-indent: -999em;
  cursor: pointer;
  position: absolute;
}

#rev_slider_4_1_wrapper .uranus .tp-bullet.selected .tp-bullet-inner,
#rev_slider_4_1_wrapper .uranus .tp-bullet:hover .tp-bullet-inner{
 transform: scale(0.4);
 -webkit-transform: scale(0.4);
 background-color:rgba(255,255,255,1);
}

/* cdw-hero-cover */
#home.gdlr-core-pbf-wrapper, #div_5051_0 { padding: 0px !important; margin: 0px !important; }
#div_5051_1 { background-color: transparent !important; display: none !important; }
#div_5051_2 { padding-top: 0px !important; padding-bottom: 0px !important; }
rs-module rs-sbg, rs-module .rev-slidebg, rs-sbg-wrap rs-sbg { background-size: cover !important; background-position: center center !important; background-repeat: no-repeat !important; }
rs-module rs-sbg img, rs-module img.rev-slidebg { object-fit: cover !important; width: 100% !important; height: 100% !important; }
rs-module-wrap, rs-module, rs-sbg-px, rs-sbg-wrap { background: transparent !important; }

/* WhatsApp Consulta Box */
.cdw-wa-form {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    transition: all 0.3s ease;
}
.cdw-wa-form:focus-within {
    border-color: #111111;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
}
.cdw-wa-input-wrap {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
}
.cdw-wa-input {
    width: 100% !important;
    height: 58px !important;
    line-height: 20px !important;
    padding: 0 20px !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    font-family: 'Jost', sans-serif !important;
    font-size: 15px !important;
    color: #111111 !important;
    box-sizing: border-box !important;
}
.cdw-wa-input::placeholder {
    color: #888888;
    font-size: 14px;
}
.cdw-wa-submit {
    flex: 0 0 auto;
    height: 58px;
    padding: 0 24px;
    background: #111111;
    color: #ffffff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.cdw-wa-submit i {
    font-size: 18px;
    color: #25D366;
    transition: transform 0.25s ease, color 0.25s ease;
}
.cdw-wa-submit:hover {
    background: #25D366;
    color: #ffffff;
}
.cdw-wa-submit:hover i {
    color: #ffffff;
    transform: scale(1.15);
}
@media (max-width: 600px) {
    .cdw-wa-form {
        flex-direction: column;
        border: none;
        box-shadow: none;
        gap: 10px;
        background: transparent;
    }
    .cdw-wa-form:focus-within {
        border-color: transparent;
        box-shadow: none;
    }
    .cdw-wa-input-wrap {
        border: 1px solid rgba(0, 0, 0, 0.15);
        background: #ffffff;
    }
    .cdw-wa-submit {
        width: 100%;
        height: 52px;
    }
}

/* cdw-idx-slider */
.cdw-slide-nav { display: none; align-items: center; justify-content: center; gap: 18px; padding: 22px 20px 0; }
.cdw-slide-btn { width: 46px; height: 46px; border: 1px solid #111; background: #fff; color: #111; font-size: 28px; line-height: 1; cursor: pointer; padding: 0 0 4px; }
.cdw-slide-btn:active { background: #111; color: #fff; }
.cdw-slide-hint { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #333333; }
@media (max-width: 999px) { .cdw-slide-nav { display: flex; } }

#gdlr-core-wrapper-2 .gdlr-core-portfolio-thumbnail-image-wrap { aspect-ratio: 4 / 3; overflow: hidden; }
#gdlr-core-wrapper-2 .gdlr-core-portfolio-thumbnail-image-wrap a { display: block; height: 100%; }
#gdlr-core-wrapper-2 .gdlr-core-portfolio-thumbnail-image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
#gdlr-core-wrapper-2 .gdlr-core-portfolio-item { padding-bottom: 0; }
#gdlr-core-wrapper-2 .flexslider, #gdlr-core-wrapper-2 .flexslider .slides { height: auto !important; }

    

/* estilos que estaban en atributos style="" */
.cdw-i-1 { padding: 0px 0px 0px 0px !important; }
.cdw-i-2 { background-color: transparent !important; display: none !important; }
.cdw-i-3 { background: transparent !important; padding: 0 !important; margin: 0px auto !important; margin-top: 0 !important; margin-bottom: 0 !important; }
.cdw-i-4 { z-index: 9 !important; font-family: Jost !important; }
.cdw-i-5 { z-index: 10 !important; background-color: #ffffff !important; }
.cdw-i-6 { z-index: 11 !important; font-family: Jost !important; }
.cdw-i-7 { z-index: 8 !important; background-color: rgba(0, 0, 0, 0.5) !important; }
.cdw-i-8 { z-index: 9 !important; cursor: pointer !important; }
.cdw-i-9 { z-index: 8 !important; background-color: #000000 !important; }
.cdw-i-10 { z-index: 10 !important; cursor: pointer !important; }
.cdw-i-11 { z-index: 11 !important; background-color: #ffffff !important; }
.cdw-i-12 { text-align: center !important; padding: 30px 20px 50px !important; }
.cdw-i-13 { display: inline-block !important; padding: 15px 36px !important; border: 1px solid #6b1e2e !important; background-color: #6b1e2e !important; color: #ffffff !important; font-family: 'Jost', sans-serif !important; font-size: 13px !important; font-weight: 700 !important; letter-spacing: 2px !important; text-transform: uppercase !important; text-decoration: none !important; border-radius: 2px; transition: all .3s ease; }
.cdw-i-13:hover { background-color: #8a2a3d !important; border-color: #8a2a3d !important; color: #ffffff !important; }
.cdw-i-14 { display:block !important; position:relative !important; top:-70px !important; visibility:hidden !important; }
/* botón de los slides (mismo estilo que el botón del slider de la plantilla) */
.cdw-i-btn { z-index: 12 !important; background-color: #ffffff !important; font-family: Jost !important; }

/* ===== Cartas de servicios: fondo con foto desenfocada + abanico de proyectos ===== */
.cdw-svc-card { position: relative; transition: z-index 0s .4s; }
.cdw-svc-bg { overflow: hidden; background-size: cover; background-position: center; }
.cdw-svc-bg::after { content: ""; position: absolute; inset: 0; background: rgba(248, 248, 248, 0.80); transition: background-color .4s ease; }
.cdw-svc-bg--casas { background-image: url(../img/servicios/casas-blur.webp); }
.cdw-svc-bg--locales { background-image: url(../img/servicios/locales-blur.webp); }
.cdw-svc-bg--interiorismo { background-image: url(../img/servicios/interiorismo-blur.webp); }

.cdw-svc-fan-item { display: block; overflow: hidden; border: 4px solid #fff; border-radius: 2px; background: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18); }
.cdw-svc-fan-item img { display: block; width: 100%; height: auto; transition: transform .9s ease; }
.cdw-svc-fan-item:hover img { transform: scale(1.05); }

@keyframes cdw-fan-peek { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes cdw-fan-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@keyframes cdw-fan-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Escritorio (con mouse): 3 fotos asoman por debajo de la carta; al pasar el mouse se abren en arco, separadas */
@media (hover: hover) and (min-width: 768px) {
    .cdw-svc-card:hover, .cdw-svc-card:focus-within { z-index: 20; transition: z-index 0s; }
    .cdw-svc-card:hover .cdw-svc-bg::after, .cdw-svc-card:focus-within .cdw-svc-bg::after { background-color: rgba(248, 248, 248, 0.66); }
    .cdw-svc-fan { position: absolute; left: 50%; bottom: 0; width: 0; height: 0; }
    .cdw-svc-fan-item {
        position: absolute; left: 0; bottom: 0; width: 110px;
        opacity: 0; pointer-events: none;
        transform: translate(-50%, 80%) rotate(0deg) scale(.9);
        transition: transform .9s cubic-bezier(.22, .61, .36, 1), opacity .7s ease, box-shadow .4s ease;
    }
    /* reposo */
    .cdw-svc-fan-item:nth-child(2) { opacity: 1; pointer-events: auto; transform: translate(calc(-50% - 34px), 74%) rotate(-8deg) scale(.9); animation: cdw-fan-peek 4.5s ease-in-out infinite; }
    .cdw-svc-fan-item:nth-child(3) { opacity: 1; pointer-events: auto; transform: translate(-50%, 66%) rotate(0deg) scale(.9); animation: cdw-fan-peek 4.5s ease-in-out -1.5s infinite; z-index: 3; }
    .cdw-svc-fan-item:nth-child(4) { opacity: 1; pointer-events: auto; transform: translate(calc(-50% + 34px), 74%) rotate(8deg) scale(.9); animation: cdw-fan-peek 4.5s ease-in-out -3s infinite; }
    .cdw-svc-fan-item:nth-child(2), .cdw-svc-fan-item:nth-child(4) { z-index: 2; }
    /* hover: arco abierto, cada foto con su lugar */
    .cdw-svc-card:hover .cdw-svc-fan-item, .cdw-svc-card:focus-within .cdw-svc-fan-item { opacity: 1; pointer-events: auto; animation: cdw-fan-float 5s ease-in-out 1s infinite; }
    .cdw-svc-card:hover .cdw-svc-fan-item:nth-child(1), .cdw-svc-card:focus-within .cdw-svc-fan-item:nth-child(1) { transform: translate(calc(-50% - 116px), 62%) rotate(-12deg); transition-delay: 0s; animation-delay: 1s; }
    .cdw-svc-card:hover .cdw-svc-fan-item:nth-child(2), .cdw-svc-card:focus-within .cdw-svc-fan-item:nth-child(2) { transform: translate(calc(-50% - 58px), 44%) rotate(-6deg); transition-delay: .06s; animation-delay: 1.6s; }
    .cdw-svc-card:hover .cdw-svc-fan-item:nth-child(3), .cdw-svc-card:focus-within .cdw-svc-fan-item:nth-child(3) { transform: translate(-50%, 38%) rotate(0deg); transition-delay: .12s; animation-delay: 2.2s; }
    .cdw-svc-card:hover .cdw-svc-fan-item:nth-child(4), .cdw-svc-card:focus-within .cdw-svc-fan-item:nth-child(4) { transform: translate(calc(-50% + 58px), 44%) rotate(6deg); transition-delay: .18s; animation-delay: 2.8s; }
    .cdw-svc-card:hover .cdw-svc-fan-item:nth-child(5), .cdw-svc-card:focus-within .cdw-svc-fan-item:nth-child(5) { transform: translate(calc(-50% + 116px), 62%) rotate(12deg); transition-delay: .24s; animation-delay: 3.4s; }
    .cdw-svc-card .cdw-svc-fan-item:hover { box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28); z-index: 6; animation-play-state: paused; }
}

/* Celular / pantallas táctiles: sin hover, las fotos se muestran en una fila que entra animada */
@media (hover: none), (max-width: 767px) {
    .cdw-svc-fan { position: relative; display: flex; gap: 8px; margin: 26px 20px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .cdw-svc-fan::-webkit-scrollbar { display: none; }
    .cdw-svc-fan-item { flex: 0 0 104px; border-width: 3px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14); opacity: 0; }
    .cdw-svc-card.cdw-in .cdw-svc-fan-item { animation: cdw-fan-in .9s cubic-bezier(.22, .61, .36, 1) both; }
    .cdw-svc-card.cdw-in .cdw-svc-fan-item:nth-child(2) { animation-delay: .12s; }
    .cdw-svc-card.cdw-in .cdw-svc-fan-item:nth-child(3) { animation-delay: .24s; }
    .cdw-svc-card.cdw-in .cdw-svc-fan-item:nth-child(4) { animation-delay: .36s; }
    .cdw-svc-card.cdw-in .cdw-svc-fan-item:nth-child(5) { animation-delay: .48s; }
}

@media (prefers-reduced-motion: reduce) {
    .cdw-svc-fan-item, .cdw-svc-card:hover .cdw-svc-fan-item { animation: none !important; transition-duration: .01s !important; }
    .cdw-svc-fan-item { opacity: 1; }
}

/* Botón de consulta dentro de la galería de cada proyecto */
.lg-sub-html .cdw-lg-consulta { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 14px 22px; border: 1px solid #6b1e2e; background: #6b1e2e; color: #ffffff; font-family: 'Jost', sans-serif; font-size: 12.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none; line-height: 1.4; transition: all .3s ease; border-radius: 2px; }
.lg-sub-html .cdw-lg-consulta i { font-size: 18px; color: #ffffff; transition: color .3s ease; }
.lg-sub-html .cdw-lg-consulta:hover { background: #8a2a3d; border-color: #8a2a3d; color: #fff; }
.lg-sub-html .cdw-lg-consulta:hover i { color: #fff; }

/* Trayectoria: en pantallas medianas la foto se achica para no encimarse con el texto */
@media (min-width: 768px) and (max-width: 1199px) {
    #div_997d_40 { margin-left: 40px !important; }
    #div_997d_42 img { max-width: 470px; height: auto; }
}

/* ===== Obras en video (reels de Instagram) ===== */
.cdw-ig { padding: 90px 0 20px; }
.cdw-ig .cdw-ig-title { font-size: 60px; font-weight: 500; letter-spacing: 4px; text-transform: none; color: #121212; }
.cdw-ig .cdw-ig-caption { display: block; margin-top: 12px; font-size: 20px; font-weight: 400; letter-spacing: 2px; font-style: normal; color: #7b7b7b; }
.cdw-ig-item { display: flex; justify-content: center; }
.cdw-ig-embed { width: 100%; max-width: 400px; min-height: 480px; margin: 0 auto; padding: 24px; border: 1px solid rgba(0, 0, 0, 0.1); background: #fff; box-sizing: border-box; display: flex; align-items: center; justify-content: center; text-align: center; }
.cdw-ig-embed a { font-family: 'Jost', sans-serif; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: #111; }
.cdw-ig iframe.instagram-media { min-width: 0 !important; max-width: 400px !important; width: 100% !important; margin: 0 auto !important; }
@media (max-width: 999px) { .cdw-ig .cdw-ig-title { font-size: 44px; } }
@media (max-width: 767px) {
    .cdw-ig { padding: 60px 0 10px; }
    .cdw-ig .cdw-ig-title { font-size: 34px; letter-spacing: 2px; }
    .cdw-ig .cdw-ig-caption { font-size: 15px; letter-spacing: 1px; }
}

/* Datos (años, muestras, fundación, premio): entre la sección de Claudio y la galería de obras */
#experiencia { padding: 30px 0 0 !important; }
#experiencia .gdlr-core-pbf-column-content-margin { padding-bottom: 40px !important; }

/* Galería horizontal: desplazamiento nativo con teclado y gestos táctiles. */
#gdlr-core-wrapper-2 .cdw-work-track {
    display: flex; align-items: flex-start; gap: 0;
    width: 100%; margin: 0; padding: 0; list-style: none;
    overflow-x: auto; scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
}
#gdlr-core-wrapper-2 .cdw-work-track > li {
    flex: 0 0 33.333333%; min-width: 0; margin: 0; padding: 0;
    scroll-snap-align: start;
}
#gdlr-core-wrapper-2 .cdw-work-track:focus-visible { outline: 2px solid #6b1e2e; outline-offset: -2px; }
#gdlr-core-wrapper-2 .cdw-slide-nav { display: flex; }
@media (max-width: 999px) {
    #gdlr-core-wrapper-2 .cdw-work-track > li { flex-basis: 50%; }
}
@media (max-width: 767px) {
    #gdlr-core-wrapper-2 .cdw-work-track > li { flex-basis: 88%; }
}
/* Ocultar la barra horizontal sin desactivar el desplazamiento. */
#gdlr-core-wrapper-2 .cdw-work-track {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
#gdlr-core-wrapper-2 .cdw-work-track::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
/* Las nuevas exposiciones mantienen el mismo formato de portada. */
#exposiciones .gdlr-core-personnel-list-image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
/* Del boceto al espacio: dibujos destacados después de la biografía. */
.cdw-sketch-section { padding: 64px 0 54px; background: #fff; color: #171717; }
.cdw-sketch-container { padding: 0 40px; margin: 0 auto; }
.cdw-sketch-grid { display: grid; grid-template-columns: .65fr 1.35fr; gap: 38px 48px; align-items: center; }
.cdw-sketch-kicker { display: block; color: #6b1e2e; font-size: 13px; letter-spacing: 2.5px; line-height: 1.7; }
.cdw-sketch-intro h2 { margin: 20px 0 24px; font-size: clamp(36px, 4.5vw, 60px); line-height: 1.13; font-weight: 500; letter-spacing: 1px; color: #171717; }
.cdw-sketch-intro p { max-width: 380px; margin: 0 0 30px; font-size: 18px; line-height: 1.8; color: #57524e; }
.cdw-sketch-section a.cdw-sketch-action { display: inline-flex; align-items: center; gap: 18px; min-height: 48px; padding: 14px 24px; background: #6b1e2e; border: 1px solid #6b1e2e; color: #fff; font-size: 12px; line-height: 1.4; letter-spacing: 1.5px; text-transform: uppercase; transition: background .2s; }
.cdw-sketch-section a.cdw-sketch-action:hover { background: #8a2a3d; color: #fff; }
.cdw-sketch-featured { min-width: 0; margin: 0; }
.cdw-sketch-open { display: block; background: transparent; border: 0; box-shadow: none; }
.cdw-sketch-featured img { display: block; width: 100%; height: auto; border: 0; border-radius: 0; box-shadow: none; }
.cdw-sketch-featured figcaption { margin-top: 14px; color: #625b55; font-size: 11px; line-height: 1.7; letter-spacing: 1.7px; }
.cdw-sketch-thumbnails { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 0; align-items: start; }
.cdw-sketch-thumb { display: block; min-width: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; cursor: pointer; }
.cdw-sketch-thumb img { display: block; width: 100%; height: auto; border: 0; border-radius: 0; box-shadow: none; }


.cdw-sketch-section a:focus-visible, .cdw-sketch-thumb:focus-visible { outline: 3px solid #6b1e2e; outline-offset: 6px; }
@media (max-width: 999px) { .cdw-sketch-container { padding: 0 30px; } .cdw-sketch-grid { gap: 30px; } .cdw-sketch-intro p { font-size: 16px; } }
@media (max-width: 767px) {
    .cdw-sketch-section { padding: 44px 0 38px; }
    .cdw-sketch-container { padding: 0 24px; }
    .cdw-sketch-grid { grid-template-columns: 1fr; gap: 28px; }
    .cdw-sketch-intro h2 { margin: 16px 0 20px; font-size: 40px; }
    .cdw-sketch-intro p { max-width: 100%; margin-bottom: 24px; }

    .cdw-sketch-thumbnails { grid-template-columns: 1fr; gap: 28px; }

    .cdw-sketch-featured figcaption { font-size: 10px; letter-spacing: 1.2px; }
}
@media (prefers-reduced-motion: reduce) { .cdw-sketch-thumb img, .cdw-sketch-section a.cdw-sketch-action { transition: none; } }
