/*
Theme Name: Trayecto Stitch (Custom)
Theme URI: https://trayectotec.com
Author: Irwin Ortiz & Antigravity
Author URI: https://trayectotec.com
Description: Custom pixel-perfect theme based on the Stitch Modern Landing Page Redesign.
Version: 1.0
*/

/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Paleta Stitch */
    --bg-dark: #000000;
    --bg-light: #FFFFFF;
    --accent-gold: #FFB800;
    /* Amarillo Bus */
    --accent-hover: #E0A200;
    --text-dark: #111111;
    --text-gray: #666666;
    --text-light: #F5F5F5;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
}

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

/* Fix for potential Elementor overrides */
.elementor-section-wrap {
    padding-top: 0 !important;
}

.hero h1,
.hero p {
    color: #FFFFFF !important;
}

body {
    font-family: 'Outfit', 'Manrope', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Hide WP Admin bar spacing if it interferes */
html {
    margin-top: 0 !important;
}

#wpadminbar {
    display: none !important;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

/* =========================================
   2. UTILITIES
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--text-dark);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
}

.btn-outline:hover {
    background-color: #FFFFFF;
    color: var(--text-dark);
}

/* =========================================
   3. HEADER
   ========================================= */
header.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    /* Reduced from 20px */
    background: transparent;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 65px !important;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-cta {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: var(--primary-color);
    color: var(--bg-dark);
    text-decoration: none;
}

.nav-cta.secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.nav-cta.secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
}

.header-action {
    display: flex;
    gap: 15px;
    align-items: center;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav.main-nav a {
    color: #FFFFFF;
    font-weight: 700 !important;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
}

nav.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

nav.main-nav a:hover::after {
    width: 100%;
}

nav.main-nav a:hover {
    color: var(--accent-gold);
}

/* =========================================
   4. HERO SECTION (DARK)
   ========================================= */
section.hero {
    background-color: #000000 !important;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('/wp-content/uploads/2019/07/app5-slider-bg.png') no-repeat center center;
    background-size: cover;
    background: url('/wp-content/uploads/2019/07/app5-slider-bg.png') no-repeat center center;
    background-size: cover;
    position: relative;
    padding-top: 100px;
    /* Reduced from 150px to fix the 'big space' */
    padding-bottom: 80px;
    overflow: hidden;
    color: #FFFFFF;
}

/* Geometric Yellow Content (The "Stitch" vibe) */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    /* Slightly wider */
    height: 100%;
    background: var(--accent-gold);
    transform: skewX(-15deg) translateX(10%);
    /* Less aggressive skew */
    z-index: 1;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    /* Shadow for depth */
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-light);
    /* Forced White with background contrast */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-text p {
    font-size: 18px;
    color: #CCCCCC;
    margin-bottom: 30px;
    max-width: 500px;
}

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

/* Modern Hero Image Composition */
.hero-image {
    perspective: 1200px;
    z-index: 10;
}

.hero-image-composition {
    position: relative;
    transform: scale(1.18) rotateY(-8deg) translateX(10px);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.hero-image-composition:hover {
    transform: scale(1.22) rotateY(0deg) translateX(0);
}

.hero-shape-blob {
    position: absolute;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(255, 184, 0, 0.5) 0%, rgba(255, 184, 0, 0) 70%);
    top: -80px;
    right: -80px;
    z-index: -1;
    border-radius: 50%;
    filter: blur(30px);
    animation: blob-float 10s ease-in-out infinite alternate;
}

.main-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), 0 0 0 2px rgba(255, 184, 0, 0.4);
}

.main-image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 520px;
}

.hero-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
}

.hero-floating-card {
    position: absolute;
    background: rgba(25, 25, 25, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 184, 0, 0.2);
    animation: card-float 6s ease-in-out infinite;
    z-index: 20;
}

.top-right-card {
    top: -30px;
    right: -40px;
    animation-delay: 0s;
}

.bottom-left-card {
    bottom: -40px;
    left: -50px;
    animation-delay: 3s;
}

.pulse-indicator {
    width: 14px;
    height: 14px;
    background-color: #27c93f;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(39, 201, 63, 0.8);
    animation: pulse-ring 2s infinite;
}

.emoji-icon {
    font-size: 28px;
    line-height: 1;
}

.card-text {
    display: flex;
    flex-direction: column;
}

.card-text strong {
    color: #ffffff;
    font-size: 16px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.3px;
    margin-bottom: 2px;
}

.card-text span {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
}

@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-40px, 40px) scale(1.15);
    }
}

@keyframes card-float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(39, 201, 63, 0.8);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 12px rgba(39, 201, 63, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(39, 201, 63, 0);
    }
}

@media (max-width: 900px) {
    .hero-image-composition {
        transform: scale(1) rotateY(0) translateX(0);
        margin-top: 60px;
    }

    .hero-image-composition:hover {
        transform: scale(1.05) rotateY(0) translateX(0);
    }

    .top-right-card {
        right: -10px;
        top: -20px;
    }

    .bottom-left-card {
        left: -10px;
        bottom: -20px;
    }

    .hero-shape-blob {
        display: none;
    }
}

/* =========================================
   5. AI ROUTES BANNER
   ========================================= */
.ai-routes-banner {
    background-color: #111111;
    color: #FFFFFF;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-routes-banner::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 184, 0, 0.08) 0%, rgba(17, 17, 17, 0) 70%);
    z-index: 0;
}

.ai-routes-content {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.ai-routes-text {
    flex: 1.1;
}

.ai-routes-image {
    flex: 0.9;
    display: flex;
    justify-content: center;
}

.ai-routes-image img {
    max-width: 100%;
    height: auto;
    border: 2px solid rgba(255, 184, 0, 0.2);
}

.badge-new {
    display: inline-block;
    background-color: rgba(255, 184, 0, 0.1);
    border: 1px solid rgba(255, 184, 0, 0.3);
    color: var(--primary-color);
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 0 20px rgba(255, 184, 0, 0.2);
}

.mac-window {
    background: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
    padding-top: 30px;
    width: 100%;
}

.mac-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: #2a2a2a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mac-window::after {
    content: '';
    position: absolute;
    top: 11px;
    left: 15px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f56;
    box-shadow: 18px 0 0 #ffbd2e, 36px 0 0 #27c93f;
}

.mac-window img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: top;
    max-height: 550px;
}

.ai-routes-banner h2 {
    font-size: 46px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.ai-routes-banner p {
    font-size: 18px;
    color: #CCCCCC;
    margin-bottom: 35px;
    line-height: 1.7;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    font-size: 16px;
    color: #E0E0E0;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    line-height: 1.5;
}

.benefits-list .icon {
    font-size: 22px;
    line-height: 1.2;
}

@media (max-width: 900px) {
    .ai-routes-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .ai-routes-banner h2 {
        font-size: 36px;
    }

    .benefits-list li {
        text-align: left;
    }
}

/* =========================================
   6. FEATURES SECTION (WHITE)
   ========================================= */
section.features {
    background-color: var(--bg-light);
    padding: 100px 0;
    text-align: center;
}

.features h2 {
    font-size: 36px;
    margin-bottom: 60px;
    font-weight: 800;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.phone-frame-wrapper {
    width: 220px;
    height: 450px;
    margin: 0 auto 30px;
    background: #1a1a1a;
    border: 10px solid #222;
    border-top-width: 15px;
    border-bottom-width: 15px;
    border-radius: 35px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Notch */
.phone-frame-wrapper::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: #444;
    border-radius: 10px;
    z-index: 5;
}

.phone-frame-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    display: block;
    transition: transform 0.3s ease;
}

.feature-card:hover .phone-frame-wrapper img {
    transform: scale(1.05);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-list li {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* =========================================
   6. BACKOFFICE SECTION (WHITE)
   ========================================= */
section.backoffice {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.backoffice-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.solution-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.backoffice-mockup {
    position: relative;
    max-width: 100%;
}

.laptop-mockup {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.laptop-mockup:hover {
    transform: scale(1.02);
}

.laptop-mockup {
    /* Pure Minimalist - No borders or shadows */
    border: none;
    box-shadow: none;
}

/* =========================================
   7. FOOTER REDESIGN
   ========================================= */
footer.site-footer {
    background-color: #080808;
    background-image: radial-gradient(circle at 50% 0%, #1a1a1a 0%, #000000 70%);
    color: #E0E0E0;
    padding: 0;
    position: relative;
    margin-top: 200px;
    /* Space for the floating map */
}

/* Map Card Floating */
.map-card-container {
    position: relative;
    margin: -150px auto 40px;
    width: 100%;
    max-width: var(--container-width);
    padding: 0 20px;
    z-index: 10;
}

.map-card {
    background: #FFFFFF;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    color: #111;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.map-visual {
    flex: 1.2;
    min-height: 400px;
    background: #EAEAEA;
    position: relative;
}

.map-info {
    flex: 0.8;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.map-info h3 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.map-info .info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.5;
}

.map-info .info-item .icon {
    font-size: 24px;
    margin-right: 15px;
    line-height: 1;
}

.map-info .info-item strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 4px;
}

.map-info .info-item a {
    color: var(--accent-gold);
    font-weight: 600;
}

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

/* Footer Inner Content */
.footer-inner-container {
    padding-top: 60px;
    padding-bottom: 70px;
}

.footer-grid-modern {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

.footer-widget h4 {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
}

.brand-widget .footer-brand-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.brand-widget .footer-icon {
    height: 80px;
    width: auto;
}

.brand-widget .brand-name {
    display: none;
    /* Official logo already contains text/branding elements */
}

.brand-widget p {
    color: #AAAAAA;
    font-size: 15px;
    line-height: 1.8;
    max-width: 350px;
}

.links-widget ul li {
    margin-bottom: 15px;
    list-style: none !important;
}

.links-widget ul li a,
.links-widget ul li a:visited {
    color: #AAAAAA !important;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none !important;
}

.links-widget ul li a:hover {
    color: var(--accent-gold) !important;
    padding-left: 5px;
}

.contact-widget p {
    color: #AAAAAA;
    font-size: 15px;
    line-height: 1.8;
}

/* Footer Bottom Bar */
.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 25px 0;
    text-align: center;
    background-color: #000000;
}

.footer-bottom-bar p {
    color: #777777;
    font-size: 14px;
}

/* =========================================
   8. MEDIA QUERIES
   ========================================= */
@media (max-width: 768px) {
    .hero::after {
        width: 100%;
        top: 0;
        right: 0;
        transform: none;
        height: 50%;
    }

    .hero-content,
    .features-grid,
    .backoffice-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-buttons {
        justify-content: center;
    }

    .footer-grid-modern {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .map-card-container {
        margin-top: -80px;
        margin-bottom: 40px;
    }

    .footer-inner-container {
        padding-top: 20px !important;
    }

    .map-card {
        flex-direction: column;
    }

    .map-visual {
        min-height: 300px;
    }

    .map-info {
        padding: 40px 30px;
    }
}