:root {
    --primary-color: #4A90E2;
    --bg-color: #f4f7f6;
    --text-color: #333;
    --card-bg: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- NAVBAR --- */
.navbar {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-logo {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
}

.nav-toggle {
    display: none; /* Oculto en escritorio */
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Menú responsivo para móviles */
@media (max-width: 768px) {
    .nav-toggle {
        display: block; /* Mostrar hamburguesa en móviles */
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        padding: 1rem 0;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        padding: 0.5rem 0;
    }
}

/* --- HEADER & MAIN --- */
header {
    background-color: #ffffff;
    color: var(--primary-color);
    padding: 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.status-online { color: #28a745; font-weight: bold; }
.status-offline { color: #dc3545; font-weight: bold; }

main {
    flex: 1;
    padding: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Tarjeta especial para el botón de instalar */
.install-card {
    border: 2px dashed var(--primary-color);
    background-color: #eef5fc;
    text-align: center;
}

.install-card h2 {
    margin-bottom: 0.5rem;
}

.card h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card p {
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: transform 0.1s, background 0.2s;
    width: 100%;
    font-weight: bold;
}

button:active {
    transform: scale(0.98);
}

/* Botón de instalar con color distintivo */
#installBtn {
    background-color: #28a745; /* Verde para acción de descarga */
    font-size: 1.1rem;
    padding: 15px;
}

#installBtn:hover {
    background-color: #218838;
}

footer {
    text-align: center;
    padding: 1.5rem;
    color: #666;
    font-size: 0.9rem;
    background: #fff;
    border-top: 1px solid #e0e0e0;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

/* =========================================
   SISTEMA DE TARJETAS (CARDS) PARA PITCH
   ========================================= */

/* Contenedor Grid para las tarjetas */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Tarjeta base */
.demo-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.demo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.15);
    border-color: var(--primary-color);
}

/* Icono de la tarjeta */
.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef5fc 0%, #d6e8fa 100%);
    border-radius: 12px;
}

/* Títulos y textos */
.card-title {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.card-text {
    color: #666;
    line-height: 1.6;
    flex-grow: 1; /* Empuja el botón/link hacia abajo */
    margin-bottom: 1.5rem;
}

/* Botón/Enlace interno de la tarjeta */
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.2s ease;
}

.card-link:hover {
    gap: 0.8rem;
}

.card-link::after {
    content: '→';
    font-size: 1.2rem;
}

/* Variante: Tarjeta destacada (para el servicio principal) */
.demo-card.featured {
    background: linear-gradient(135deg, var(--primary-color) 0%, #357ABD 100%);
    color: white;
    border: none;
}

.demo-card.featured .card-icon {
    background: rgba(255, 255, 255, 0.2);
}

.demo-card.featured .card-title,
.demo-card.featured .card-text {
    color: white;
}

.demo-card.featured .card-text {
    opacity: 0.9;
}

.demo-card.featured .card-link {
    color: #ffffff;
    font-weight: bold;
}

/* Títulos de sección para las páginas */
.section-header {
    text-align: center;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}
/* =========================================
   PESTAÑA 3: CONTACTO Y COTIZACIÓN
   ========================================= */

/* Grid para tarjetas de contacto */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-info-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.contact-info-card .card-icon {
    margin: 0 auto 1rem;
}

.contact-info-card h3 {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-info-card p,
.contact-info-card a {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-info-card a:hover {
    color: var(--primary-color);
}

/* Formulario de cotización */
.quote-form {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.quote-form h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.quote-form > p {
    color: #666;
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
    background: white;
}

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

.form-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s, transform 0.1s;
}

.form-submit:hover {
    background: #357ABD;
}

.form-submit:active {
    transform: scale(0.98);
}

/* Sección FAQ */
.faq-section {
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.faq-item h4 {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.faq-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* CTA final */
.final-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, #357ABD 100%);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.final-cta h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.final-cta p {
    opacity: 0.95;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.final-cta button {
    background: white;
    color: var(--primary-color);
    max-width: 300px;
    margin: 0 auto;
}

.final-cta button:hover {
    background: #f0f0f0;
}