﻿/* ===================================================================
   J&L ALEGRE â€” SERVICIOS GENERALES
   style.css | Version 1.0 | 2026
   Arquitectura: Mobile-First | CSS Custom Properties | Modular
=================================================================== */

/* ===== 1. RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul { list-style: none; }

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ===== 2. CSS CUSTOM PROPERTIES (DESIGN TOKENS) ===== */
:root {
    /* Colors */
    --color-primary:       #0A1F44;
    --color-primary-dark:  #081535;
    --color-primary-light: #1a3a6e;
    --color-accent:        #00B5B5;
    --color-accent-dark:   #008f8f;
    --color-accent-light:  #00d4d4;
    --color-cta:           #FF6B2B;
    --color-cta-dark:      #e55a1a;
    --color-cta-light:     #ff8553;
    --color-bg:            #FFFFFF;
    --color-bg-alt:        #F4F7FA;
    --color-text:          #2D3748;
    --color-text-muted:    #718096;
    --color-border:        #E2E8F0;
    --color-white:         #FFFFFF;

    /* Typography */
    --font-heading: 'Poppins', system-ui, sans-serif;
    --font-body:    'Inter', system-ui, sans-serif;

    /* Spacing */
    --section-py:     clamp(60px, 8vw, 120px);
    --container-max:  1200px;
    --container-px:   clamp(1rem, 4vw, 2rem);

    /* Borders */
    --radius-sm:   4px;
    --radius:      8px;
    --radius-md:   12px;
    --radius-lg:   16px;
    --radius-xl:   24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(10, 31, 68, 0.06);
    --shadow:    0 4px 24px rgba(10, 31, 68, 0.08);
    --shadow-md: 0 8px 32px rgba(10, 31, 68, 0.12);
    --shadow-lg: 0 12px 48px rgba(10, 31, 68, 0.18);
    --shadow-xl: 0 20px 64px rgba(10, 31, 68, 0.24);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition:      0.3s ease;
    --transition-slow: 0.5s ease;

    /* Header height */
    --header-height: 72px;
}

/* ===== 3. TIPOGRAFÃA GLOBAL ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); }

p {
    color: var(--color-text-muted);
    line-height: 1.75;
}

.text-accent { color: var(--color-accent); }
.text-cta    { color: var(--color-cta); }

/* ===== 4. UTILIDADES ===== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-px);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto clamp(40px, 6vw, 72px);
}

.section-header h2 { margin: 12px 0 16px; }
.section-header p  { font-size: 1.05rem; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: rgba(0, 181, 181, 0.1);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(0, 181, 181, 0.25);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-cta {
    background: var(--color-cta);
    color: var(--color-white);
    border-color: var(--color-cta);
    box-shadow: 0 4px 20px rgba(255, 107, 43, 0.35);
}

.btn-cta:hover {
    background: var(--color-cta-dark);
    border-color: var(--color-cta-dark);
    box-shadow: 0 8px 32px rgba(255, 107, 43, 0.5);
    transform: translateY(-2px);
    color: var(--color-white);
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--color-white);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== 5. NAVBAR & HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--color-border);
    background: rgba(255, 255, 255, 0.98);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-icon { flex-shrink: 0; }

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-primary);
}

.logo-tagline {
    font-size: 0.68rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

/* Real Logo Image */
.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
    display: block;
}

.footer .logo-img { height: 52px; }

.nav-links {
    display: none;
    align-items: center;
    gap: 4px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-text);
    padding: 8px 14px;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
    background: rgba(0, 181, 181, 0.08);
}

.nav-cta { display: none; }

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    border-radius: var(--radius);
    background: transparent;
    border: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: all var(--transition);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    padding: 16px var(--container-px) 28px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    gap: 2px;
    animation: slideDown 0.25s ease;
}

.nav-links.open .nav-link {
    padding: 14px 16px;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
}

.nav-links.open .nav-link:last-child { border-bottom: none; }

/* ===== 6. HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 40px) 0 60px;
    overflow: hidden;
    background: linear-gradient(145deg, #f7fbff 0%, #edf5ff 40%, #e6f4f4 100%);
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.shape-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 181, 181, 0.18) 0%, transparent 70%);
    top: -250px;
    right: -150px;
    animation: floatSlow 10s ease-in-out infinite;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(10, 31, 68, 0.1) 0%, transparent 70%);
    bottom: -150px;
    left: -120px;
    animation: floatSlow 13s ease-in-out infinite reverse;
}

.shape-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 107, 43, 0.07) 0%, transparent 70%);
    top: 40%;
    left: 40%;
    animation: floatSlow 16s ease-in-out infinite;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 52px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-accent-dark);
    background: rgba(0, 181, 181, 0.1);
    border: 1px solid rgba(0, 181, 181, 0.3);
    padding: 7px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--color-text-muted);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-subtitle strong {
    color: var(--color-accent-dark);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 52px;
}

.hero-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 16px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
}

.stat-item {
    flex: 1;
    min-width: 80px;
    text-align: center;
    padding: 0 12px;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-top: 5px;
    line-height: 1.3;
}

.stat-divider {
    width: 1px;
    height: 44px;
    background: var(--color-border);
    flex-shrink: 0;
}

/* Hero Visual */
.hero-visual { position: relative; }

.hero-img-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: visible;
}

.hero-img-wrapper > img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    display: block;
}

.hero-card-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border-radius: var(--radius-md);
    padding: 12px 18px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    animation: floatCard 4s ease-in-out infinite;
    z-index: 2;
}

.hero-card-float div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hero-card-float strong {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
    display: block;
}

.hero-card-float span {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    display: block;
}

.hero-card-1 {
    bottom: -18px;
    left: -10px;
    animation-delay: 0s;
}

.hero-card-2 {
    top: -18px;
    right: -10px;
    animation-direction: reverse;
    animation-delay: 2s;
}

/* ===== 7. SERVICES SECTION ===== */
.services {
    padding: var(--section-py) 0;
    position: relative;
    background: linear-gradient(160deg, #0A1F44 0%, #0d2857 50%, #0e2d5e 100%);
    overflow: hidden;
}

/* Decorative mesh on services dark bg */
.services::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 30%, rgba(0,181,181,0.12) 0%, transparent 45%),
        radial-gradient(circle at 85% 70%, rgba(255,107,43,0.08) 0%, transparent 45%);
    pointer-events: none;
}

/* Wavy top divider */
.services::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--color-bg);
    clip-path: ellipse(55% 100% at 50% 0%);
    pointer-events: none;
}

/* Override section-header colors on dark bg */
.services .section-header h2 { color: #fff; }
.services .section-header p  { color: rgba(255,255,255,0.65); }
.services .section-header .eyebrow {
    background: rgba(0,181,181,0.18);
    border-color: rgba(0,181,181,0.4);
    color: var(--color-accent-light);
}


.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.35);
    border-color: rgba(0,181,181,0.35);
    background: rgba(255,255,255,0.09);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon-wrapper {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, rgba(0,181,181,0.22), rgba(0,181,181,0.06));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--color-accent-light);
    transition: all var(--transition);
    border: 1px solid rgba(0,181,181,0.25);
    box-shadow: 0 0 20px rgba(0,181,181,0.1);
}

.service-card:hover .service-icon-wrapper {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: white;
    transform: scale(1.1) rotate(-4deg);
    box-shadow: 0 0 32px rgba(0,181,181,0.5);
    border-color: transparent;
}

.service-icon { width: 36px; height: 36px; }

.service-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.service-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 22px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent-light);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.service-link:hover {
    color: white;
    gap: 10px;
}

/* ===== 8. WHY US SECTION ===== */
.why-us {
    padding: var(--section-py) 0;
    position: relative;
    background: #fff;
    overflow: hidden;
}

/* Top wave from dark services section */
.why-us::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(160deg, #0A1F44 0%, #0e2d5e 100%);
    clip-path: ellipse(55% 100% at 50% 0%);
    pointer-events: none;
}

/* Subtle diagonal teal blob */
.why-us::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,181,181,0.06) 0%, transparent 65%);
    pointer-events: none;
    border-radius: 50%;
}


.why-container {
    display: grid;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.why-img-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: visible;
}

.why-img-wrapper > img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    display: block;
}

.why-badge-float {
    position: absolute;
    bottom: -20px;
    right: -10px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border-radius: var(--radius-md);
    padding: 14px 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    z-index: 2;
}

.why-badge-float strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
}

.why-badge-float span {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    display: block;
}

.why-intro {
    font-size: 1.05rem;
    color: var(--color-text);
    margin: 16px 0 28px;
    line-height: 1.7;
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 36px;
}

.why-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.why-item-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(0, 181, 181, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    transition: all var(--transition);
}

.why-item:hover .why-item-icon {
    background: var(--color-accent);
    color: white;
}

.why-item strong {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.why-item p { font-size: 0.875rem; margin: 0; }

/* ===== 9. PORTFOLIO SECTION ===== */
.portfolio {
    padding: var(--section-py) 0;
    position: relative;
    background: #111827;
    overflow: hidden;
}

.portfolio::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 80% 20%, rgba(0,181,181,0.09) 0%, transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(10,31,68,0.6) 0%, transparent 50%);
    pointer-events: none;
}

/* Wave from white why-us */
.portfolio::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    clip-path: ellipse(55% 100% at 50% 0%);
    pointer-events: none;
}

.portfolio .section-header { position: relative; z-index: 1; }
.portfolio .section-header h2 { color: #fff; }
.portfolio .section-header p  { color: rgba(255,255,255,0.55); }
.portfolio .section-header .eyebrow {
    background: rgba(0,181,181,0.15);
    border-color: rgba(0,181,181,0.35);
    color: var(--color-accent-light);
}


/* --- Filter Tabs --- */
.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.filter-btn {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: var(--radius-full);
    border: 2px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(0,181,181,0.06);
}

.filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

/* --- Portfolio Grid --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-primary);
    cursor: pointer;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.portfolio-item.hidden {
    display: none;
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-slow);
    display: block;
}

.portfolio-item:hover img { transform: scale(1.07); }

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,31,68,0.92) 0%, rgba(10,31,68,0.35) 55%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--transition);
}

.portfolio-item:hover .portfolio-overlay { opacity: 1; }
@media (hover: none) { .portfolio-overlay { opacity: 1; } }

.portfolio-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    background: rgba(0,181,181,0.25);
    border: 1px solid rgba(0,181,181,0.4);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 8px;
    width: fit-content;
}

.portfolio-overlay h3 {
    font-size: 1rem;
    color: white;
    margin-bottom: 3px;
    font-weight: 700;
}

.portfolio-overlay p {
    font-size: 0.76rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.portfolio-zoom-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity var(--transition);
}

.portfolio-item:hover .portfolio-zoom-icon { opacity: 1; }

/* Placeholder items */
.portfolio-placeholder {
    background: linear-gradient(135deg, rgba(10,31,68,0.06), rgba(0,181,181,0.08));
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: default;
    transition: all var(--transition);
}

.portfolio-placeholder:hover {
    border-color: var(--color-accent);
    background: rgba(0,181,181,0.05);
}

.portfolio-placeholder svg { color: var(--color-accent); opacity: 0.5; }

.portfolio-placeholder span {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.4;
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(5, 12, 30, 0.96);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-inner {
    position: relative;
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.lightbox-img-wrapper {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.03);
}

.lightbox-img-wrapper img {
    max-height: 70vh;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-lg);
    display: block;
}

.lightbox-info {
    text-align: center;
}

.lightbox-info .portfolio-tag {
    margin-bottom: 6px;
}

.lightbox-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.lightbox-location {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.lightbox-counter {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.1em;
}

.lightbox-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    z-index: 2;
    font-size: 0;
}

.lightbox-close:hover {
    background: rgba(229,62,62,0.6);
    border-color: transparent;
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    z-index: 10;
}

.lightbox-nav:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

@media (max-width: 768px) {
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

/* ===== 10. TESTIMONIALS SECTION ===== */
.testimonials {
    padding: var(--section-py) 0;
    background: linear-gradient(160deg, #0A1F44 0%, #0c2550 60%, #0a1e43 100%);
    position: relative;
    overflow: hidden;
}

/* Wave from dark portfolio */
.testimonials::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: #111827;
    clip-path: ellipse(55% 100% at 50% 0%);
    pointer-events: none;
    z-index: 0;
}

/* Radial glow decoration */
.testimonials::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 5% 50%, rgba(0,181,181,0.1) 0%, transparent 45%),
        radial-gradient(circle at 95% 20%, rgba(255,107,43,0.06) 0%, transparent 45%);
    pointer-events: none;
}

.testimonials .section-header { position: relative; z-index: 1; }

.testimonials .section-header .eyebrow {
    background: rgba(0, 181, 181, 0.2);
    border-color: rgba(0, 181, 181, 0.4);
    color: var(--color-accent-light);
}

.testimonials .section-header h2 { color: var(--color-white); }
.testimonials .section-header p  { color: rgba(255,255,255,0.65); }

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(0, 181, 181, 0.4);
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.testimonial-stars {
    color: #FFD700;
    font-size: 1rem;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.925rem;
    line-height: 1.75;
    margin-bottom: 22px;
    border: none;
    padding: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
}

.author-name {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-white);
    font-size: 0.9rem;
}

.author-location {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== 11. CONTACT SECTION ===== */
.contact {
    padding: var(--section-py) 0;
    position: relative;
    background: linear-gradient(160deg, #f0f9ff 0%, #e8f4f8 40%, #fafbfc 100%);
    overflow: hidden;
}

/* Wave from dark testimonials */
.contact::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(160deg, #0A1F44 0%, #0a1e43 100%);
    clip-path: ellipse(55% 100% at 50% 0%);
    pointer-events: none;
}

/* Subtle teal accent blob */
.contact::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,181,181,0.07) 0%, transparent 65%);
    pointer-events: none;
    border-radius: 50%;
}

.contact .section-header { position: relative; z-index: 1; }
.contact .section-header h2 { color: var(--color-primary); }

.contact-wrapper {
    display: grid;
    gap: 40px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.contact-info-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 36px;
    border: 1px solid var(--color-border);
    height: 100%;
    box-shadow: var(--shadow-md);
}

.contact-info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--color-accent);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(0, 181, 181, 0.15), rgba(10, 31, 68, 0.04));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    flex-shrink: 0;
}

.contact-detail-item strong {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.contact-detail-item a,
.contact-detail-item span {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.contact-detail-item a:hover { color: var(--color-accent); }

.social-links { margin-top: 28px; }

.social-links h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.social-icons { display: flex; gap: 10px; flex-wrap: wrap; }

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-border);
    color: var(--color-text-muted);
    transition: all var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--color-accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 181, 181, 0.4);
}

.social-icon.social-wa:hover {
    background: #25D366;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Contact Form */
.contact-form {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,181,181,0.15);
    padding: 36px;
    box-shadow: var(--shadow-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-bg-alt);
    transition: all var(--transition-fast);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 181, 181, 0.14);
}

.form-group input.error,
.form-group select.error {
    border-color: #E53E3E;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.12);
}

.form-group select {
    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='%23718096' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.form-error {
    font-size: 0.78rem;
    color: #E53E3E;
    font-weight: 500;
    min-height: 17px;
}

.form-privacy {
    text-align: center;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-top: 14px;
}

/* ===== 12. FOOTER ===== */
.footer {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

/* Wave separator from contact light section */
.footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(160deg, #f0f9ff 0%, #e8f4f8 40%, #fafbfc 100%);
    clip-path: ellipse(55% 100% at 50% 0%);
    pointer-events: none;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 48px;
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-brand  { color: white; }
.footer-brand .logo-tagline { color: rgba(255,255,255,0.6); }

.footer-desc {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.75;
    margin-bottom: 24px;
}

.footer-nav h4,
.footer-contact h4 {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition-fast);
    text-decoration: none;
}

.footer-nav a:hover { color: var(--color-accent-light); }

.footer-contact p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}

.footer-contact a {
    color: rgba(255,255,255,0.6);
    transition: color var(--transition-fast);
    text-decoration: none;
}

.footer-contact a:hover { color: var(--color-accent-light); }

.footer-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 20px;
    transition: all var(--transition);
    text-decoration: none;
}

.footer-wa-btn:hover {
    background: #20c05b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: white;
}

.footer .social-icon {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

.footer .social-icon:hover {
    background: var(--color-accent);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
}

.footer-bottom .container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    margin: 0;
}

.footer-bottom a {
    color: var(--color-accent-light);
    transition: color var(--transition-fast);
    text-decoration: none;
}

/* ===== 13. FLOATING WIDGETS ===== */
.whatsapp-fab {
    position: fixed;
    bottom: 28px;
    right: 24px;
    z-index: 999;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 32px rgba(37, 211, 102, 0.55);
    transition: transform var(--transition);
    text-decoration: none;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 40px rgba(37, 211, 102, 0.7);
    color: white;
}

.whatsapp-fab-pulse {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.28);
    animation: pulseRing 2s ease-out infinite;
    pointer-events: none;
}

.whatsapp-fab-tooltip {
    position: absolute;
    right: 76px;
    background: var(--color-primary);
    color: white;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
    box-shadow: var(--shadow-md);
}

.whatsapp-fab-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--color-primary);
    border-right: 0;
}

.whatsapp-fab:hover .whatsapp-fab-tooltip {
    opacity: 1;
    right: 80px;
}

.whatsapp-fab.shake { animation: shake 0.65s ease; }

.scroll-top {
    position: fixed;
    bottom: 28px;
    right: 104px;
    z-index: 999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ===== 14. ANIMACIONES ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-28px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(28px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-20px); }
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%       { transform: translateY(-8px) rotate(0.5deg); }
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg) scale(1); }
    15%       { transform: rotate(-15deg) scale(1.1); }
    30%       { transform: rotate(15deg) scale(1.1); }
    45%       { transform: rotate(-10deg) scale(1.06); }
    60%       { transform: rotate(10deg) scale(1.06); }
    75%       { transform: rotate(-5deg) scale(1.03); }
    90%       { transform: rotate(5deg) scale(1.03); }
}

@keyframes pulseRing {
    0%   { transform: scale(0.95); opacity: 0.8; }
    100% { transform: scale(1.45); opacity: 0; }
}

/* ===== REVEAL ON SCROLL STATE ===== */
[data-animate] {
    opacity: 0;
    transition: opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-animate="fadeInUp"]    { transform: translateY(28px); }
[data-animate="fadeInLeft"]  { transform: translateX(-28px); }
[data-animate="fadeInRight"] { transform: translateX(28px); }

[data-animate].visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ===== 15. MEDIA QUERIES (Mobile First) ===== */

/* sm: 480px */
@media (min-width: 480px) {
    .hero-actions { flex-wrap: nowrap; }
    .hero-img-wrapper > img { height: 380px; }
}

/* md: 768px */
@media (min-width: 768px) {
    .nav-links  { display: flex; }
    .nav-cta    { display: inline-flex; }
    .hamburger  { display: none; }

    .services-grid { grid-template-columns: repeat(2, 1fr); }

    .why-container { grid-template-columns: 1fr 1fr; }

    .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
    .portfolio-item img        { height: 200px; }
    .portfolio-placeholder    { height: 200px; }

    .testimonials-grid  { grid-template-columns: repeat(2, 1fr); }

    .contact-wrapper    { grid-template-columns: 1fr 1fr; }

    .footer-container   { grid-template-columns: repeat(2, 1fr); }

    .hero-img-wrapper > img { height: 440px; }
}

/* lg: 1024px */
@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }

    .why-container {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }

    .services-grid { grid-template-columns: repeat(3, 1fr); }

    .portfolio-grid { grid-template-columns: repeat(4, 1fr); }
    .portfolio-item img        { height: 200px; }
    .portfolio-placeholder    { height: 200px; }

    .testimonials-grid  { grid-template-columns: repeat(4, 1fr); }

    .footer-container { grid-template-columns: 2fr 1fr 1fr 1.5fr; }

    .hero-card-1 { left: -20px; }
    .hero-card-2 { right: -20px; }
}

/* xl: 1280px */
@media (min-width: 1280px) {
    .hero-img-wrapper > img { height: 500px; }
    .hero-card-1 { left: -28px; }
    .hero-card-2 { right: -28px; }
}

/* ===== VIDEO BACKGROUND STYLES ===== */
.video-section {
    position: relative;
    overflow: hidden;
    background-color: transparent !important;
}
.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 36, 0.85);
    z-index: 1;
}
.video-section .container {
    position: relative;
    z-index: 2;
}

