* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #0b0b0b;
    color: #f4f2ee;
    font: 300 16px 'DM Sans', sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   CABECERA FIJA NEGRA
   ========================================================= */

header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;

    width: 100%;
    height: 100px;

    padding: 8px 6vw;

    display: flex;
    justify-content: space-between;
    align-items: center;

    background: rgba(0, 0, 0, .68) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}

.solid {
    background: #000 !important;
}

.logo {
    display: flex;
    align-items: center;

    height: 84px;

    flex-shrink: 0;
}

.logo img {
    display: block;

    width: auto;
    height: 78px;
    max-width: 340px;

    object-fit: contain;
}

nav {
    display: flex;
    align-items: center;

    gap: 35px;

    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: .2em;
}

.menu-toggle {
    display: none;

    background: none;
    color: white;
    border: 0;

    font-size: 24px;
}


/* =========================================================
   INICIO / CARRUSEL
   ========================================================= */

.hero {
    height: calc(100vh - 100px);
    margin-top: 100px;

    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;

    background-color: #0b0b0b;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;

    opacity: 0;
    transform: none;

    transition: opacity 1.3s ease;
}

.slide.active {
    opacity: 1;
    transform: none;
}

.shade {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(90deg, #000b, transparent 70%),
        linear-gradient(0deg, #0008, transparent);
}

.hero-content {
    position: absolute;
    left: 8vw;
    top: 50%;

    transform: translateY(-50%);

    max-width: 650px;
}

.eyebrow {
    font-size: 10px;
    letter-spacing: .28em;
    color: #c9bcae;
}

.hero h1,
.contact h2,
.gallery-title h1 {
    font: 500 clamp(52px, 7vw, 95px) / .98 'Playfair Display', serif;

    margin: 20px 0;
}

.hero em,
.contact em {
    color: #c9b8a0;
}

.hero p {
    line-height: 1.7;
    color: #ddd;
}

.btn {
    display: inline-block;

    padding: 14px 25px;
    margin-top: 18px;

    border: 1px solid #aaa;

    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: 10px;

    background: transparent;
    color: inherit;
}


/* =========================================================
   SECCIONES
   ========================================================= */

.section {
    padding: 130px 7vw;
}

.heading {
    display: flex;
    justify-content: space-between;
    align-items: end;

    margin-bottom: 55px;
}

.heading h2 {
    font: 500 72px 'Playfair Display';

    margin: 15px 0;
}

.heading p {
    max-width: 330px;

    color: #999;
    line-height: 1.7;
}


/* =========================================================
   PORTFOLIOS
   ========================================================= */

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 22px;
}

.card {
    position: relative;

    height: 500px;

    overflow: hidden;

    background: #111;

    display: flex;
    align-items: center;
    justify-content: center;
}

.card img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    display: block;

    transition: transform .8s ease;
}

.card:hover img {
    transform: scale(1.03);
}

.card > div {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    min-height: 42%;

    padding: 30px;

    background:
        linear-gradient(
            transparent,
            rgba(0, 0, 0, .9)
        );

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card h3 {
    font: 500 24px 'Playfair Display';

    margin: 6px 0;
}

.card small {
    color: #c9b8a0;

    text-transform: uppercase;
    letter-spacing: .18em;
}

.card label {
    font-size: 11px;
    color: #ccc;
}


/* =========================================================
   CONTACTO
   ========================================================= */

.contact {
    position: relative;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(255, 255, 255, .035),
            transparent 38%
        ),
        #0d0d0d;

    color: #f4f2ee;

    border-top: 1px solid rgba(255, 255, 255, .08);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.contact-inner {
    max-width: 1160px;

    margin: 0 auto;
}

.contact .eyebrow {
    color: #d5ad79;
}

.contact h2 {
    max-width: 950px;

    margin-top: 26px;
    margin-bottom: 28px;

    font-size: clamp(48px, 6.5vw, 88px);
}

.contact h2 em {
    color: #d5ad79;
}

.contact-intro {
    max-width: 700px;

    margin: 0;

    color: #d6d6d6;

    line-height: 1.8;
    font-size: 17px;
}


/* Datos de contacto */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 0;

    margin: 72px 0 64px;

    border-top: 0;

    padding-top: 0;
}

.contact-item {
    min-height: 175px;

    padding: 10px 36px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    position: relative;
}

.contact-item + .contact-item {
    border-left: 1px solid rgba(255, 255, 255, .14);
}

.contact-icon {
    width: 48px;
    height: 48px;

    margin-bottom: 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #d5ad79;

    font-size: 28px;
}

.contact-grid small {
    display: block;

    margin-bottom: 13px;

    color: #f4f2ee;

    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: 11px;
    font-weight: 400;
}

.contact-grid strong {
    color: #e5e5e5;

    font-size: 16px;
    font-weight: 300;

    line-height: 1.45;

    overflow-wrap: anywhere;
}

.contact-grid a {
    transition:
        color .25s ease,
        background-color .25s ease;
}

.contact-grid a:hover strong {
    color: #d5ad79;
}


/* =========================================================
   REDES SOCIALES
   ========================================================= */

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 28px;

    margin-top: 4px;
}

.social-button {
    width: 72px !important;
    height: 72px !important;

    min-width: 72px;
    min-height: 72px;

    padding: 0 !important;
    margin: 0;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    border: 1px solid #d5ad79;
    border-radius: 50%;

    background: rgba(255, 255, 255, .015);

    color: #f4f2ee;

    font-size: 30px;
    line-height: 1;

    overflow: hidden;

    opacity: 1;

    transition:
        transform .25s ease,
        background-color .25s ease,
        border-color .25s ease,
        color .25s ease,
        box-shadow .25s ease;
}

.social-button i {
    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: 30px !important;
    line-height: 1 !important;
}

.social-button:hover {
    transform: translateY(-4px);

    background: #d5ad79;

    border-color: #d5ad79;

    color: #0b0b0b;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, .32);
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    padding: 25px 7vw;

    color: #777;

    font-size: 11px;

    display: flex;
    justify-content: space-between;
}


/* =========================================================
   GALERIA
   ========================================================= */

.gallery-page {
    padding: 140px 6vw 80px;
}

.back {
    font-size: 11px;

    text-transform: uppercase;
    letter-spacing: .15em;

    color: #999;
}

.gallery-title {
    max-width: 850px;

    margin: 35px auto 70px;

    text-align: center;
}

.gallery-title p {
    color: #999;
}

.gallery {
    columns: 3 260px;

    column-gap: 18px;
}

.gallery button {
    display: block;

    width: 100%;

    padding: 0;
    margin: 0 0 18px;

    border: 0;

    background: none;

    cursor: zoom-in;
}

.gallery img {
    display: block;

    width: 100%;
}

.lightbox {
    display: none;

    position: fixed;
    inset: 0;

    z-index: 100;

    align-items: center;
    justify-content: center;

    background: #000f;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 88%;
    max-height: 88%;

    object-fit: contain;
}

.lightbox button {
    position: absolute;

    border: 0;

    background: none;
    color: white;

    font-size: 55px;
}

.lightbox #close {
    right: 25px;
    top: 10px;
}

.lightbox #prev {
    left: 25px;
}

.lightbox #next {
    right: 25px;
}

.lightbox small {
    position: absolute;

    bottom: 20px;
}


/* =========================================================
   ADMINISTRACION
   ========================================================= */

.admin-shell {
    min-height: 100vh;

    background: #0b0b0b;
    color: #eee;
}

.login-card,
.admin-wrap {
    max-width: 1100px;

    margin: auto;

    padding: 80px 6vw;
}

.login-card {
    max-width: 520px;

    margin-top: 10vh;
}

.admin-top {
    position: static;

    padding: 0 0 40px;

    background: none;
}

.admin-top h1 {
    margin: 12px 0;

    font: 50px 'Playfair Display';
}

.admin-card {
    margin: 22px 0;

    padding: 28px;

    border: 1px solid #292929;

    background: #101010;
}

.admin-card h2 {
    margin-top: 0;

    font: 28px 'Playfair Display';
}

.admin-form {
    display: grid;

    gap: 12px;

    max-width: 700px;
}

.admin-form input,
.admin-form textarea,
.admin-form select,
.login-card input {
    width: 100%;

    padding: 14px;

    border: 1px solid #333;

    background: #171717;
    color: white;
}

.admin-form textarea {
    min-height: 100px;
}

.alert {
    margin: 15px 0;

    padding: 14px;

    border: 1px solid #333;
}

.alert.ok {
    border-color: #526b55;
}

.alert.error {
    border-color: #8b4a4a;

    color: #f0b0b0;
}

.muted {
    color: #888;

    font-size: 13px;
}

.portfolio-admin-head {
    display: flex;
    justify-content: space-between;

    gap: 20px;
}

.admin-photos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 14px;

    margin-top: 20px;
}

.admin-photos img {
    width: 100%;

    aspect-ratio: 1;

    object-fit: cover;
}

.photo-actions {
    display: flex;

    gap: 5px;

    margin-top: 5px;
}

.photo-actions button,
.danger {
    padding: 6px;

    border: 1px solid #444;

    background: none;
    color: #ccc;

    font-size: 11px;

    cursor: pointer;
}

.danger {
    color: #e7aaaa;

    border-color: #744;
}

.admin-wrap h2 {
    font: 28px 'Playfair Display';
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {

    header {
        height: 78px;

        padding: 6px 6vw;
    }

    .logo {
        height: 64px;
    }

    .logo img {
        height: 58px;
        max-width: 62vw;
    }

    .hero {
        height: calc(100vh - 78px);
        margin-top: 78px;
    }

    .menu-toggle {
        display: block;
    }

    header nav {
        display: none;

        position: absolute;
        top: 78px;
        left: 0;
        right: 0;

        padding: 20px 6vw;

        flex-direction: column;

        background: #000;
    }

    header nav.open {
        display: flex;
    }

    .hero-content {
        left: 7vw;
        right: 7vw;
    }

    .hero h1 {
        font-size: 55px;
    }

    .section {
        padding: 90px 6vw;
    }

    .heading {
        display: block;
    }

    .heading h2 {
        font-size: 55px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .card {
        height: 400px;
    }

    .card h3 {
        margin: 5px 0;

        font-size: 22px;
    }


    /* Contacto en movil */

    .contact h2 {
        font-size: 52px;
    }

    .contact-intro {
        font-size: 15px;
    }

    .contact-grid {
        grid-template-columns: 1fr;

        margin: 55px 0 45px;
    }

    .contact-item {
        min-height: 150px;

        padding: 28px 15px;
    }

    .contact-item + .contact-item {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .14);
    }

    .social-links {
        gap: 18px;
    }

    .social-button {
        width: 62px !important;
        height: 62px !important;

        min-width: 62px;
        min-height: 62px;

        font-size: 26px;
    }

    .social-button i {
        font-size: 26px !important;
    }


    /* Galeria y administracion */

    .gallery {
        columns: 2 140px;
    }

    .gallery-page {
        padding: 110px 5vw 60px;
    }

    .admin-photos {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-admin-head {
        display: block;
    }

    .admin-top {
        padding: 0 0 30px;
    }

    nav {
        gap: 20px;
    }
}

/* =========================================================
   PORTFOLIOS - FONDO CREMA
   NO modifica el masonry de app.js
   ========================================================= */

.home-portfolios {
    background: #f0ede8 !important;
    color: #111 !important;
}

.home-portfolios .home-heading {
    display: block !important;
    margin-bottom: 48px !important;
    text-align: center !important;
}

.home-portfolios .portfolio-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #b88959;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .30em;
    line-height: 1.4;
}

.home-portfolios .home-heading h2 {
    margin: 0 !important;
    color: #111 !important;
    font: 500 clamp(52px, 6vw, 76px) 'Playfair Display', serif !important;
    text-align: center !important;
}

/* Acabado visual de las tarjetas, sin tocar posición ni tamaño */

.home-portfolios .card {
    background: #111;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .10);
}

.home-portfolios .card > div {
    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, .90) 0%,
            rgba(0, 0, 0, .48) 52%,
            transparent 100%
        );
}

.home-portfolios .card small {
    color: #d4ad7e !important;
}

.home-portfolios .card h3 {
    color: #fff !important;
}

.home-portfolios .card label {
    color: rgba(255, 255, 255, .78) !important;
}

@media (max-width: 700px) {
    .home-portfolios .home-heading {
        margin-bottom: 34px !important;
    }

    .home-portfolios .portfolio-eyebrow {
        font-size: 9px;
    }

    .home-portfolios .home-heading h2 {
        font-size: 52px !important;
    }
}

/* =========================================================
   PORTFOLIO INTERIOR - FILA HORIZONTAL CENTRADA
   ========================================================= */

.showcase-page {
    min-height: 100vh;

    padding-top: 112px;
    padding-bottom: 80px;

    overflow: hidden;
}

.showcase-back {
    display: inline-block;

    margin-bottom: 18px;
}

.showcase-title {
    margin: 0 auto 24px;
}

.showcase-title h1 {
    margin: 10px 0 12px;

    font-size: clamp(42px, 4.4vw, 62px);
}

.showcase-title p {
    max-width: 700px;

    margin: 0 auto;

    line-height: 1.7;
}


/* =========================================================
   CARRUSEL EN FILA
   ========================================================= */

.row-carousel {
    position: relative;

    width: 100%;

    margin: 0 auto;

    padding-bottom: 20px;
}

.row-viewport {
    position: relative;

    width: 100%;
    height: min(62vh, 650px);
    min-height: 430px;

    overflow: visible;
}

.row-track {
    position: absolute;

    top: 0;
    left: 0;

    height: 100%;

    display: flex;
    align-items: center;

    gap: 28px;

    will-change: transform;

    transition:
        transform .65s cubic-bezier(.22,.61,.36,1);
}

.row-track.no-transition {
    transition: none !important;
}


/* =========================================================
   FOTOGRAFÍAS
   ========================================================= */

.row-slide {
    position: relative;

    flex: 0 0 clamp(240px, 27vw, 410px);

    width: clamp(240px, 27vw, 410px);
    height: min(46vh, 500px);

    padding: 0;

    border: 0;

    background: #090909;

    overflow: hidden;

    cursor: pointer;

    opacity: .48;

    filter:
        brightness(.58)
        saturate(.82);

    transform: scale(.86);

    transition:
        transform .55s cubic-bezier(.22,.61,.36,1),
        opacity .45s ease,
        filter .45s ease,
        box-shadow .45s ease;
}

.row-slide img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    background: #090909;
}


/* Cercanas a la principal */

.row-slide.near {
    opacity: .66;

    filter:
        brightness(.7)
        saturate(.9);

    transform: scale(.92);
}


/* Foto seleccionada */

.row-slide.active {
    z-index: 3;

    flex-basis: clamp(620px, 62vw, 980px);

    width: clamp(620px, 62vw, 980px);
    height: min(62vh, 650px);

    opacity: 1;

    filter: none;

    transform: scale(1);

    box-shadow:
        0 18px 55px rgba(0, 0, 0, .38);
}


/*
 * Las fotografías más alejadas siguen existiendo en la fila,
 * simplemente quedan más apagadas.
 */

.row-slide.far {
    opacity: .34;
}


/* =========================================================
   FLECHAS
   ========================================================= */

.row-arrow {
    position: absolute;

    z-index: 15;

    top: calc(50% - 60px);

    width: 58px;
    height: 58px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(255, 255, 255, .12);

    border-radius: 50%;

    background:
        rgba(14, 14, 14, .88);

    color: #fff;

    font-size: 46px;
    font-weight: 200;
    line-height: 1;

    cursor: pointer;

    transition:
        opacity .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.row-arrow:hover:not(:disabled) {
    border-color: #d5ad79;

    background: #1a1a1a;
}

.row-arrow:disabled {
    opacity: .22;

    cursor: default;
}

.row-prev {
    left: 4.5vw;
}

.row-next {
    right: 4.5vw;
}


/* =========================================================
   PUNTOS + CONTADOR
   ========================================================= */

.row-dots {
    max-width: 900px;
    min-height: 14px;

    margin: 24px auto 0;

    padding: 0 15px;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 9px;
}

.row-dots button {
    width: 8px;
    height: 8px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #666;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}

.row-dots button.active {
    background: #d5ad79;

    transform: scale(1.3);
}

.row-counter {
    margin-top: 18px;

    text-align: center;

    color: #e4e4e4;

    font-size: 13px;
    letter-spacing: .14em;
}

.row-fullscreen {
    margin: 21px auto 0;

    padding: 8px 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    border: 0;

    background: transparent;

    color: #f4f2ee;

    text-transform: uppercase;
    letter-spacing: .18em;

    font:
        400 11px
        'DM Sans',
        sans-serif;

    cursor: pointer;
}

.row-fullscreen span {
    color: #d5ad79;

    font-size: 17px;
}


/* =========================================================
   LIGHTBOX
   ========================================================= */

body.lightbox-open {
    overflow: hidden;
}

.photo-lightbox {
    position: fixed;

    inset: 0;

    z-index: 5000;

    display: none;
    align-items: center;
    justify-content: center;

    background:
        rgba(0, 0, 0, .97);
}

.photo-lightbox.open {
    display: flex;
}

.photo-lightbox img {
    display: block;

    width: auto;
    height: auto;

    max-width: 90vw;
    max-height: 90vh;

    object-fit: contain;
}

.photo-lightbox-close,
.photo-lightbox-nav {
    position: absolute;

    z-index: 5001;

    border: 0;

    background: transparent;

    color: #fff;

    cursor: pointer;
}

.photo-lightbox-close {
    top: 16px;
    right: 24px;

    font-size: 42px;
}

.photo-lightbox-nav {
    top: 50%;

    transform: translateY(-50%);

    font-size: 64px;
    line-height: 1;

    opacity: .8;
}

.photo-lightbox-prev {
    left: 25px;
}

.photo-lightbox-next {
    right: 25px;
}

.photo-lightbox-count {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 18px;

    text-align: center;

    color: #aaa;

    font-size: 12px;
    letter-spacing: .12em;
}

.portfolio-empty {
    text-align: center;

    color: #888;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .row-slide {
        flex-basis:
            clamp(220px, 32vw, 320px);

        width:
            clamp(220px, 32vw, 320px);
    }

    .row-slide.active {
        flex-basis:
            clamp(520px, 70vw, 760px);

        width:
            clamp(520px, 70vw, 760px);
    }

    .row-prev {
        left: 2vw;
    }

    .row-next {
        right: 2vw;
    }

}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 700px) {

    .showcase-page {
        padding-top: 88px;
    }

    .showcase-title {
        margin-bottom: 24px;
    }

    .showcase-title h1 {
        font-size: 42px;
    }

    .row-viewport {
        height: 55vh;
        min-height: 390px;
    }

    .row-track {
        gap: 14px;
    }

    .row-slide {
        flex-basis: 42vw;

        width: 42vw;
        height: 42vh;

        transform: scale(.84);
    }

    .row-slide.near {
        transform: scale(.9);
    }

    .row-slide.active {
        flex-basis: 82vw;

        width: 82vw;
        height: 54vh;
    }

    .row-arrow {
        top: calc(50% - 52px);

        width: 46px;
        height: 46px;

        font-size: 38px;
    }

    .row-prev {
        left: 4px;
    }

    .row-next {
        right: 4px;
    }

    .row-dots {
        gap: 7px;
    }

    .row-dots button {
        width: 7px;
        height: 7px;
    }

    .photo-lightbox img {
        max-width: 94vw;
        max-height: 86vh;
    }

    .photo-lightbox-prev {
        left: 8px;
    }

    .photo-lightbox-next {
        right: 8px;
    }

}

/* COLOR DEL MENU DEL HEADER */
/* Mismo color que "HABLEMOS" */
#header nav a {
    color: #d5ad79;
}

/* =========================================================
   FOOTER - CONTADOR DE VISITAS
   ========================================================= */

.site-footer {
    padding: 25px 7vw;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 25px;

    color: #777;

    font-size: 11px;

    border-top: 1px solid rgba(255, 255, 255, .06);

    background: #0b0b0b;
}

.footer-copy {
    letter-spacing: .04em;
}

.footer-visits {
    display: inline-flex;
    align-items: baseline;

    gap: 9px;
}

.footer-visits small {
    color: #d5ad79;

    font-size: 9px;
    font-weight: 500;

    letter-spacing: .22em;
}

.footer-visits strong {
    color: #d6d6d6;

    font-size: 12px;
    font-weight: 400;

    letter-spacing: .08em;
}

@media (max-width: 700px) {

    .site-footer {
        padding: 22px 6vw;

        gap: 15px;
    }

    .footer-visits {
        gap: 6px;
    }

    .footer-visits small {
        font-size: 8px;
    }

    .footer-visits strong {
        font-size: 11px;
    }

}

/* =========================================================
   REDES SOCIALES - ESTILO MINIMAL
   ========================================================= */
.contact .social-links-minimal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-top: 8px;
}

.contact .social-links-minimal .social-button {
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 4px !important;
    margin: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #f4f2ee;
    transform: none;
    transition: color .22s ease, transform .22s ease;
}

.contact .social-links-minimal .social-button i {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 19px !important;
    line-height: 1 !important;
}

.contact .social-links-minimal .social-button:hover {
    color: #d5ad79 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: translateY(-2px);
}

@media (max-width: 700px) {
    .contact .social-links-minimal { gap: 22px; }
    .contact .social-links-minimal .social-button i { font-size: 18px !important; }
}


/* =========================================================
   MINIATURAS PORTFOLIOS - TARJETAS PAGINA PRINCIPAL
   La miniatura 1200x800 rellena completamente la tarjeta
   ========================================================= */

.home-portfolios .grid .card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}

/* =========================================================
   INICIO PANTALLA COMPLETA + HEADER SUPERPUESTO
   ========================================================= */
body > #header {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    border-bottom: 0 !important;
    transition: background-color .35s ease, backdrop-filter .35s ease, -webkit-backdrop-filter .35s ease, box-shadow .35s ease !important;
}
body > #header.home-scrolled {
    background: rgba(0,0,0,.68) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 1px 0 rgba(255,255,255,.08) !important;
}
body > #inicio.home-hero {
    height: 100vh !important;
    min-height: 100vh !important;
    margin-top: 0 !important;
}
body > #inicio.home-hero .slide {
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Fotografías del carrusel de Inicio
   Se ajustan al máximo espacio disponible sin recortar ni deformar.
   El navegador decide automáticamente si limita por ancho o por alto
   según la proporción de la fotografía y del hueco disponible. */
body > #inicio.home-hero .slide,
body > #inicio.home-hero .slide.hero-horizontal,
body > #inicio.home-hero .slide.hero-vertical {
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}
body > #header .logo { order: 1; position: relative; z-index: 2; }
body > #header .menu-toggle { order: 2; position: relative; z-index: 2; }
body > #header #nav { order: 3; margin-left: auto; position: relative; z-index: 2; }
body > #header #nav a { text-shadow: 0 1px 8px rgba(0,0,0,.55); }
body > #inicio.home-hero .hero-arrow,
body > #inicio.home-hero #dots { z-index: 5; }

@media (max-width:700px) {
    body > #inicio.home-hero {
        height: 100svh !important;
        min-height: 100svh !important;
        margin-top: 0 !important;
    }
    body > #header #nav { margin-left: 0; }
    body > #header #nav.open {
        background: rgba(0,0,0,.92) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}


/* =========================================================
   LEGIBILIDAD DEL HEADER SOBRE FOTOGRAFIAS CLARAS
   Mantiene el header transparente
   ========================================================= */

/* Degradado suave sobre la parte superior de la fotografía */
body > #inicio.home-hero::before {
    content: "";
    position: absolute;
    z-index: 3;

    top: 0;
    left: 0;
    right: 0;

    height: 160px;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, .46) 0%,
            rgba(0, 0, 0, .22) 48%,
            rgba(0, 0, 0, .08) 72%,
            transparent 100%
        );

    pointer-events: none;
}

/* El logo conserva el blanco pero gana contraste sobre fondos claros */
body > #header .logo img {
    filter:
        drop-shadow(0 2px 4px rgba(0, 0, 0, .85))
        drop-shadow(0 3px 10px rgba(0, 0, 0, .55));
}

/* Mantiene el dorado del menú y mejora su lectura */
body > #header #nav a {
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 1),
        0 2px 7px rgba(0, 0, 0, .90),
        0 3px 14px rgba(0, 0, 0, .65);
}

/* Flechas y puntos siempre por encima del degradado */
body > #inicio.home-hero .hero-arrow,
body > #inicio.home-hero #dots {
    z-index: 5;
}


/* =========================================================
   BARRA DE PROGRESO - CARRUSEL DE INICIO
   ========================================================= */

body > #inicio.home-hero .hero-progress {
    position: absolute;
    right: 3.5vw;
    bottom: 32px;
    z-index: 6;

    width: min(310px, 28vw);
    height: 3px;

    overflow: hidden;

    background: rgba(255, 255, 255, .38);
    border-radius: 999px;

    pointer-events: none;
}

body > #inicio.home-hero .hero-progress-bar {
    display: block;

    width: 100%;
    height: 100%;

    background: rgba(255, 255, 255, .95);
    border-radius: inherit;

    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
}

@media (max-width: 700px) {
    body > #inicio.home-hero .hero-progress {
        right: 6vw;
        bottom: 24px;

        width: 42vw;
        max-width: 220px;
    }
}



/* =========================================================
   AJUSTE FINAL HERO - FOTO COMPLETA, SIN ZOOM NI RECORTE
   ========================================================= */
body > #inicio.home-hero .slides,
body > #inicio.home-hero .slide {
    width: 100% !important;
    height: 100% !important;
}

body > #inicio.home-hero .slide,
body > #inicio.home-hero .slide.hero-horizontal,
body > #inicio.home-hero .slide.hero-vertical {
    inset: 0 !important;
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    transform: none !important;
}


/* =========================================================
   HERO FINAL - FOTO COMPLETA SIN RECORTE NI DEFORMACION
   ========================================================= */
body > #inicio.home-hero {
    position: relative !important;
    width: 100% !important;
    height: 100vh !important;
    min-height: 100vh !important;
    margin-top: 0 !important;
    overflow: hidden !important;
    background: #0b0b0b !important;
}

body > #inicio.home-hero .slides {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

body > #inicio.home-hero .slide {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;

    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;

    transform: none !important;
}

body > #inicio.home-hero .slide.active {
    transform: none !important;
}

@media (max-width: 700px) {
    body > #inicio.home-hero {
        height: 100svh !important;
        min-height: 100svh !important;
    }
}
