/* ============================================
   GeneraIA - Landing Page Styles
   ============================================ */

/* CSS Custom Properties */
:root {
    --primary: #1a3a5c;
    --primary-dark: #132842;
    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --accent-dark: #2563eb;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --transition: all 0.3s ease;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

.btn-white {
    background-color: var(--white);
    color: var(--accent);
    border-color: var(--white);
}

.btn-white:hover {
    background-color: var(--gray-100);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 12px 0;
}

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

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

.logo-icon {
    font-size: 28px;
    color: var(--accent);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .logo-text {
    color: var(--primary);
}

.navbar .btn {
    color: var(--white);
    border-color: var(--white);
    background: transparent;
}

.navbar.scrolled .btn {
    color: var(--accent);
    border-color: var(--accent);
    background: transparent;
}

.navbar.scrolled .btn:hover {
    background-color: var(--accent);
    color: var(--white);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--white);
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: var(--gray-300);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
}

.badge {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-300);
    font-size: 14px;
    font-weight: 500;
}

.badge i {
    font-size: 18px;
    color: var(--accent-light);
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: 80px 0;
}

.section-gray {
    background-color: var(--gray-50);
}

.section-blue {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.section-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-label-light {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-light);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 16px;
}

.section-title.centered {
    text-align: center;
}

.section-title-light {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 16px;
    color: var(--white);
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto 48px;
}

.section-subtitle.centered {
    text-align: center;
}

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

.section-text {
    color: var(--gray-600);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* ============================================
   Two Column Layout
   ============================================ */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.column-content {
    padding-right: 20px;
}

.feature-list {
    margin-top: 24px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 1rem;
    color: var(--gray-600);
}

.feature-list li i {
    color: var(--accent);
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ============================================
   Diagram / Visual
   ============================================ */
.column-visual {
    display: flex;
    justify-content: center;
}

.diagram {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    width: 100%;
    max-width: 400px;
}

.diagram-center {
    text-align: center;
    margin-bottom: 40px;
}

.employee-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: var(--shadow-md);
}

.employee-icon i {
    font-size: 40px;
    color: var(--white);
}

.employee-label {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.diagram-channels {
    display: flex;
    justify-content: space-around;
    gap: 16px;
}

.channel {
    text-align: center;
    padding: 16px 12px;
    background: var(--gray-50);
    border-radius: var(--radius);
    flex: 1;
}

.channel i {
    font-size: 28px;
    margin-bottom: 8px;
    display: block;
}

.channel span {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
}

.channel-phone i {
    color: var(--gray-600);
}

.channel-whatsapp i {
    color: #25D366;
}

.channel-web i {
    color: var(--accent);
}

/* ============================================
   Cards Grid
   ============================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

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

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon i {
    font-size: 28px;
    color: var(--primary);
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.card-text {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ============================================
   Pricing
   ============================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 2px solid var(--accent);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-100);
}

.pricing-name {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.pricing-tagline {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.pricing-price {
    text-align: center;
    margin-bottom: 8px;
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

.price-currency {
    font-size: 1rem;
    color: var(--gray-500);
    margin-left: 4px;
}

.pricing-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-400);
    margin-bottom: 24px;
}

.pricing-features {
    margin-bottom: 28px;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--gray-600);
}

.pricing-features li i {
    color: var(--accent);
    font-size: 16px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* ============================================
   Timeline
   ============================================ */
.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--gray-200);
    z-index: 0;
}

.timeline-item {
    text-align: center;
    position: relative;
    z-index: 1;
}

.timeline-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 auto 24px;
    box-shadow: var(--shadow-md);
}

.timeline-content {
    padding: 0 8px;
}

.timeline-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.timeline-text {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
}

.testimonial-quote {
    position: relative;
    margin-bottom: 24px;
}

.testimonial-quote i {
    font-size: 24px;
    color: var(--accent);
    opacity: 0.3;
    position: absolute;
    top: -8px;
    left: -8px;
}

.testimonial-quote p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-600);
    font-style: italic;
    padding-left: 16px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-avatar i {
    font-size: 20px;
    color: var(--gray-500);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    font-size: 1rem;
    color: var(--gray-800);
    margin-bottom: 2px;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--accent);
}

.faq-question i {
    font-size: 18px;
    transition: var(--transition);
    color: var(--gray-400);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding-bottom: 24px;
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ============================================
   Form
   ============================================ */
.form-wrapper {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.contact-form {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--gray-300);
    text-align: center;
}

.form-success {
    display: none;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    text-align: center;
}

.form-success.show {
    display: block;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-icon i {
    font-size: 40px;
    color: var(--white);
}

.form-success h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.form-success p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--gray-900);
    padding: 60px 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--gray-700);
}

.logo-footer .logo-icon {
    color: var(--accent-light);
}

.logo-footer .logo-text {
    color: var(--white);
}

.footer-tagline {
    margin-top: 16px;
    font-size: 0.95rem;
    color: var(--gray-400);
    max-width: 300px;
}

.footer-contact h4 {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-400);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.footer-contact i {
    color: var(--accent-light);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

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

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .timeline::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .two-column {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .column-content {
        padding-right: 0;
    }
    
    .column-visual {
        order: -1;
    }
    
    .diagram {
        max-width: 320px;
        padding: 24px;
    }
    
    .employee-icon {
        width: 80px;
        height: 80px;
    }
    
    .employee-icon i {
        font-size: 32px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .trust-badges {
        flex-direction: column;
        gap: 16px;
    }
    
    .timeline {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 24px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .pricing-card {
        padding: 24px;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .testimonial {
        padding: 24px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.faq-question:focus {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
}
