/* ==========================================================================
   Dragonfly Landing Page - CSS Core
   Metodología: BEM (Block, Element, Modifier)
   Alineación: Mobile-first
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette */
    --color-primary: #1a3a5c;
    --color-primary-light: #255283;
    --color-primary-dark: #0f243d;
    --color-accent-start: #2a8ba8;
    --color-accent-end: #6fd4d9;
    --color-bg-light: #f4f9fb;
    --color-bg-white: #ffffff;
    --color-text-main: #2c3e50;
    --color-text-muted: #5c6b73;
    --color-whatsapp: #25d366;
    --color-whatsapp-dark: #128c7e;

    /* Gradients */
    --gradient-accent: linear-gradient(135deg, var(--color-accent-start) 0%, var(--color-accent-end) 100%);
    --gradient-hero: linear-gradient(180deg, #f4f9fb 0%, #ffffff 100%);
    --gradient-card-feat: linear-gradient(135deg, rgba(42, 139, 168, 0.05) 0%, rgba(111, 212, 217, 0.05) 100%);

    /* Fonts */
    --font-header: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Shadow tokens */
    --shadow-sm: 0 2px 8px rgba(26, 58, 92, 0.04);
    --shadow-md: 0 8px 24px rgba(26, 58, 92, 0.08);
    --shadow-lg: 0 16px 40px rgba(26, 58, 92, 0.12);
    --shadow-hover: 0 20px 48px rgba(42, 139, 168, 0.18);
    --shadow-accent: 0 8px 24px rgba(42, 139, 168, 0.25);

    /* Transition tokens */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-main);
    background-color: var(--color-bg-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-header);
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.25;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

input,
textarea,
button {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    background: none;
}

input:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* --------------------------------------------------------------------------
   3. REUSABLE COMPONENTS & UTILITIES
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    cursor: pointer;
    text-align: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.btn__icon {
    width: 25px;
    height: 25px;
    transition: transform var(--transition-fast);
}

.btn__icon--right {
    margin-left: 0.25rem;
}

.btn--primary {
    background: var(--gradient-accent);
    color: var(--color-bg-white);
    border: 1px solid transparent;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
    opacity: 0.95;
}

.btn--secondary {
    background-color: var(--color-bg-light);
    color: var(--color-primary);
    border: 1.5px solid rgba(42, 139, 168, 0.2);
}

.btn--secondary:hover {
    background-color: var(--color-bg-white);
    border-color: var(--color-accent-start);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--text {
    background: transparent;
    color: var(--color-primary);
    box-shadow: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
}

.btn--text:hover {
    color: var(--color-accent-start);
}

.btn--text:hover .btn__icon--right {
    transform: translateX(4px);
}

.btn--full-width {
    width: 100%;
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.section-header__title {
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header__title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
}

.section-header__subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

@media (min-width: 768px) {
    .section-header__title {
        font-size: 2.5rem;
    }
}

/* Scroll Animation Helper classes */
.reveal-item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   4. HEADER / NAVIGATION
   -------------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(26, 58, 92, 0.05);
    transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.header--scrolled {
    background-color: var(--color-bg-white);
    box-shadow: var(--shadow-sm);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-header);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 1px;
    color: var(--color-primary);
}

.header__logo-img {
    height: 38px;
    width: auto;
}
.header__logo-text {
    font-size: 1.25rem;
    letter-spacing: 1px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

@media (min-width: 768px) {
    .header__logo-img {
        height: 48px;
    }
}

@media (min-width: 1024px) {
    .header__logo-img {
        height: 56px;
    }

    .header__logo-text {
        display: inline;
    }
}

/* Navigation - Mobile First */
.header__nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--color-bg-white);
    padding: 2rem 1.5rem;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.header__nav.is-open {
    transform: translateX(0);
}

.header__list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.header__link {
    font-family: var(--font-header);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: color var(--transition-fast);
    display: block;
    padding: 0.5rem 0;
}

.header__link:hover {
    color: var(--color-accent-start);
}

.header__cta {
    display: none;
    /* Hidden on small mobile */
}

/* Burger Toggle Button */
.header__menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: 1001;
}

.header__menu-bar {
    width: 100%;
    height: 2.5px;
    background-color: var(--color-primary);
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
}

/* Active Burger Animation */
.header__menu-toggle.is-open .header__menu-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.header__menu-toggle.is-open .header__menu-bar:nth-child(2) {
    opacity: 0;
}

.header__menu-toggle.is-open .header__menu-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Navigation - Tablets & Desktop Media Query */
@media (min-width: 768px) {
    .header__cta {
        display: inline-flex;
    }
}

@media (min-width: 992px) {
    .header__menu-toggle {
        display: none;
    }

    .header__nav {
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        transform: none;
        background-color: transparent;
        flex-direction: row;
        overflow-y: visible;
    }

    .header__list {
        flex-direction: row;
        gap: 2.5rem;
    }

    .header__link {
        font-size: 0.95rem;
        font-weight: 500;
        padding: 0;
    }
}

/* --------------------------------------------------------------------------
   5. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding: 100px 0 60px;
    background: var(--gradient-hero);
    overflow: hidden;
}

/* Subtle circuit pattern background on the right */
.hero__circuit-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0.75;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 100 100'%3E%3Cpath d='M10 10 L30 10 L40 20 L40 40 L60 40 L70 50 L95 50 M10 70 L25 70 L35 80 L35 95 M75 10 L75 30 L85 40 M55 70 L55 85 L70 85' fill='none' stroke='%232a8ba8' stroke-width='1.2' stroke-opacity='0.05' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='10' cy='10' r='2' fill='%232a8ba8' fill-opacity='0.08'/%3E%3Ccircle cx='95' cy='50' r='2' fill='%232a8ba8' fill-opacity='0.08'/%3E%3Ccircle cx='35' cy='95' r='2' fill='%232a8ba8' fill-opacity='0.08'/%3E%3Ccircle cx='70' cy='85' r='2' fill='%232a8ba8' fill-opacity='0.08'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero__content {
    text-align: center;
}

.hero__badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: rgba(42, 139, 168, 0.08);
    border: 1px solid rgba(42, 139, 168, 0.15);
    color: var(--color-accent-start);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero__title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.hero__title span {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero__subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero__features {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.hero__feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.hero__feature-dot {
    width: 6px;
    height: 6px;
    background: var(--gradient-accent);
    border-radius: 50%;
}

/* CSS Mockup Laptop & Phone Visual */
.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__mockup-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.mockup {
    position: relative;
    width: 100%;
    padding-bottom: 60%;
}

.mockup__browser {
    position: absolute;
    top: 5%;
    left: 5%;
    width: 85%;
    height: 85%;
    background-color: var(--color-bg-white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(26, 58, 92, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.mockup__browser-header {
    height: 25px;
    background-color: #eef2f5;
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    gap: 4px;
    border-bottom: 1px solid rgba(26, 58, 92, 0.05);
}

.mockup__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #cbd5e1;
}

.mockup__dot:nth-child(1) {
    background-color: #ff5f56;
}

.mockup__dot:nth-child(2) {
    background-color: #ffbd2e;
}

.mockup__dot:nth-child(3) {
    background-color: #27c93f;
}

.mockup__address-bar {
    margin-left: 10px;
    flex-grow: 1;
    max-width: 180px;
    height: 15px;
    background-color: var(--color-bg-white);
    border-radius: 3px;
    font-size: 8px;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    padding-left: 6px;
    font-family: monospace;
}

.mockup__browser-content {
    flex-grow: 1;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background-color: var(--color-bg-light);
}

.mockup__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.mockup__nav-logo {
    width: 35px;
    height: 6px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.mockup__nav-links {
    display: flex;
    gap: 4px;
}

.mockup__nav-links span {
    width: 12px;
    height: 4px;
    background-color: var(--color-text-muted);
    border-radius: 1px;
}

.mockup__hero {
    height: 45px;
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.03) 0%, rgba(42, 139, 168, 0.05) 100%);
    border-radius: 4px;
    border: 1px dashed rgba(42, 139, 168, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.mockup__hero-text-1 {
    width: 50%;
    height: 6px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.mockup__hero-text-2 {
    width: 35%;
    height: 4px;
    background-color: var(--color-text-muted);
    border-radius: 1px;
}

.mockup__hero-btn {
    width: 25px;
    height: 6px;
    background-color: var(--color-accent-start);
    border-radius: 3px;
    margin-top: 2px;
}

.mockup__cards {
    display: flex;
    gap: 6px;
}

.mockup__card {
    flex: 1;
    background-color: var(--color-bg-white);
    border-radius: 3px;
    padding: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mockup__card-img {
    height: 18px;
    background-color: #e2e8f0;
    border-radius: 2px;
}

.mockup__card-txt {
    height: 4px;
    background-color: #cbd5e1;
    border-radius: 1px;
    width: 70%;
}

.mockup__phone {
    position: absolute;
    bottom: -10%;
    right: 5%;
    width: 30%;
    height: 90%;
    background-color: #1e293b;
    border-radius: 18px;
    padding: 5px;
    box-shadow: var(--shadow-lg);
    z-index: 2;
    border: 2px solid #334155;
}

.mockup__phone-screen {
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-white);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.mockup__phone-header {
    height: 12px;
    background-color: var(--color-bg-white);
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup__phone-camera {
    width: 25px;
    height: 4px;
    border-radius: 10px;
    background-color: #334155;
}

.mockup__phone-content {
    flex-grow: 1;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background-color: var(--color-bg-light);
}

.mockup__phone-logo {
    width: 20px;
    height: 5px;
    background-color: var(--color-primary);
    border-radius: 1px;
}

.mockup__phone-hero {
    height: 40px;
    background-color: var(--color-bg-white);
    border-radius: 3px;
    border: 1px solid rgba(42, 139, 168, 0.1);
}

.mockup__phone-btn {
    height: 6px;
    width: 50px;
    background: var(--gradient-accent);
    border-radius: 3px;
    margin: 2px auto 0;
}

.mockup__phone-chat-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-whatsapp);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Responsive layout adjustments for Hero */
@media (min-width: 480px) {
    .hero__actions {
        flex-direction: row;
        justify-content: center;
    }

    .hero__features {
        flex-direction: row;
        gap: 2rem;
    }
}

@media (min-width: 992px) {
    .hero {
        padding: 140px 0 100px;
        text-align: left;
    }

    .hero__container {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 2rem;
    }

    .hero__content {
        text-align: left;
    }

    .hero__actions {
        justify-content: flex-start;
    }

    .hero__features {
        justify-content: flex-start;
    }

    .hero__title {
        font-size: 3.25rem;
    }

    .hero__subtitle {
        font-size: 1.15rem;
    }
}

/* --------------------------------------------------------------------------
   6. HOW WE WORK (PROCESS) SECTION
   -------------------------------------------------------------------------- */
.process {
    padding: 70px 0;
    background-color: var(--color-bg-white);
}

.process__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.process__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.process__step {
    background-color: var(--color-bg-light);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    position: relative;
    border: 1px solid rgba(26, 58, 92, 0.03);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.process__step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.process__number {
    position: absolute;
    top: -20px;
    left: 2rem;
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    color: var(--color-bg-white);
    font-family: var(--font-header);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--shadow-accent);
}

.process__step-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    margin-top: 0.5rem;
}

.process__step-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .process__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* --------------------------------------------------------------------------
   7. SERVICES / PACKAGES SECTION
   -------------------------------------------------------------------------- */
.services {
    padding: 70px 0;
    background-color: var(--color-bg-light);
}

.services__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: stretch;
}

.services__card {
    background-color: var(--color-bg-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid transparent;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.services__card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Featured / Popular Card Styling */
.services__card--featured {
    border-color: var(--color-accent-start);
    box-shadow: var(--shadow-md);
    background: var(--color-bg-white);
    position: relative;
}

.services__card--featured:hover {
    box-shadow: var(--shadow-hover);
}

.services__badge-featured {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-accent);
    color: var(--color-bg-white);
    font-family: var(--font-header);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 1.2rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-accent);
}

.services__card-header {
    margin-bottom: 2rem;
}

.services__card-title {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.services__card-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-accent-start);
    font-family: var(--font-header);
    margin-bottom: 1rem;
}

.services__card--featured .services__card-price {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.services__card-audience {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 500;
    line-height: 1.4;
}

.services__features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.services__feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--color-text-main);
    line-height: 1.4;
}

.services__feature-icon {
    width: 18px;
    height: 18px;
    color: var(--color-accent-start);
    flex-shrink: 0;
    margin-top: 2px;
}

.services__card--featured .services__feature-icon {
    color: var(--color-accent-start);
}

.services__card-footer {
    margin-top: auto;
}

.services__note {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 1.5rem;
}

.services__note-link {
    color: var(--color-text-muted);
    text-decoration: underline;
}

.services__note-link:hover {
    color: var(--color-text-main);
}

@media (min-width: 992px) {
    .services__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .services__card--featured {
        transform: scale(1.03);
    }

    .services__card--featured:hover {
        transform: scale(1.03) translateY(-5px);
    }
}

/* --------------------------------------------------------------------------
   8. PORTFOLIO TEASER (FUTURE-PROOF HOOKS)
   -------------------------------------------------------------------------- */
/* 
   We write core style classes so that when the user adds portfolio elements 
   in index.html later, they are already fully supported without editing styles.css.
*/
.portfolio {
    padding: 70px 0;
    background-color: var(--color-bg-white);
}

.portfolio__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.portfolio__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.portfolio__card {
    background-color: var(--color-bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(26, 58, 92, 0.05);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.portfolio__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.portfolio__img-wrapper {
    position: relative;
    overflow: hidden;
    padding-bottom: 60%;
    background-color: #cbd5e1;
}

.portfolio__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.portfolio__card:hover .portfolio__img {
    transform: scale(1.05);
}

.portfolio__info {
    padding: 1.5rem;
}

.portfolio__title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.portfolio__desc {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.portfolio__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portfolio__tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    background-color: rgba(42, 139, 168, 0.08);
    color: var(--color-accent-start);
    border-radius: var(--radius-full);
    font-weight: 600;
}

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

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

/* --------------------------------------------------------------------------
   9. CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact {
    position: relative;
    padding: 70px 0;
    background-color: var(--color-primary);
    color: var(--color-bg-light);
    overflow: hidden;
}

.contact__circuit-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 100 100'%3E%3Cpath d='M10 10 L30 10 L40 20 L40 40 L60 40 L70 50 L95 50 M10 70 L25 70 L35 80 L35 95 M75 10 L75 30 L85 40 M55 70 L55 85 L70 85' fill='none' stroke='%236fd4d9' stroke-width='1.2' stroke-opacity='0.15' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='10' cy='10' r='2' fill='%236fd4d9' fill-opacity='0.15'/%3E%3C/circle%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
    position: relative;
    z-index: 2;
}

.contact__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact__title {
    color: var(--color-bg-white);
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

.contact__desc {
    color: rgba(244, 249, 251, 0.85);
    margin-bottom: 2.25rem;
    font-size: 1.05rem;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact__info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact__info-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.contact__info-item span:nth-child(2) {
    font-size: 0.95rem;
    color: rgba(244, 249, 251, 0.9);
}

/* Contact Form */
.contact__form-wrapper {
    background-color: var(--color-bg-white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    color: var(--color-text-main);
    border: 1px solid rgba(26, 58, 92, 0.05);
}

.contact__form-title {
    font-size: 1.4rem;
    margin-bottom: 1.75rem;
    text-align: center;
}

.contact__form-group {
    margin-bottom: 1.25rem;
}

.contact__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.contact__input,
.contact__textarea {
    width: 100%;
    padding: 0.85rem 1.2rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid #e2e8f0;
    font-size: 0.95rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    background-color: var(--color-bg-light);
}

.contact__input::placeholder,
.contact__textarea::placeholder {
    color: #a0aec0;
}

.contact__input:focus,
.contact__textarea:focus {
    border-color: var(--color-accent-start);
    box-shadow: 0 0 0 3px rgba(42, 139, 168, 0.15);
    background-color: var(--color-bg-white);
}

.contact__textarea {
    height: 120px;
    resize: vertical;
}

.contact__submit {
    margin-top: 1rem;
    font-size: 1rem;
    box-shadow: var(--shadow-accent);
}
.contact__form-note {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
    text-align: center;
}

@media (min-width: 992px) {
    .contact {
        padding: 90px 0;
    }

    .contact__container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .contact__title {
        font-size: 2.75rem;
    }
}

/* --------------------------------------------------------------------------
   10. FOOTER
   -------------------------------------------------------------------------- */
.footer {
    background-color: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 5rem 0 2rem;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

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

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-header);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 1px;
    color: var(--color-bg-white);
}

.footer__logo-img {
    height: 35px;
    width: auto;
}

.footer__desc {
    max-width: 320px;
    line-height: 1.5;
}

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

.footer__title {
    color: var(--color-bg-white);
    font-size: 1.1rem;
    font-weight: 600;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__link {
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--color-accent-end);
}

.footer__copyright {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    text-align: center;
}

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

/* --------------------------------------------------------------------------
   11. FLOATING PERSISTENT WHATSAPP BUTTON (Mobile & Desktop)
   -------------------------------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 998;
    transition: var(--transition-smooth);
    animation: floatPulse 3s infinite;
}

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

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #22c35e;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}



/* Mobile-first: Button is persistent. We hide/adjust placement slightly on large screens 
   if requested, but mobile-first floating is critical as requested by the user. */
@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 54px;
        height: 54px;
    }

    .whatsapp-float__icon {
        width: 28px;
        height: 28px;
    }

    .whatsapp-float__badge {
        display: none;
        /* Hide badge text on tiny screens to save space */
    }
}

/* Animations */
@keyframes floatPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes pulseButton {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}