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

:root {
    /* Color Palette */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #10b981;
    --secondary-dark: #0d9668;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --gray-color: #3b4240;
    --gray-light: #e5e7eb;
    --gray-dark: #374151;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --success-color: #10b981;

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Poppins', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #ffffff;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--gray-color);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

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

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

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-sm) 0;
}

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

.logo-container {
  display: flex;
  align-items: center; /* alinea verticalmente */
}

#logo {
  width: 60px;
  height: 45px;
  background: url(../images/logo.png) no-repeat 0 0;
  background-size: contain; /* opcional, mejora el ajuste */
  display: inline-block; /* por las dudas */
}

#logofooter {
  width: 30px;
  height: 25px;
  background: url(../images/logo.png) no-repeat 0 0;
  background-size: contain; /* opcional, mejora el ajuste */
  display: inline-block; /* por las dudas */
}


.logo-subtitle {
  margin-left: 8px; /* espacio entre logo y texto */
}

.logo-subtitle {
    font-family: 'Gochi Hand', cursive;
    font-size: 1.75rem;
    color: var(--gray-color);
    margin-top: -2px;
}

.logo-subtitle-footer {
    font-family: 'Gochi Hand', cursive;
    font-size: 1rem;
    color: var(--gray-light);
    margin-top: -2px;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    list-style: none;
}

.nav-menu li a {
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu li a:hover {
    color: var(--primary-color);
}

.nav-menu li a.active {
    color: var(--primary-color);
}

.nav-menu li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.nav-cta {
    margin-left: var(--spacing-sm);
}

/* Hero Section */
.hero {
    padding-top: 100px;
    padding-bottom: var(--spacing-xxl);
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.hero .container {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--dark-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    color: var(--gray-dark);
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.hero-badges {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    background-color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    font-size: 0.875rem;
    font-weight: 500;
}

.badge i {
    color: var(--success-color);
}

.hero-image {
    flex: 1;
}

.dashboard-preview {
    background-color: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(-10deg);
    transition: transform 0.5s ease;
}

.dashboard-preview:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.dashboard-header {
    background-color: var(--dark-color);
    color: white;
    padding: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.window-controls {
    display: flex;
    gap: var(--spacing-xs);
}

.window-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.window-dot.red {
    background-color: var(--danger-color);
}

.window-dot.yellow {
    background-color: var(--warning-color);
}

.window-dot.green {
    background-color: var(--success-color);
}

.dashboard-title {
    font-weight: 600;
    font-size: 0.875rem;
}

.dashboard-content {
    padding: var(--spacing-lg);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
}

.grid-item {
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    text-align: center;
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
}

.extension {
    background-color: var(--light-color);
    border: 1px solid var(--gray-light);
}

.extension.active {
    border-color: var(--success-color);
    background-color: rgba(16, 185, 129, 0.1);
}

.extension.busy {
    border-color: var(--danger-color);
    background-color: rgba(239, 68, 68, 0.1);
}

.extension.inactive {
    border-color: var(--gray-color);
    background-color: rgba(107, 114, 128, 0.1);
}

.queue {
    background-color: rgba(37, 99, 235, 0.1);
    border: 1px solid var(--primary-color);
}

.call {
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning-color);
}

.phonebook {
    background-color: rgba(139, 92, 246, 0.1);
    border: 1px solid #8b5cf6;
}

.extension-label, .queue-label, .call-label, .phonebook-label {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.extension-status, .queue-status, .call-number, .phonebook-count {
    font-size: 0.75rem;
    color: var(--gray-color);
}

/* Section Styles */
.section {
    padding: var(--spacing-xxl) 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark-color);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-color);
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.about-text {
    flex: 1;
}

.about-stats {
    display: flex;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-color);
    margin-top: var(--spacing-xs);
}

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

.globe-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.globe-container i {
    font-size: 12rem;
    color: var(--primary-color);
    opacity: 0.2;
}

.globe-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.dot-1 { top: 9%; left: 30%; }
.dot-2 { top: 40%; left: 50%; }
.dot-3 { top: 45%; left: 14%; }
.dot-4 { top: 38%; left: 37%; }
.dot-5 { top: 30%; left: 50%; }
.dot-6 { top: 50%; left: 34%; }
.dot-7 { top: 17%; left: 11%; }
.dot-8 { top: 30%; left: 23%; }

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

/* Features Section */
.features {
    background-color: var(--light-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background-color: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.feature-description {
    color: var(--gray-color);
    font-size: 1rem;
}

/* Download Section */
.download-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.download-text {
    flex: 1;
}

.download-details {
    margin: var(--spacing-lg) 0;
}

.detail {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.detail i {
    color: var(--success-color);
}

.system-requirements {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-md);
    background-color: var(--light-color);
    border-radius: var(--radius-md);
}

.system-requirements h4 {
    margin-bottom: var(--spacing-sm);
}

.requirements {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.requirement {
    font-size: 0.875rem;
    color: var(--gray-color);
}

.download-image {
    flex: 1;
}

.code-window {
    background-color: var(--dark-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.window-header {
    background-color: #333;
    color: white;
    padding: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.window-title {
    font-size: 0.875rem;
    font-weight: 500;
}

.window-content {
    padding: var(--spacing-lg);
    font-family: 'Courier New', monospace;
}

.code-line {
    display: block;
    color: #00ff00;
    margin-bottom: var(--spacing-sm);
    font-size: 0.875rem;
}

.code-line:last-child {
    margin-bottom: 0;
}

.blinking-cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Pricing Section */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

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

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.75rem;
    font-weight: 600;
}

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

.pricing-title {
    font-size: 1.5rem;
    color: var(--dark-color);
}

.pricing-price {
    margin: var(--spacing-sm) 0;
}

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

.period {
    font-size: 1rem;
    color: var(--gray-color);
}

.pricing-description {
    color: var(--gray-color);
    font-size: 0.875rem;
}

.pricing-features {
    flex: 1;
    margin-bottom: var(--spacing-lg);
}

.feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.feature i {
    color: var(--success-color);
}

.feature.disabled i {
    color: var(--gray-light);
}

.feature.disabled span {
    color: var(--gray-light);
    text-decoration: line-through;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    margin-bottom: var(--spacing-md);
}

.footer-description {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
}

.footer-description-small {
    color: #9ca3af;
    font-size: 0.6rem;
    margin-bottom: var(--spacing-md);
    margin-top:1rem;
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
}

.social-link {
    width: 36px;
    height: 36px;
    background-color: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
}

.footer-title {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    color: white;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links li a {
    color: #9ca3af;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: var(--spacing-lg);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

.footer-copyright {
    color: #9ca3af;
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-legal a {
    color: #9ca3af;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero .container,
    .about-content,
    .download-content {
        flex-direction: column;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background-color: white;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-md);
        transition: left 0.3s ease;
        gap: var(--spacing-md);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }

    .about-stats {
        justify-content: center;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero-title {
        font-size: 1.875rem;
    }

    .section {
        padding: var(--spacing-xl) 0;
    }

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

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

/* Animation Styles */
.animated {
    animation: fadeInUp 0.6s ease forwards;
}

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

.pd5 { padding: 5px !important; }
