:root {
    --color-white: #ffffff;
    --color-dark: #000000;
    --color-accent: #b84b35;
    --overlay-dark: rgba(0, 0, 0, 0.42);
    --transition-main: all 0.35s ease;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    background: #000;
}

/* ===============================
   HERO FULLSCREEN
=============================== */

.hero-kince {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.hero-carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
    width: 100%;
    height: 100%;
}

.hero-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Overlay visual sobre cada imagen */
.hero-carousel .carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.20) 0%,
        rgba(0, 0, 0, 0.05) 45%,
        rgba(0, 0, 0, 0.45) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* ===============================
   LOGO POR SLIDE
=============================== */

.project-logo-caption {
    position: absolute;
    top: 42px;
    left: 52px;
    right: auto;
    bottom: auto;

    z-index: 30;
    padding: 0;
    margin: 0;

    width: auto;
    height: auto;

    text-align: left;
    pointer-events: none;
}

.project-logo-caption img {
    display: block;
    max-width: 220px;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ===============================
   FLECHAS HERO SLIDER
=============================== */

.carousel-control-prev,
.carousel-control-next {
    width: 120px;
    opacity: 1;
    z-index: 20;
}

.carousel-control-prev {
    justify-content: flex-start;
    padding-left: 35px;
}

.carousel-control-next {
    justify-content: flex-end;
    padding-right: 35px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 70px;
    height: 70px;
    background-size: 70px 70px;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.08);
}

/* ===============================
   OVERLAY FULLSCREEN
=============================== */

.hero-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;

    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    z-index: 35;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.45s ease,
        visibility 0.45s ease;
}

body.menu-open .hero-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    cursor: pointer;
}

/* ===============================
   MENÚ INFERIOR
=============================== */

.hero-menu {
    position: absolute;
    left: 52px;
    bottom: 52px;

    z-index: 60;

    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-menu-btn {
    border: 0;
    background: transparent;
    color: var(--color-white);

    text-transform: uppercase;
    font-size: clamp(18px, 1.35vw, 27px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.02em;

    display: inline-flex;
    align-items: center;
    gap: 18px;

    padding: 0;
    cursor: pointer;

    text-shadow: 0 0 16px rgba(255, 255, 255, 0.95);

    transition: var(--transition-main);
}

.hero-menu-btn:hover,
.hero-menu-btn.is-active {
    opacity: 0.82;
    transform: translateX(4px);
}

.hero-menu-btn .menu-plus {
    font-size: 32px;
    line-height: 1;
    font-weight: 400;
}

/* ===============================
   PANELES BASE
=============================== */

.hero-panel {
    position: absolute;
    left: 52px;
    bottom: 150px;

    z-index: 50;

    width: min(620px, calc(100vw - 104px));
    color: #ffffff;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(16px);

    transition:
        opacity 0.35s ease,
        transform 0.35s ease,
        visibility 0.35s ease;
}

.hero-panel.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.panel-card {
    position: relative;

    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.18);

    padding: 32px;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.panel-title {
    font-size: clamp(28px, 3vw, 52px);
    font-weight: 700;
    text-transform: uppercase;

    margin: 0 0 24px;

    letter-spacing: 0.02em;
    color: #ffffff;
}

.panel-close {
    position: absolute;
    top: 18px;
    right: 20px;

    border: 0;
    background: transparent;
    color: #ffffff;

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

    cursor: pointer;
    opacity: 0.8;

    z-index: 5;

    transition: opacity 0.25s ease;
}

.panel-close:hover {
    opacity: 1;
}

/* ===============================
   PANEL SERVICIOS
=============================== */

.hero-panel-services {
    width: min(960px, calc(100vw - 104px));
}

.hero-panel-services .panel-card {
    max-height: 68vh;
    overflow-y: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 42px;
}

.service-group h3,
.contact-block h3 {
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #ffffff;
    margin: 0 0 12px;
}

.service-group ul,
.contact-social {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-group li,
.contact-social li {
    font-size: 15px;
    line-height: 1.55;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.86);
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.service-group li span {
    display: block;
    font-size: 12px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 2px;
}

/* Scroll elegante del panel */
.hero-panel-services .panel-card::-webkit-scrollbar {
    width: 4px;
}

.hero-panel-services .panel-card::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
}

.hero-panel-services .panel-card::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.45);
}

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

.hero-panel-contact {
    width: min(520px, calc(100vw - 104px));
}

.contact-block {
    margin-bottom: 32px;
}

.contact-block:last-child {
    margin-bottom: 0;
}

.contact-link,
.contact-social a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.contact-link {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.contact-link:hover,
.contact-social a:hover {
    opacity: 0.7;
}

.contact-social span {
    color: rgba(255, 255, 255, 0.55);
    margin-right: 6px;
}

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

@media (max-width: 991px) {
    .project-logo-caption {
        top: 28px;
        left: 28px;
    }

    .project-logo-caption img {
        max-width: 170px;
        max-height: 70px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 90px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 60px;
        height: 60px;
        background-size: 60px 60px;
    }

    .hero-menu {
        left: 32px;
        bottom: 40px;
        gap: 18px;
    }

    .hero-panel {
        left: 32px;
        bottom: 135px;
        width: calc(100vw - 64px);
    }

    .panel-card {
        padding: 26px;
    }

    .hero-panel-services {
        width: calc(100vw - 64px);
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-panel-services .panel-card {
        max-height: 62vh;
    }
}

/* ===============================
   CAROUSEL CON ARRASTRE DE MOUSE
=============================== */

.hero-carousel {
    cursor: grab;
}

.hero-carousel.is-dragging {
    cursor: grabbing;
}

.hero-carousel img {
    user-select: none;
    -webkit-user-drag: none;
}

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

@media (max-width: 575px) {
    .project-logo-caption {
        top: 24px;
        left: 22px;
    }

    .project-logo-caption img {
        max-width: 135px;
        max-height: 56px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 70px;
    }

    .carousel-control-prev {
        padding-left: 10px;
    }

    .carousel-control-next {
        padding-right: 10px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 50px;
        height: 50px;
        background-size: 50px 50px;
    }

    .hero-menu {
        left: 26px;
        bottom: 34px;
        gap: 16px;
    }

    .hero-menu-btn {
        font-size: 18px;
        gap: 14px;
    }

    .hero-menu-btn .menu-plus {
        font-size: 28px;
    }

    .hero-panel {
        left: 20px;
        bottom: 128px;
        width: calc(100vw - 40px);
    }

    .hero-panel-services,
    .hero-panel-contact {
        width: calc(100vw - 40px);
    }

    .panel-card {
        padding: 24px 22px;
    }

    .panel-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .service-group h3,
    .contact-block h3 {
        font-size: 13px;
    }

    .service-group li,
    .contact-social li {
        font-size: 13px;
    }

    .contact-link {
        font-size: 18px;
    }

    .hero-panel-services .panel-card {
        max-height: 58vh;
    }
}

/* ===============================
   FIX MENÚ MÓVIL VISIBLE
   + PERMITIR PULL TO REFRESH
=============================== */

@media (max-width: 575px) {
    html,
    body {
        height: auto;
        min-height: calc(100svh + 2px);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: auto;
    }

    .hero-kince,
    .hero-carousel,
    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item {
        height: 100svh;
        min-height: 100svh;
    }

    .hero-menu {
        left: 28px;
        bottom: 50px;
        gap: 14px;
        z-index: 100;
    }

    .hero-menu-btn {
        font-size: 21px;
        line-height: 1;
        gap: 14px;
    }

    .hero-menu-btn .menu-plus {
        font-size: 30px;
    }
}

/* Scrollbar para Chrome, Edge, Safari y navegadores WebKit */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #913134;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #944444, #913134);
  border-radius: 20px;
  border: 2px solid #913134;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #913134, #944444);
}

/* Scrollbar para Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: #944444 #913134;
}

/* Color al seleccionar texto */
::selection {
  background: #913134;
  color: #FFFFFF;
}

/* Color al seleccionar texto en Firefox */
::-moz-selection {
  background: #913134;
  color: #FFFFFF;
}