* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #E67A41;
    --secondary-color: #D16A35;
    --dark-bg: #1a1d21;
    --darker-bg: #0f1113;
    --text-light: #f0f2f5;
    --text-gray: #a8b0b8;
    --accent-orange: #E67A41;
    --header-bg: rgba(10, 14, 39, 0.95);
    --nav-text-color: var(--text-light);
    --nav-hover-color: var(--primary-color);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--darker-bg);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background de cámaras animadas — opacidad reducida para fondo blanco */
#camera-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.07;
}

.camera-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    padding: 20px;
    width: 100%;
    height: 100%;
}

.camera-icon {
    width: 80px;
    height: 80px;
    transition: transform 0.1s ease-out;
    filter: drop-shadow(0 0 6px var(--primary-color));
}

/* Contenedor principal */
.container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header/Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 22%, transparent);
    box-shadow: 0 2px 20px rgba(65, 105, 225, 0.08);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 32px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 48px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
    /* resetear el gradient del texto cuando hay imagen */
    -webkit-text-fill-color: unset;
    background: none;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--nav-text-color, var(--text-light));
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--nav-hover-color, var(--primary-color));
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--nav-hover-color, var(--primary-color));
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Menú hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1000;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
    position: relative;
}

.hero-content {
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(65, 105, 225, 0.08);
    border: 1px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 30px;
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--primary-color);
}

/* Gradiente Azul Rey → Naranja Melón, legible sobre fondo blanco */
.hero h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--text-gray);
    margin-bottom: 50px;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
}

.hero-feature svg {
    width: 24px;
    height: 24px;
    fill: var(--accent-orange);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--btn-primary-text, #ffffff);
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(65, 105, 225, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(65, 105, 225, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--btn-secondary-text, var(--text-light));
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(65, 105, 225, 0.08);
    transform: translateY(-3px);
}

/* Stats Section */
.stats-section {
    background: rgba(65, 105, 225, 0.04);
    border-top: 1px solid rgba(65, 105, 225, 0.15);
    border-bottom: 1px solid rgba(65, 105, 225, 0.15);
    padding: 60px 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 40px 30px;
    background: #ffffff;
    border: 1px solid rgba(65, 105, 225, 0.15);
    border-radius: 20px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(65, 105, 225, 0.08);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(65, 105, 225, 0.15);
}

.stat-number {
    font-size: 56px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    color: var(--text-gray);
}

/* Features Section */
.section {
    padding: 120px 20px;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.section-badge {
    display: inline-block;
    background: rgba(65, 105, 225, 0.1);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid var(--primary-color);
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
}

.section-description {
    font-size: 20px;
    color: var(--text-gray);
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cards blancas con sombra sutil para fondo claro */
.feature-card {
    background: #ffffff;
    border: 1px solid rgba(65, 105, 225, 0.15);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(65, 105, 225, 0.08);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.06), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px rgba(65, 105, 225, 0.15);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 32px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-light);
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.feature-highlight {
    display: inline-block;
    background: rgba(0, 155, 119, 0.1);
    color: var(--accent-orange);
    padding: 5px 15px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}

/* How it Works */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.process-step {
    text-align: center;
    padding: 40px 30px;
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(65, 105, 225, 0.15);
    border-radius: 20px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(65, 105, 225, 0.08);
}

.process-step:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(65, 105, 225, 0.15);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    margin: 0 auto 25px;
    color: #ffffff;
}

.step-icon {
    font-size: 30px;
    line-height: 1;
}

.step-order-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-gray);
    margin-top: -12px;
    margin-bottom: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.process-step h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.process-step p {
    color: var(--text-gray);
    line-height: 1.7;
}

.process-step-desc {
    white-space: pre-line;
    text-align: left;
    display: inline-block;
}

/* Use Cases Section */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cards blancas igual que feature-card */
.use-case-card {
    background: #ffffff;
    border: 1px solid rgba(65, 105, 225, 0.15);
    border-radius: 20px;
    padding: 50px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(65, 105, 225, 0.08);
}

.use-case-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(65, 105, 225, 0.15);
}

.use-case-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.use-case-card h3 {
    font-size: 26px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.use-case-card p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.use-case-list {
    list-style: none;
    padding: 0;
}

.use-case-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-gray);
}

.use-case-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: bold;
    font-size: 18px;
}

/* CTA Section — fondo verde esmeralda sólido */
.cta-section {
    background: var(--accent-orange);
    padding: 100px 20px;
    text-align: center;
    margin: 80px 0;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 48px;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 800;
}

.cta-section p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta-section .btn-primary {
    background: #ffffff;
    color: var(--accent-orange);
    box-shadow: none;
}

.cta-section .btn-primary:hover {
    background: rgba(0, 0, 0, 0.15);
    color: #ffffff;
    box-shadow: none;
}

.cta-section .cta-btn-secondary {
    border-color: rgba(255, 255, 255, 0.9);
    color: #ffffff;
}

.cta-section .cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* Footer */
footer {
    background: var(--dark-bg);
    padding: 60px 20px 30px;
    border-top: 1px solid rgba(65, 105, 225, 0.15);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-section p,
.footer-section a {
    color: var(--text-gray);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: var(--primary-color);
}

.social-link svg {
    width: 34px;
    height: 34px;
    display: block;
}

.social-link:hover {
    transform: translateY(-3px);
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(65, 105, 225, 0.1);
    color: var(--text-gray);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .menu-toggle {
        display: flex;
    }

    /* Menú mobile — fondo blanco para tema claro */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 20px;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(65, 105, 225, 0.2);
        box-shadow: -4px 0 30px rgba(65, 105, 225, 0.1);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 18px;
        padding: 10px 0;
    }

    .section-title {
        font-size: 36px;
    }

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

    .cta-section h2 {
        font-size: 32px;
    }

    .camera-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 15px;
    }

    .camera-icon {
        width: 50px;
        height: 50px;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

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

.animate-on-scroll {
    animation: fadeInUp 0.8s ease-out;
}

/* Contact Form */
.contact-form-wrap {
    max-width: 720px;
    margin: 60px auto 0;
    padding: 0 20px 80px;
    text-align: center;
}

.contact-form-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-form-msg {
    min-height: 24px;
    margin-bottom: 16px;
    font-weight: 600;
}

.contact-form-msg.is-success {
    color: #16a34a;
}

.contact-form-msg.is-error {
    color: #dc2626;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 16px;
    color: var(--dark-bg);
    background: #ffffff;
    border: 1px solid rgba(65, 105, 225, 0.25);
    border-radius: 12px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

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

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.12);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button[type="submit"] {
    align-self: center;
    min-width: 200px;
    cursor: pointer;
    border: none;
}

.contact-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: progress;
}

/* Honeypot anti-spam: oculto para humanos */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.footer-tel {
    color: inherit;
    text-decoration: none;
}

.footer-tel:hover {
    color: var(--primary-color);
}

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

/* ---------------------------------------------------------------------------
   Botón flotante de WhatsApp (configurable desde el panel)
   --------------------------------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
    z-index: 1000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: whatsapp-pop 0.4s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
    color: #fff;
}

.whatsapp-float svg {
    width: 34px;
    height: 34px;
}

@keyframes whatsapp-pop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 52px;
    }
    .whatsapp-float svg { width: 30px; height: 30px; }
}
