/* ============================================
   X-OBRAS Engenharia - Main Stylesheet
   Light Mode - Fundo cinza claro #f9fafb
   ============================================ */

/* ---- CSS Variables ---- */
:root {
    --color-red: #D42027;
    --color-red-dark: #B91C22;
    --color-blue: #1A2F4A;
    --color-blue-dark: #0D1B2A;
    
    /* Light mode base */
    --bg-body: #f9fafb;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-dark: #141422;
    
    --text-primary: #1a1a2e;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    
    --border-light: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.1);
    
    --color-whatsapp: #25D366;
    --color-gold: #C9A962;
    
    --font-inter: 'Inter', sans-serif;
    --font-montserrat: 'Montserrat', sans-serif;
    
    --radius-sm: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
    
    --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.05);
    --shadow-card-hover: 0 4px 12px rgba(0,0,0,0.08), 0 12px 32px rgba(0,0,0,0.1);
    --shadow-header: 0 1px 3px rgba(0,0,0,0.05);
    
    --transition-fast: 200ms ease;
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-inter);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

::selection {
    background: rgba(212, 32, 39, 0.15);
    color: var(--color-red);
}

/* ---- Skip Link ---- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-red);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    z-index: 9999;
    transition: top var(--transition-fast);
}
.skip-link:focus { top: 0; }

/* ---- Container ---- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---- Section Base ---- */
.section { padding: 5rem 0; }
@media (min-width: 768px) { .section { padding: 6rem 0; } }
@media (min-width: 1024px) { .section { padding: 8rem 0; } }

/* ---- Section Header ---- */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-red);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-montserrat);
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 1rem auto 0;
    line-height: 1.7;
}

/* ---- Buttons ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
    color: #fff;
    font-family: var(--font-inter);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    transition: all var(--transition-base);
    cursor: pointer;
}
.btn-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 30px rgba(212, 32, 39, 0.35);
}
.btn-primary:focus-visible {
    outline: 2px solid var(--color-red);
    outline-offset: 4px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-inter);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 2px solid var(--border-medium);
    transition: all var(--transition-base);
    cursor: pointer;
}
.btn-secondary:hover {
    background: var(--text-primary);
    color: #fff;
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #fff;
    color: var(--color-red);
    font-family: var(--font-inter);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    transition: all var(--transition-base);
    cursor: pointer;
}
.btn-white:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: #fff;
    font-family: var(--font-inter);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 2px solid rgba(255,255,255,0.6);
    transition: all var(--transition-base);
    cursor: pointer;
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
}

.btn-full { width: 100%; }

.icon-whatsapp {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ============================================
   HEADER
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 1000;
    transition: all var(--transition-base);
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-header);
}

.header.scrolled .nav-link {
    color: var(--text-secondary);
}

.header.scrolled .nav-link:hover {
    color: var(--text-primary);
}

.header.scrolled .logo-obras {
    color: var(--color-blue);
}

.header.scrolled .menu-toggle span {
    background: var(--text-primary);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ---- Logo ---- */
.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.logo-x {
    font-family: var(--font-montserrat);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-red);
    letter-spacing: -1px;
}

.logo-obras {
    font-family: var(--font-montserrat);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-blue);
    margin-left: 0.25rem;
}

.logo-sub {
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ---- Desktop Nav ---- */
.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    transition: color var(--transition-fast);
    padding: 0.25rem 0;
}

.nav-link:hover, .nav-link:focus {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* ---- WhatsApp Header Button ---- */
.btn-whatsapp-header {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--color-whatsapp);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}
.btn-whatsapp-header:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* ---- Menu Toggle ---- */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    z-index: 1002;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Mobile Menu ---- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-white);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.mobile-nav-link {
    font-family: var(--font-montserrat);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.mobile-nav-link:hover {
    color: var(--color-red);
}

.btn-whatsapp-mobile {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--color-whatsapp);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .nav-desktop { display: flex; }
    .btn-whatsapp-header { display: inline-flex; }
    .menu-toggle { display: none; }
    .mobile-menu { display: none !important; }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-slide.active { opacity: 1; }

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.1);
    transition: transform 6s ease-out;
}

.hero-slide.active img { transform: scale(1); }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(20, 20, 34, 0.4) 0%,
        rgba(20, 20, 34, 0.7) 50%,
        rgba(20, 20, 34, 0.95) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1280px;
    width: 100%;
    padding: 0 1.5rem;
    text-align: center;
}

.hero-slide-content {
    display: none;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-slide-content.active { display: block; }

.hero-tagline {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-red);
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-montserrat);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.85);
    max-width: 550px;
    margin: 1.5rem auto 0;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.hero-buttons .btn-secondary {
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}
.hero-buttons .btn-secondary:hover {
    background: #fff;
    color: var(--text-primary);
}

/* ---- Hero Indicators ---- */
.hero-indicators {
    position: absolute;
    bottom: 5rem;
    right: 1.5rem;
    z-index: 4;
    display: flex;
    gap: 0.75rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    transition: all var(--transition-base);
    cursor: pointer;
}

.indicator.active {
    width: 32px;
    border-radius: 6px;
    background: var(--color-red);
}

.indicator:hover { background: rgba(255,255,255,0.8); }

/* ---- Scroll Indicator ---- */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: rgba(255,255,255,0.6);
    animation: bounceSlow 2s ease-in-out infinite;
}

.scroll-indicator svg { width: 20px; height: 20px; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceSlow {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

@media (min-width: 640px) {
    .hero-content { text-align: left; }
    .hero-title { margin: 0; }
    .hero-subtitle { margin: 1.5rem 0 0; }
    .hero-buttons { flex-direction: row; justify-content: flex-start; }
    .hero-indicators { right: 3rem; }
}

@media (max-width: 640px) {
    .hero { min-height: 500px; }
    .scroll-indicator { display: none; }
    .hero-indicators { right: 50%; transform: translateX(50%); bottom: 3rem; }
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.sobre { background: var(--bg-body); }

.sobre-grid {
    display: grid;
    gap: 3rem;
}

.sobre-image-wrapper { position: relative; }

.sobre-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card-hover);
}

.sobre-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.sobre-image:hover img { transform: scale(1.05); }

.sobre-stats {
    position: absolute;
    bottom: -1.5rem;
    right: -0.5rem;
    background: var(--color-red);
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(212, 32, 39, 0.3);
}

.stat-number {
    display: block;
    font-family: var(--font-montserrat);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sobre-text { display: flex; flex-direction: column; }
.sobre-text .section-title { margin-top: 0.5rem; }

.sobre-text p {
    color: var(--text-muted);
    margin-top: 1rem;
    line-height: 1.7;
}

.sobre-diferenciais {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sobre-diferenciais li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.sobre-diferenciais svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sobre-text .btn-primary { margin-top: 2rem; align-self: flex-start; }

@media (min-width: 1024px) {
    .sobre-grid {
        grid-template-columns: 55% 45%;
        gap: 4rem;
        align-items: center;
    }
}

@media (max-width: 640px) {
    .sobre-stats {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1rem;
        grid-template-columns: repeat(4, 1fr);
        padding: 1rem;
    }
    .stat-number { font-size: 1.25rem; }
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.servicos { background: var(--bg-white); }

.servicos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-card);
}

.service-card:hover {
    border-color: rgba(212, 32, 39, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.25rem;
}

.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
    font-family: var(--font-inter);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (min-width: 640px) { .servicos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .servicos-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================
   TEAM SECTION - NOSSA EQUIPA
   ============================================ */

.equipa {
    background: var(--bg-body);
    padding: 5rem 0;
}

@media (min-width: 768px) { .equipa { padding: 6rem 0; } }
@media (min-width: 1024px) { .equipa { padding: 8rem 0; } }

.equipa-slider-wrapper {
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
}

.equipa-slider {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem 0;
}

.equipa-card {
    flex: 0 0 calc(100% - 1rem);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
    border: 1px solid var(--border-light);
}

.equipa-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(212, 32, 39, 0.15);
}

.equipa-card-image {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.equipa-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.equipa-card:hover .equipa-card-image img {
    transform: scale(1.05);
}

.equipa-card-info {
    padding: 1.5rem;
    text-align: center;
}

.equipa-card-info h4 {
    font-family: var(--font-inter);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.equipa-card-info span {
    font-size: 0.85rem;
    color: var(--color-red);
    font-weight: 500;
}

.equipa-card-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    line-height: 1.5;
}

.equipa-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.equipa-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-card);
    cursor: pointer;
}

.equipa-nav-btn:hover {
    background: var(--color-red);
    color: #fff;
    border-color: var(--color-red);
    transform: scale(1.05);
}

.equipa-nav-btn svg {
    width: 20px;
    height: 20px;
}

@media (min-width: 640px) {
    .equipa-card { flex: 0 0 calc(50% - 0.75rem); }
}

@media (min-width: 1024px) {
    .equipa-card { flex: 0 0 calc(25% - 1.125rem); }
}

/* ============================================
   PROCESS SECTION
   ============================================ */

.processo {
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-body) 100%);
}

.processo-steps {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.processo-connector { display: none; }

.processo-step {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--color-red);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    padding: 2rem;
    position: relative;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
}

.processo-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.step-number {
    display: block;
    font-family: var(--font-montserrat);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-red);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 1rem;
}

.processo-step h3 {
    font-family: var(--font-inter);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.processo-step p {
    color: var(--text-muted);
    line-height: 1.6;
}

.step-highlight {
    color: var(--color-red);
    font-weight: 700;
}

.processo-nota {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    max-width: 700px;
    margin: 2rem auto 0;
    padding: 1.5rem;
    background: rgba(212, 32, 39, 0.04);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(212, 32, 39, 0.1);
}

.processo-nota svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.processo-nota p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.processo-nota strong { color: var(--color-red); }

@media (min-width: 768px) {
    .processo-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .processo-connector {
        display: block;
        position: absolute;
        top: 3.5rem;
        left: 10%;
        right: 10%;
        height: 2px;
        background: linear-gradient(90deg, var(--color-red), transparent);
        z-index: 0;
    }
    
    .processo-step {
        border-left: none;
        border-top: 3px solid var(--color-red);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        z-index: 1;
    }
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */

.portfolio { background: var(--bg-body); }

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-card);
}

.portfolio-item.tall { aspect-ratio: 3/4; }

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item:hover img { transform: scale(1.08); }

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(
        to top,
        rgba(20, 20, 34, 0.95) 0%,
        rgba(20, 20, 34, 0.5) 60%,
        transparent 100%
    );
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-category {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-red);
    margin-bottom: 0.5rem;
}

.portfolio-overlay h3 {
    font-family: var(--font-inter);
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

@media (min-width: 640px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-item.tall { grid-row: span 2; }
}

@media (min-width: 1024px) {
    .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================
   MVV SECTION
   ============================================ */

.mvv {
    background: linear-gradient(180deg, var(--bg-body) 0%, var(--color-blue) 100%);
}

.mvv .section-title,
.mvv .section-tag { color: #fff; }

.mvv-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.mvv-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.mvv-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(212, 32, 39, 0.3);
    transform: translateY(-4px);
}

.mvv-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
}

.mvv-icon svg { width: 100%; height: 100%; }

.mvv-card h3 {
    font-family: var(--font-inter);
    font-size: 1.35rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}

.mvv-card p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

.mvv-quote {
    text-align: center;
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 2rem;
}

.mvv-quote p {
    font-family: var(--font-montserrat);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    font-style: italic;
}

.mvv-quote cite {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: normal;
}

@media (min-width: 768px) {
    .mvv-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .mvv-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================
   CONTACTS SECTION
   ============================================ */

.contactos { background: var(--bg-white); }

.contactos-grid {
    display: grid;
    gap: 3rem;
}

.contactos-info .section-tag {
    display: block;
    text-align: left;
}

.contactos-info .section-title { text-align: left; }

.contactos-info > p {
    color: var(--text-muted);
    margin-top: 1rem;
    line-height: 1.7;
}

.contacto-local {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--bg-body);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition-fast);
}

.contacto-local:hover {
    border-color: rgba(212, 32, 39, 0.2);
}

.local-icon svg,
.contacto-item > svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.contacto-local h4 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contacto-local p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contacto-item {
    display: flex;
    gap: 1rem;
    margin-top: 1.25rem;
    align-items: flex-start;
}

.contacto-item h4 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contacto-item a {
    display: block;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.contacto-item a:hover { color: var(--color-red); }

.btn-whatsapp-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 2rem;
    background: var(--color-whatsapp);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-top: 2rem;
    transition: all var(--transition-base);
}

.btn-whatsapp-large:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-large svg { width: 24px; height: 24px; }

/* ---- Contact Form ---- */
.contactos-form-wrapper {
    background: var(--bg-body);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.form-title {
    font-family: var(--font-inter);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.contactos-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-inter);
    font-size: 1rem;
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-red);
    box-shadow: 0 0 0 3px rgba(212, 32, 39, 0.08);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    cursor: pointer;
}

.form-group select option {
    background: var(--bg-white);
    color: var(--text-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-privacy {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.5rem;
}

.form-success {
    text-align: center;
    padding: 3rem 2rem;
}

.form-success svg {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
}

.form-success h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-success p { color: var(--text-muted); }

@media (min-width: 1024px) {
    .contactos-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* ============================================
   CTA BANNER
   ============================================ */

.cta-banner {
    background: var(--color-red);
    padding: 5rem 0;
    text-align: center;
}

.cta-banner h2 {
    font-family: var(--font-montserrat);
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
}

.cta-banner > .container > p {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 1rem auto 0;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.cta-slogan {
    margin-top: 2rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@media (min-width: 640px) {
    .cta-buttons { flex-direction: row; justify-content: center; }
}

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

.footer {
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-dark) 100%);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 1rem;
}

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-red);
    margin-bottom: 1.25rem;
}

.footer-col ul li { margin-bottom: 0.75rem; }

.footer-col ul a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    display: inline-block;
}

.footer-col ul a:hover {
    color: #fff;
    transform: translateX(4px);
}

.footer-col a {
    color: rgba(255,255,255,0.7);
    transition: color var(--transition-fast);
}

.footer-col a:hover { color: #fff; }

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--color-red);
    transform: scale(1.1);
}

.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
}

@media (min-width: 640px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}

/* ============================================
   WHATSAPP FLOAT BUTTON
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--color-whatsapp);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition-base);
    animation: pulseWhatsApp 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg { width: 28px; height: 28px; }

@keyframes pulseWhatsApp {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ============================================
   CHATBOT WIDGET
   ============================================ */

.chatbot-widget {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 998;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(212, 32, 39, 0.35);
    transition: all var(--transition-base);
    animation: pulseWhatsApp 2s ease-in-out infinite;
    animation-delay: 0.5s;
    border: none;
    cursor: pointer;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(212, 32, 39, 0.5);
}

.chatbot-toggle svg { width: 26px; height: 26px; }

.chatbot-panel {
    position: absolute;
    bottom: 75px;
    left: 0;
    width: 340px;
    max-width: calc(100vw - 2rem);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all var(--transition-base);
    border: 1px solid var(--border-light);
}

.chatbot-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
    color: #fff;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-avatar svg { width: 22px; height: 22px; }

.chatbot-header-text h4 {
    font-size: 1rem;
    font-weight: 600;
}

.chatbot-header-text span {
    font-size: 0.75rem;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.chatbot-status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
}

.chatbot-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
    border: none;
    cursor: pointer;
}

.chatbot-close:hover { background: rgba(255,255,255,0.25); }

.chatbot-close svg { width: 16px; height: 16px; }

.chatbot-body {
    padding: 1.5rem;
    max-height: 380px;
    overflow-y: auto;
}

.chatbot-message {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.chatbot-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chatbot-message-avatar svg { width: 16px; height: 16px; color: #fff; }

.chatbot-message-bubble {
    background: var(--bg-body);
    border-radius: var(--radius-lg);
    border-bottom-left-radius: 4px;
    padding: 0.875rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 240px;
}

.chatbot-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-left: 2.75rem;
}

.chatbot-quick-btn {
    padding: 0.5rem 1rem;
    background: rgba(212, 32, 39, 0.06);
    border: 1px solid rgba(212, 32, 39, 0.15);
    border-radius: var(--radius-full);
    color: var(--color-red);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.chatbot-quick-btn:hover {
    background: var(--color-red);
    color: #fff;
    transform: translateY(-1px);
}

.chatbot-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 0.75rem;
}

.chatbot-input {
    flex: 1;
    padding: 0.625rem 1rem;
    background: var(--bg-body);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-family: var(--font-inter);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.chatbot-input:focus {
    border-color: var(--color-red);
}

.chatbot-input::placeholder {
    color: var(--text-light);
}

.chatbot-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
}

.chatbot-send:hover {
    background: var(--color-red-dark);
    transform: scale(1.05);
}

.chatbot-send svg { width: 18px; height: 18px; }

.chatbot-whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 1.5rem 1rem;
    padding: 0.75rem;
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.2);
    border-radius: var(--radius-sm);
    color: var(--color-whatsapp);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.chatbot-whatsapp-link:hover {
    background: rgba(37, 211, 102, 0.15);
}

.chatbot-whatsapp-link svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 480px) {
    .chatbot-panel {
        width: calc(100vw - 2rem);
        left: -1rem;
    }
    
    .chatbot-widget {
        left: 1rem;
        bottom: 1rem;
    }
    
    .whatsapp-float {
        right: 1rem;
        bottom: 1rem;
    }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

.reveal, .reveal-scale {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale {
    transform: scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed, .reveal-scale.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }
.reveal-delay-5 { transition-delay: 500ms; }
.reveal-delay-6 { transition-delay: 600ms; }
.reveal-delay-7 { transition-delay: 700ms; }
.reveal-delay-8 { transition-delay: 800ms; }

/* ============================================
   LIGHTBOX - Zoom Fotografias
   ============================================ */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 34, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-caption {
    margin-top: 1rem;
    color: #fff;
    font-size: 1rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease 0.1s;
}

.lightbox.active .lightbox-caption {
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: -3rem;
    right: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    z-index: 10;
}

.lightbox-close:hover {
    background: var(--color-red);
    transform: scale(1.1);
}

.lightbox-close svg {
    width: 20px;
    height: 20px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    z-index: 10;
}

.lightbox-nav:hover {
    background: var(--color-red);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav svg {
    width: 20px;
    height: 20px;
}

.lightbox-prev { left: -4rem; }
.lightbox-next { right: -4rem; }

.lightbox-counter {
    position: absolute;
    top: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Cursor zoom em imagens clicáveis */
.portfolio-item,
.equipa-card-image {
    cursor: zoom-in;
}

@media (max-width: 768px) {
    .lightbox-nav { display: none; }
    .lightbox { padding: 1rem; }
    .lightbox-close { top: -2.5rem; right: -0.5rem; }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal, .reveal-scale {
        opacity: 1;
        transform: none;
    }
}
