/*
Theme Name: Changarro Theme
Theme URI: https://example.com/changarro-theme
Author: JALF
Description: Tema base para mostrar negocios, servicios, galeria, testimonios y contacto.
Version: 1.7.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: changarro-theme
*/

:root {
    --primary: #6C63FF;
    --secondary: #FF6584;
    --bg: #f7f7ff;
    --text: #1a1a1a;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* CONTENEDOR */
.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

/* SECCIONES */
section {
    padding: 80px 0;
}

/* TITULOS */
h1, h2, h3 {
    margin-bottom: 10px;
}

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

/* HEADER */
.header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.9);
}

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

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: #333;
}

/* HERO */
.hero {
    background: linear-gradient(135deg, #6C63FF, #FF6584);
    color: white;
    text-align: center;
    padding: 140px 20px;
}

.hero h1 {
    font-size: 2.8rem;
    max-width: 700px;
    margin: auto;
}

.hero p {
    margin-top: 15px;
    opacity: 0.9;
}

/* BOTONES */
.btn-main {
    background: white;
    color: var(--primary);
    padding: 14px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-right: 10px;
}

.btn-secondary {
    border: 2px solid white;
    color: white;
    padding: 14px 24px;
    border-radius: 8px;
    text-decoration: none;
}

/* GRID */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* CARDS */
.card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    text-align: center;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-8px);
}

/* PLANES */
.plan .precio {
    font-size: 2rem;
    color: var(--primary);
    margin: 15px 0;
}

.plan:nth-child(2) {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

/* TESTIMONIOS */
blockquote {
    background: white;
    padding: 20px;
    border-left: 5px solid var(--primary);
    border-radius: 8px;
}

/* CTA */
.cta {
    text-align: center;
    background: linear-gradient(135deg, #6C63FF, #FF6584);
    color: white;
    padding: 80px 20px;
}

/* WHATSAPP */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    font-size: 22px;
    padding: 15px;
    border-radius: 50%;
}

img {
    max-width: 100%;
    display: block;
}

.card img {
    margin-bottom: 10px;
}

.section-light {
    background: white;
}

.section-gray {
    background: #f1f3ff;
}

.section-dark {
    background: #0f172a;
    color: white;
}

.section-dark h2 {
    color: white;
}

/* MOCKUPS */
.mockup {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transform: rotate(-2deg);
    transition: 0.3s;
}

.mockup:hover {
    transform: rotate(0deg) scale(1.03);
}

.popular {
    position: relative;
}

.popular::before {
    content: "Más vendido";
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--secondary);
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 6px;
}

h2 {
    font-size: 2rem;
}

p {
    line-height: 1.6;
    color: #555;
}

.section-dark p {
    color: #ccc;
}



.hero-pro {
    background: linear-gradient(135deg, #6C63FF, #FF6584);
    color: white;
    padding: 120px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-text h1 {
    font-size: 3rem;
}

.hero-bullets {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0.9;
}

.hero-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    transform: rotate(-2deg);
}


.mockups-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.mockup {
    width: 100%;
    border-radius: 12px;
    transition: 0.3s;
}

.mockup:hover {
    transform: scale(1.05);
}



.pricing-pro {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.plan-card {
    background: white;
    padding: 30px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    transition: 0.3s;
}

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

.precio {
    font-size: 2.5rem;
    color: var(--primary);
    margin: 20px 0;
}

/* DESTACADO */
.plan-card:nth-child(2) {
    transform: scale(1.08);
    border: 2px solid var(--primary);
}


.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}


.mockups-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.mockup-item {
    text-align: center;
}

.mockup-item img {
    width: 100%;
    border-radius: 12px;
    transition: 0.3s;
}

.mockup-item img:hover {
    transform: scale(1.05);
}

.mockup-item span {
    display: block;
    margin-top: 10px;
    color: #ccc;
}


.features {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.features li {
    margin: 5px 0;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.stars {
    color: #f5a623;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
}


.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
}

.icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.step {
    position: relative;
}

.number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 15px;
}


.cta-pro {
    padding: 100px 20px;
    background: #f7f7ff;
}

.cta-box {
    max-width: 800px;
    margin: auto;
    background: linear-gradient(135deg, #6C63FF, #FF6584);
    color: white;
    padding: 60px 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.cta-box h2 {
    font-size: 2.4rem;
}

.cta-sub {
    margin: 15px 0;
    opacity: 0.9;
}

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

.btn-cta-big {
    display: inline-block;
    margin-top: 20px;
    background: white;
    color: #6C63FF;
    padding: 16px 30px;
    border-radius: 10px;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1rem;
    transition: 0.3s;
}

.btn-cta-big:hover {
    transform: scale(1.05);
}

.cta-micro {
    font-size: 0.85rem;
    margin-top: 10px;
    opacity: 0.8;
}

.cta-pro {
    padding: 120px 20px;
    background: #f7f7ff;
}

.cta-box {
    max-width: 700px;
    margin: auto;
    text-align: center;
}

.cta-box h2 {
    font-size: 2.4rem;
    line-height: 1.3;
}

.cta-sub {
    margin-top: 15px;
    color: #666;
    font-size: 1.1rem;
}

.btn-cta {
    display: inline-block;
    margin-top: 30px;
    background: #6C63FF;
    color: white;
    padding: 16px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(108,99,255,0.3);
    transition: 0.3s;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(108,99,255,0.4);
}

.cta-micro {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #888;
}


.cta-pro {
    padding: 120px 20px;
    background: #f7f7ff;
}

/* TARJETA */
.cta-card {
    max-width: 700px;
    margin: auto;
    background: white;
    padding: 60px 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

/* TITULO */
.cta-card h2 {
    font-size: 2.2rem;
    line-height: 1.3;
}

/* SUB */
.cta-sub {
    margin-top: 15px;
    color: #666;
}

/* ══════════════════════════════════════════════════════════════
   FORMULARIO DE SOLICITUD — /empezar
   ══════════════════════════════════════════════════════════════ */

.cs-form-section {
    padding: 60px 0 100px;
    background: var(--bg);
}

/* Cabecera */
.cs-form-header {
    text-align: center;
    margin-bottom: 40px;
}
.cs-form-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--text);
    margin-bottom: 10px;
}
.cs-form-subtitle {
    color: #666;
    font-size: 1.1rem;
}

/* Barra de progreso */
.cs-progress-bar {
    width: 100%;
    height: 6px;
    background: #e0deff;
    border-radius: 99px;
    margin-bottom: 8px;
    overflow: hidden;
}
.cs-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 99px;
    width: 0%;
    transition: width 0.4s ease;
}
.cs-step-counter {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 36px;
}

/* Pasos */
.cs-step { display: none; }
.cs-step.active { display: block; }

.cs-step-title {
    font-size: 1.5rem;
    margin-bottom: 6px;
    color: var(--text);
}
.cs-step-desc {
    color: #666;
    margin-bottom: 28px;
}
.cs-subheading {
    font-size: 1.1rem;
    margin: 24px 0 8px;
    color: var(--text);
}

/* Cards de giro */
.cs-giro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.cs-giro-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 24px 16px;
    border: 2px solid #e0deff;
    border-radius: 14px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    background: white;
}
.cs-giro-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108,99,255,0.12);
}
.cs-giro-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.cs-giro-card:has(input:checked) {
    border-color: var(--primary);
    background: #f0eeff;
    box-shadow: 0 8px 24px rgba(108,99,255,0.15);
}
.cs-giro-emoji {
    font-size: 2rem;
    line-height: 1;
}
.cs-giro-card strong {
    font-size: 1rem;
    color: var(--text);
}
.cs-giro-card small {
    font-size: 0.78rem;
    color: #888;
}
.cs-error-group .cs-giro-card {
    border-color: #e74c3c;
}

/* Campos */
.cs-field {
    margin-bottom: 20px;
}
.cs-field label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--text);
}
.cs-field input[type="text"],
.cs-field input[type="tel"],
.cs-field input[type="url"],
.cs-field input[type="email"],
.cs-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    background: white;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.cs-field input:focus,
.cs-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108,99,255,0.12);
}
.cs-field input.cs-error,
.cs-field textarea.cs-error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231,76,60,0.1);
}
.cs-field small {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: #888;
}
.cs-required { color: #e74c3c; }

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

/* Servicios */
.cs-servicio-card {
    background: white;
    border: 1.5px solid #e8e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: box-shadow 0.2s;
}
.cs-servicio-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}
.cs-servicio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.cs-servicio-header strong {
    font-size: 0.95rem;
    color: var(--text);
}
.cs-remove-btn {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.cs-remove-btn:hover {
    color: #e74c3c;
    background: #ffeaea;
}
.cs-featured-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #555;
    cursor: pointer;
    margin-top: 12px;
}
/* Star picker — paso de reseñas */
.cs-field-rating { flex: 0 0 160px; }
.cs-star-picker {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
    margin-top: 6px;
}
.cs-star-picker input[type="radio"] { display: none; }
.cs-star-picker label {
    font-size: 1.5rem;
    color: #ccc;
    cursor: pointer;
    transition: color 0.15s;
}
.cs-star-picker input:checked ~ label,
.cs-star-picker label:hover,
.cs-star-picker label:hover ~ label {
    color: #f5a623;
}

.cs-add-btn {
    background: none;
    border: 2px dashed #c5c1f0;
    color: var(--primary);
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s, border-color 0.2s;
    margin-bottom: 6px;
}
.cs-add-btn:hover {
    background: #f0eeff;
    border-color: var(--primary);
}
.cs-add-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.cs-add-hint {
    font-size: 0.8rem;
    color: #aaa;
    text-align: center;
}

/* Paletas de color */
.cs-paletas-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 10px;
    margin-bottom: 24px;
}
.cs-paleta-opcion {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.cs-paleta-opcion input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.cs-paleta-swatch {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, transform 0.2s;
    overflow: hidden;
}
.cs-paleta-opcion:has(input:checked) .cs-paleta-swatch {
    border-color: var(--text);
    transform: scale(1.1);
}
.cs-paleta-swatch input[type="color"] {
    width: 100%;
    height: 100%;
    border: none;
    padding: 0;
    cursor: pointer;
    background: none;
}
.cs-paleta-opcion small {
    font-size: 0.75rem;
    color: #666;
}

/* Resumen */
.cs-resumen-box {
    background: white;
    border: 1.5px solid #e0deff;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0;
}
.cs-resumen-box h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--primary);
}
.cs-resumen-box p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
}
.cs-terms {
    font-size: 0.82rem;
    color: #aaa;
    text-align: center;
    margin-top: 16px;
}

/* Navegación */
.cs-form-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    gap: 12px;
}
.cs-btn {
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    font-family: inherit;
}
.cs-btn:hover { transform: translateY(-2px); }
.cs-btn-primary {
    background: var(--primary);
    color: white;
    margin-left: auto;
    box-shadow: 0 6px 20px rgba(108,99,255,0.3);
}
.cs-btn-primary:hover {
    box-shadow: 0 10px 28px rgba(108,99,255,0.4);
}
.cs-btn-secondary {
    background: white;
    color: var(--text);
    border: 1.5px solid #ddd;
}

/* Responsivo */
@media (max-width: 600px) {
    .cs-fields-row { grid-template-columns: 1fr; }
    .cs-giro-grid  { grid-template-columns: 1fr; }
    .cs-form-nav   { flex-direction: column; }
    .cs-btn        { width: 100%; text-align: center; margin-left: 0; }
}

/* BOTÓN REAL */
.btn-cta-main {
    display: inline-block;
    margin-top: 30px;
    background: linear-gradient(135deg, #6C63FF, #FF6584);
    color: white;
    padding: 16px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(108,99,255,0.3);
    transition: 0.3s;
}

.btn-cta-main:hover {
    transform: translateY(-3px);
}

/* MICRO */
.cta-micro {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #999;
}


.logo {
    font-weight: bold;
    font-size: 1.2rem;
}

/* BOTÓN HEADER */
.btn-header {
    background: linear-gradient(135deg, #6C63FF, #FF6584);
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}

/* MENU TOGGLE */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}


@media (max-width: 768px) {

    .nav {
        position: relative;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        display: none;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .nav-menu ul {
        flex-direction: column;
        padding: 20px;
    }

    .nav-menu ul li {
        margin-bottom: 10px;
    }

    .menu-toggle {
        display: block;
    }

    .btn-header {
        display: none;
    }

    .nav.active .nav-menu {
        display: block;
    }

}