/* ============================================
   STYLES.CSS - Estilos principales
   Consultora Creativa - consultoracreativa.com
   Estética Apple, minimalista y sofisticada
   ============================================ */

/* Reset y base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Contenedor principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-secondary);
}

/* ============================================
   HEADER / NAVEGACIÓN
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    display: none;
}

@media (min-width: 768px) {
    .logo img.isologo {
        display: none;
    }
    .logo img.logo-full {
        display: block;
        height: 45px;
    }
}

@media (max-width: 767px) {
    .logo img.isologo {
        display: block;
    }
    .logo img.logo-full {
        display: none;
    }
}

/* Navegación */
.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-menu a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* Controles del header (idioma + tema) */
.header-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Selector de idioma */
.lang-selector {
    display: flex;
    gap: 4px;
    background: var(--bg-tertiary);
    padding: 4px;
    border-radius: 8px;
}

.lang-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--accent-primary);
    color: white;
}

/* Menú móvil */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-primary);
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 968px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--header-bg);
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border-color);
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px 80px;
    background: var(--bg-primary);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://cdn.abacus.ai/images/d7b5c82e-c0fe-4b84-8a0d-ee6ff2a8dee3.jpg') center/cover no-repeat;
    opacity: 0.15;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero h1 {
    margin-bottom: 24px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.social-proof {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.social-proof-number {
    font-weight: 700;
    color: var(--accent-primary);
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   FILOSOFÍA
   ============================================ */
.filosofia {
    background: var(--bg-secondary);
}

.filosofia-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.filosofia-content p {
    font-size: 1.25rem;
    line-height: 1.8;
}

/* ============================================
   HISTORIAS DE TRANSFORMACIÓN
   ============================================ */
.historias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.historia-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.historia-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow-color);
}

.historia-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.historia-card-content {
    padding: 24px;
}

.historia-card h4 {
    margin-bottom: 12px;
    color: var(--accent-primary);
}

.historia-card p {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ============================================
   PLANES
   ============================================ */
.planes {
    background: var(--bg-secondary);
}

/* Toggle Mensual/Trimestral */
.plan-toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 48px;
}

.plan-toggle {
    display: flex;
    background: var(--bg-tertiary);
    padding: 4px;
    border-radius: 12px;
    position: relative;
}

.plan-toggle-btn {
    padding: 12px 32px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.plan-toggle-btn:hover {
    color: var(--text-primary);
}

.plan-toggle-btn.active {
    color: white;
    background: var(--accent-primary);
}

.discount-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: #10b981;
    margin-left: 8px;
}

/* Grid de planes */
.planes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.plan-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 32px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow-color);
}

.plan-card.featured {
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px var(--shadow-glow);
}

.plan-card.featured .plan-badge {
    display: block;
}

.plan-badge {
    display: none;
    background: var(--accent-gradient);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 16px;
    text-align: center;
    width: fit-content;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.plan-hours {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 24px;
}

.plan-price {
    margin-bottom: 24px;
}

.plan-price-main {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.plan-price-period {
    font-size: 1rem;
    color: var(--text-muted);
}

.plan-price-total {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.plan-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.plan-features {
    list-style: none;
    margin-bottom: 32px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.plan-features li::before {
    content: '✓';
    color: var(--accent-primary);
    font-weight: 700;
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow-glow);
    color: white;
}

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

.btn-secondary:hover {
    background: var(--accent-primary);
    color: white;
}

.btn-block {
    width: 100%;
}

/* ============================================
   SERVICIOS ESPECIALES
   ============================================ */
.servicios {
    position: relative;
}

.servicios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://cdn.abacus.ai/images/799d3c4f-3477-44c8-b0ca-ac111073f261.jpg') center/cover no-repeat;
    opacity: 0.08;
    z-index: 0;
}

.servicios .container {
    position: relative;
    z-index: 1;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.servicio-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 32px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

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

.servicio-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.servicio-card h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.servicio-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 16px;
}

.servicio-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.servicio-price span {
    font-size: 0.9375rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Servicios a cotizar - Lista */
.servicios-cotizar-list {
    list-style: none;
    margin-bottom: 24px;
}

.servicios-cotizar-list li {
    padding: 8px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.servicios-cotizar-list li::before {
    content: '→';
    color: var(--accent-primary);
}

/* ============================================
   FORMULARIO DE CONTACTO
   ============================================ */
.contacto {
    background: var(--bg-secondary);
}

.contacto-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px 16px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px var(--shadow-glow);
}

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

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

/* Campo condicional de WhatsApp */
.whatsapp-field {
    display: none;
}

.whatsapp-field.visible {
    display: block;
}

.phone-input-group {
    display: flex;
    gap: 12px;
}

.phone-prefix {
    width: 100px;
    flex-shrink: 0;
}

.phone-number {
    flex-grow: 1;
}

/* Radio buttons personalizados */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.radio-option {
    position: relative;
}

.radio-option input {
    position: absolute;
    opacity: 0;
}

.radio-option label {
    display: inline-block;
    padding: 12px 20px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.radio-option input:checked + label {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.radio-option label:hover {
    border-color: var(--accent-primary);
}

/* Mensaje de estado del formulario */
.form-status {
    padding: 16px;
    border-radius: 12px;
    margin-top: 16px;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    color: #10b981;
}

.form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--footer-bg);
    padding: 64px 0 32px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand img {
    height: 40px;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.footer-links {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.footer-column h5 {
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

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

/* Redes sociales */
.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

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

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ============================================
   POST-PAGO PAGE
   ============================================ */
.postpago-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 60px;
    background: var(--bg-primary);
}

.postpago-content {
    text-align: center;
    max-width: 700px;
}

.postpago-icon {
    font-size: 4rem;
    margin-bottom: 24px;
}

.postpago-content h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 24px;
    color: var(--accent-primary);
}

.postpago-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.postpago-form-section {
    background: var(--bg-secondary);
    padding: 80px 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .hero {
        padding: 100px 24px 60px;
    }
    
    .planes-grid {
        grid-template-columns: 1fr;
    }
    
    .servicios-grid {
        grid-template-columns: 1fr;
    }
    
    .historias-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .footer-links {
        width: 100%;
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .header-controls {
        gap: 8px;
    }
    
    .lang-btn {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Loading spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Ocultar elementos */
.hidden {
    display: none !important;
}
