@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ==========================================================================
   MODERN & FUTURISTIC CYBER DESIGN SYSTEM
   ========================================================================== */

:root {
    --primary: #1a1a1a;
    --secondary: #555555;
    --dark: #090d16;
    --text: #475569;
    --text-light: #94a3b8;
    --bg-light: #0d121f;
    --bg-white: #ffffff;
    --border: rgba(226, 232, 240, 0.12);
    --border-hover: rgba(226, 232, 240, 0.3);
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

/* ========================================================================== 
   NAVBAR
   ========================================================================== */
.public-navbar {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid #e2eaf5;
    box-shadow: 0 1px 4px rgba(53, 96, 150, 0.07);
    font-family: 'Plus Jakarta Sans', 'DM Sans', 'Segoe UI', sans-serif;
    transition: 0.25s ease;
}

.public-navbar .navbar-inner {
    width: 100%;
    max-width: 1200px;
    height: 68px;
    min-height: 68px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.public-navbar .brand {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    text-decoration: none;
    transform: translateX(-18px);
}

.public-navbar .brand-logo {
    display: block;
    width: auto;
    height: 58px;
    max-width: 150px;
    max-height: 58px;
    object-fit: contain;
    transition: 0.25s ease;
}

.public-navbar .brand-logo:hover {
    transform: none;
}

.public-navbar .brand-name {
    color: #1a2332;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.public-navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
    margin-right: 28px;
}

.public-navbar .nav-links a {
    position: relative;
    padding: 0;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    transition: color 0.25s ease;
}

.public-navbar .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: #356096;
    transition: width 0.25s ease;
}

.public-navbar .nav-links a:hover {
    color: #356096;
}

.public-navbar .nav-links a:hover::after {
    width: 100%;
}

.language-flags {
    display: flex;
    align-items: center;
    gap: 14px;
}

.language-flags span {
    font-size: 1.4rem;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
    cursor: pointer;
    transition: transform 0.25s ease;
}

.language-flags span:hover {
    transform: scale(1.2) translateY(-1px);
}
/* ==========================================================================
   HERO COVER SECTION
   ========================================================================== */
.hero {
    min-height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--dark);
}

.hero.has-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(9, 13, 22, 0.78), rgba(9, 13, 22, 0.58));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 80px 24px;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    color: var(--bg-white);
    letter-spacing: 0;
    margin-bottom: 20px;
    line-height: 1.15;
    text-transform: none;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-text);
    background: var(--primary);
    border: 1px solid var(--primary);
    text-decoration: none;
    padding: 16px 44px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition);
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    color: var(--secondary-text);
    background: var(--secondary);
    border-color: var(--secondary);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0.5;
}

.hero-scroll-indicator .mouse-wheel {
    display: block;
    width: 22px;
    height: 36px;
    border: 2px solid var(--bg-white);
    border-radius: 11px;
    position: relative;
}

.hero-scroll-indicator .mouse-wheel::after {
    content: '';
    display: block;
    width: 4px;
    height: 8px;
    background: var(--bg-white);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 1.5s infinite;
}

@keyframes scrollMouse {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 12px);
    }
}

/* ==========================================================================
   GLOBAL SECTIONS
   ========================================================================== */
.section-padding {
    padding: 100px 0;
}

.tech-section-header {
    text-align: center;
    position: relative;
    margin-bottom: 50px;
}

.section-title {
    text-align: center;
    color: var(--secondary);
    font-size: clamp(1.65rem, 2.7vw, 2rem);
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: 16px;
}

.section-line {
    width: 50px;
    height: 3px;
    background: var(--secondary);
    margin: 0 auto;
}

/* ==========================================================================
   SOBRE & MAP FRAME
   ========================================================================== */
.about-section {
    background: var(--bg-white);
}

.about-grid {
    align-items: stretch;
    gap: 40px 0;
}

.about-grid > [class*="col-"] {
    min-width: 0;
}

.about-grid > .col-lg-8,
.about-grid > .col-lg-4 {
    display: flex;
}

.about-text-block {
    display: flex;
    gap: 28px;
    width: 100%;
    min-width: 0;
}

.about-text-block > div:last-child {
    min-width: 0;
    width: 100%;
    max-height: 386px;
    display: flex;
    flex-direction: column;
}

.about-icon {
    font-size: 2.2rem;
    color: var(--primary);
    min-width: 60px;
}

.about-text-block h3 {
    font-size: 1.4rem;
    color: #111827;
    font-weight: 800;
    margin-bottom: 16px;
    text-transform: none;
    letter-spacing: 0;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.8;
    text-align: left;
    max-width: 100%;
    max-height: 145px;
    margin-bottom: 22px;
    padding-right: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    box-sizing: border-box;
}

.about-contact-card {
    background: var(--bg-white);
    padding: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid #eee;
    border-left: 3px solid var(--primary);
    box-shadow: var(--shadow-sm);
    margin-top: 36px;
    transition: var(--transition);
}

.about-contact-card:hover {
    border-left-color: var(--secondary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.about-contact-card p {
    margin: 0 0 14px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.about-contact-card p:last-child {
    margin-bottom: 0;
}

.about-contact-card p a {
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.about-contact-card p a:hover {
    color: var(--primary);
}

.about-contact-card i {
    color: var(--primary);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}


.about-address-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.about-address-street,
.about-address-postcode {
    display: block;
}

.about-address-postcode {
    color: var(--text-light);
    font-size: 0.9em;
}
/* MAP & PLACEHOLDER WRAPPERS */
.about-map-card-wrapper,
.about-map-placeholder-wrapper {
    width: 100%;
    position: relative;
    padding: 12px;
    background: var(--bg-white);
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.about-map-card-wrapper:hover,
.about-map-placeholder-wrapper:hover {
    border-color: var(--secondary);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.about-map-card {
    width: 100%;
    height: 360px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.about-map-card iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.about-map-placeholder {
    width: 100%;
    height: 360px;
    border-radius: var(--radius-sm);
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-align: center;
    padding: 24px;
}

.about-map-placeholder i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.about-map-placeholder p {
    margin: 0;
    font-weight: 600;
}

/* ==========================================================================
   SERVIÃ‡OS
   ========================================================================== */
.services-section {
    background: var(--bg-white);
}

.service-card {
    height: 100%;
    border-radius: var(--radius-sm);
    padding: 40px 32px;
    background: var(--bg-white);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
    z-index: 4;
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: #f1f5f9;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 24px;
    position: relative;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--secondary);
    color: var(--bg-white);
    border-color: var(--secondary);
}

.service-card h4 {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 12px;
    text-transform: none;
    letter-spacing: 0;
}

.service-card p {
    color: var(--text);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ==========================================================================
   PORTFÃ“LIO
   ========================================================================== */
.portfolio-section {
    position: relative;
    background: #f3f7fd;
}

.portfolio-card {
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
    max-height: 250px;
    width: 100%;
    background: var(--bg-white);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.portfolio-card-title {
    flex: 0 0 auto;
    padding: 13px 20px 12px;
    background: var(--bg-white);
    color: #111827;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 1px solid #eef2f7;
}

.portfolio-card-image {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.portfolio-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-card-image img {
    transform: scale(1.06);
}

.portfolio-card .overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 13, 22, 0.56);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-card:hover .overlay {
    opacity: 1;
}

.portfolio-card .overlay i {
    color: var(--bg-white);
    font-size: 1.5rem;
    transform: scale(0.8);
    transition: var(--transition);
}

.portfolio-card:hover .overlay i {
    transform: scale(1);
}

/* ==========================================================================
   CARROSSEL GENÃ‰RICO
   ========================================================================== */
.carousel-outer {
    position: relative;
    padding: 0 60px;
}

.carousel-wrapper {
    overflow: hidden;
    margin: 0 -4px;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-page {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    box-sizing: border-box;
    padding: 20px 8px 30px;
}

.portfolio-section .carousel-page {
    justify-items: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    border: 1px solid #e2e8f0;
    background: var(--bg-white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 0.9rem;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.carousel-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dots .dot.active {
    background: var(--primary);
    width: 18px;
    border-radius: 3px;
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lb-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(9, 13, 22, 0.96);
    backdrop-filter: blur(16px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lb-backdrop.open {
    display: flex;
}

.lb-close {
    position: fixed;
    top: 24px;
    right: 28px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
    background: none;
    border: none;
    z-index: 10001;
}

.lb-close:hover {
    color: var(--bg-white);
    transform: rotate(90deg);
}

.lb-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-img-wrap img {
    max-width: 88vw;
    max-height: 82vh;
    object-fit: contain;
    display: block;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center center;
    cursor: zoom-in;
}

.lb-img-wrap img.zoomed {
    cursor: zoom-out;
}

.lb-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    width: 52px;
    height: 52px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10001;
}

.lb-btn:hover {
    color: var(--bg-white);
    transform: translateY(-50%) scale(1.15);
}

.lb-btn.prev {
    left: 24px;
}

.lb-btn.next {
    right: 24px;
}

.lb-counter {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    z-index: 10001;
}

.lb-dots {
    position: fixed;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10001;
}

.lb-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    border: none;
    padding: 0;
    transition: var(--transition);
}

.lb-dot.active {
    background: var(--bg-white);
    width: 14px;
    border-radius: 3px;
}


.lb-panel {
    touch-action: pan-y;
    width: min(760px, calc(100vw - 120px));
    max-height: calc(100vh - 96px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 28px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.98);
    color: #1f2937;
    box-shadow: var(--shadow-lg);
}

.lb-panel .lb-img-wrap {
    order: 2;
    width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    border-radius: var(--radius-sm);
    background: #f8fafc;
}

.lb-panel .lb-img-wrap img {
    width: 100%;
    max-width: 100%;
    max-height: min(52vh, 520px);
    object-fit: contain;
    display: block;
    border-radius: var(--radius-sm);
    box-shadow: none;
}

.lb-info {
    display: contents;
}

.lb-kicker {
    display: none;
}

.lb-title {
    order: 1;
    margin: 0 0 18px;
    color: #111827;
    font-size: 1.55rem;
    line-height: 1.25;
    font-weight: 700;
    text-align: center;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.lb-description {
    order: 3;
    flex: 1 1 auto;
    min-height: 0;
    max-height: min(26vh, 220px);
    width: 100%;
    margin-top: 18px;
    padding-right: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.7;
    text-align: left;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    box-sizing: border-box;
}

.lb-description.is-empty {
    color: #94a3b8;
    font-style: italic;
}


.lb-panel.slide-next .lb-title,
.lb-panel.slide-next .lb-img-wrap,
.lb-panel.slide-next .lb-description {
    animation: lb-content-slide-in-right 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.lb-panel.slide-prev .lb-title,
.lb-panel.slide-prev .lb-img-wrap,
.lb-panel.slide-prev .lb-description {
    animation: lb-content-slide-in-left 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes lb-content-slide-in-right {
    from {
        opacity: 0;
        transform: translateX(36px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes lb-content-slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-36px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .lb-panel.slide-next .lb-title,
    .lb-panel.slide-next .lb-img-wrap,
    .lb-panel.slide-next .lb-description,
    .lb-panel.slide-prev .lb-title,
    .lb-panel.slide-prev .lb-img-wrap,
    .lb-panel.slide-prev .lb-description {
        animation: none;
    }
}
@media (max-width: 900px) {
    .lb-panel {
        width: calc(100vw - 40px);
        max-height: calc(100vh - 88px);
        padding: 20px;
    }

    .lb-title {
        margin-bottom: 14px;
        font-size: 1.25rem;
    }

    .lb-panel .lb-img-wrap img {
        max-height: 42vh;
    }

    .lb-description {
        max-height: 30vh;
        margin-top: 14px;
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   CONTACTOS
   ========================================================================== */
.contact-section {
    background: #f3f7fd;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    align-items: start;
}

.contact-card {
    background: var(--bg-white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 32px 28px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.contact-card-icon {
    min-width: 52px;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.contact-card-icon i {
    font-size: 1.25rem;
    color: var(--primary);
    transition: var(--transition);
}

.contact-card:hover .contact-card-icon {
    background: var(--secondary);
    border-color: var(--secondary);
}

.contact-card:hover .contact-card-icon i {
    color: var(--bg-white);
}

.contact-card h4 {
    font-weight: 800;
    margin-bottom: 8px;
    font-size: 1.0rem;
    color: var(--primary);
    text-transform: none;
    letter-spacing: 0;
}

.contact-card p,
.contact-card a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--primary);
}

.contact-card p i {
    color: var(--primary);
    font-size: 0.9rem;
}

.form-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-text);
    background: var(--primary);
    border: 1px solid var(--primary);
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.form-submit-btn:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--secondary-text);
    transform: translateY(-1px);
}

/* ==========================================================================
   FOOTER (FIXED FREEBOX BACKGROUND)
   ========================================================================== */
.public-footer {
    background: #1a2332 !important;
    background-color: #1a2332 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.55);
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif !important;
    margin-top: 0;
}

.public-footer * {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif !important;
}

.footer-top {
    padding: 60px 0 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-cols {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-col-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-transform: none;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 18px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li a,
.footer-col ul li span {
    color: rgba(255, 255, 255, 0.50);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.75;
    transition: var(--transition);
    display: inline-block;
}

.footer-col ul li a:hover {
    color: rgba(255, 255, 255, 0.92);
    transform: translateX(3px);
}


.footer-address {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.footer-address .footer-address-street,
.footer-address .footer-address-postcode {
    display: block;
}

.footer-address .footer-address-postcode {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.9em;
}
.footer-brand-name {
    display: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: 20px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.40);
}

.footer-bottom h6 {
    margin: 0;
    color: inherit;
    font-size: inherit;
    font-weight: 400;
    line-height: 1.5;
}

.footer-bottom h6 span {
    color: inherit;
    font-size: inherit;
    font-weight: 400;
}

.footer-bottom a,
.made-by {
    color: rgba(255, 255, 255, 0.40);
    text-decoration: none;
    font-size: inherit;
    font-weight: 400;
    transition: color var(--transition);
}

.footer-bottom a:hover,
.made-by:hover {
    color: rgba(255, 255, 255, 0.92);
}
/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */
.back-to-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: var(--bg-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: var(--transition);
    text-decoration: none;
}

.back-to-top:hover {
    background: var(--secondary);
    color: var(--bg-white);
    transform: translateY(-4px);
    box-shadow: 0 0 15px var(--secondary);
}

/* ==========================================================================
   POLÃTICA PRIVACIDADE
   ========================================================================== */
.privacy-content {
    color: var(--text);
    line-height: 1.8;
    font-size: 0.95rem;
}

.privacy-content h2 {
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 800;
    margin-top: 36px;
    margin-bottom: 16px;
    text-transform: none;
    letter-spacing: 0;
}

.privacy-content p {
    margin-bottom: 16px;
}

.privacy-content ul {
    margin: 16px 0 24px 24px;
    padding-left: 8px;
}

.privacy-content li {
    margin-bottom: 10px;
}

.privacy-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.privacy-content a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   HAMBÃšRGUER & MOBILE MENU (NAVBAR COMPLEMENTS)
   ========================================================================== */
.hamburger span {
    background: var(--dark) !important;
}

.mobile-menu {
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.mobile-menu a {
    color: #64748b !important;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.mobile-menu a:hover {
    color: var(--primary) !important;
    padding-left: 8px;
}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 992px) {
    .public-navbar .brand {
        transform: translateX(-8px);
    }

    .public-navbar .navbar-inner {
        flex-direction: row;
        gap: 0;
        padding: 0 16px;
    }

    .public-navbar .nav-links {
        display: none;
    }

    .language-flags {
        display: none;
    }

    .hero {
        min-height: 60vh;
    }

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

    .footer-cols {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .footer-brand-name {
        display: none;
    }

    .lb-btn.prev {
        left: 12px;
    }

    .lb-btn.next {
        right: 12px;
    }

    .carousel-page {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .carousel-outer {
        padding: 0 44px;
    }
}

@media (max-width: 576px) {
    .public-navbar .brand {
        flex-direction: row;
        transform: translateX(-8px);
    }

    .public-navbar .brand-name {
        text-align: left;
    }

    .hero-content h1 {
        letter-spacing: 0;
    }

    .about-text-block {
        flex-direction: column;
        gap: 16px;
    }

    .footer-cols {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .carousel-page {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .carousel-outer {
        padding: 0 40px;
    }
}
/* Ajuste final da secao Sobre Nos: texto e contactos limitados ao mapa */
.about-text-block > div:last-child {
    max-height: 386px;
    overflow: hidden;
}

.about-text {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 145px;
    overflow-x: hidden;
    overflow-y: auto;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.about-contact-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: auto;
    overflow: hidden;
    box-sizing: border-box;
}

.about-contact-card p {
    align-items: flex-start;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.about-contact-card p span,
.about-contact-card p a {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 991px) {
    .about-text-block > div:last-child {
        max-height: none;
        overflow: visible;
    }

    .about-text {
        max-height: 220px;
    }

    .about-contact-card {
        margin-top: 20px;
    }
}


