/* ===========================
   ClicPro Mx - style.css
   Tema híbrido dark futurista
=========================== */

:root {
    --cp-bg: #050814;
    --cp-bg-alt: #070a1d;
    --cp-bg-elevated: #0d1124;
    --cp-bg-soft: rgba(21, 26, 56, 0.8);

    --cp-primary: #ff4b9a;
    --cp-primary-soft: rgba(255, 75, 154, 0.16);
    --cp-accent: #4be3ff;
    --cp-accent-soft: rgba(75, 227, 255, 0.18);

    --cp-text-main: #f5f5ff;
    --cp-text-sub: #a8b0c2;
    --cp-text-muted: #6f7690;

    --cp-border-subtle: rgba(255, 255, 255, 0.05);

    --cp-radius-sm: 10px;
    --cp-radius: 16px;
    --cp-radius-lg: 24px;
    --cp-radius-full: 999px;

    --cp-shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
    --cp-shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.45);

    --cp-header-height: 70px;
}

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

html, body {
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--cp-text-main);
    background: radial-gradient(circle at top left, #291045 0, transparent 48%),
                radial-gradient(circle at bottom right, #034150 0, transparent 45%),
                var(--cp-bg);
    line-height: 1.6;
    /* espacio para el header fijo */
    padding-top: var(--cp-header-height);
}

/* Layout */

.cp-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.cp-section {
    padding: 5.5rem 0;
    position: relative;
}

.cp-section h2 {
    font-size: 2.1rem;
    margin-bottom: 1rem;
}

.cp-section-subtitle {
    color: var(--cp-text-sub);
    max-width: 640px;
    margin-bottom: 2.1rem;
}

/* Header */

.cp-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(18px);
    background: linear-gradient(90deg,
        rgba(5, 8, 20, 0.92),
        rgba(9, 12, 30, 0.92)
    );
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

/* cuando hay scroll, un poco más sólido para que no se pierda con el fondo */
.cp-header.cp-header-scrolled {
    background: linear-gradient(90deg,
        rgba(5, 8, 20, 0.98),
        rgba(9, 12, 30, 0.98)
    );
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
}

.cp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--cp-header-height);
}

/* Logo */

.cp-logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cp-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--cp-text-main);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.cp-logo img {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.2);
}

/* Nav */

.cp-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.cp-nav a {
    color: var(--cp-text-sub);
    text-decoration: none;
    padding: 0.3rem 0.6rem;
    border-radius: var(--cp-radius-full);
    position: relative;
}

.cp-nav a:hover {
    color: var(--cp-text-main);
    background: rgba(255, 255, 255, 0.08);
}

.cp-btn-nav {
    border: 1px solid var(--cp-primary);
    color: #fff !important;
    padding: 0.4rem 0.9rem;
}

/* Nav toggle (mobile) */

.cp-nav-toggle {
    display: none;
    width: 38px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(8, 11, 30, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.cp-nav-toggle span {
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 99px;
}

/* Hero */

.cp-hero {
    padding-top: 6rem;
    padding-bottom: 5rem;
    position: relative;
    overflow: hidden;
}

.cp-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(255, 75, 154, 0.23) 0, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(75, 227, 255, 0.23) 0, transparent 55%);
    opacity: 0.8;
    pointer-events: none;
    z-index: -1;
}

.cp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2.7rem;
    align-items: center;
}

.cp-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.8rem;
    border-radius: var(--cp-radius-full);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: radial-gradient(circle at top left,
        rgba(255, 75, 154, 0.4),
        rgba(4, 10, 33, 0.9)
    );
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.cp-hero-text h1 {
    font-size: 2.7rem;
    margin: 0.9rem 0 1rem;
}

.cp-hero-text p {
    color: var(--cp-text-sub);
}

.cp-hero-cta {
    margin-top: 1.7rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Botones */

.cp-btn-primary,
.cp-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    border-radius: var(--cp-radius-full);
    font-size: 0.92rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.cp-btn-primary {
    background: linear-gradient(135deg, var(--cp-primary), var(--cp-accent));
    color: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

.cp-btn-ghost {
    background: rgba(8, 12, 32, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--cp-text-main);
}

.cp-btn-sm {
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
}

/* Hero metrics */

.cp-hero-metrics {
    margin-top: 1.7rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.cp-hero-metrics strong {
    display: block;
    font-size: 1.3rem;
}

.cp-hero-metrics span {
    font-size: 0.85rem;
    color: var(--cp-text-muted);
}

/* Hero card */

.cp-hero-media {
    display: flex;
    justify-content: flex-end;
}

.cp-hero-card {
    background: linear-gradient(145deg, var(--cp-bg-elevated), var(--cp-bg-soft));
    border-radius: var(--cp-radius-lg);
    padding: 1.6rem 1.5rem 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--cp-shadow-soft);
    max-width: 360px;
}

.cp-hero-card h3 {
    margin-bottom: 0.85rem;
    font-size: 1.1rem;
}

.cp-hero-card ul {
    list-style: none;
    color: var(--cp-text-sub);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.cp-hero-card li {
    margin-bottom: 0.45rem;
}

.cp-hero-note {
    font-size: 0.8rem;
    color: var(--cp-text-muted);
}

/* Two columns */

.cp-two-cols {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2.5rem;
}

/* Checklist */

.cp-checklist {
    list-style: none;
    color: var(--cp-text-sub);
}

.cp-checklist li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.6rem;
    font-size: 0.96rem;
}

.cp-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.8rem;
    color: var(--cp-accent);
}

/* Grids y cards */

.cp-services-grid,
.cp-portfolio-grid,
.cp-testimonials-grid,
.cp-results-grid,
.cp-locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.7rem;
    margin-top: 2.2rem;
}

.cp-service-card,
.cp-portfolio-item,
.cp-testimonial,
.cp-location-card,
.cp-result-card {
    background: rgba(11, 14, 32, 0.94);
    border-radius: var(--cp-radius);
    padding: 1.5rem 1.4rem;
    border: 1px solid var(--cp-border-subtle);
    box-shadow: var(--cp-shadow-subtle);
}

/* Services */

.cp-service-card h3 {
    margin-bottom: 0.6rem;
}

.cp-service-card p {
    color: var(--cp-text-sub);
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}

.cp-service-card ul {
    padding-left: 1.2rem;
    color: var(--cp-text-sub);
    font-size: 0.9rem;
}

.cp-service-card li {
    margin-bottom: 0.4rem;
}

/* Portfolio */

.cp-portfolio-tagline {
    margin-bottom: 0.5rem;
}

.cp-portfolio-item h3 {
    margin-bottom: 0.4rem;
}

.cp-portfolio-item p {
    color: var(--cp-text-sub);
    font-size: 0.94rem;
}

.cp-portfolio-tags {
    margin-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.cp-chip {
    padding: 0.2rem 0.8rem;
    border-radius: var(--cp-radius-full);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.78rem;
    color: var(--cp-text-sub);
}

.cp-portfolio-cta {
    margin-top: 2.6rem;
    text-align: center;
}

/* Process */

.cp-process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.6rem;
    margin-top: 2.2rem;
}

.cp-step {
    background: rgba(10, 14, 32, 0.95);
    border-radius: var(--cp-radius);
    padding: 1.5rem 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.cp-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--cp-radius-full);
    background: linear-gradient(135deg, var(--cp-primary), var(--cp-accent));
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
}

/* Locations */

.cp-location-card p {
    color: var(--cp-text-sub);
    font-size: 0.9rem;
}

.cp-location-meta {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: var(--cp-text-muted);
}

.cp-location-active {
    border-color: var(--cp-primary-soft);
    box-shadow: 0 0 0 1px var(--cp-primary-soft), var(--cp-shadow-subtle);
}

/* Testimonials */

.cp-testimonial p {
    color: var(--cp-text-sub);
    font-style: italic;
    margin-bottom: 0.7rem;
}

.cp-testimonial h4 {
    font-size: 0.95rem;
}

/* FAQ */

.cp-faq-list details {
    background: rgba(11, 14, 32, 0.95);
    border-radius: var(--cp-radius);
    padding: 1rem 1.1rem;
    margin-bottom: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cp-faq-list summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.cp-faq-list summary::-webkit-details-marker {
    display: none;
}

.cp-faq-list p {
    margin-top: 0.5rem;
    color: var(--cp-text-sub);
    font-size: 0.9rem;
}

.cp-faq-list details[open] {
    border-color: var(--cp-primary-soft);
}

/* Contacto */

.cp-contact-list {
    list-style: none;
    margin-top: 1rem;
    color: var(--cp-text-sub);
}

.cp-contact-list li {
    margin-bottom: 0.4rem;
}

.cp-contact-form {
    background: rgba(8, 11, 30, 0.96);
    border-radius: var(--cp-radius-lg);
    padding: 1.6rem 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--cp-shadow-soft);
}

.cp-form-row {
    margin-bottom: 1rem;
}

.cp-form-row label {
    display: block;
    font-size: 0.86rem;
    margin-bottom: 0.22rem;
}

.cp-form-row input,
.cp-form-row select,
.cp-form-row textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(4, 8, 24, 0.9);
    color: var(--cp-text-main);
    padding: 0.55rem 0.7rem;
    font-size: 0.9rem;
    font-family: inherit;
}

.cp-form-row textarea {
    resize: vertical;
}

.cp-form-success {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #7fffb2;
}

/* Footer */

.cp-footer {
    background: #03040b;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 3rem;
    padding-top: 3rem;
}

.cp-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2rem;
}

.cp-footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
}

.cp-footer-logo img {
    width: 34px;
    height: 34px;
    border-radius: 999px;
}

.cp-footer p {
    color: var(--cp-text-sub);
    font-size: 0.9rem;
}

.cp-footer a {
    color: var(--cp-text-main);
    text-decoration: none;
}

.cp-footer h5 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.cp-social {
    list-style: none;
    font-size: 0.9rem;
}

.cp-social li {
    margin-bottom: 0.35rem;
}

.cp-footer-bottom {
    text-align: center;
    padding: 1.5rem 1rem 2rem;
    font-size: 0.8rem;
    color: var(--cp-text-muted);
}

