/* ==========================================================================
   CSS Variables - Smartours Branding
   ========================================================================== */
   :root {
    /* Brand Colors */
    --color-navy: rgb(17, 31, 68);
    --color-orange: rgb(254, 108, 52);
    --color-orange-hover: rgb(230, 85, 30);
    --color-skyblue: rgb(0, 163, 228);
    --color-cyan: rgb(1, 212, 255);
    
    /* Neutral Colors */
    --color-white: #ffffff;
    --color-light-bg: #f8f9fa;
    --color-gray-text: #6c757d;
    --color-dark-gray: #343a40;
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
    
    /* UI Values */
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --transition-speed: 0.3s;
    --box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    --box-shadow-hover: 0 15px 40px rgba(0,0,0,0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-dark-gray);
    line-height: 1.6;
    background-color: var(--color-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-navy);
    font-weight: 600;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--color-navy);
}

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

.section-desc {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    color: var(--color-gray-text);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
    display: inline-block;
    background-color: var(--color-orange);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(254, 108, 52, 0.4);
}

.btn-primary:hover {
    background-color: var(--color-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 108, 52, 0.6);
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--color-navy);
    border: 2px solid var(--color-navy);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
}

.btn-outline:hover {
    background-color: var(--color-navy);
    color: var(--color-white);
}

.w-100 {
    width: 100%;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 110px;
    padding: 0;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.navbar.scrolled {
    height: 110px;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 220px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links li a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-navy);
}

.nav-links li a:not(.btn-outline):hover {
    color: var(--color-skyblue);
}

.mobile-menu-icon {
    display: none;
    font-size: 1.5rem;
    color: var(--color-navy);
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    padding-top: 120px; /* Offset for navbar */
    padding-bottom: 60px;
    overflow: hidden;
}

/* Overlay and Tech Pattern */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(17, 31, 68, 0.9) 0%, rgba(17, 31, 68, 0.7) 100%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 2;
    opacity: 0.5;
}

.hero-container {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

.hero-content {
    text-align: left;
    max-width: 100%;
}

.badge {
    display: inline-block;
    background: rgba(1, 212, 255, 0.1);
    color: var(--color-cyan);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid rgba(1, 212, 255, 0.2);
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    color: var(--color-white);
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    animation: fadeInUp 1s ease-out 0.1s both;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-cyan), var(--color-skyblue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0.95;
    color: var(--color-white);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-actions {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero .cta-button i {
    transition: transform var(--transition-speed);
}

.hero .cta-button:hover i {
    transform: translateX(5px);
}

/* Glassmorphism Card */
.hero-visual {
    perspective: 1000px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
    max-width: 450px;
    margin-left: auto;
}

.glass-card.floating {
    animation: float 6s ease-in-out infinite;
}

.glass-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--color-cyan);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.status-row .label {
    color: rgba(255, 255, 255, 0.6);
}

.status-row .value {
    color: var(--color-white);
    font-weight: 600;
}

.pulse-text {
    color: var(--color-orange) !important;
    animation: pulseText 2s infinite;
}

@keyframes pulseText {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.progress-bar-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 30px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 65%;
    background: linear-gradient(90deg, var(--color-orange), #ff9a6e);
    border-radius: 10px;
    position: relative;
    animation: loadProgress 3s ease-in-out infinite alternate;
}

@keyframes loadProgress {
    0% { width: 30%; }
    100% { width: 85%; }
}

/* Animated Orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.5;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--color-cyan);
    top: 20%;
    left: 10%;
    animation: drift 15s infinite alternate ease-in-out;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--color-navy);
    bottom: -10%;
    right: 5%;
    animation: drift 20s infinite alternate-reverse ease-in-out;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, -50px); }
}

@media (max-width: 1100px) {
    .hero {
        padding-top: 140px;
        padding-bottom: 80px;
    }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    .hero-content {
        margin: 0 auto;
        text-align: center;
    }
    .hero-actions {
        display: flex;
        justify-content: center;
    }
    .badge {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .glass-card {
        margin: 0 auto;
    }
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
    background-color: var(--color-light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-skyblue), var(--color-cyan));
    transform: scaleX(0);
    transition: transform var(--transition-speed);
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

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

.icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: rgba(0, 163, 228, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--color-skyblue);
    font-size: 2rem;
    transition: all var(--transition-speed);
}

.service-card:hover .icon-wrapper {
    background-color: var(--color-skyblue);
    color: var(--color-white);
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--color-gray-text);
}

/* ==========================================================================
   Solutions Section
   ========================================================================== */
.solutions-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.solutions-content {
    flex: 1;
}

.solutions-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.solutions-list {
    margin-bottom: 40px;
}

.solutions-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.solutions-list i {
    color: var(--color-orange);
    margin-right: 15px;
    font-size: 1.2rem;
}

.solutions-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Tech Graphic Animation */
.tech-graphic {
    position: relative;
    width: 300px;
    height: 300px;
}

.circle-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px dashed var(--color-skyblue);
    animation: spin 20s linear infinite;
}

.circle-pulse::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--color-cyan);
    animation: spin 10s linear infinite reverse;
}

.floating-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: var(--color-navy);
    animation: float 4s ease-in-out infinite;
}

.node {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: var(--color-orange);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--color-orange);
}

.node-1 { top: 10%; left: 20%; animation: pulse 2s infinite; }
.node-2 { bottom: 20%; right: 10%; animation: pulse 2s infinite 0.5s; }
.node-3 { top: 40%; right: -10%; animation: pulse 2s infinite 1s; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 80px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer h3 {
    font-family: var(--font-heading);
    color: var(--color-white);
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--color-skyblue);
}

.footer-links p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.footer-contact-link {
    display: flex;
    align-items: center;
    color: var(--color-skyblue);
    margin-bottom: 10px;
    font-weight: 500;
}

.footer-contact-link i {
    margin-right: 10px;
    color: var(--color-cyan);
}

.footer-contact-link:hover {
    color: var(--color-cyan);
    text-decoration: underline;
}

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

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

.social-icons a:hover {
    background-color: var(--color-skyblue);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ==========================================================================
   Animations & Keyframes
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes float {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .solutions-container {
        flex-direction: column;
    }
    .solutions-content {
        order: 2;
    }
    .solutions-image {
        order: 1;
        margin-bottom: 40px;
    }
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-icon {
        display: block;
    }
    .hero-visual {
        display: none; /* Ocultar tarjeta en móvil para evitar superposición */
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .section {
        padding: 50px 0;
    }
}

/* ==========================================================================
   WhatsApp Floating Button
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: waPulse 2.5s infinite;
}

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

@keyframes waPulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70%  { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
