/* --------------------------------------------------------------------------
   SYSTEM DESIGN & STYLESHEET - VÓRTICE DIGITAL
-------------------------------------------------------------------------- */

:root {
    --bg-dark: #07080a;
    --bg-card: rgba(22, 24, 28, 0.6);
    --bg-card-hover: rgba(30, 33, 38, 0.85);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-color-hover: rgba(255, 255, 255, 0.15);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --accent-pure: #ffffff;
    --accent-silver: #e5e7eb;
    --accent-dark: #1f2937;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    
    --container-width: 1200px;
    --header-height: 80px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--text-muted) var(--bg-dark);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    border: 1px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

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

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

/* Text Gradient & Accent Styles */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-pure) 30%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Background Glow Effects */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
}

.bg-glow-1 {
    top: -200px;
    right: -100px;
    animation: pulseGlow 12s infinite alternate ease-in-out;
}

.bg-glow-2 {
    bottom: -200px;
    left: -100px;
    animation: pulseGlow 18s infinite alternate-reverse ease-in-out;
}

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.8; }
    100% { transform: scale(1.15) translate(30px, 30px); opacity: 0.5; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--accent-pure);
    color: var(--bg-dark);
    border: 1px solid var(--accent-pure);
}

@media (hover: hover) {
    .btn-primary:hover {
        background-color: transparent;
        color: var(--accent-pure);
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.25), 0 10px 25px -10px rgba(255, 255, 255, 0.35);
        transform: translateY(-2px);
    }
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-pure);
    box-shadow: 0 10px 25px -10px rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

@media (hover: hover) {
    .btn-secondary:hover {
        background-color: rgba(255, 255, 255, 0.08);
        border-color: var(--border-color-hover);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.08);
        transform: translateY(-2px);
    }
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Header & Nav */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(7, 8, 10, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    height: 70px;
    background-color: rgba(7, 8, 10, 0.9);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 52px;
    width: auto;
    filter: brightness(1.2);
    transition: var(--transition-smooth);
}

.main-header.scrolled .brand-logo {
    height: 44px;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-pure);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--accent-pure);
    transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-nav {
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.02);
}

.btn-nav::after {
    display: none;
}

.btn-nav:hover {
    background-color: var(--accent-pure);
    color: var(--bg-dark);
    border-color: var(--accent-pure);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.45;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-silver);
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Hero Visual - Vortex Animation */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.vortex-visual-container {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
}

.circle-1 {
    width: 320px;
    height: 320px;
    border-style: dashed;
    animation: rotateCW 35s linear infinite;
}

.circle-2 {
    width: 250px;
    height: 250px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    animation: rotateCCW 20s linear infinite;
}

.circle-3 {
    width: 180px;
    height: 180px;
    border-style: dotted;
    animation: rotateCW 15s linear infinite;
}

.visual-core {
    width: 120px;
    height: 120px;
    background-color: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
    z-index: 2;
}

.visual-logo-center {
    width: 70%;
    height: auto;
    animation: floatLogo 4s ease-in-out infinite alternate;
}

@keyframes rotateCW {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotateCCW {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes floatLogo {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-4px) scale(1.05); }
}

/* Sections Common Header */
.section-header {
    margin-bottom: 60px;
}

.text-center {
    text-align: center;
}

.section-tagline {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Service Card Glassmorphic */
.service-card {
    position: relative;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: var(--transition-smooth);
}

@media (hover: hover) {
    .service-card:hover {
        background-image: linear-gradient(var(--bg-card-hover), var(--bg-card-hover)), 
                          radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.03) 40%, transparent 100%);
        background-origin: border-box;
        background-clip: padding-box, border-box;
        border: 1px solid transparent;
        transform: translateY(-8px);
        box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.6);
    }
}

.service-card:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(255, 255, 255, 0.04), transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    font-size: 1.6rem;
    color: var(--accent-pure);
    margin-bottom: 28px;
    z-index: 2;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background-color: var(--accent-pure);
    color: var(--bg-dark);
    transform: scale(1.05);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 16px;
    z-index: 2;
}

.service-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 28px;
    flex-grow: 1;
    z-index: 2;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-silver);
    z-index: 2;
}

.card-link i {
    transition: transform 0.2s ease;
}

.service-card:hover .card-link {
    color: var(--accent-pure);
}

.service-card:hover .card-link i {
    transform: translateX(4px);
}

/* About Us Section */
.about-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-card-stack {
    position: relative;
    width: 340px;
    height: 240px;
}

.stack-card {
    position: absolute;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.card-back {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.01);
    transform: translate(25px, -20px) rotate(4deg);
    opacity: 0.3;
}

.card-middle {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.02);
    transform: translate(12px, -10px) rotate(2deg);
    opacity: 0.6;
}

.card-front {
    width: 100%;
    height: 100%;
    background-color: #0f1115;
    border-color: rgba(255, 255, 255, 0.12);
    padding: 24px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
}

.front-header {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
}

.bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
}

.front-body {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
}

.code-line {
    margin-bottom: 6px;
}

.code-line-indented {
    margin-left: 20px;
    margin-bottom: 6px;
}

.code-keyword { color: #9ca3af; font-weight: bold; }
.code-variable { color: #f3f4f6; }
.code-class { color: #ffffff; text-decoration: underline; }
.code-method { color: #e5e7eb; }
.code-property { color: #9ca3af; }
.code-string { color: #6b7280; }

.about-card-stack:hover .card-back {
    transform: translate(35px, -30px) rotate(6deg);
}

.about-card-stack:hover .card-middle {
    transform: translate(18px, -15px) rotate(3deg);
}

.about-card-stack:hover .card-front {
    border-color: rgba(255, 255, 255, 0.25);
}

.about-content .section-tagline {
    text-align: left;
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-content .section-desc {
    margin: 0 0 32px 0;
    text-align: left;
}

.pillars-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pillars-list-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.pillar-bullet {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--accent-pure);
    flex-shrink: 0;
    margin-top: 4px;
}

.pillars-list-item h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.pillars-list-item p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info .section-tagline {
    text-align: left;
}

.contact-info .section-desc {
    margin: 0 0 40px 0;
    text-align: left;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--accent-pure);
}

.info-item span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item a,
.info-item p {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 500;
}

.info-item a:hover {
    color: var(--accent-pure);
}

/* Contact Form */
.contact-form-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-pure);
    background-color: rgba(255, 255, 255, 0.04);
}

.form-group select option {
    background-color: #0f1115;
    color: var(--text-primary);
}

.form-feedback {
    font-size: 0.9rem;
    margin-top: 10px;
    display: none;
    padding: 10px;
    border-radius: 4px;
}

.form-feedback.success {
    display: block;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.iti {
    width: 100%;
}

.iti__flag-container {
    z-index: 5;
}

.iti__country-list {
    background-color: #0f1115 !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.iti__country {
    padding: 10px 14px !important;
    outline: none;
}

.iti__country.iti__highlight {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.iti__selected-flag {
    background-color: rgba(255, 255, 255, 0.01) !important;
    border-radius: 6px 0 0 6px;
    padding: 0 12px 0 16px !important;
}

.iti input {
    padding-left: 56px !important;
}

/* Footer */
.main-footer {
    border-top: 1px solid var(--border-color);
    background-color: #050608;
    padding-top: 80px;
    padding-bottom: 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo-area {
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-links,
.footer-socials {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links h4,
.footer-socials h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-pure);
    transform: translateX(4px);
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.social-icons a:hover {
    background-color: var(--accent-pure);
    color: var(--bg-dark);
    border-color: var(--accent-pure);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 40px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-author-text {
    margin-top: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
    opacity: 0.85;
}

/* Animations for Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Base Utility Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

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

/* Projects Section */
.projects-section {
    position: relative;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.project-item {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.project-item.alt-layout {
    grid-template-columns: 0.9fr 1.1fr;
}

.project-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project-tag {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.project-desc-text {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 28px;
    line-height: 1.7;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.project-tech span {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: 4px;
    color: var(--accent-silver);
}

.btn-project {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Gallery Styles */
.project-gallery-area {
    width: 100%;
}

.project-gallery {
    background-color: #121316;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.8);
    transition: var(--transition-smooth);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.gallery-grid.grid-3-items {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    .gallery-grid.grid-3-items {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 480px) {
    .gallery-grid,
    .gallery-grid.grid-3-items {
        grid-template-columns: 1fr;
    }
}

/* Featured item styles for odd-numbered galleries (e.g. 5 items B2C) */
.gallery-grid.has-featured .gallery-item:first-child {
    grid-column: span 2;
    aspect-ratio: 16 / 9; /* Formato panorámico de cabecera */
}

@media (max-width: 480px) {
    .gallery-grid.has-featured .gallery-item:first-child {
        grid-column: span 1;
        aspect-ratio: 4 / 3;
    }
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
    cursor: zoom-in;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: var(--text-primary);
    font-size: 0.75rem;
    padding: 8px;
    text-align: center;
    font-weight: 500;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.project-item:hover .project-gallery {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}

/* Credit Link Styling */
.credit-link {
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: var(--transition-fast);
}

.credit-link:hover {
    color: var(--text-secondary);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 26px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
    color: #fff;
}

/* Process Section Styles */
.process-section {
    position: relative;
    overflow: hidden;
}

.process-timeline {
    position: relative;
    max-width: 1000px;
    margin: 60px auto 0 auto;
    padding: 20px 0;
}

/* Central vertical line */
.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, var(--border-color), var(--accent-pure), var(--border-color));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    margin-bottom: 60px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 60px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 60px;
    text-align: left;
}

/* Timeline Number / Node dot */
.timeline-number {
    position: absolute;
    top: 15px;
    width: 44px;
    height: 44px;
    background-color: var(--bg-dark);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    z-index: 10;
    transition: var(--transition-smooth);
}

.timeline-item:nth-child(odd) .timeline-number {
    right: -22px;
}

.timeline-item:nth-child(even) .timeline-number {
    left: -22px;
}

.timeline-item:hover .timeline-number {
    border-color: var(--accent-pure);
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Timeline Content Card */
.timeline-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-content {
    border-color: var(--border-color-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

.timeline-icon {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    transition: var(--transition-fast);
}

.timeline-item:hover .timeline-icon {
    color: var(--accent-pure);
    background-color: rgba(255, 255, 255, 0.04);
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

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

/* FAQ Section Styles */
.faq-section {
    position: relative;
}

.faq-container {
    max-width: 800px;
    margin: 40px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: var(--border-color-hover);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.faq-item.active {
    border-color: var(--accent-pure);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.03);
}

/* Question Header button */
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    text-align: left;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.faq-question span {
    pointer-events: none;
}

.faq-icon {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: transform 0.4s cubic-bezier(0.87, 0, 0.13, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 50%;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--accent-pure);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Answer content container */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.87, 0, 0.13, 1);
}

.faq-answer-content {
    padding: 0 24px 24px 24px;
    border-top: 1px solid transparent;
}

.faq-item.active .faq-answer-content {
    border-top-color: rgba(255, 255, 255, 0.04);
}

.faq-answer p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* AI Chat Widget Styles */
.ai-chat-widget {
    position: fixed;
    bottom: 92px; /* Posicionado por encima del botón de WhatsApp (30px + 50px + 12px de espacio) */
    right: 30px;
    z-index: 1000;
    font-family: var(--font-body);
}

.chat-toggle-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-pure);
    color: var(--bg-dark);
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.chat-toggle-btn:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Pulsing Ring for AI Agent */
.pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent-pure);
    animation: pulse 2s infinite;
    pointer-events: none;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}

/* Chat Window */
.chat-window {
    position: absolute;
    bottom: 70px;
    right: 0; /* Alinear con el borde derecho del botón */
    width: 360px;
    height: 480px;
    background: rgba(15, 17, 20, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.85);
    opacity: 0;
    pointer-events: none;
    transform-origin: bottom right; /* Origen de la animación desde la derecha */
    transition: all 0.3s cubic-bezier(0.87, 0, 0.13, 1);
}

.chat-window.open {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* Chat Header */
.chat-header {
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: var(--bg-dark);
}

.chat-header-info h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.chat-status {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 0 8px #25d366;
}

.chat-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chat-close-btn:hover {
    color: var(--text-primary);
}

/* Messages Area */
.chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Scrollbar styling for chat */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.message {
    max-width: 85%;
    display: flex;
    flex-direction: column;
}

.message-text {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.5;
}

.chat-link-inline {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--text-primary) !important;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    font-size: 0.82rem;
    transition: var(--transition-fast);
}

.chat-link-inline:hover {
    background-color: var(--accent-pure);
    color: var(--bg-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.chat-link-inline i {
    font-size: 0.75rem;
    margin-left: 6px;
}

.message.incoming {
    align-self: flex-start;
}

.message.incoming .message-text {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.message.outgoing {
    align-self: flex-end;
}

.message.outgoing .message-text {
    background-color: var(--accent-pure);
    color: var(--bg-dark);
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

/* Suggestions Area */
.chat-suggestions {
    padding: 0 16px 12px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggestion-btn {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.suggestion-btn:hover {
    border-color: var(--accent-pure);
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.04);
}

/* Input Area */
.chat-input-area {
    border-top: 1px solid var(--border-color);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(255, 255, 255, 0.01);
}

.chat-input-area input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 30px;
    font-size: 0.88rem;
    outline: none;
    transition: var(--transition-fast);
}

.chat-input-area input:focus {
    border-color: var(--border-color-hover);
    background: rgba(255, 255, 255, 0.03);
}

.chat-send-btn {
    background-color: var(--accent-pure);
    color: var(--bg-dark);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.chat-send-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

/* Typing Indicator Animation */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

/* Estimator Section Styles */
.estimator-section {
    position: relative;
}

.estimator-container {
    max-width: 1000px;
    margin: 0 auto;
}

.estimator-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
}

/* Currency Toggle */
.currency-toggle-area {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.currency-toggle-area span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.currency-switch {
    display: flex;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 4px;
}

.currency-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 20px;
    transition: var(--transition-fast);
}

.currency-btn.active {
    background-color: var(--accent-pure);
    color: var(--bg-dark);
}

/* Groups and grids */
.estimator-group {
    margin-bottom: 40px;
}

.estimator-group h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.estimator-options {
    display: grid;
    gap: 20px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Option Card (Inputs) */
.option-card {
    position: relative;
    cursor: pointer;
    display: block;
}

.option-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-content {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: var(--transition-smooth);
}

.option-card:hover .option-content {
    border-color: var(--border-color-hover);
    background-color: rgba(255, 255, 255, 0.03);
}

/* Active styles */
.option-card input:checked + .option-content {
    border-color: var(--accent-pure);
    background-color: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.option-icon {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    transition: var(--transition-fast);
}

.option-card input:checked + .option-content .option-icon {
    color: var(--accent-pure);
    transform: scale(1.1);
}

.option-content h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.option-price-text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-silver);
    margin-bottom: 12px;
}

.option-desc-small {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Result Card */
.estimator-result-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    margin-top: 48px;
    border-left: 4px solid var(--accent-pure);
}

.result-info {
    flex-grow: 1;
}

.result-info h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.result-price {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.result-notes {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 550px;
}

.result-action {
    flex-shrink: 0;
}

.result-action .btn {
    padding: 16px 32px;
    font-size: 1rem;
}/* Intermediate CTA Section Styles */
.cta-mid-section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.cta-mid-container {
    max-width: 900px;
}

.cta-mid-content {
    background: linear-gradient(135deg, rgba(22, 24, 28, 0.75) 0%, rgba(10, 11, 13, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: relative;
}

.cta-mid-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.02) 50%, rgba(255, 255, 255, 0.15));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.cta-mid-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cta-mid-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px auto;
    line-height: 1.6;
}

.cta-mid-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-mid-actions .btn {
    padding: 14px 28px;
    font-size: 0.95rem;
}

/* Trust/Guarantees Section Styles */
.trust-section {
    position: relative;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 48px;
}

.trust-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.trust-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-pure), transparent);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

@media (hover: hover) {
    .trust-card:hover {
        background-image: linear-gradient(var(--bg-card-hover), var(--bg-card-hover)), 
                          radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.03) 40%, transparent 100%);
        background-origin: border-box;
        background-clip: padding-box, border-box;
        border: 1px solid transparent;
        transform: translateY(-5px);
        box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
    }
}

.trust-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-5px);
    background-color: var(--bg-card-hover);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.trust-card:hover::before {
    transform: scaleX(1);
}

.trust-icon {
    font-size: 2.2rem;
    color: var(--accent-pure);
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.trust-card:hover .trust-icon {
    background: var(--accent-pure);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.trust-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .project-item,
    .project-item.alt-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
    }
    
    .project-item.alt-layout .project-info {
        grid-row: 2;
    }
    
    .project-info {
        align-items: flex-start;
    }
    
    .about-content .section-tagline,
    .about-content .section-title,
    .about-content .section-desc,
    .contact-info .section-tagline,
    .contact-info .section-title,
    .contact-info .section-desc {
        text-align: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: span 2;
    }

    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .trust-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    
    .trust-card:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 70px 0;
    }
    
    .cta-mid-content {
        padding: 40px 24px;
    }
    
    .cta-mid-title {
        font-size: 1.6rem;
    }
    
    .cta-mid-desc {
        font-size: 0.92rem;
    }
    
    .cta-mid-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .cta-mid-actions .btn {
        width: 100%;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-card:last-child {
        grid-column: span 1;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .mobile-menu-btn {
        display: block;
        z-index: 1100;
    }

    .estimator-card {
        padding: 24px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .estimator-result-card {
        flex-direction: column;
        text-align: center;
        gap: 24px;
        padding: 24px;
    }

    .result-action {
        width: 100%;
    }

    .result-action .btn {
        width: 100%;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: #0b0c0e;
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        z-index: 1050;
        transition: var(--transition-smooth);
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .btn-nav {
        width: 80%;
        text-align: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-brand {
        grid-column: span 1;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 26px;
    }

    /* Process timeline mobile adjustments */
    .process-timeline::before {
        left: 20px;
        transform: none;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 50px !important;
        padding-right: 0 !important;
        text-align: left !important;
        margin-bottom: 40px;
    }

    .timeline-number {
        left: 0 !important;
        right: auto !important;
        top: 20px;
        width: 40px;
        height: 40px;
    }

    /* AI Chat Widget Mobile styling */
    .ai-chat-widget {
        bottom: 80px; /* Por encima del botón de WhatsApp en móviles (20px + 50px + 10px) */
        right: 20px;
        left: auto;
    }

    .chat-toggle-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .chat-window {
        width: calc(100vw - 40px);
        height: 400px;
        bottom: 70px;
    }
}

/* Privacy policy modal, checkbox, and chat footnote styles */
.privacy-row {
    margin-bottom: 24px !important;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    margin-top: 4px;
    cursor: pointer;
    accent-color: var(--accent-pure);
}

.checkbox-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.checkbox-text a {
    color: var(--text-primary);
    text-decoration: underline;
}

.checkbox-text a:hover {
    color: var(--accent-pure);
}

/* Chat Legal footnote */
.chat-legal-text {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-align: center;
    padding: 8px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    background-color: rgba(0, 0, 0, 0.1);
}

.chat-legal-text a {
    color: var(--text-secondary);
    text-decoration: underline;
}

.chat-legal-text a:hover {
    color: var(--text-primary);
}

/* Legal Modal Window */
.legal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 8, 10, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.legal-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.legal-modal-content {
    background-color: #0f1115;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 650px;
    max-height: 80vh;
    padding: 40px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-modal.open .legal-modal-content {
    transform: scale(1);
}

.legal-modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.legal-modal-close:hover {
    color: var(--text-primary);
}

.legal-modal-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.legal-modal-body {
    overflow-y: auto;
    padding-right: 8px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

.legal-modal-body::-webkit-scrollbar {
    width: 4px;
}

.legal-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.legal-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.legal-modal-body h4 {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 24px 0 10px 0;
}

.legal-modal-body p {
    margin-bottom: 16px;
}

.legal-modal-body ul {
    margin-bottom: 16px;
    padding-left: 20px;
}

.legal-modal-body li {
    margin-bottom: 8px;
}
