/**
 * AWTU Template - Main CSS
 * Estilos principales de la plantilla AWTU
 * Basado en Bootstrap 5 con personalizaci¨Žn
 */

/* ========================================
   VARIABLES CSS
   ======================================== */
:root {
    /* Colores principales - Basado en Figma */
    --awtu-primary: #14b08e;
    --awtu-primary-dark: #1a9f7a;
    --awtu-primary-light: #34d399;
    --awtu-secondary: #64748b;
    --awtu-success: #14b08e;
    --awtu-warning: #f59e0b;
    --awtu-danger: #ef4444;
    --awtu-info: #3b82f6;
    
    /* Colores de fondo */
    --awtu-bg-primary: #ffffff;
    --awtu-bg-secondary: #f8fafc;
    --awtu-bg-dark: #1e293b;
    --awtu-bg-darker: #0f172a;
    
    /* Colores de texto */
    --awtu-text-primary: #1e293b;
    --awtu-text-secondary: #64748b;
    --awtu-text-muted: #94a3b8;
    --awtu-text-white: #ffffff;
    
    /* Espaciado */
    --awtu-spacing-xs: 0.25rem;
    --awtu-spacing-sm: 0.5rem;
    --awtu-spacing-md: 1rem;
    --awtu-spacing-lg: 1.5rem;
    --awtu-spacing-xl: 2rem;
    --awtu-spacing-xxl: 3rem;
    
    /* Bordes */
    --awtu-border-radius: 0.5rem;
    --awtu-border-radius-lg: 1rem;
    --awtu-border-color: #e2e8f0;
    
    /* Sombras */
    --awtu-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --awtu-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --awtu-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Transiciones */
    --awtu-transition: all 0.3s ease;
    --awtu-transition-fast: all 0.15s ease;
}

/* ========================================
   RESET Y BASE
   ======================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--awtu-text-primary);
    background-color: var(--awtu-bg-primary);
    padding-top: 5px; /* Espacio para header fijo sin topbar - reducido significativamente */
}

/* ========================================
   HERO SECTION STYLES - EXACT FIGMA DESIGN
   ======================================== */
.awtu-hero {
    background: #e9f2f0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.awtu-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content .badge {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #14b08e !important;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    border: none;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-content h1 .text-warning {
    color: #FFD700 !important;
}

.hero-content .lead {
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* Download Buttons Styling */
.btn-dark {
    background:  #000 !important;
    border: none !important;
    color: white !important;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-dark:hover {
    background: linear-gradient(135deg, #374151, #1f2937) !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    color: white !important;
}

.btn-light {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: #1f2937 !important;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-light:hover {
    background: rgba(255, 255, 255, 1) !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.3);
    color: #1f2937 !important;
}

/* Feature Cards Styling */
.feature-icon.bg-light.bg-opacity-20 {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
}

.feature-icon i {
    font-size: 1.5rem;
}

/* Stats Styling */
.hero-stats .stat-item h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #FFD700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-stats .stat-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
}

/* ========================================
   HEADER STYLES
   ======================================== */
.awtu-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #1e293b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;
}

.awtu-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    font-size: 0.875rem;
    background: var(--awtu-primary);
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;
}

.awtu-topbar .awtu-contact-info span {
    margin-right: var(--awtu-spacing-lg);
}

.awtu-topbar .awtu-social-links a {
    transition: var(--awtu-transition-fast);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.awtu-topbar .awtu-social-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.awtu-navbar {
    padding: 0.05rem 0; /* Reducido significativamente */
    background: #1e293b;
}

.awtu-logo img {
    transition: var(--awtu-transition-fast);
}

.awtu-logo:hover img {
    transform: scale(1.05);
}

.awtu-navbar .navbar-nav .nav-link {
    font-weight: 600;
    color: #ffffff;
    padding: var(--awtu-spacing-sm) var(--awtu-spacing-md);
    margin: 0 var(--awtu-spacing-xs);
    border-radius: var(--awtu-border-radius);
    transition: var(--awtu-transition-fast);
    font-size: 0.95rem;
}

.awtu-navbar .navbar-nav .nav-link:hover {
    color: var(--awtu-primary);
    background-color: rgba(32, 201, 151, 0.1);
}

.logo-text {
    background: var(--awtu-primary) !important;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(32, 201, 151, 0.3);
    transition: all 0.3s ease;
}

.logo-text:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32, 201, 151, 0.4);
}

.awtu-navbar .dropdown-menu {
    border: none;
    box-shadow: var(--awtu-shadow-lg);
    border-radius: var(--awtu-border-radius);
    padding: var(--awtu-spacing-sm);
}

.awtu-navbar .dropdown-item {
    padding: var(--awtu-spacing-sm) var(--awtu-spacing-md);
    border-radius: var(--awtu-border-radius);
    transition: var(--awtu-transition-fast);
}

.awtu-navbar .dropdown-item:hover {
    background-color: var(--awtu-bg-secondary);
    color: var(--awtu-primary);
}

.awtu-user-actions .btn {
    border-radius: var(--awtu-border-radius);
    font-weight: 500;
    transition: var(--awtu-transition-fast);
}

/* ========================================
   BREADCRUMB STYLES
   ======================================== */
.awtu-breadcrumb {
    font-size: 0.875rem;
}

.awtu-breadcrumb .breadcrumb-item a {
    color: var(--awtu-text-secondary);
    text-decoration: none;
    transition: var(--awtu-transition-fast);
}

.awtu-breadcrumb .breadcrumb-item a:hover {
    color: var(--awtu-primary);
}

.awtu-breadcrumb .breadcrumb-item.active {
    color: var(--awtu-text-primary);
}

/* ========================================
   FOOTER STYLES - DARK THEME WITH TEAL ACCENTS
   ======================================== */
.awtu-footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    margin-top: auto;
    position: relative;
}

.awtu-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--awtu-primary), transparent);
}

.awtu-footer h6 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    position: relative;
    display: inline-block;
}

.awtu-footer h6::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--awtu-primary);
    border-radius: 2px;
}

/* Footer Brand Section */
.awtu-footer-brand {
    margin-bottom: 2rem;
}

.footer-logo .awtu-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-logo .logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--awtu-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    margin-right: 0.75rem;
    box-shadow: 0 4px 15px rgba(32, 201, 151, 0.3);
}

.awtu-description {
    color: #ffffff !important;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Social Links */
.awtu-footer-social {
    margin-top: 1.5rem;
}

.awtu-footer .social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.awtu-footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.awtu-footer .social-links a:hover {
    background: var(--awtu-primary);
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(32, 201, 151, 0.4);
    border-color: var(--awtu-primary);
}

/* Footer Links */
.awtu-footer .list-unstyled {
    list-style: none;
    padding: 0;
    margin: 0;
}

.awtu-footer .list-unstyled li {
    margin-bottom: 0.75rem;
}

.awtu-footer .footer-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.awtu-footer .footer-link:hover {
    color: var(--awtu-primary);
    transform: translateX(5px);
}

.awtu-footer .footer-link i {
    margin-right: 0.5rem;
    font-size: 0.8rem;
    color: #64748b;
    transition: all 0.3s ease;
}

.awtu-footer .footer-link:hover i {
    color: var(--awtu-primary);
}

/* Contact Information Cards */
.awtu-contact-info {
    margin-top: 1rem;
}

.awtu-footer .contact-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--awtu-primary);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.awtu-footer .contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: var(--awtu-primary-light);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(32, 201, 151, 0.2);
}

.awtu-footer .contact-item:last-child {
    margin-bottom: 0;
}

.awtu-footer .contact-icon {
    color: var(--awtu-primary);
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.awtu-footer .contact-item strong {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
}

.awtu-footer .contact-item span,
.awtu-footer .contact-item a {
    color: #cbd5e1;
    font-size: 0.9rem;
    text-decoration: none;
}

.awtu-footer .contact-item a:hover {
    color: var(--awtu-primary);
}

/* Footer Bottom */
.awtu-footer-bottom {
    background: rgba(0, 0, 0, 0.3) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.awtu-footer-bottom p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
}

.awtu-footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
}

.awtu-footer-links .footer-link {
    color: #94a3b8;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.awtu-footer-links .footer-link:hover {
    color: var(--awtu-primary);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .awtu-footer .social-links {
        justify-content: center;
    }
    
    .awtu-footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .awtu-footer .contact-item {
        padding: 0.75rem;
    }
}

/* ========================================
   WHATSAPP FLOAT BUTTON
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-float .btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 50px;
    height: 50px;
    display: none;
    z-index: 999;
    transition: var(--awtu-transition-fast);
}

.back-to-top:hover {
    transform: translateY(-3px);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.awtu-section {
    padding: var(--awtu-spacing-xxl) 0;
}

.awtu-section-sm {
    padding: var(--awtu-spacing-xl) 0;
}

.awtu-section-lg {
    padding: 4rem 0;
}

.awtu-card {
    border: none;
    border-radius: var(--awtu-border-radius-lg);
    box-shadow: var(--awtu-shadow);
    transition: var(--awtu-transition);
    background: white;
}

.awtu-card:hover {
    box-shadow: var(--awtu-shadow-lg);
    transform: translateY(-5px);
}

.awtu-btn {
    border-radius: var(--awtu-border-radius);
    font-weight: 600;
    padding: var(--awtu-spacing-sm) var(--awtu-spacing-lg);
    transition: var(--awtu-transition-fast);
    border: none;
}

.awtu-btn:hover {
    transform: translateY(-2px);
}

.awtu-btn-primary {
    background: var(--awtu-primary);
    color: white;
}

.awtu-btn-primary:hover {
    background: var(--awtu-primary-dark);
    color: white;
}

/* ========================================
   MODERN STYLES BASED ON FIGMA
   ======================================== */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--awtu-primary) 0%, var(--awtu-primary-dark) 100%);
}

.text-primary {
    color: var(--awtu-primary) !important;
}

.bg-primary {
    background-color: var(--awtu-primary) !important;
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.feature-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* ========================================
   PHONE MOCKUP STYLES - EXACT FIGMA DESIGN
   ======================================== */
.phone-mockup {
    max-width: 280px;
    position: relative;
    margin: 0 auto;
}

.phone-frame {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 2.5rem;
    padding: 0.8rem;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: rotate(-8deg) perspective(1000px) rotateY(-5deg);
    transition: all 0.4s ease;
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #333;
    border-radius: 3px;
}

.phone-frame:hover {
    transform: rotate(-5deg) perspective(1000px) rotateY(-2deg) scale(1.05);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.phone-screen {
    background: white;
    border-radius: 2rem;
    overflow: hidden;
    height: 580px;
    position: relative;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.status-bar {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    color: #1f2937;
}

.status-icons {
    color: #374151;
}

.app-content {
    height: calc(100% - 60px);
    overflow-y: auto;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.greeting h6 {
    color: #1f2937;
    font-weight: 700;
    font-size: 1.1rem;
}

.greeting p {
    color: #6b7280;
    font-size: 0.9rem;
}

.maintenance-card {
    background: linear-gradient(135deg, #14b08e, #1a9f7a) !important;
    box-shadow: 0 8px 25px rgba(32, 201, 151, 0.3);
    border: none;
}

.maintenance-card h6 {
    font-weight: 700;
    font-size: 0.95rem;
}

.maintenance-card .btn {
    background: rgba(255, 255, 255, 0.9);
    color: #14b08e;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(32, 201, 151, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-card h6 {
    color: #1f2937;
    font-weight: 700;
    font-size: 1rem;
}

.stat-card small {
    color: #6b7280;
    font-size: 0.75rem;
}

.quick-actions h6 {
    color: #1f2937;
    font-weight: 700;
    font-size: 0.9rem;
}

.quick-actions .btn {
    border: 2px solid #14b08e;
    color: #14b08e;
    font-weight: 600;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    transition: all 0.3s ease;
}

.quick-actions .btn:hover {
    background: #14b08e;
    color: white;
    transform: translateY(-2px);
}

.floating-icon {
    position: absolute;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    animation: float 4s ease-in-out infinite;
    border: 2px solid rgba(32, 201, 151, 0.2);
}

.download-icon {
    top: 15px;
    right: 15px;
    animation-delay: 0s;
}

.home-icon {
    bottom: 15px;
    left: 15px;
    animation-delay: 2s;
}

.floating-icon i {
    font-size: 1.2rem;
    color: #14b08e;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(2deg);
    }
    50% {
        transform: translateY(-15px) rotate(0deg);
    }
    75% {
        transform: translateY(-8px) rotate(-2deg);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .awtu-topbar {
        text-align: center;
    }
    
    .awtu-topbar .awtu-contact-info,
    .awtu-topbar .awtu-social-links {
        justify-content: center;
        margin-bottom: var(--awtu-spacing-sm);
    }
    
    .awtu-navbar .navbar-nav {
        text-align: center;
        margin-top: var(--awtu-spacing-md);
    }
    
    .awtu-user-actions {
        text-align: center;
        margin-top: var(--awtu-spacing-md);
    }
    
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float .btn {
        width: 50px;
        height: 50px;
    }
    
    .back-to-top {
        bottom: 75px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .awtu-section {
        padding: var(--awtu-spacing-xl) 0;
    }
    
    .awtu-footer .col-md-6 {
        text-align: center !important;
        margin-bottom: var(--awtu-spacing-lg);
    }
}

/* ========================================
   LAZY LOADING
   ======================================== */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy.loaded {
    opacity: 1;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.awtu-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .awtu-header,
    .awtu-footer,
    .whatsapp-float,
    .back-to-top {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}
